@kabmo-labs/kabmo 0.30.1 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -21
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +518 -480
- package/dist/client/static/js/CsvGrid-amafmq3z.js +2 -0
- package/dist/client/static/js/DocxView-851ps9t0.js +58 -0
- package/dist/client/static/js/DrawioView-kw1vy3r2.js +5 -0
- package/dist/client/static/js/ImageView-ksx9bbct.js +1 -0
- package/dist/client/static/js/LayoutWrapper-9ftz050x.js +2 -0
- package/dist/client/static/js/Modal-f8x3j3be.js +38 -0
- package/dist/client/static/js/PdfView-f5jkm0rs.js +1 -0
- package/dist/client/static/js/SessionsView-wzdf1cp6.js +1 -0
- package/dist/client/static/js/SheetView-23zxy30b.js +140 -0
- package/dist/client/static/js/SvgPreview-c341y50e.js +1 -0
- package/dist/client/static/js/__vite-browser-external-2447137e-mq6vaetg.js +0 -0
- package/dist/client/static/js/abnfDiagram-O67JEVCF-2dc3mpk6.js +1 -0
- package/dist/client/static/js/andromeeda-17pn42cc.js +1 -0
- package/dist/client/static/js/architecture-7GRP2DOG-4wsd6vk0.js +1 -0
- package/dist/client/static/js/architectureDiagram-NJMV4G6O-7jmrr5ja.js +36 -0
- package/dist/client/static/js/astro-sjtf954j.js +1 -0
- package/dist/client/static/js/aurora-x-hxy97145.js +1 -0
- package/dist/client/static/js/ayu-dark-x0jd4baz.js +1 -0
- package/dist/client/static/js/ayu-light-12fg03q0.js +1 -0
- package/dist/client/static/js/ayu-mirage-52h7xjbv.js +1 -0
- package/dist/client/static/js/bash-h6pkqvth.js +1 -0
- package/dist/client/static/js/blockDiagram-BEXU5L5S-jrk2m0ea.js +140 -0
- package/dist/client/static/js/c-thbdzmwv.js +1 -0
- package/dist/client/static/js/c4Diagram-YGBWAQC7-48cyncjd.js +38 -0
- package/dist/client/static/js/catppuccin-frappe-fqgpn512.js +1 -0
- package/dist/client/static/js/catppuccin-latte-tr2x6gmz.js +1 -0
- package/dist/client/static/js/catppuccin-macchiato-rm7kh084.js +1 -0
- package/dist/client/static/js/catppuccin-mocha-hw0dzp99.js +1 -0
- package/dist/client/static/js/classDiagram-v2-NBCMYWYE-gm7jt1cd.js +217 -0
- package/dist/client/static/js/clike-h8p24dc6.js +1 -0
- package/dist/client/static/js/clojure-tf457n84.js +1 -0
- package/dist/client/static/js/clojure-w19rx1x5.js +1 -0
- package/dist/client/static/js/cmake-qpejsvqg.js +1 -0
- package/dist/client/static/js/cose-bilkent-JH36ORCC-g0g3z0xp.js +1 -0
- package/dist/client/static/js/cpp-r1za1kke.js +1 -0
- package/dist/client/static/js/csharp-dap1ppts.js +1 -0
- package/dist/client/static/js/css-qsv4vvke.js +1 -0
- package/dist/client/static/js/css-tf1s0nb7.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-eycwde8c.js +1 -0
- package/dist/client/static/js/cynefinDiagram-VND7K2PF-6vjde6am.js +62 -0
- package/dist/client/static/js/dagre-6A5THRUB-q6k8bx1j.js +4 -0
- package/dist/client/static/js/dark-plus-weqfnwnf.js +1 -0
- package/dist/client/static/js/dart-dxn88tw0.js +1 -0
- package/dist/client/static/js/diagram-22UHCM2B-87cmze2n.js +200 -0
- package/dist/client/static/js/diagram-3UASUU5V-1ejbr2p4.js +24 -0
- package/dist/client/static/js/diagram-ATOU4E4O-vaw1r6k2.js +3 -0
- package/dist/client/static/js/diagram-CDSNMT55-gxm9zv7d.js +30 -0
- package/dist/client/static/js/diagram-MLGK6HIB-x010xswm.js +24 -0
- package/dist/client/static/js/diagram-MPIPVDR6-qtcq7e6c.js +41 -0
- package/dist/client/static/js/diff-r1sqd2db.js +1 -0
- package/dist/client/static/js/dockerfile-d43jt8fq.js +1 -0
- package/dist/client/static/js/dockerfile-k5xbramm.js +1 -0
- package/dist/client/static/js/dracula-k5pe1hsy.js +1 -0
- package/dist/client/static/js/dracula-soft-xqzm7g02.js +1 -0
- package/dist/client/static/js/ebnfDiagram-ZINNZB2B-nwwbasfh.js +1 -0
- package/dist/client/static/js/elixir-rpa1g4gy.js +1 -0
- package/dist/client/static/js/elk-276RUBZZ-xcp7thax.js +2 -0
- package/dist/client/static/js/erDiagram-OPXOYQCR-xj1tp716.js +99 -0
- package/dist/client/static/js/erlang-1ch2hjv9.js +1 -0
- package/dist/client/static/js/erlang-rz1g9mxy.js +1 -0
- package/dist/client/static/js/eventmodeling-NTZA5JFV-srqbnmey.js +1 -0
- package/dist/client/static/js/everforest-dark-v44f35e9.js +1 -0
- package/dist/client/static/js/everforest-light-c7m7g4z4.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-yj98317w.js +1 -0
- package/dist/client/static/js/ganttDiagram-FUAMR5RP-f7q96bea.js +292 -0
- package/dist/client/static/js/ghostty-web-2gt2tp72.js +13 -0
- package/dist/client/static/js/gitGraph-4MIJSDKK-5jcrvn94.js +1 -0
- package/dist/client/static/js/gitGraphDiagram-X574FWY7-1rydkyq9.js +106 -0
- package/dist/client/static/js/github-dark-default-1000qs8y.js +1 -0
- package/dist/client/static/js/github-dark-dimmed-vfghfgh1.js +1 -0
- package/dist/client/static/js/github-dark-fvd3e45k.js +1 -0
- package/dist/client/static/js/github-dark-high-contrast-2j07czxg.js +1 -0
- package/dist/client/static/js/github-light-9r4ahj0m.js +1 -0
- package/dist/client/static/js/github-light-default-6d4nszch.js +1 -0
- package/dist/client/static/js/github-light-high-contrast-qwzscwzg.js +1 -0
- package/dist/client/static/js/go-nfrqbjpq.js +1 -0
- package/dist/client/static/js/go-rtqh5zp3.js +1 -0
- package/dist/client/static/js/graphql-275pg7ya.js +1 -0
- package/dist/client/static/js/groovy-63s5pygd.js +1 -0
- package/dist/client/static/js/groovy-s992001c.js +1 -0
- package/dist/client/static/js/gruvbox-dark-hard-ctttkbm1.js +1 -0
- package/dist/client/static/js/gruvbox-dark-medium-vh8mkpgj.js +1 -0
- package/dist/client/static/js/gruvbox-dark-soft-9f1ph8sj.js +1 -0
- package/dist/client/static/js/gruvbox-light-hard-n3ma2f5b.js +1 -0
- package/dist/client/static/js/gruvbox-light-medium-hkamn7bg.js +1 -0
- package/dist/client/static/js/gruvbox-light-soft-r39t4g97.js +1 -0
- package/dist/client/static/js/haskell-ev7ynt8z.js +1 -0
- package/dist/client/static/js/haskell-phxh4hcg.js +1 -0
- package/dist/client/static/js/hcl-wndsmevr.js +1 -0
- package/dist/client/static/js/horizon-bright-wz5mjtp4.js +1 -0
- package/dist/client/static/js/horizon-pr13gmaz.js +1 -0
- package/dist/client/static/js/houston-mrdq0gj4.js +1 -0
- package/dist/client/static/js/html-pv88ny12.js +1 -0
- package/dist/client/static/js/index-0a1ekhqf.js +2 -0
- package/dist/client/static/js/index-0g25yrc0.js +1 -0
- package/dist/client/static/js/index-0j518hqm.js +2 -0
- package/dist/client/static/js/index-0n9c85ke.js +2 -0
- package/dist/client/static/js/index-123e8tqq.js +2 -0
- package/dist/client/static/js/index-14wppnkx.js +2 -0
- package/dist/client/static/js/index-22jaxtz1.js +2 -0
- package/dist/client/static/js/index-2n5wy1sh.js +1 -0
- package/dist/client/static/js/index-2t2tnc3x.js +1 -0
- package/dist/client/static/js/index-31jrebvn.js +214 -0
- package/dist/client/static/js/index-3anc30zh.js +2 -0
- package/dist/client/static/js/index-52bgxh6f.js +1 -0
- package/dist/client/static/js/index-5zd1jx9r.js +2 -0
- package/dist/client/static/js/index-6sdctwv2.js +2 -0
- package/dist/client/static/js/index-73xfkyea.js +2 -0
- package/dist/client/static/js/index-8a3tmm1h.js +332 -0
- package/dist/client/static/js/index-8m3q2zpb.js +1 -0
- package/dist/client/static/js/index-9nbxb421.js +2 -0
- package/dist/client/static/js/index-a293pdg7.js +2 -0
- package/dist/client/static/js/index-b08zd4eq.js +1 -0
- package/dist/client/static/js/index-c20a46ww.js +2 -0
- package/dist/client/static/js/index-c8jzx6b0.js +2 -0
- package/dist/client/static/js/index-cwaz6geq.js +2 -0
- package/dist/client/static/js/index-deex10rz.js +9 -0
- package/dist/client/static/js/index-e26rd868.js +2 -0
- package/dist/client/static/js/index-e6rar25v.js +2 -0
- package/dist/client/static/js/index-e7a3fkvv.js +1 -0
- package/dist/client/static/js/index-e94a1en0.css +1 -0
- package/dist/client/static/js/index-f519m6s3.js +1 -0
- package/dist/client/static/js/index-f63y3mjj.js +7 -0
- package/dist/client/static/js/index-fc2j6bq2.js +2 -0
- package/dist/client/static/js/index-fmxn1rzs.js +3 -0
- package/dist/client/static/js/index-g0pkzanm.js +2 -0
- package/dist/client/static/js/index-ga2xdef3.js +2 -0
- package/dist/client/static/js/index-ggaqh9rt.js +2 -0
- package/dist/client/static/js/index-gvwqjpcr.js +2 -0
- package/dist/client/static/js/index-h6jxmkxk.js +129 -0
- package/dist/client/static/js/index-hhm62nfj.js +2 -0
- package/dist/client/static/js/index-hkq0y3pn.js +2 -0
- package/dist/client/static/js/index-hyry1n8x.js +2 -0
- package/dist/client/static/js/index-m6wwc5h6.js +2 -0
- package/dist/client/static/js/index-nsrnyqcm.js +2 -0
- package/dist/client/static/js/index-pe9j88d4.js +2 -0
- package/dist/client/static/js/index-pkyrkkbt.js +2 -0
- package/dist/client/static/js/index-qmh0h87h.js +314 -0
- package/dist/client/static/js/index-r416e9dt.js +12 -0
- package/dist/client/static/js/index-s9vp6p70.js +2 -0
- package/dist/client/static/js/index-tr8754r0.js +179 -0
- package/dist/client/static/js/index-vmvcse63.js +1 -0
- package/dist/client/static/js/index-vnvrzwht.js +240 -0
- package/dist/client/static/js/index-vrbcj11n.js +2 -0
- package/dist/client/static/js/index-w4re5r8w.js +2 -0
- package/dist/client/static/js/index-w5131mtt.js +2 -0
- package/dist/client/static/js/index-w7xbfv44.js +2 -0
- package/dist/client/static/js/index-x64kqgen.js +2 -0
- package/dist/client/static/js/index-xa7nrnda.js +2 -0
- package/dist/client/static/js/index-xpf2ra60.js +1 -0
- package/dist/client/static/js/index-xzfsaqyz.js +4 -0
- package/dist/client/static/js/index-y139vc12.js +474 -0
- package/dist/client/static/js/index-ynqnbvn2.js +3 -0
- package/dist/client/static/js/index-yvcpdk5f.js +89 -0
- package/dist/client/static/js/index-zca66d5d.js +3 -0
- package/dist/client/static/js/info-A6RAGUB7-mbt0ryx5.js +1 -0
- package/dist/client/static/js/infoDiagram-VRGFBTTK-ptg07tp2.js +2 -0
- package/dist/client/static/js/ini-jqdrx98c.js +1 -0
- package/dist/client/static/js/ishikawaDiagram-OU5B5YK6-bdk2dkf5.js +70 -0
- package/dist/client/static/js/java-70zqqrkr.js +1 -0
- package/dist/client/static/js/javascript-18thb3jp.js +1 -0
- package/dist/client/static/js/javascript-4kw2j9t3.js +1 -0
- package/dist/client/static/js/journeyDiagram-ZHPQQLJL-kez0ha4c.js +139 -0
- package/dist/client/static/js/json-kxk8gfet.js +1 -0
- package/dist/client/static/js/json5-hmb38a78.js +1 -0
- package/dist/client/static/js/jsx-h1035eqk.js +1 -0
- package/dist/client/static/js/julia-ft9kd90a.js +1 -0
- package/dist/client/static/js/julia-nmr85k8z.js +1 -0
- package/dist/client/static/js/kanagawa-dragon-nya1w1ke.js +1 -0
- package/dist/client/static/js/kanagawa-lotus-hwn4nbn5.js +1 -0
- package/dist/client/static/js/kanagawa-wave-7rsxqd8r.js +1 -0
- package/dist/client/static/js/kanban-definition-PNTS6WVX-dhzp3qg5.js +89 -0
- package/dist/client/static/js/katex-eh1m1m1d.js +257 -0
- package/dist/client/static/js/kotlin-bw3n4j1v.js +1 -0
- package/dist/client/static/js/laserwave-37chepry.js +1 -0
- package/dist/client/static/js/less-w8v48sx0.js +1 -0
- package/dist/client/static/js/light-plus-mcbbmtzj.js +1 -0
- package/dist/client/static/js/lua-6at2ddf6.js +1 -0
- package/dist/client/static/js/lua-j2356waf.js +1 -0
- package/dist/client/static/js/main-rx9grv92.js +7 -0
- package/dist/client/static/js/makefile-22weg265.js +1 -0
- package/dist/client/static/js/markdown-ffw6rgk6.js +1 -0
- package/dist/client/static/js/material-theme-darker-pcm1tb69.js +1 -0
- package/dist/client/static/js/material-theme-lighter-cbdrfj3g.js +1 -0
- package/dist/client/static/js/material-theme-ocean-3rs19bm6.js +1 -0
- package/dist/client/static/js/material-theme-palenight-rxhkgd4c.js +1 -0
- package/dist/client/static/js/material-theme-x46yf0tm.js +1 -0
- package/dist/client/static/js/mermaid.core-h7wttbss.js +12 -0
- package/dist/client/static/js/min-dark-f279fhzv.js +1 -0
- package/dist/client/static/js/min-light-s53yjy4e.js +1 -0
- package/dist/client/static/js/mindmap-definition-NLK3R4M7-tq5dd1em.js +96 -0
- package/dist/client/static/js/mllike-cnahv8ak.js +1 -0
- package/dist/client/static/js/monokai-yr7h8283.js +1 -0
- package/dist/client/static/js/night-owl-8d01zsx4.js +1 -0
- package/dist/client/static/js/night-owl-light-7jbd0p3j.js +1 -0
- package/dist/client/static/js/nix-7e31jz1m.js +1 -0
- package/dist/client/static/js/nord-h1bak1eb.js +1 -0
- package/dist/client/static/js/objective-c-8r3dxert.js +1 -0
- package/dist/client/static/js/ocaml-bpjgcgwa.js +1 -0
- package/dist/client/static/js/one-dark-pro-8acf6cn2.js +1 -0
- package/dist/client/static/js/one-light-ysc1knem.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-a5yw789s.js +1 -0
- package/dist/client/static/js/pegDiagram-GJSIUBJH-e5hrdfzv.js +1 -0
- package/dist/client/static/js/perl-3t5fm1te.js +1 -0
- package/dist/client/static/js/perl-prxcva8r.js +1 -0
- package/dist/client/static/js/php-m9kcctzs.js +1 -0
- package/dist/client/static/js/pie-WAS4IAKB-x0y4v4r2.js +1 -0
- package/dist/client/static/js/pieDiagram-5QR66LMP-axvbvnz8.js +39 -0
- package/dist/client/static/js/plastic-8kfqgcmr.js +1 -0
- package/dist/client/static/js/poimandres-rjcckfek.js +1 -0
- package/dist/client/static/js/powershell-m5qb6mjj.js +1 -0
- package/dist/client/static/js/powershell-rrzhqtmb.js +1 -0
- package/dist/client/static/js/properties-55mrarxr.js +1 -0
- package/dist/client/static/js/properties-qq2pcfyk.js +1 -0
- package/dist/client/static/js/protobuf-578974t5.js +1 -0
- package/dist/client/static/js/protobuf-ggczeare.js +1 -0
- package/dist/client/static/js/python-dhypc3j4.js +1 -0
- package/dist/client/static/js/python-wbdfs2gc.js +1 -0
- package/dist/client/static/js/quadrantDiagram-O4NWA36T-wtn28cfm.js +7 -0
- package/dist/client/static/js/r-6b8dt1wp.js +1 -0
- package/dist/client/static/js/r-z4m38eb1.js +1 -0
- package/dist/client/static/js/racket-dhm8rebp.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-trrc3ta1.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-dxgvx21w.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-rbgkd8sk.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-exgw7j47.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-28tpamzk.js +1 -0
- package/dist/client/static/js/railroadDiagram-XR7U4H2S-avjkq945.js +1 -0
- package/dist/client/static/js/red-zgbwyj31.js +1 -0
- package/dist/client/static/js/requirementDiagram-PLB6GJNP-bntx7r6q.js +84 -0
- package/dist/client/static/js/rose-pine-azwmazxg.js +1 -0
- package/dist/client/static/js/rose-pine-dawn-3t3j9bnk.js +1 -0
- package/dist/client/static/js/rose-pine-moon-35ecvxkf.js +1 -0
- package/dist/client/static/js/ruby-nq98w40a.js +1 -0
- package/dist/client/static/js/ruby-t06c0e7g.js +1 -0
- package/dist/client/static/js/rust-6gqjxyf0.js +1 -0
- package/dist/client/static/js/rust-psncxtga.js +1 -0
- package/dist/client/static/js/sankeyDiagram-IPEJSGJF-ps8nkdm2.js +40 -0
- package/dist/client/static/js/sass-gsbyn3wh.js +1 -0
- package/dist/client/static/js/sass-k1jjq4y7.js +1 -0
- package/dist/client/static/js/scala-atdk263v.js +1 -0
- package/dist/client/static/js/scheme-181kqjff.js +1 -0
- package/dist/client/static/js/scheme-jvs3e9c8.js +1 -0
- package/dist/client/static/js/scss-zphrqp25.js +1 -0
- package/dist/client/static/js/sequenceDiagram-PO4LG4MO-3ckf1q6z.js +169 -0
- package/dist/client/static/js/shell-5rhwzbr3.js +1 -0
- package/dist/client/static/js/sizeCapture-INFHLROL-akvcr1x7.js +1 -0
- package/dist/client/static/js/slack-dark-j9p83tbc.js +1 -0
- package/dist/client/static/js/slack-ochin-fe90gs3m.js +1 -0
- package/dist/client/static/js/snazzy-light-pj44bwcm.js +1 -0
- package/dist/client/static/js/solarized-dark-54jyr51c.js +1 -0
- package/dist/client/static/js/solarized-light-ca8r58m6.js +1 -0
- package/dist/client/static/js/solidity-bx92jb30.js +1 -0
- package/dist/client/static/js/sql-9dq913c8.js +1 -0
- package/dist/client/static/js/sql-wsvbkyd1.js +1 -0
- package/dist/client/static/js/stateDiagram-v2-GCMORJYK-c82914fz.js +291 -0
- package/dist/client/static/js/stylus-fht9fjbw.js +1 -0
- package/dist/client/static/js/stylus-xh0f7m9m.js +1 -0
- package/dist/client/static/js/svelte-j54gfrvq.js +1 -0
- package/dist/client/static/js/swift-0rtnm3tm.js +1 -0
- package/dist/client/static/js/swift-rr9wc5y7.js +1 -0
- package/dist/client/static/js/swimlanes-2SLR337P-scgdefh4.js +1 -0
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-0x2ashav.js +8 -0
- package/dist/client/static/js/synthwave-84-yq047vcq.js +1 -0
- package/dist/client/static/js/timeline-definition-EJHVYXUP-z2ha1rhq.js +120 -0
- package/dist/client/static/js/tokyo-night-jfy87bj1.js +1 -0
- package/dist/client/static/js/toml-b5g7qp6k.js +1 -0
- package/dist/client/static/js/toml-prjdc335.js +1 -0
- package/dist/client/static/js/treeView-Q6P3EWNA-1a00b6kc.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-2q4f2f7m.js +1 -0
- package/dist/client/static/js/tsx-wh5xgm7f.js +1 -0
- package/dist/client/static/js/typescript-ge85req5.js +1 -0
- package/dist/client/static/js/usecaseDiagram-POWQR4AR-3wdmrfmk.js +370 -0
- package/dist/client/static/js/vennDiagram-UO4OBE2U-7m5tatzv.js +34 -0
- package/dist/client/static/js/vesper-0e7jx631.js +1 -0
- package/dist/client/static/js/vitesse-black-avx6j9e8.js +1 -0
- package/dist/client/static/js/vitesse-dark-5ypr9e1f.js +1 -0
- package/dist/client/static/js/vitesse-light-sze15mny.js +1 -0
- package/dist/client/static/js/vue-y8bb5f3h.js +1 -0
- package/dist/client/static/js/wardley-WFR3VGLG-x9v91the.js +1 -0
- package/dist/client/static/js/wardleyDiagram-VNRHLVJA-55ps9s4z.js +78 -0
- package/dist/client/static/js/xml-7bgz40qa.js +1 -0
- package/dist/client/static/js/xml-f6syr877.js +1 -0
- package/dist/client/static/js/xychartDiagram-PMCCYNJV-8bsjtm4t.js +7 -0
- package/dist/client/static/js/yaml-4ht9416k.js +1 -0
- package/dist/client/static/js/yaml-qwwswzvs.js +1 -0
- package/dist/client/static/js/zig-yf26r6vn.js +1 -0
- package/marketplace/plugins/stats/package.json +2 -2
- package/marketplace/plugins/stats/src/format.test.ts +7 -1
- package/package.json +5 -2
- package/src/client/App.tsx +16 -0
- package/src/client/components/common/anchored-menu/index.test.tsx +3 -3
- package/src/client/components/common/anchored-menu/index.tsx +10 -16
- package/src/client/components/common/command-palette/ChordHint.tsx +36 -0
- package/src/client/components/common/command-palette/index.test.tsx +126 -0
- package/src/client/components/common/command-palette/index.tsx +216 -0
- package/src/client/components/common/context-usage-button/McpSection.tsx +133 -0
- package/src/client/components/common/context-usage-button/Ring.tsx +12 -6
- package/src/client/components/common/context-usage-button/index.test.tsx +24 -13
- package/src/client/components/common/context-usage-button/index.tsx +47 -40
- package/src/client/components/common/key-binding-cheatsheet/index.tsx +147 -0
- package/src/client/components/common/server-control/Panel.tsx +8 -9
- package/src/client/components/common/session-actions-menu/index.test.tsx +26 -0
- package/src/client/components/common/session-actions-menu/index.tsx +19 -15
- package/src/client/components/common/session-row/RunElapsed.tsx +50 -0
- package/src/client/components/common/session-row/TimeCell.tsx +38 -0
- package/src/client/components/common/session-row/TrailingSlot.tsx +31 -13
- package/src/client/components/common/session-row/index.tsx +5 -0
- package/src/client/components/common/session-row/session-row.test.tsx +39 -1
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +2 -0
- package/src/client/components/layout/desktop-layout/index.tsx +7 -3
- package/src/client/components/layout/session-sidebar/CategoryItem.tsx +2 -1
- package/src/client/components/layout/session-sidebar/Footer.tsx +13 -2
- package/src/client/components/layout/session-sidebar/SessionItem.test.ts +17 -0
- package/src/client/components/layout/session-sidebar/SessionItem.tsx +13 -7
- package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +2 -1
- package/src/client/components/mobile/RightSidebar.tsx +2 -1
- package/src/client/components/mobile/SessionSidebar.tsx +2 -0
- package/src/client/components/mobile/mobile-main-view/Header.test.tsx +122 -0
- package/src/client/components/mobile/mobile-main-view/Header.tsx +25 -26
- package/src/client/components/mobile/mobile-session-sidebar/Footer.tsx +11 -1
- package/src/client/components/mobile/mobile-session-sidebar/Item.tsx +2 -1
- package/src/client/components/mobile/mobile-session-sidebar/SessionRow.tsx +10 -5
- package/src/client/components/settings/Modal.tsx +3 -0
- package/src/client/components/settings/Sidebar.tsx +3 -2
- package/src/client/components/settings/categories/ChatSettings.test.tsx +2 -2
- package/src/client/components/settings/categories/ChatSettings.tsx +0 -2
- package/src/client/components/settings/categories/KeyboardSettings.tsx +31 -0
- package/src/client/components/settings/categories/McpSettings.tsx +10 -3
- package/src/client/components/settings/categories/NotificationSettings.tsx +9 -0
- package/src/client/components/settings/categories/SkillCatalogSettings.tsx +34 -16
- package/src/client/components/settings/categories/SkillSettings.tsx +22 -1
- package/src/client/components/settings/categories/chat-settings/groups.ts +2 -11
- package/src/client/components/settings/categories/{chat-settings/KeybindingsSection.tsx → keyboard-settings/ComposerKeys.tsx} +2 -2
- package/src/client/components/settings/categories/keyboard-settings/KeyRecorder.tsx +106 -0
- package/src/client/components/settings/categories/keyboard-settings/ShortcutTable.tsx +137 -0
- package/src/client/components/settings/categories/mcp-settings/AdvancedSection.tsx +244 -0
- package/src/client/components/settings/categories/mcp-settings/ConnectionTest.tsx +3 -3
- package/src/client/components/settings/categories/mcp-settings/DetailPane.tsx +55 -97
- package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +12 -64
- package/src/client/components/settings/categories/mcp-settings/{EnvVarsSection.tsx → KeyValueSection.tsx} +42 -24
- package/src/client/components/settings/categories/mcp-settings/SidebarList.tsx +1 -1
- package/src/client/components/settings/categories/mcp-settings/TransportSection.tsx +101 -0
- package/src/client/components/settings/categories/skill-catalog/GitImportPanel.tsx +13 -41
- package/src/client/components/settings/categories/skill-catalog/SkillCard.tsx +1 -1
- package/src/client/components/settings/categories/skill-catalog/catalog-ui.test.tsx +3 -6
- package/src/client/components/settings/categories/skill-settings/DetailHeader.tsx +43 -2
- package/src/client/components/settings/categories/skill-settings/DetailPane.tsx +9 -0
- package/src/client/components/settings/categories/skill-settings/pane.test.tsx +28 -0
- package/src/client/components/settings/categories/skill-settings/row-meta.ts +3 -0
- package/src/client/components/workspace/browser-panel/EngineNotice.test.tsx +109 -0
- package/src/client/components/workspace/browser-panel/EngineNotice.tsx +112 -0
- package/src/client/components/workspace/browser-panel/index.tsx +45 -12
- package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.test.ts +63 -0
- package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.tsx +18 -6
- package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +38 -5
- package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.wait.test.tsx +158 -0
- package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.test.ts +28 -33
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +27 -68
- package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.search.test.tsx +4 -2
- package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.tsx +101 -78
- package/src/client/components/workspace/chat-timeline/chat-input/access-levels.ts +39 -1
- package/src/client/components/workspace/chat-timeline/chat-input/props.ts +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Eval.test.tsx +33 -7
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Eval.tsx +5 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolScreenshots.test.tsx +113 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolScreenshots.tsx +198 -0
- package/src/client/components/workspace/editor/Body.tsx +0 -15
- package/src/client/components/workspace/editor/FileDocument.tsx +0 -26
- package/src/client/components/workspace/editor/FilePane.tsx +0 -15
- package/src/client/components/workspace/editor/Pane.tsx +4 -1
- package/src/client/components/workspace/editor/index.tsx +5 -8
- package/src/client/components/workspace/editor/plugin-rail.test.tsx +6 -1
- package/src/client/components/workspace/terminal-panel/scroll-hold.test.ts +20 -5
- package/src/client/data/settings/mcp.ts +4 -2
- package/src/client/data/settings/omp-schema.json +22 -2
- package/src/client/hooks/browser/use-browser-engine.ts +99 -0
- package/src/client/hooks/chat/context/mcp.ts +159 -0
- package/src/client/hooks/chat/omp/session-list.test.ts +13 -0
- package/src/client/hooks/chat/omp/session-list.tsx +33 -8
- package/src/client/hooks/chat/timeline/access-mode.ts +45 -15
- package/src/client/hooks/chat/timeline/index.ts +7 -3
- package/src/client/hooks/chat/timeline/timeline-mode-state.test.ts +33 -4
- package/src/client/hooks/chat/waiting/composer-wait.ts +2 -2
- package/src/client/hooks/commands/use-command-catalog.ts +52 -0
- package/src/client/hooks/commands/use-command-context.ts +21 -0
- package/src/client/hooks/commands/use-command-runtime.test.ts +117 -0
- package/src/client/hooks/commands/use-command-runtime.ts +62 -0
- package/src/client/hooks/commands/use-overlays.ts +35 -0
- package/src/client/hooks/commands/use-palette-items.ts +156 -0
- package/src/client/hooks/commands/use-plugin-commands.ts +69 -0
- package/src/client/hooks/editor/find-harness.test-util.ts +20 -3
- package/src/client/hooks/editor/use-editor-command-target.ts +46 -0
- package/src/client/hooks/editor/use-editor-find.test.ts +4 -9
- package/src/client/hooks/editor/use-editor-panel-keys.ts +24 -93
- package/src/client/hooks/editor/use-editor-panel-ui.ts +0 -10
- package/src/client/hooks/settings/skill-catalog.ts +3 -3
- package/src/client/hooks/settings/skill-git-import.ts +3 -11
- package/src/client/hooks/ui/icon-style.ts +10 -5
- package/src/client/hooks/ui/notification-events.test.ts +126 -0
- package/src/client/hooks/ui/notification-events.ts +61 -0
- package/src/client/hooks/ui/second-tick.ts +55 -0
- package/src/client/hooks/ui/theme.ts +9 -5
- package/src/client/hooks/ui/ui-listeners.test.ts +13 -18
- package/src/client/hooks/workspace/commands.ts +51 -0
- package/src/client/lib/commands/context.ts +51 -0
- package/src/client/lib/commands/dispatcher.ts +101 -0
- package/src/client/lib/commands/editor-target.ts +36 -0
- package/src/client/lib/commands/keymap.test.ts +68 -0
- package/src/client/lib/commands/keymap.ts +151 -0
- package/src/client/lib/commands/overlays.ts +87 -0
- package/src/client/lib/commands/registry.ts +69 -0
- package/src/client/lib/notifications/os.test.ts +24 -0
- package/src/client/lib/notifications/os.ts +16 -0
- package/src/client/lib/notifications/watch.ts +48 -0
- package/src/client/lib/plugins/slots.ts +1 -0
- package/src/client/main.tsx +7 -0
- package/src/client/tailwind.css +5 -38
- package/src/server/db.server.test.ts +10 -4
- package/src/server/index.ts +12 -8
- package/src/server/lib/assets/theme-css.server.test.ts +58 -0
- package/src/server/lib/assets/theme-css.server.ts +52 -0
- package/src/server/lib/auth/guard.ts +6 -1
- package/src/server/lib/browser/engine.test.ts +118 -0
- package/src/server/lib/browser/engine.ts +102 -0
- package/src/server/lib/browser/runtime.test.ts +21 -16
- package/src/server/lib/db/client.test.ts +89 -0
- package/src/server/lib/db/client.ts +31 -0
- package/src/server/lib/db/compact-chat-overlay.ts +7 -1
- package/src/server/lib/db/schema.ts +8 -0
- package/src/server/lib/db/workspace-sync.ts +7 -7
- package/src/server/lib/fs/toolchain-path.test.ts +87 -0
- package/src/server/lib/fs/toolchain-path.ts +49 -0
- package/src/server/lib/harness/acp/protocol.ts +9 -1
- package/src/server/lib/harness/acp/session-permissions.ts +4 -0
- package/src/server/lib/harness/auto-probe.server.ts +3 -2
- package/src/server/lib/harness/launch-table.ts +3 -2
- package/src/server/lib/harness/spawn.server.ts +5 -1
- package/src/server/lib/harness/update-queue.server.ts +2 -1
- package/src/server/lib/harness/update-state.server.ts +6 -2
- package/src/server/lib/lifecycle/fd-pressure.test.ts +43 -0
- package/src/server/lib/lifecycle/fd-pressure.ts +38 -0
- package/src/server/lib/lifecycle/listener.ts +4 -4
- package/src/server/lib/lifecycle/shell-entry.server.ts +29 -0
- package/src/server/lib/lifecycle/shell-route.ts +5 -4
- package/src/server/lib/mcp/probe.server.ts +71 -0
- package/src/server/lib/mcp/registry.server.ts +195 -46
- package/src/server/lib/mcp/registry.test.ts +76 -4
- package/src/server/lib/mcp/schema.server.ts +35 -0
- package/src/server/lib/mcp/session-mcp.test.ts +164 -0
- package/src/server/lib/mcp/session-overlay.server.ts +152 -0
- package/src/server/lib/mcp/session-state.server.ts +75 -0
- package/src/server/lib/mcp/store.server.ts +6 -1
- package/src/server/lib/notifications/feed.server.test.ts +127 -0
- package/src/server/lib/notifications/feed.server.ts +195 -0
- package/src/server/lib/notifications/schema.server.ts +47 -0
- package/src/server/lib/notifications/store.server.test.ts +118 -0
- package/src/server/lib/notifications/store.server.ts +103 -0
- package/src/server/lib/observer-ws.test.ts +49 -0
- package/src/server/lib/observer-ws.ts +2 -1
- package/src/server/lib/omp/config/config-cli.ts +4 -0
- package/src/server/lib/omp/config/definitions.test.ts +17 -18
- package/src/server/lib/omp/config/mcp-and-cli.test.ts +12 -183
- package/src/server/lib/omp/config/mcp-config.test.ts +277 -0
- package/src/server/lib/omp/config/mcp-shared.ts +36 -0
- package/src/server/lib/omp/config/mcp-test-protocol.ts +89 -0
- package/src/server/lib/omp/config/mcp-test-remote.ts +167 -0
- package/src/server/lib/omp/config/mcp-test.ts +21 -123
- package/src/server/lib/omp/config/mcp-write.ts +179 -0
- package/src/server/lib/omp/config/mcp.ts +138 -118
- package/src/server/lib/omp/config/skills-catalog.ts +109 -73
- package/src/server/lib/omp/config/skills-git-repo.ts +10 -12
- package/src/server/lib/omp/core/cli.ts +4 -14
- package/src/server/lib/omp/rpc/frame-fold-frames.test.ts +2 -0
- package/src/server/lib/omp/rpc/manager.ts +16 -18
- package/src/server/lib/omp/rpc/reload-mcp.ts +39 -0
- package/src/server/lib/omp/rpc/run-model.test.ts +2 -0
- package/src/server/lib/omp/rpc/session-registry.ts +6 -2
- package/src/server/lib/omp/rpc/spawn-mcp.ts +43 -0
- package/src/server/lib/omp/session/delete.server.ts +7 -0
- package/src/server/lib/omp/session/sidebar-data.server.ts +1 -0
- package/src/server/lib/plugins/mcp.server.ts +2 -2
- package/src/server/lib/realtime/hub.server.test.ts +27 -1
- package/src/server/lib/realtime/hub.server.ts +6 -2
- package/src/server/lib/realtime/hub.types.ts +9 -1
- package/src/server/lib/realtime/topics/catalog.server.ts +5 -0
- package/src/server/lib/realtime/topics/peer-relay.server.test.ts +27 -14
- package/src/server/lib/realtime/topics/workspace.server.test.ts +44 -0
- package/src/server/lib/realtime/topics/workspace.server.ts +3 -2
- package/src/server/lib/realtime/topics.server.test.ts +2 -1
- package/src/server/plugins/shell.server.test.ts +4 -4
- package/src/server/plugins/shell.server.ts +83 -22
- package/src/server/plugins/ssr.ts +13 -11
- package/src/server/plugins/static.ts +5 -7
- package/src/server/routes/browser/engine.test.ts +70 -0
- package/src/server/routes/browser/engine.ts +51 -0
- package/src/server/routes/browser/index.ts +5 -0
- package/src/server/routes/fs/git.ts +4 -3
- package/src/server/routes/harness/versions.test.ts +5 -0
- package/src/server/routes/health/probe.ts +7 -8
- package/src/server/routes/index.ts +2 -0
- package/src/server/routes/notifications/index.ts +6 -0
- package/src/server/routes/notifications/stream.test.ts +116 -0
- package/src/server/routes/notifications/stream.ts +88 -0
- package/src/server/routes/sessions/index.ts +7 -0
- package/src/server/routes/sessions/mcp.test.ts +154 -0
- package/src/server/routes/sessions/mcp.ts +202 -0
- package/src/server/routes/settings/mcp-test.ts +5 -4
- package/src/server/routes/settings/mcp.test.ts +42 -1
- package/src/server/routes/settings/mcp.ts +80 -24
- package/src/server/routes/settings/skills-catalog-actions.ts +11 -31
- package/src/server/routes/settings/skills.test.ts +14 -0
- package/src/server/routes/settings/skills.ts +29 -21
- package/src/shared/lib/code/highlight-cache.test.ts +19 -8
- package/src/shared/lib/code/highlight-memo.test.ts +18 -0
- package/src/shared/lib/code/highlight-memo.ts +46 -17
- package/src/shared/lib/commands/catalog.ts +114 -0
- package/src/shared/lib/commands/chord.test.ts +66 -0
- package/src/shared/lib/commands/chord.ts +193 -0
- package/src/shared/lib/commands/conflicts.test.ts +43 -0
- package/src/shared/lib/commands/conflicts.ts +53 -0
- package/src/shared/lib/commands/record.test.ts +24 -0
- package/src/shared/lib/commands/record.ts +44 -0
- package/src/shared/lib/commands/resolve.test.ts +54 -0
- package/src/shared/lib/commands/resolve.ts +45 -0
- package/src/shared/lib/commands/score.test.ts +41 -0
- package/src/shared/lib/commands/score.ts +53 -0
- package/src/shared/lib/commands/types.ts +60 -0
- package/src/shared/lib/commands/user-keybindings.test.ts +33 -0
- package/src/shared/lib/commands/user-keybindings.ts +64 -0
- package/src/shared/lib/commands/when.test.ts +46 -0
- package/src/shared/lib/commands/when.ts +221 -0
- package/src/shared/lib/icons/icon-paint-authority.test.ts +9 -0
- package/src/shared/lib/icons/icon-paint-authority.ts +25 -8
- package/src/shared/lib/mcp/import.ts +112 -0
- package/src/shared/lib/mcp/item.ts +61 -0
- package/src/shared/lib/mcp/key-value.ts +37 -0
- package/src/shared/lib/mcp/mcp-lib.test.ts +119 -0
- package/src/shared/lib/mcp/status.test.ts +36 -0
- package/src/shared/lib/mcp/status.ts +38 -0
- package/src/shared/lib/models/client.ts +27 -6
- package/src/shared/lib/models/provider/models.test.ts +31 -0
- package/src/shared/lib/notifications/events.test.ts +77 -0
- package/src/shared/lib/notifications/events.ts +104 -0
- package/src/shared/lib/omp/config/access-mode.test.ts +73 -0
- package/src/shared/lib/omp/config/access-mode.ts +49 -0
- package/src/shared/lib/omp/session/prewarm-misc.test.ts +3 -2
- package/src/shared/lib/omp/session/schema-migrations.ts +4 -0
- package/src/shared/lib/omp/session/stream-state.server.test.ts +37 -1
- package/src/shared/lib/omp/session/stream-state.server.ts +42 -5
- package/src/shared/lib/omp/skill-source.test.ts +24 -0
- package/src/shared/lib/omp/skill-source.ts +20 -0
- package/src/shared/lib/panels/slot-labels.ts +6 -1
- package/src/shared/lib/realtime/protocol.ts +11 -0
- package/src/shared/lib/theme/css.ts +11 -0
- package/src/shared/lib/ui/menu-anchor.test.ts +17 -5
- package/src/shared/lib/ui/menu-anchor.ts +22 -5
- package/src/shared/lib/workspace/refresh-cadence.test.ts +34 -1
- package/src/shared/lib/workspace/relative-time.ts +22 -0
- package/src/shared/lib/workspace/right-panels.ts +13 -0
- package/src/shared/lib/workspace/workspace-modules.test.ts +3 -1
- package/src/shared/types/browser.ts +21 -0
- package/src/shared/types/realtime.ts +10 -0
- package/src/shared/types/settings/mcp.ts +73 -4
- package/src/shared/types/settings/skill.ts +1 -9
- package/src/shared/types/settings/state.ts +1 -0
- package/src/shared/types/workspace.ts +5 -0
- package/src/test-support/peer-harness.ts +32 -6
- package/src/test-support/pristine-globals.test.ts +53 -0
- package/src/test-support/pristine-globals.ts +6 -1
- package/dist/client/static/js/index-bwhhehnh.js +0 -5697
- package/dist/client/static/js/index-naa91727.css +0 -1
- package/src/client/components/workspace/editor/CommandPalette.test.ts +0 -242
- package/src/client/components/workspace/editor/CommandPalette.tsx +0 -138
- package/src/client/components/workspace/editor/QuickOpenModal.tsx +0 -146
- package/src/client/hooks/ui/input-required-alert.ts +0 -50
- package/src/client/hooks/ui/notifications.ts +0 -54
- package/src/client/hooks/ui/run-outcome-alert.ts +0 -48
- package/src/client/hooks/ui/ui-alert.test.ts +0 -235
- package/src/client/hooks/workspace/keybindings.ts +0 -44
- package/src/shared/lib/notifications/outcomes.test.ts +0 -96
- package/src/shared/lib/notifications/outcomes.ts +0 -64
- package/src/shared/lib/ui/mobile-overlay.ts +0 -61
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import{u,e,m,xp,Er,Wu}from"./index-y139vc12.js";import{rn,yn,Kf}from"./index-fmxn1rzs.js";var wr=yn(function(gr,Zt){(function(et){if(typeof gr==="object"&&typeof Zt<"u")Zt.exports=et();else if(typeof define==="function"&&define.amd)define([],et);else{var ft;if(typeof window<"u")ft=window;else if(typeof global<"u")ft=global;else if(typeof self<"u")ft=self;else ft=this;ft.mammoth=et()}})(function(){var et,ft,Yt;return function X(ce,L,z){function I(c,o){if(!L[c]){if(!ce[c]){var i=Kf;if(!o&&i)return i(c,!0);if(p)return p(c,!0);var t=Error("Cannot find module '"+c+"'");throw t.code="MODULE_NOT_FOUND",t}var l=L[c]={exports:{}};ce[c][0].call(l.exports,function(g){var _=ce[c][1][g];return I(_?_:g)},l,l.exports,X,ce,L,z)}return L[c].exports}var p=Kf;for(var k=0;k<z.length;k++)I(z[k]);return I}({1:[function(X,ce,L){var z=X("../../lib/promises");L.Files=I;function I(){function p(k){return z.reject(Error("could not open external image: '"+k+`'
|
|
2
|
+
cannot open linked files from a web browser`))}return{read:p}}},{"../../lib/promises":23}],2:[function(X,ce,L){var z=X("../lib/promises"),I=X("../lib/zipfile");L.openZip=p;function p(k){if(k.arrayBuffer)return z.resolve(I.openArrayBuffer(k.arrayBuffer));else return z.reject(Error("Could not find file in options"))}},{"../lib/promises":23,"../lib/zipfile":40}],3:[function(X,ce,L){var z=X("underscore"),I=X("./promises"),p=X("./documents"),k=X("./styles/html-paths"),c=X("./results"),o=X("./images"),i=X("./html"),t=X("./writers");L.DocumentConverter=l;function l(n){return{convertToHtml:function(v){var a=z.indexBy(v.type===p.types.document?v.comments:[],"commentId"),E=new g(n,a);return E.convertToHtml(v)}}}function g(n,v){var a=1,E=[],F=[];n=z.extend({ignoreEmptyParagraphs:!0},n);var A=n.idPrefix===void 0?"":n.idPrefix,W=n.ignoreEmptyParagraphs,S=k.topLevelElement("p"),P=n.styleMap||[];function O(d){var q=[],Y=ee(d,q,Object.create(null)),j=[];T(Y,function(r){if(r.type==="deferred")j.push(r)});var f=Object.create(null);return I.forEachSeries(j,function(r){return r.value().then(function(s){f[r.id]=s})}).then(function(){function r(N){return h(N,function(M){if(M.type==="deferred")return f[M.id];else if(M.children)return[z.extend({},M,{children:r(M.children)})];else return[M]})}var s=t.writer({prettyPrint:n.prettyPrint,outputFormat:n.outputFormat});return i.write(s,i.simplify(r(Y))),new c.Result(s.asString(),q)})}function H(d,q,Y){return h(d,function(j){return ee(j,q,Y)})}function ee(d,q,Y){if(!Y)throw Error("context not set");var j=Ae[d.type];if(j)return j(d,q,Y);else return[]}function U(d,q,Y){return J(d,q).wrap(function(){var j=H(d.children,q,Y);if(W)return j;else return[i.forceWrite].concat(j)})}function J(d,q){var Y=se(d);if(Y)return Y.to;else{if(d.styleId)q.push(y("paragraph",d));return S}}function D(d,q,Y){var j=function(){return H(d.children,q,Y)},f=[];if(d.highlight!==null){var r=ye({type:"highlight",color:d.highlight});if(r)f.push(r)}if(d.isSmallCaps)f.push(te("smallCaps"));if(d.isAllCaps)f.push(te("allCaps"));if(d.isStrikethrough)f.push(te("strikethrough","s"));if(d.isUnderline)f.push(te("underline"));if(d.verticalAlignment===p.verticalAlignment.subscript)f.push(k.element("sub",{},{fresh:!1}));if(d.verticalAlignment===p.verticalAlignment.superscript)f.push(k.element("sup",{},{fresh:!1}));if(d.isItalic)f.push(te("italic","em"));if(d.isBold)f.push(te("bold","strong"));var s=k.empty,N=se(d);if(N)s=N.to;else if(d.styleId)q.push(y("run",d));return f.push(s),f.forEach(function(M){j=M.wrap.bind(M,j)}),j()}function te(d,q){var Y=ye({type:d});if(Y)return Y;else if(q)return k.element(q,{},{fresh:!1});else return k.empty}function ye(d,q){var Y=se(d);return Y?Y.to:q}function se(d){for(var q=0;q<P.length;q++)if(P[q].from.matches(d))return P[q]}function ve(d){return function(q,Y){return I.try(function(){return d(q,Y)}).catch(function(j){return Y.push(c.error(j)),[]})}}function le(d){return Q(d.noteType,d.noteId)}function be(d){return ne(d.noteType,d.noteId)}function Q(d,q){return Te(d+"-"+q)}function ne(d,q){return Te(d+"-ref-"+q)}function Te(d){return A+d}var pe=k.elements([k.element("table",{},{fresh:!0})]);function de(d,q,Y){return ye(d,pe).wrap(function(){return Pe(d,q,Y)})}function Pe(d,q,Y){var j=z.findIndex(d.children,function(N){return!N.type===p.types.tableRow||!N.isHeader});if(j===-1)j=d.children.length;var f;if(j===0)f=H(d.children,q,z.extend({},Y,{isTableHeader:!1}));else{var r=H(d.children.slice(0,j),q,z.extend({},Y,{isTableHeader:!0})),s=H(d.children.slice(j),q,z.extend({},Y,{isTableHeader:!1}));f=[i.freshElement("thead",{},r),i.freshElement("tbody",{},s)]}return[i.forceWrite].concat(f)}function Be(d,q,Y){var j=H(d.children,q,Y);return[i.freshElement("tr",{},[i.forceWrite].concat(j))]}function Ie(d,q,Y){var j=Y.isTableHeader?"th":"td",f=H(d.children,q,Y),r={};if(d.colSpan!==1)r.colspan=d.colSpan.toString();if(d.rowSpan!==1)r.rowspan=d.rowSpan.toString();return[i.freshElement(j,r,[i.forceWrite].concat(f))]}function ke(d,q,Y){return ye(d,k.ignore).wrap(function(){var j=v[d.commentId],f=F.length+1,r="["+x(j)+f+"]";return F.push({label:r,comment:j}),[i.freshElement("a",{href:"#"+Q("comment",d.commentId),id:ne("comment",d.commentId)},[i.text(r)])]})}function Ne(d,q,Y){var{label:j,comment:f}=d,r=H(f.body,q,Y).concat([i.nonFreshElement("p",{},[i.text(" "),i.freshElement("a",{href:"#"+ne("comment",f.commentId)},[i.text("↑")])])]);return[i.freshElement("dt",{id:Q("comment",f.commentId)},[i.text("Comment "+j)]),i.freshElement("dd",{},r)]}function Re(d,q,Y){return We(d).wrap(function(){return[]})}function We(d){var q=se(d);if(q)return q.to;else if(d.breakType==="line")return k.topLevelElement("br");else return k.empty}var Ae={document:function(d,q,Y){var j=H(d.children,q,Y),f=E.map(function(s){return d.notes.resolve(s)}),r=H(f,q,Y);return j.concat([i.freshElement("ol",{},r),i.freshElement("dl",{},h(F,function(s){return Ne(s,q,Y)}))])},paragraph:U,run:D,text:function(d,q,Y){return[i.text(d.value)]},tab:function(d,q,Y){return[i.text("\t")]},hyperlink:function(d,q,Y){var j=d.anchor?"#"+Te(d.anchor):d.href,f={href:j};if(d.targetFrame!=null)f.target=d.targetFrame;var r=H(d.children,q,Y);return[i.nonFreshElement("a",f,r)]},checkbox:function(d){var q={type:"checkbox"};if(d.checked)q.checked="checked";return[i.freshElement("input",q)]},bookmarkStart:function(d,q,Y){var j=i.freshElement("a",{id:Te(d.name)},[i.forceWrite]);return[j]},noteReference:function(d,q,Y){E.push(d);var j=i.freshElement("a",{href:"#"+le(d),id:be(d)},[i.text("["+a+++"]")]);return[i.freshElement("sup",{},[j])]},note:function(d,q,Y){var j=H(d.body,q,Y),f=i.elementWithTag(k.element("p",{},{fresh:!1}),[i.text(" "),i.freshElement("a",{href:"#"+be(d)},[i.text("↑")])]),r=j.concat([f]);return i.freshElement("li",{id:le(d)},r)},commentReference:ke,comment:Ne,image:w(ve(n.convertImage||o.dataUri)),table:de,tableRow:Be,tableCell:Ie,break:Re};return{convertToHtml:O}}var _=1;function w(n){return function(v,a,E){return[{type:"deferred",id:_++,value:function(){return n(v,a,E)}}]}}function y(n,v){return c.warning("Unrecognised "+n+" style: '"+v.styleName+"' (Style ID: "+v.styleId+")")}function h(n,v){return z.flatten(n.map(v),!0)}function T(n,v){n.forEach(function(a){if(v(a),a.children)T(a.children,v)})}var x=L.commentAuthorLabel=function(v){return v.authorInitials||""}},{"./documents":4,"./html":18,"./images":20,"./promises":23,"./results":25,"./styles/html-paths":28,"./writers":33,underscore:67}],4:[function(X,ce,L){(function(z){var I=X("underscore"),p=L.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",checkbox:"checkbox",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"};function k(S,P){return P=P||{},{type:p.document,children:S,notes:P.notes||new y({}),comments:P.comments||[]}}function c(S,P){P=P||{};var O=P.indent||{};return{type:p.paragraph,children:S,styleId:P.styleId||null,styleName:P.styleName||null,numbering:P.numbering||null,alignment:P.alignment||null,indent:{start:O.start||null,end:O.end||null,firstLine:O.firstLine||null,hanging:O.hanging||null}}}function o(S,P){return P=P||{},{type:p.run,children:S,styleId:P.styleId||null,styleName:P.styleName||null,isBold:!!P.isBold,isUnderline:!!P.isUnderline,isItalic:!!P.isItalic,isStrikethrough:!!P.isStrikethrough,isAllCaps:!!P.isAllCaps,isSmallCaps:!!P.isSmallCaps,verticalAlignment:P.verticalAlignment||i.baseline,font:P.font||null,fontSize:P.fontSize||null,highlight:P.highlight||null}}var i={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function t(S){return{type:p.text,value:S}}function l(){return{type:p.tab}}function g(S){return{type:p.checkbox,checked:S.checked}}function _(S,P){return{type:p.hyperlink,children:S,href:P.href,anchor:P.anchor,targetFrame:P.targetFrame}}function w(S){return{type:p.noteReference,noteType:S.noteType,noteId:S.noteId}}function y(S){this._notes=I.indexBy(S,function(P){return n(P.noteType,P.noteId)})}y.prototype.resolve=function(S){return this.findNoteByKey(n(S.noteType,S.noteId))},y.prototype.findNoteByKey=function(S){return this._notes[S]||null};function h(S){return{type:p.note,noteType:S.noteType,noteId:S.noteId,body:S.body}}function T(S){return{type:p.commentReference,commentId:S.commentId}}function x(S){return{type:p.comment,commentId:S.commentId,body:S.body,authorName:S.authorName,authorInitials:S.authorInitials}}function n(S,P){return S+"-"+P}function v(S){return{type:p.image,read:function(P){if(P)return S.readImage(P);else return S.readImage().then(function(O){return z.from(O)})},readAsArrayBuffer:function(){return S.readImage()},readAsBase64String:function(){return S.readImage("base64")},readAsBuffer:function(){return S.readImage().then(function(P){return z.from(P)})},altText:S.altText,contentType:S.contentType}}function a(S,P){return P=P||{},{type:p.table,children:S,styleId:P.styleId||null,styleName:P.styleName||null}}function E(S,P){return P=P||{},{type:p.tableRow,children:S,isHeader:P.isHeader||!1}}function F(S,P){return P=P||{},{type:p.tableCell,children:S,colSpan:P.colSpan==null?1:P.colSpan,rowSpan:P.rowSpan==null?1:P.rowSpan}}function A(S){return{type:p.break,breakType:S}}function W(S){return{type:p.bookmarkStart,name:S.name}}L.document=L.Document=k,L.paragraph=L.Paragraph=c,L.run=L.Run=o,L.text=L.Text=t,L.tab=L.Tab=l,L.checkbox=L.Checkbox=g,L.Hyperlink=_,L.noteReference=L.NoteReference=w,L.Notes=y,L.Note=h,L.commentReference=T,L.comment=x,L.Image=v,L.Table=a,L.TableRow=E,L.TableCell=F,L.lineBreak=A("line"),L.pageBreak=A("page"),L.columnBreak=A("column"),L.BookmarkStart=W,L.verticalAlignment=i}).call(this,X("buffer").Buffer)},{buffer:48,underscore:67}],5:[function(X,ce,L){L.createBodyReader=l,L._readNumberingProperties=_;var z=X("dingbat-to-unicode"),I=X("underscore"),p=X("../documents"),k=X("../results").Result,c=X("../results").warning,o=X("../xml"),i=X("../transforms"),t=X("./uris");function l(A){return{readXmlElement:function(W){return new g(A).readXmlElement(W)},readXmlElements:function(W){return new g(A).readXmlElements(W)}}}function g(A){var W=[],S=[],P=[],{relationships:O,contentTypes:H,docxFile:ee,files:U,numbering:J,styles:D}=A;function te(oe){var me=oe.map(ye);return a(me)}function ye(oe){if(oe.type==="element"){var me=j[oe.name];if(me)return me(oe);else if(!Object.prototype.hasOwnProperty.call(y,oe.name)){var xe=c("An unrecognised element was ignored: "+oe.name);return h([xe])}}return T()}function se(oe){return pe(oe).map(function(me){return{type:"paragraphProperties",styleId:me.styleId,styleName:me.name,alignment:oe.firstOrEmpty("w:jc").attributes["w:val"],numbering:_(me.styleId,oe.firstOrEmpty("w:numPr"),J),indent:ve(oe.firstOrEmpty("w:ind"))}})}function ve(oe){return{start:oe.attributes["w:start"]||oe.attributes["w:left"],end:oe.attributes["w:end"]||oe.attributes["w:right"],firstLine:oe.attributes["w:firstLine"],hanging:oe.attributes["w:hanging"]}}function le(oe){return de(oe).map(function(me){var xe=oe.firstOrEmpty("w:sz").attributes["w:val"],De=/^[0-9]+$/.test(xe)?parseInt(xe,10)/2:null;return{type:"runProperties",styleId:me.styleId,styleName:me.name,verticalAlignment:oe.firstOrEmpty("w:vertAlign").attributes["w:val"],font:oe.firstOrEmpty("w:rFonts").attributes["w:ascii"],fontSize:De,isBold:Q(oe.first("w:b")),isUnderline:be(oe.first("w:u")),isItalic:Q(oe.first("w:i")),isStrikethrough:Q(oe.first("w:strike")),isAllCaps:Q(oe.first("w:caps")),isSmallCaps:Q(oe.first("w:smallCaps")),highlight:Te(oe.firstOrEmpty("w:highlight").attributes["w:val"])}})}function be(oe){if(oe){var me=oe.attributes["w:val"];return me!==void 0&&me!=="false"&&me!=="0"&&me!=="none"}else return!1}function Q(oe){if(oe){var me=oe.attributes["w:val"];return me!=="false"&&me!=="0"}else return!1}function ne(oe){return oe!=="false"&&oe!=="0"}function Te(oe){if(!oe||oe==="none")return null;else return oe}function pe(oe){return Be(oe,"w:pStyle","Paragraph",D.findParagraphStyleById)}function de(oe){return Be(oe,"w:rStyle","Run",D.findCharacterStyleById)}function Pe(oe){return Be(oe,"w:tblStyle","Table",D.findTableStyleById)}function Be(oe,me,xe,De){var Me=[],Xe=oe.first(me),ze=null,Ve=null;if(Xe){if(ze=Xe.attributes["w:val"],ze){var Ge=De(ze);if(Ge)Ve=Ge.name;else Me.push(Qe(xe,ze))}}return n({styleId:ze,name:Ve},Me)}function Ie(oe){var me=oe.attributes["w:fldCharType"];if(me==="begin")W.push({type:"begin",fldChar:oe}),S=[];else if(me==="end"){if(W.length===0)return h([c("Ignoring complex field end character without corresponding start character")]);var xe=W.pop();if(xe.type==="begin")xe=Ne(xe);if(xe.type==="checkbox")return x(p.checkbox({checked:xe.checked}))}else if(me==="separate"){if(W.length===0)return h([c("Ignoring complex field separator character without corresponding start character")]);var De=W.pop(),Me=Ne(De);W.push(Me)}return T()}function ke(){var oe=I.last(W.filter(function(me){return me.type==="hyperlink"}));return oe?oe.options:null}function Ne(oe){return Re(S.join(""),oe.type==="begin"?oe.fldChar:o.emptyElement)}function Re(oe,me){var xe=/^\s*HYPERLINK\s+(\\l\s+)?(?:"(.*)"|([^\\]\S*))/.exec(oe);if(xe){var De=xe[2]===void 0?xe[3]:xe[2],Me=xe[1]===void 0?{href:De}:{anchor:De};return{type:"hyperlink",options:Me}}var Xe=/\s*FORMCHECKBOX\s*/.exec(oe);if(Xe){var ze=me.firstOrEmpty("w:ffData").firstOrEmpty("w:checkBox"),Ve=ze.first("w:checked"),Ge=Ve==null?Q(ze.first("w:default")):Q(Ve);return{type:"checkbox",checked:Ge}}return{type:"unknown"}}function We(oe){return S.push(oe.text()),T()}function Ae(oe){var me=oe.attributes["w:font"],xe=oe.attributes["w:char"],De=z.hex(me,xe);if(De==null&&/^F0..$/.test(xe))De=z.hex(me,xe.substring(2));if(De==null)return h([c("A w:sym element with an unsupported character was ignored: char "+xe+" in font "+me)]);else return x(new p.Text(De.string))}function d(oe){return function(me){var xe=me.attributes["w:id"];return x(new p.NoteReference({noteType:oe,noteId:xe}))}}function q(oe){return x(p.commentReference({commentId:oe.attributes["w:id"]}))}function Y(oe){return te(oe.children)}var j={"w:p":function(oe){var me=oe.firstOrEmpty("w:pPr"),xe=!!me.firstOrEmpty("w:rPr").first("w:del");if(xe)return oe.children.forEach(function(Me){P.push(Me)}),T();else{var De=oe.children;if(P.length>0)De=P.concat(De),P=[];return v.map(se(me),te(De),function(Me,Xe){return new p.Paragraph(Xe,Me)}).insertExtra()}},"w:r":function(oe){return v.map(le(oe.firstOrEmpty("w:rPr")),te(oe.children),function(me,xe){var De=ke();if(De!==null)xe=[new p.Hyperlink(xe,De)];return new p.Run(xe,me)})},"w:fldChar":Ie,"w:instrText":We,"w:t":function(oe){return x(new p.Text(oe.text()))},"w:tab":function(oe){return x(new p.Tab)},"w:noBreakHyphen":function(){return x(new p.Text("‑"))},"w:softHyphen":function(oe){return x(new p.Text(""))},"w:sym":Ae,"w:hyperlink":function(oe){var me=oe.attributes["r:id"],xe=oe.attributes["w:anchor"];return te(oe.children).map(function(De){function Me(ze){var Ve=oe.attributes["w:tgtFrame"]||null;return new p.Hyperlink(De,I.extend({targetFrame:Ve},ze))}if(me){var Xe=O.findTargetByRelationshipId(me);if(xe)Xe=t.replaceFragment(Xe,xe);return Me({href:Xe})}else if(xe)return Me({anchor:xe});else return De})},"w:tbl":f,"w:tr":s,"w:tc":N,"w:footnoteReference":d("footnote"),"w:endnoteReference":d("endnote"),"w:commentReference":q,"w:br":function(oe){var me=oe.attributes["w:type"];if(me==null||me==="textWrapping")return x(p.lineBreak);else if(me==="page")return x(p.pageBreak);else if(me==="column")return x(p.columnBreak);else return h([c("Unsupported break type: "+me)])},"w:bookmarkStart":function(oe){var me=oe.attributes["w:name"];if(me==="_GoBack")return T();else return x(new p.BookmarkStart({name:me}))},"mc:AlternateContent":function(oe){return Y(oe.firstOrEmpty("mc:Fallback"))},"w:sdt":function(oe){var me=te(oe.firstOrEmpty("w:sdtContent").children);return me.map(function(xe){var De=oe.firstOrEmpty("w:sdtPr").first("wordml:checkbox");if(De){var Me=De.first("wordml:checked"),Xe=!!Me&&ne(Me.attributes["wordml:val"]),ze=p.checkbox({checked:Xe}),Ve=!1,Ge=xe.map(i._elementsOfType(p.types.text,function($e){if($e.value.length>0&&!Ve)return Ve=!0,ze;else return $e}));if(Ve)return Ge;else return ze}else return xe})},"w:customXml":Y,"w:ins":Y,"w:moveFromRangeEnd":Y,"w:moveFromRangeStart":Y,"w:moveTo":Y,"w:moveToRangeEnd":Y,"w:moveToRangeStart":Y,"w:object":Y,"w:smartTag":Y,"w:drawing":Y,"w:pict":function(oe){return Y(oe).toExtra()},"v:roundrect":Y,"v:shape":Y,"v:textbox":Y,"w:txbxContent":Y,"wp:inline":ue,"wp:anchor":ue,"v:imagedata":Fe,"v:group":Y,"v:rect":Y};return{readXmlElement:ye,readXmlElements:te};function f(oe){var me=r(oe.firstOrEmpty("w:tblPr"));return te(oe.children).flatMap(K).flatMap(function(xe){return me.map(function(De){return p.Table(xe,De)})})}function r(oe){return Pe(oe).map(function(me){return{styleId:me.styleId,styleName:me.name}})}function s(oe){var me=oe.firstOrEmpty("w:trPr"),xe=!!me.first("w:del");if(xe)return T();var De=!!me.first("w:tblHeader");return te(oe.children).map(function(Me){return p.TableRow(Me,{isHeader:De})})}function N(oe){return te(oe.children).map(function(me){var xe=oe.firstOrEmpty("w:tcPr"),De=xe.firstOrEmpty("w:gridSpan").attributes["w:val"],Me=De?parseInt(De,10):1,Xe=p.TableCell(me,{colSpan:Me});return Xe._vMerge=M(xe),Xe})}function M(oe){var me=oe.first("w:vMerge");if(me){var xe=me.attributes["w:val"];return xe==="continue"||!xe}else return null}function K(oe){var me=I.any(oe,function(Me){return Me.type!==p.types.tableRow});if(me)return ie(oe),n(oe,[c("unexpected non-row element in table, cell merging may be incorrect")]);var xe=I.any(oe,function(Me){return I.any(Me.children,function(Xe){return Xe.type!==p.types.tableCell})});if(xe)return ie(oe),n(oe,[c("unexpected non-cell element in table row, cell merging may be incorrect")]);var De={};return oe.forEach(function(Me){var Xe=0;Me.children.forEach(function(ze){if(ze._vMerge&&De[Xe])De[Xe].rowSpan++;else De[Xe]=ze,ze._vMerge=!1;Xe+=ze.colSpan})}),oe.forEach(function(Me){Me.children=Me.children.filter(function(Xe){return!Xe._vMerge}),Me.children.forEach(function(Xe){delete Xe._vMerge})}),x(oe)}function ie(oe){oe.forEach(function(me){var xe=i.getDescendantsOfType(me,p.types.tableCell);xe.forEach(function(De){delete De._vMerge})})}function ue(oe){var me=oe.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return a(me.map(we.bind(null,oe)))}function we(oe,me){var xe=oe.firstOrEmpty("wp:docPr"),De=xe.attributes,Me=Se(De.descr)?De.title:De.descr,Xe=_e(me);if(Xe===null)return h([c("Could not find image file for a:blip element")]);return He(Xe,Me).map(function(ze){var Ve=xe.firstOrEmpty("a:hlinkClick"),Ge=Ve.attributes["r:id"];if(Ge){var $e=O.findTargetByRelationshipId(Ge);return new p.Hyperlink([ze],{href:$e})}else return ze})}function Se(oe){return oe==null||/^\s*$/.test(oe)}function _e(oe){var me=oe.attributes["r:embed"],xe=oe.attributes["r:link"];if(me)return Ze(me);else if(xe){var De=O.findTargetByRelationshipId(xe);return{path:De,read:U.read.bind(U,De)}}else return null}function Fe(oe){var me=oe.attributes["r:id"];if(me)return He(Ze(me),oe.attributes["o:title"]);else return h([c("A v:imagedata element without a relationship ID was ignored")])}function Ze(oe){var me=t.uriToZipEntryName("word",O.findTargetByRelationshipId(oe));return{path:me,read:ee.read.bind(ee,me)}}function He(oe,me){var xe=H.findContentType(oe.path),De=p.Image({readImage:oe.read,altText:me,contentType:xe}),Me=w[xe]?[]:c("Image of type "+xe+" is unlikely to display in web browsers");return n(De,Me)}function Qe(oe,me){return c(oe+" style with ID "+me+" was referenced but not defined in the document")}}function _(A,W,S){var P=W.firstOrEmpty("w:ilvl").attributes["w:val"],O=W.firstOrEmpty("w:numId").attributes["w:val"];if(P!==void 0&&O!==void 0)return S.findLevel(O,P);if(A!=null){var H=S.findLevelByParagraphStyleId(A);if(H!=null)return H}if(O!==void 0)return S.findLevel(O,"0");return null}var w={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},y={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:moveFrom":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function h(A){return new v(null,null,A)}function T(){return new v(null)}function x(A){return new v(A)}function n(A,W){return new v(A,null,W)}function v(A,W,S){this.value=A||[],this.extra=W||[],this._result=new k({element:this.value,extra:W},S),this.messages=this._result.messages}v.prototype.toExtra=function(){return new v(null,E(this.extra,this.value),this.messages)},v.prototype.insertExtra=function(){var A=this.extra;if(A&&A.length)return new v(E(this.value,A),null,this.messages);else return this},v.prototype.map=function(A){var W=this._result.map(function(S){return A(S.element)});return new v(W.value,this.extra,W.messages)},v.prototype.flatMap=function(A){var W=this._result.flatMap(function(S){return A(S.element)._result});return new v(W.value.element,E(this.extra,W.value.extra),W.messages)},v.map=function(A,W,S){return new v(S(A.value,W.value),E(A.extra,W.extra),A.messages.concat(W.messages))};function a(A){var W=k.combine(I.pluck(A,"_result"));return new v(I.flatten(I.pluck(W.value,"element")),I.filter(I.flatten(I.pluck(W.value,"extra")),F),W.messages)}function E(A,W){return I.flatten([A,W])}function F(A){return A}},{"../documents":4,"../results":25,"../transforms":30,"../xml":35,"./uris":16,"dingbat-to-unicode":50,underscore:67}],6:[function(X,ce,L){var z=X("../documents"),I=X("../results").Result;function p(k){function c(i){return I.combine(i.getElementsByTagName("w:comment").map(o))}function o(i){var t=i.attributes["w:id"];function l(g){return(i.attributes[g]||"").trim()||null}return k.readXmlElements(i.children).map(function(g){return z.comment({commentId:t,body:g,authorName:l("w:author"),authorInitials:l("w:initials")})})}return c}L.createCommentsReader=p},{"../documents":4,"../results":25}],7:[function(X,ce,L){L.readContentTypesFromXml=I;var z={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};L.defaultContentTypes=p({},{});function I(k){var c=Object.create(null),o=Object.create(null);return k.children.forEach(function(i){if(i.name==="content-types:Default")c[i.attributes.Extension]=i.attributes.ContentType;if(i.name==="content-types:Override"){var t=i.attributes.PartName;if(t.charAt(0)==="/")t=t.substring(1);o[t]=i.attributes.ContentType}}),p(o,c)}function p(k,c){return{findContentType:function(o){var i=k[o];if(i)return i;else{var t=o.split("."),l=t[t.length-1];if(Object.prototype.hasOwnProperty.call(c,l))return c[l];else{var g=z[l.toLowerCase()];if(g)return"image/"+g;else return null}}}}}},{}],8:[function(X,ce,L){L.DocumentXmlReader=p;var z=X("../documents"),I=X("../results").Result;function p(k){var c=k.bodyReader;function o(i){var t=i.first("w:body");if(t==null)throw Error("Could not find the body element: are you sure this is a docx file?");var l=c.readXmlElements(t.children).map(function(g){return new z.Document(g,{notes:k.notes,comments:k.comments})});return new I(l.value,l.messages)}return{convertXmlToDocument:o}}},{"../documents":4,"../results":25}],9:[function(X,ce,L){L.read=T,L._findPartPaths=x;var z=X("../promises"),I=X("../documents"),p=X("../results").Result,k=X("../zipfile"),c=X("./office-xml-reader").readXmlFromZipFile,o=X("./body-reader").createBodyReader,i=X("./document-xml-reader").DocumentXmlReader,t=X("./relationships-reader"),l=X("./content-types-reader"),g=X("./numbering-xml"),_=X("./styles-reader"),w=X("./notes-reader"),y=X("./comments-reader"),h=X("./files").Files;function T(O,H,ee){H=H||{},ee=ee||{};var U=new h({externalFileAccess:ee.externalFileAccess,relativeToFile:H.path});return z.props({contentTypes:A(O),partPaths:x(O),docxFile:O,files:U}).also(function(J){return{styles:S(O,J.partPaths.styles)}}).also(function(J){return{numbering:W(O,J.partPaths.numbering,J.styles)}}).also(function(J){return{footnotes:E(J.partPaths.footnotes,J,function(D,te){if(te)return w.createFootnotesReader(D)(te);else return new p([])}),endnotes:E(J.partPaths.endnotes,J,function(D,te){if(te)return w.createEndnotesReader(D)(te);else return new p([])}),comments:E(J.partPaths.comments,J,function(D,te){if(te)return y.createCommentsReader(D)(te);else return new p([])})}}).also(function(J){return{notes:J.footnotes.flatMap(function(D){return J.endnotes.map(function(te){return new I.Notes(D.concat(te))})})}}).then(function(J){return E(J.partPaths.mainDocument,J,function(D,te){return J.notes.flatMap(function(ye){return J.comments.flatMap(function(se){var ve=new i({bodyReader:D,notes:ye,comments:se});return ve.convertXmlToDocument(te)})})})})}function x(O){return P(O).then(function(H){var ee=n({docxFile:O,relationships:H,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!O.exists(ee))throw Error("Could not find main document part. Are you sure this is a valid .docx file?");return a({filename:F(ee),readElement:t.readRelationships,defaultValue:t.defaultValue})(O).then(function(U){function J(D){return n({docxFile:O,relationships:U,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+D,basePath:k.splitPath(ee).dirname,fallbackPath:"word/"+D+".xml"})}return{mainDocument:ee,comments:J("comments"),endnotes:J("endnotes"),footnotes:J("footnotes"),numbering:J("numbering"),styles:J("styles")}})})}function n(O){var{docxFile:H,relationships:ee,relationshipType:U,basePath:J,fallbackPath:D}=O,te=ee.findTargetsByType(U),ye=te.map(function(ve){return v(k.joinPath(J,ve),"/")}),se=ye.filter(function(ve){return H.exists(ve)});if(se.length===0)return D;else return se[0]}function v(O,H){if(O.substring(0,H.length)===H)return O.substring(H.length);else return O}function a(O){return function(H){return c(H,O.filename).then(function(ee){return ee?O.readElement(ee):O.defaultValue})}}function E(O,H,ee){var U=a({filename:F(O),readElement:t.readRelationships,defaultValue:t.defaultValue});return U(H.docxFile).then(function(J){var D=new o({relationships:J,contentTypes:H.contentTypes,docxFile:H.docxFile,numbering:H.numbering,styles:H.styles,files:H.files});return c(H.docxFile,O).then(function(te){return ee(D,te)})})}function F(O){var H=k.splitPath(O);return k.joinPath(H.dirname,"_rels",H.basename+".rels")}var A=a({filename:"[Content_Types].xml",readElement:l.readContentTypesFromXml,defaultValue:l.defaultContentTypes});function W(O,H,ee){return a({filename:H,readElement:function(U){return g.readNumberingXml(U,{styles:ee})},defaultValue:g.defaultNumbering})(O)}function S(O,H){return a({filename:H,readElement:_.readStylesXml,defaultValue:_.defaultStyles})(O)}var P=a({filename:"_rels/.rels",readElement:t.readRelationships,defaultValue:t.defaultValue})},{"../documents":4,"../promises":23,"../results":25,"../zipfile":40,"./body-reader":5,"./comments-reader":6,"./content-types-reader":7,"./document-xml-reader":8,"./files":1,"./notes-reader":10,"./numbering-xml":11,"./office-xml-reader":12,"./relationships-reader":13,"./styles-reader":15}],10:[function(X,ce,L){var z=X("../documents"),I=X("../results").Result;L.createFootnotesReader=p.bind(this,"footnote"),L.createEndnotesReader=p.bind(this,"endnote");function p(k,c){function o(l){return I.combine(l.getElementsByTagName("w:"+k).filter(i).map(t))}function i(l){var g=l.attributes["w:type"];return g!=="continuationSeparator"&&g!=="separator"}function t(l){var g=l.attributes["w:id"];return c.readXmlElements(l.children).map(function(_){return z.Note({noteType:k,noteId:g,body:_})})}return o}},{"../documents":4,"../results":25}],11:[function(X,ce,L){var z=X("underscore");L.readNumberingXml=p,L.Numbering=I,L.defaultNumbering=new I({},{});function I(i,t,l){var g=z.flatten(z.values(t).map(function(T){return z.values(T.levels)})),_=z.indexBy(g.filter(function(T){return T.paragraphStyleId!=null}),"paragraphStyleId");function w(T,x){return y(T,x,Object.create(null))}function y(T,x,n){if(n[T])return null;n[T]=!0;var v=i[T];if(!v)return null;var a=t[v.abstractNumId];if(!a)return null;else if(a.numStyleLink==null)return t[v.abstractNumId].levels[x];else{var E=l.findNumberingStyleById(a.numStyleLink);return y(E.numId,x,n)}}function h(T){return _[T]||null}return{findLevel:w,findLevelByParagraphStyleId:h}}function p(i,t){if(!t||!t.styles)throw Error("styles is missing");var l=k(i),g=o(i,l);return new I(g,l,t.styles)}function k(i){var t=Object.create(null);return i.getElementsByTagName("w:abstractNum").forEach(function(l){var g=l.attributes["w:abstractNumId"];t[g]=c(l)}),t}function c(i){var t=Object.create(null),l=null;if(i.getElementsByTagName("w:lvl").forEach(function(_){var w=_.attributes["w:ilvl"],y=_.firstOrEmpty("w:numFmt").attributes["w:val"],h=y!=="bullet",T=_.firstOrEmpty("w:pStyle").attributes["w:val"];if(w===void 0)l={isOrdered:h,level:"0",paragraphStyleId:T};else t[w]={isOrdered:h,level:w,paragraphStyleId:T}}),l!==null&&t[l.level]===void 0)t[l.level]=l;var g=i.firstOrEmpty("w:numStyleLink").attributes["w:val"];return{levels:t,numStyleLink:g}}function o(i){var t=Object.create(null);return i.getElementsByTagName("w:num").forEach(function(l){var g=l.attributes["w:numId"],_=l.first("w:abstractNumId").attributes["w:val"];t[g]={abstractNumId:_}}),t}},{underscore:67}],12:[function(X,ce,L){var z=X("underscore"),I=X("../promises"),p=X("../xml");L.read=c,L.readXmlFromZipFile=o;var k={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://purl.oclc.org/ooxml/wordprocessingml/main":"w","http://purl.oclc.org/ooxml/officeDocument/relationships":"r","http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":"wp","http://purl.oclc.org/ooxml/drawingml/main":"a","http://purl.oclc.org/ooxml/drawingml/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","http://schemas.openxmlformats.org/package/2006/relationships":"relationships","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:word":"office-word","http://schemas.microsoft.com/office/word/2010/wordml":"wordml"};function c(l){return p.readString(l,k).then(function(g){return t(g)[0]})}function o(l,g){if(l.exists(g))return l.read(g,"utf-8").then(i).then(c);else return I.resolve(null)}function i(l){return l.replace(/^\uFEFF/g,"")}function t(l){if(l.type==="element")if(l.name==="mc:AlternateContent")return l.firstOrEmpty("mc:Fallback").children;else return l.children=z.flatten(l.children.map(t,!0)),[l];else return[l]}},{"../promises":23,"../xml":35,underscore:67}],13:[function(X,ce,L){L.readRelationships=z,L.defaultValue=new I([]),L.Relationships=I;function z(p){var k=[];return p.children.forEach(function(c){if(c.name==="relationships:Relationship"){var o={relationshipId:c.attributes.Id,target:c.attributes.Target,type:c.attributes.Type};k.push(o)}}),new I(k)}function I(p){var k=Object.create(null);p.forEach(function(o){k[o.relationshipId]=o.target});var c=Object.create(null);return p.forEach(function(o){if(!c[o.type])c[o.type]=[];c[o.type].push(o.target)}),{findTargetByRelationshipId:function(o){return k[o]},findTargetsByType:function(o){return c[o]||[]}}}},{}],14:[function(X,ce,L){var z=X("underscore"),I=X("../promises"),p=X("../xml");L.writeStyleMap=i,L.readStyleMap=_;var k="http://schemas.zwobble.org/mammoth/style-map",c="mammoth/style-map",o="/"+c;function i(w,y){return w.write(c,y),t(w).then(function(){return l(w)})}function t(w){var y="word/_rels/document.xml.rels",h="http://schemas.openxmlformats.org/package/2006/relationships",T="{"+h+"}Relationship";return w.read(y,"utf8").then(p.readString).then(function(x){var n=x.children;g(n,T,"Id",{Id:"rMammothStyleMap",Type:k,Target:o});var v={"":h};return w.write(y,p.writeString(x,v))})}function l(w){var y="[Content_Types].xml",h="http://schemas.openxmlformats.org/package/2006/content-types",T="{"+h+"}Override";return w.read(y,"utf8").then(p.readString).then(function(x){var n=x.children;g(n,T,"PartName",{PartName:o,ContentType:"text/prs.mammoth.style-map"});var v={"":h};return w.write(y,p.writeString(x,v))})}function g(w,y,h,T){var x=z.find(w,function(n){return n.name===y&&n.attributes[h]===T[h]});if(x)x.attributes=T;else w.push(p.element(y,T))}function _(w){if(w.exists(c))return w.read(c,"utf8");else return I.resolve(null)}},{"../promises":23,"../xml":35,underscore:67}],15:[function(X,ce,L){L.readStylesXml=I,L.Styles=z,L.defaultStyles=new z({},{});function z(i,t,l,g){return{findParagraphStyleById:function(_){return i[_]},findCharacterStyleById:function(_){return t[_]},findTableStyleById:function(_){return l[_]},findNumberingStyleById:function(_){return g[_]}}}z.EMPTY=new z({},{},{},{});function I(i){var t=Object.create(null),l=Object.create(null),g=Object.create(null),_=Object.create(null);return i.getElementsByTagName("w:style").forEach(function(w){var y=p(w),h;switch(y.type){case"paragraph":h=t;break;case"character":h=l;break;case"table":h=g;break;case"numbering":h=_;break}if(h&&h[y.styleId]===void 0)h[y.styleId]=y}),new z(t,l,g,_)}function p(i){var t=i.attributes["w:type"];if(t==="numbering")return c(t,i);else{var l=o(i),g=k(i);return{type:t,styleId:l,name:g}}}function k(i){var t=i.first("w:name");return t?t.attributes["w:val"]:null}function c(i,t){var l=o(t),g=t.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{type:i,numId:g,styleId:l}}function o(i){return i.attributes["w:styleId"]}},{}],16:[function(X,ce,L){L.uriToZipEntryName=z,L.replaceFragment=I;function z(p,k){if(k.charAt(0)==="/")return k.substr(1);else return p+"/"+k}function I(p,k){var c=p.indexOf("#");if(c!==-1)p=p.substring(0,c);return p+"#"+k}},{}],17:[function(X,ce,L){var z=X("../styles/html-paths");function I(l,g,_){return k(z.element(l,g,{fresh:!1}),_)}function p(l,g,_){var w=z.element(l,g,{fresh:!0});return k(w,_)}function k(l,g){return{type:"element",tag:l,children:g||[]}}function c(l){return{type:"text",value:l}}var o={type:"forceWrite"};L.freshElement=p,L.nonFreshElement=I,L.elementWithTag=k,L.text=c,L.forceWrite=o;var i={br:!0,hr:!0,img:!0,input:!0};function t(l){return l.children.length===0&&i[l.tag.tagName]}L.isVoidElement=t},{"../styles/html-paths":28}],18:[function(X,ce,L){var z=X("./ast");L.freshElement=z.freshElement,L.nonFreshElement=z.nonFreshElement,L.elementWithTag=z.elementWithTag,L.text=z.text,L.forceWrite=z.forceWrite,L.simplify=X("./simplify");function I(i,t){t.forEach(function(l){p(i,l)})}function p(i,t){k[t.type](i,t)}var k={element:c,text:o,forceWrite:function(){}};function c(i,t){if(z.isVoidElement(t))i.selfClosing(t.tag.tagName,t.tag.attributes);else i.open(t.tag.tagName,t.tag.attributes),I(i,t.children),i.close(t.tag.tagName)}function o(i,t){i.text(t.value)}L.write=I},{"./ast":17,"./simplify":19}],19:[function(X,ce,L){var z=X("underscore"),I=X("./ast");function p(x){return k(g(x))}function k(x){var n=[];return x.map(c).forEach(function(v){l(n,v)}),n}function c(x){return o[x.type](x)}var o={element:i,text:t,forceWrite:t};function i(x){return I.elementWithTag(x.tag,k(x.children))}function t(x){return x}function l(x,n){var v=x[x.length-1];if(n.type==="element"&&!n.tag.fresh&&v&&v.type==="element"&&n.tag.matchesElement(v.tag)){if(n.tag.separator)l(v.children,I.text(n.tag.separator));n.children.forEach(function(a){l(v.children,a)})}else x.push(n)}function g(x){return _(x,function(n){return w[n.type](n)})}function _(x,n){return z.flatten(z.map(x,n),!0)}var w={element:h,text:T,forceWrite:y};function y(x){return[x]}function h(x){var n=g(x.children);if(n.length===0&&!I.isVoidElement(x))return[];else return[I.elementWithTag(x.tag,n)]}function T(x){if(x.value.length===0)return[];else return[x]}ce.exports=p},{"./ast":17,underscore:67}],20:[function(X,ce,L){var z=X("underscore"),I=X("./promises"),p=X("./html");L.imgElement=k;function k(o){return function(i,t){return I.resolve(o(i)).then(function(l){var g={};if(i.altText)g.alt=i.altText;return z.extend(g,l),[p.freshElement("img",g)]})}}L.inline=L.imgElement,L.dataUri=k(function(o){return o.readAsBase64String().then(function(i){return{src:"data:"+o.contentType+";base64,"+i}})});function c(o){return o.contentType.split(/\/|\\/)[1]}L.imageFilenameExtension=c},{"./html":18,"./promises":23,underscore:67}],21:[function(X,ce,L){(function(z){var I=X("underscore"),p=X("./docx/docx-reader"),k=X("./docx/style-map"),c=X("./document-to-html").DocumentConverter,o=X("./raw-text").convertElementToRawText,i=X("./style-reader").readStyle,t=X("./options-reader").readOptions,l=X("./promises"),g=X("./unzip"),_=X("./results").Result;L.convertToHtml=w,L.convertToMarkdown=y,L.convert=h,L.extractRawText=v,L.images=X("./images"),L.transforms=X("./transforms"),L.underline=X("./underline"),L.embedStyleMap=a,L.readEmbeddedStyleMap=T;function w(E,F){return h(E,F)}function y(E,F){var A=Object.create(F||{});return A.outputFormat="markdown",h(E,A)}function h(E,F){F=t(F);var A=g.openZip(E).then(function(W){return k.readStyleMap(W).then(function(S){return F.embeddedStyleMap=S,W})}).then(function(W){return p.read(W,E,F).then(function(S){return S.map(F.transformDocument)}).then(function(S){return x(S,F)})});return l.toExternalPromise(A)}function T(E){var F=g.openZip(E).then(k.readStyleMap);return l.toExternalPromise(F)}function x(E,F){var A=n(F.readStyleMap()),W=I.extend({},F,{styleMap:A.value}),S=new c(W);return E.flatMapThen(function(P){return A.flatMapThen(function(O){return S.convertToHtml(P)})})}function n(E){return _.combine((E||[]).map(i)).map(function(F){return F.filter(function(A){return!!A})})}function v(E){var F=g.openZip(E).then(p.read).then(function(A){return A.map(o)});return l.toExternalPromise(F)}function a(E,F){var A=g.openZip(E).then(function(W){return k.writeStyleMap(W,F).then(function(){return W})}).then(function(W){return W.toArrayBuffer()}).then(function(W){return{toArrayBuffer:function(){return W},toBuffer:function(){return z.from(W)}}});return l.toExternalPromise(A)}L.styleMapping=function(){throw Error(`Use a raw string instead of mammoth.styleMapping e.g. "p[style-name='Title'] => h1" instead of mammoth.styleMapping("p[style-name='Title'] => h1")`)}}).call(this,X("buffer").Buffer)},{"./document-to-html":3,"./docx/docx-reader":9,"./docx/style-map":14,"./images":20,"./options-reader":22,"./promises":23,"./raw-text":24,"./results":25,"./style-reader":26,"./transforms":30,"./underline":31,"./unzip":2,buffer:48,underscore:67}],22:[function(X,ce,L){L.readOptions=k;var z=X("underscore"),I=L._defaultStyleMap=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","p.Heading => h1:fresh","p[style-name='Heading'] => h1:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh","p.Body => p:fresh","p[style-name='Body'] => p:fresh"],p=L._standardOptions={externalFileAccess:!1,transformDocument:o,includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function k(i){return i=i||{},z.extend({},p,i,{customStyleMap:c(i.styleMap),readStyleMap:function(){var t=this.customStyleMap;if(this.includeEmbeddedStyleMap)t=t.concat(c(this.embeddedStyleMap));if(this.includeDefaultStyleMap)t=t.concat(I);return t}})}function c(i){if(!i)return[];else if(z.isString(i))return i.split(`
|
|
3
|
+
`).map(function(t){return t.trim()}).filter(function(t){return t!==""&&t.charAt(0)!=="#"});else return i}function o(i){return i}},{underscore:67}],23:[function(X,ce,L){(function(z){var I=X("underscore");L.defer=o,L.Promise=Promise,L.resolve=Promise.resolve.bind(Promise),L.reject=Promise.reject.bind(Promise),L.forEachSeries=function(g,_){var w=0,y=o(),h=function(){if(w<g.length){var T=g[w];w++,_(T).then(h,y.reject)}else y.resolve()};return h(),y.promise};var p=L.props=function(g){var _=Object.keys(g),w=Object.values(g),y=Promise.all(w).then(function(h){var T={};for(var x=0;x<_.length;x++)T[_[x]]=h[x];return T});return c(y)},k=function(g){var _=this.then(function(w){var y=I.extend({},w,g(w));return p(y)});return c(_)};function c(g){return g.also=k,g}L.try=function(g){try{return Promise.resolve(g())}catch(_){return Promise.reject(_)}};function o(){var g,_,w=new Promise(function(y,h){g=y,_=h});return{resolve:g,reject:_,promise:w}}function i(g){var _=new Promise(g);return _.__proto__=i.prototype,_}i.__proto__=Promise,i.prototype.__proto__=Promise.prototype,i.prototype.done=function(g,_){return this.then(g,_).catch(function(w){if(l()){var y=w instanceof Error?w.stack:w;z.stderr.write("Fatal "+y+`
|
|
4
|
+
`),z.exit(2)}else setTimeout(function(){throw w},0)})};function t(g){return i.resolve(g)}L.toExternalPromise=t;function l(){if(typeof z>"u")return!1;return{}.toString.call(z).toLowerCase()==="[object process]"}}).call(this,X("_process"))},{_process:66,underscore:67}],24:[function(X,ce,L){var z=X("./documents");function I(p){if(p.type==="text")return p.value;else if(p.type===z.types.tab)return"\t";else{var k=p.type==="paragraph"?`
|
|
5
|
+
|
|
6
|
+
`:"";return(p.children||[]).map(I).join("")+k}}L.convertElementToRawText=I},{"./documents":4}],25:[function(X,ce,L){var z=X("underscore");L.Result=I,L.success=p,L.warning=k,L.error=c;function I(l,g){this.value=l,this.messages=g||[]}I.prototype.map=function(l){return new I(l(this.value),this.messages)},I.prototype.flatMap=function(l){var g=l(this.value);return new I(g.value,o([this,g]))},I.prototype.flatMapThen=function(l){var g=this;return l(this.value).then(function(_){return new I(_.value,o([g,_]))})},I.combine=function(l){var g=z.flatten(z.pluck(l,"value")),_=o(l);return new I(g,_)};function p(l){return new I(l,[])}function k(l){return{type:"warning",message:l}}function c(l){return{type:"error",message:l.message,error:l}}function o(l){var g=[];return z.flatten(z.pluck(l,"messages"),!0).forEach(function(_){if(!i(g,_))g.push(_)}),g}function i(l,g){return z.find(l,t.bind(null,g))!==void 0}function t(l,g){return l.type===g.type&&l.message===g.message}},{underscore:67}],26:[function(X,ce,L){var z=X("underscore"),I=X("lop"),p=X("./styles/document-matchers"),k=X("./styles/html-paths"),c=X("./styles/parser/tokeniser").tokenise,o=X("./results");L.readHtmlPath=_,L.readDocumentMatcher=l,L.readStyle=i;function i(P){return F(S,P)}function t(){return I.rules.sequence(I.rules.sequence.capture(g()),I.rules.tokenOfType("whitespace"),I.rules.tokenOfType("arrow"),I.rules.sequence.capture(I.rules.optional(I.rules.sequence(I.rules.tokenOfType("whitespace"),I.rules.sequence.capture(w())).head())),I.rules.tokenOfType("end")).map(function(P,O){return{from:P,to:O.valueOrElse(k.empty)}})}function l(P){return F(g(),P)}function g(){var P=I.rules.sequence,O=function(Ne,Re){return I.rules.then(I.rules.token("identifier",Ne),function(){return Re})},H=O("p",p.paragraph),ee=O("r",p.run),U=I.rules.firstOf("p or r or table",H,ee),J=I.rules.sequence(I.rules.tokenOfType("dot"),I.rules.sequence.cut(),I.rules.sequence.capture(y)).map(function(Ne){return{styleId:Ne}}),D=I.rules.firstOf("style name matcher",I.rules.then(I.rules.sequence(I.rules.tokenOfType("equals"),I.rules.sequence.cut(),I.rules.sequence.capture(T)).head(),function(Ne){return{styleName:p.equalTo(Ne)}}),I.rules.then(I.rules.sequence(I.rules.tokenOfType("startsWith"),I.rules.sequence.cut(),I.rules.sequence.capture(T)).head(),function(Ne){return{styleName:p.startsWith(Ne)}})),te=I.rules.sequence(I.rules.tokenOfType("open-square-bracket"),I.rules.sequence.cut(),I.rules.token("identifier","style-name"),I.rules.sequence.capture(D),I.rules.tokenOfType("close-square-bracket")).head(),ye=I.rules.firstOf("list type",O("ordered-list",{isOrdered:!0}),O("unordered-list",{isOrdered:!1})),se=P(I.rules.tokenOfType("colon"),P.capture(ye),P.cut(),I.rules.tokenOfType("open-paren"),P.capture(h),I.rules.tokenOfType("close-paren")).map(function(Ne,Re){return{list:{isOrdered:Ne.isOrdered,levelIndex:Re-1}}});function ve(Ne){var Re=I.rules.firstOf.apply(I.rules.firstOf,["matcher suffix"].concat(Ne)),We=I.rules.zeroOrMore(Re);return I.rules.then(We,function(Ae){var d={};return Ae.forEach(function(q){z.extend(d,q)}),d})}var le=P(P.capture(U),P.capture(ve([J,te,se]))).map(function(Ne,Re){return Ne(Re)}),be=P(I.rules.token("identifier","table"),P.capture(ve([J,te]))).map(function(Ne){return p.table(Ne)}),Q=O("b",p.bold),ne=O("i",p.italic),Te=O("u",p.underline),pe=O("strike",p.strikethrough),de=O("all-caps",p.allCaps),Pe=O("small-caps",p.smallCaps),Be=P(I.rules.token("identifier","highlight"),I.rules.sequence.capture(I.rules.optional(I.rules.sequence(I.rules.tokenOfType("open-square-bracket"),I.rules.sequence.cut(),I.rules.token("identifier","color"),I.rules.tokenOfType("equals"),I.rules.sequence.capture(T),I.rules.tokenOfType("close-square-bracket")).head()))).map(function(Ne){return p.highlight({color:Ne.valueOrElse(void 0)})}),Ie=O("comment-reference",p.commentReference),ke=P(I.rules.token("identifier","br"),P.cut(),I.rules.tokenOfType("open-square-bracket"),I.rules.token("identifier","type"),I.rules.tokenOfType("equals"),P.capture(T),I.rules.tokenOfType("close-square-bracket")).map(function(Ne){switch(Ne){case"line":return p.lineBreak;case"page":return p.pageBreak;case"column":return p.columnBreak;default:}});return I.rules.firstOf("element type",le,be,Q,ne,Te,pe,de,Pe,Be,Ie,ke)}function _(P){return F(w(),P)}function w(){var P=I.rules.sequence.capture,O=I.rules.tokenOfType("whitespace"),H=I.rules.then(I.rules.optional(I.rules.sequence(I.rules.tokenOfType("colon"),I.rules.token("identifier","fresh"))),function(D){return D.map(function(){return!0}).valueOrElse(!1)}),ee=I.rules.then(I.rules.optional(I.rules.sequence(I.rules.tokenOfType("colon"),I.rules.token("identifier","separator"),I.rules.tokenOfType("open-paren"),P(T),I.rules.tokenOfType("close-paren")).head()),function(D){return D.valueOrElse("")}),U=I.rules.oneOrMoreWithSeparator(y,I.rules.tokenOfType("choice")),J=I.rules.sequence(P(U),P(I.rules.zeroOrMore(E)),P(H),P(ee)).map(function(D,te,ye,se){var ve=Object.create(null),le={};if(te.forEach(function(be){if(be.append&&ve[be.name])ve[be.name]+=" "+be.value;else ve[be.name]=be.value}),ye)le.fresh=!0;if(se)le.separator=se;return k.element(D,ve,le)});return I.rules.firstOf("html path",I.rules.then(I.rules.tokenOfType("bang"),function(){return k.ignore}),I.rules.then(I.rules.zeroOrMoreWithSeparator(J,I.rules.sequence(O,I.rules.tokenOfType("gt"),O)),k.elements))}var y=I.rules.then(I.rules.tokenOfType("identifier"),n),h=I.rules.tokenOfType("integer"),T=I.rules.then(I.rules.tokenOfType("string"),n),x={n:`
|
|
7
|
+
`,r:"\r",t:"\t"};function n(P){return P.replace(/\\(.)/g,function(O,H){return x[H]||H})}var v=I.rules.sequence(I.rules.tokenOfType("open-square-bracket"),I.rules.sequence.cut(),I.rules.sequence.capture(y),I.rules.tokenOfType("equals"),I.rules.sequence.capture(T),I.rules.tokenOfType("close-square-bracket")).map(function(P,O){return{name:P,value:O,append:!1}}),a=I.rules.sequence(I.rules.tokenOfType("dot"),I.rules.sequence.cut(),I.rules.sequence.capture(y)).map(function(P){return{name:"class",value:P,append:!0}}),E=I.rules.firstOf("attribute or class",v,a);function F(P,O){var H=c(O),ee=I.Parser(),U=ee.parseTokens(P,H);if(U.isSuccess())return o.success(U.value());else return new o.Result(null,[o.warning(A(O,U))])}function A(P,O){return"Did not understand this style mapping, so ignored it: "+P+`
|
|
8
|
+
`+O.errors().map(W).join(`
|
|
9
|
+
`)}function W(P){return"Error was at character number "+P.characterNumber()+": Expected "+P.expected+" but got "+P.actual}var S=t()},{"./results":25,"./styles/document-matchers":27,"./styles/html-paths":28,"./styles/parser/tokeniser":29,lop:54,underscore:67}],27:[function(X,ce,L){L.paragraph=z,L.run=I,L.table=p,L.bold=new c("bold"),L.italic=new c("italic"),L.underline=new c("underline"),L.strikethrough=new c("strikethrough"),L.allCaps=new c("allCaps"),L.smallCaps=new c("smallCaps"),L.highlight=k,L.commentReference=new c("commentReference"),L.lineBreak=new i({breakType:"line"}),L.pageBreak=new i({breakType:"page"}),L.columnBreak=new i({breakType:"column"}),L.equalTo=l,L.startsWith=g;function z(y){return new c("paragraph",y)}function I(y){return new c("run",y)}function p(y){return new c("table",y)}function k(y){return new o(y)}function c(y,h){if(h=h||{},this._elementType=y,this._styleId=h.styleId,this._styleName=h.styleName,h.list)this._listIndex=h.list.levelIndex,this._listIsOrdered=h.list.isOrdered}c.prototype.matches=function(y){return y.type===this._elementType&&(this._styleId===void 0||y.styleId===this._styleId)&&(this._styleName===void 0||y.styleName&&this._styleName.operator(this._styleName.operand,y.styleName))&&(this._listIndex===void 0||t(y,this._listIndex,this._listIsOrdered))&&(this._breakType===void 0||this._breakType===y.breakType)};function o(y){y=y||{},this._color=y.color}o.prototype.matches=function(y){return y.type==="highlight"&&(this._color===void 0||y.color===this._color)};function i(y){y=y||{},this._breakType=y.breakType}i.prototype.matches=function(y){return y.type==="break"&&(this._breakType===void 0||y.breakType===this._breakType)};function t(y,h,T){return y.numbering&&y.numbering.level==h&&y.numbering.isOrdered==T}function l(y){return{operator:_,operand:y}}function g(y){return{operator:w,operand:y}}function _(y,h){return y.toUpperCase()===h.toUpperCase()}function w(y,h){return h.toUpperCase().indexOf(y.toUpperCase())===0}},{}],28:[function(X,ce,L){var z=X("underscore"),I=X("../html");L.topLevelElement=p,L.elements=k,L.element=o;function p(t,l){return k([o(t,l,{fresh:!0})])}function k(t){return new c(t.map(function(l){if(z.isString(l))return o(l);else return l}))}function c(t){this._elements=t}c.prototype.wrap=function(l){var g=l();for(var _=this._elements.length-1;_>=0;_--)g=this._elements[_].wrapNodes(g);return g};function o(t,l,g){return g=g||{},new i(t,l,g)}function i(t,l,g){var _=Object.create(null);if(z.isArray(t))t.forEach(function(w){_[w]=!0}),t=t[0];else _[t]=!0;this.tagName=t,this.tagNames=_,this.attributes=l||{},this.fresh=g.fresh,this.separator=g.separator}i.prototype.matchesElement=function(t){return this.tagNames[t.tagName]&&z.isEqual(this.attributes||{},t.attributes||{})},i.prototype.wrap=function(l){return this.wrapNodes(l())},i.prototype.wrapNodes=function(l){return[I.elementWithTag(this,l)]},L.empty=k([]),L.ignore={wrap:function(){return[]}}},{"../html":18,underscore:67}],29:[function(X,ce,L){var z=X("lop"),I=z.RegexTokeniser;L.tokenise=k;var p="'((?:\\\\(?:.|$)|[^'\\\\])*)";function k(c){var o="(?:[a-zA-Z\\-_]|\\\\.)",i=new I([{name:"identifier",regex:new RegExp("("+o+"(?:"+o+"|[0-9])*)")},{name:"dot",regex:/\./},{name:"colon",regex:/:/},{name:"gt",regex:/>/},{name:"whitespace",regex:/\s+/},{name:"arrow",regex:/=>/},{name:"equals",regex:/=/},{name:"startsWith",regex:/\^=/},{name:"open-paren",regex:/\(/},{name:"close-paren",regex:/\)/},{name:"open-square-bracket",regex:/\[/},{name:"close-square-bracket",regex:/\]/},{name:"string",regex:new RegExp(p+"'")},{name:"unterminated-string",regex:new RegExp(p)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]);return i.tokenise(c)}},{lop:54}],30:[function(X,ce,L){var z=X("underscore");L.paragraph=I,L.run=p,L._elements=c,L._elementsOfType=k,L.getDescendantsOfType=o,L.getDescendants=i;function I(l){return k("paragraph",l)}function p(l){return k("run",l)}function k(l,g){return c(function(_){if(_.type===l)return g(_);else return _})}function c(l){return function g(_){if(_.children){var w=z.map(_.children,g);_=z.extend(_,{children:w})}return l(_)}}function o(l,g){return i(l).filter(function(_){return _.type===g})}function i(l){var g=[];return t(l,function(_){g.push(_)}),g}function t(l,g){if(l.children)l.children.forEach(function(_){t(_,g),g(_)})}},{underscore:67}],31:[function(X,ce,L){var z=X("./styles/html-paths"),I=X("./html");L.element=p;function p(k){return function(c){return I.elementWithTag(z.element(k),[c])}}},{"./html":18,"./styles/html-paths":28}],32:[function(X,ce,L){var z=X("underscore");L.writer=I;function I(t){if(t=t||{},t.prettyPrint)return k();else return c()}var p={div:!0,p:!0,ul:!0,li:!0};function k(){var t=0,l=" ",g=[],_=!0,w=!1,y=c();function h(A,W){if(p[A])E();if(g.push(A),y.open(A,W),p[A])t++;_=!1}function T(A){if(p[A])t--,E();g.pop(),y.close(A)}function x(A){a();var W=F()?A:A.replace(`
|
|
10
|
+
`,`
|
|
11
|
+
`+l);y.text(W)}function n(A,W){E(),y.selfClosing(A,W)}function v(){return g.length===0||p[g[g.length-1]]}function a(){if(!w)E(),w=!0}function E(){if(w=!1,!_&&v()&&!F()){y._append(`
|
|
12
|
+
`);for(var A=0;A<t;A++)y._append(l)}}function F(){return z.some(g,function(A){return A==="pre"})}return{asString:y.asString,open:h,close:T,text:x,selfClosing:n}}function c(){var t=[];function l(x,n){var v=w(n);t.push("<"+x+v+">")}function g(x){t.push("</"+x+">")}function _(x,n){var v=w(n);t.push("<"+x+v+" />")}function w(x){return z.map(x,function(n,v){return" "+v+'="'+i(n)+'"'}).join("")}function y(x){t.push(o(x))}function h(x){t.push(x)}function T(){return t.join("")}return{asString:T,open:l,close:g,text:y,selfClosing:_,_append:h}}function o(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function i(t){return t.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}},{underscore:67}],33:[function(X,ce,L){var z=X("./html-writer"),I=X("./markdown-writer");L.writer=p;function p(k){if(k=k||{},k.outputFormat==="markdown")return I.writer();else return z.writer(k)}},{"./html-writer":32,"./markdown-writer":34}],34:[function(X,ce,L){var z=X("underscore"),I=X("./html-writer");function p(y){return k(y,y)}function k(y,h){return function(){return{start:y,end:h}}}function c(y){var h=y.href||"";if(h)return{start:"[",end:"]("+w(h)+")",anchorPosition:"before"};else return{}}function o(y){var h=y.src||"",T=y.alt||"";if(h||T)return{start:"+")"};else return{}}function i(y){return function(h,T){return{start:T?`
|
|
13
|
+
`:"",end:T?"":`
|
|
14
|
+
`,list:{isOrdered:y.isOrdered,indent:T?T.indent+1:0,count:0}}}}function t(y,h,T){h=h||{indent:0,isOrdered:!1,count:0},h.count++,T.hasClosed=!1;var x=h.isOrdered?h.count+".":"-",n=g("\t",h.indent)+x+" ";return{start:n,end:function(){if(!T.hasClosed)return T.hasClosed=!0,`
|
|
15
|
+
`}}}var l={p:k("",`
|
|
16
|
+
|
|
17
|
+
`),br:k("",`
|
|
18
|
+
`),ul:i({isOrdered:!1}),ol:i({isOrdered:!0}),li:t,strong:p("__"),em:p("*"),a:c,img:o};(function(){for(var y=1;y<=6;y++)l["h"+y]=k(g("#",y)+" ",`
|
|
19
|
+
|
|
20
|
+
`)})();function g(y,h){return Array(h+1).join(y)}function _(){var y=[],h=[],T=null,x={};function n(W,S){S=S||{};var P=l[W]||function(){return{}},O=P(S,T,x);if(h.push({end:O.end,list:T}),O.list)T=O.list;var H=O.anchorPosition==="before";if(H)v(S);if(y.push(O.start||""),!H)v(S)}function v(W){if(W.id){var S=I.writer();S.open("a",{id:W.id}),S.close("a"),y.push(S.asString())}}function a(W){var S=h.pop();T=S.list;var P=z.isFunction(S.end)?S.end():S.end;y.push(P||"")}function E(W,S){n(W,S),a(W)}function F(W){y.push(w(W))}function A(){return y.join("")}return{asString:A,open:n,close:a,text:F,selfClosing:E}}L.writer=_;function w(y){return y.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}},{"./html-writer":32,underscore:67}],35:[function(X,ce,L){var z=X("./nodes");L.Element=z.Element,L.element=z.element,L.emptyElement=z.emptyElement,L.text=z.text,L.readString=X("./reader").readString,L.writeString=X("./writer").writeString},{"./nodes":36,"./reader":37,"./writer":38}],36:[function(X,ce,L){var z=X("underscore");L.Element=p,L.element=function(o,i,t){return new p(o,i,t)},L.text=function(o){return{type:"text",value:o}};var I=L.emptyElement={first:function(){return null},firstOrEmpty:function(){return I},attributes:{},children:[]};function p(o,i,t){this.type="element",this.name=o,this.attributes=i||{},this.children=t||[]}p.prototype.first=function(o){return z.find(this.children,function(i){return i.name===o})},p.prototype.firstOrEmpty=function(o){return this.first(o)||I},p.prototype.getElementsByTagName=function(o){var i=z.filter(this.children,function(t){return t.name===o});return c(i)},p.prototype.text=function(){if(this.children.length===0)return"";else if(this.children.length!==1||this.children[0].type!=="text")throw Error("Not implemented");return this.children[0].value};var k={getElementsByTagName:function(o){return c(z.flatten(this.map(function(i){return i.getElementsByTagName(o)},!0)))}};function c(o){return z.extend(o,k)}},{underscore:67}],37:[function(X,ce,L){var z=X("../promises"),I=X("underscore"),p=X("./xmldom"),k=X("./nodes"),c=k.Element;L.readString=i;var o=p.Node;function i(t,l){l=l||{};try{var g=p.parseFromString(t,"text/xml")}catch(h){return z.reject(h)}if(g.documentElement.tagName==="parsererror")return z.resolve(Error(g.documentElement.textContent));function _(h){switch(h.nodeType){case o.ELEMENT_NODE:return w(h);case o.TEXT_NODE:return k.text(h.nodeValue)}}function w(h){var T=y(h),x=[];I.forEach(h.childNodes,function(v){var a=_(v);if(a)x.push(a)});var n=Object.create(null);return I.forEach(h.attributes,function(v){n[y(v)]=v.value}),new c(T,n,x)}function y(h){if(h.namespaceURI){var T=l[h.namespaceURI],x;if(T)x=T+":";else x="{"+h.namespaceURI+"}";return x+h.localName}else return h.localName}return z.resolve(_(g.documentElement))}},{"../promises":23,"./nodes":36,"./xmldom":39,underscore:67}],38:[function(X,ce,L){var z=X("underscore"),I=X("xmlbuilder");L.writeString=p;function p(c,o){var i=z.invert(o),t={element:g,text:k};function l(y,h){return t[h.type](y,h)}function g(y,h){var T=y.element(_(h.name),h.attributes);h.children.forEach(function(x){l(T,x)})}function _(y){var h=/^\{(.*)\}(.*)$/.exec(y);if(h){var T=i[h[1]];return T+(T===""?"":":")+h[2]}else return y}function w(y){var h=I.create(_(y.name),{version:"1.0",encoding:"UTF-8",standalone:!0});return z.forEach(o,function(T,x){var n="xmlns"+(x===""?"":":"+x);h.attribute(n,T)}),y.children.forEach(function(T){l(h,T)}),h.end()}return w(c)}function k(c,o){c.text(o.value)}},{underscore:67,xmlbuilder:89}],39:[function(X,ce,L){var z=X("@xmldom/xmldom"),I=X("@xmldom/xmldom/lib/dom");function p(k){var c=null,o=new z.DOMParser({errorHandler:function(t,l){c={level:t,message:l}}}),i=o.parseFromString(k);if(c===null)return i;else throw Error(c.level+": "+c.message)}L.parseFromString=p,L.Node=I.Node},{"@xmldom/xmldom":45,"@xmldom/xmldom/lib/dom":43}],40:[function(X,ce,L){var z=X("base64-js"),I=X("jszip");L.openArrayBuffer=p,L.splitPath=k,L.joinPath=c;function p(o){return I.loadAsync(o).then(function(i){function t(w){return i.file(w)!==null}function l(w,y){return i.file(w).async("uint8array").then(function(h){if(y==="base64")return z.fromByteArray(h);else if(y){var T=new TextDecoder(y);return T.decode(h)}else return h})}function g(w,y){i.file(w,y)}function _(){return i.generateAsync({type:"arraybuffer"})}return{exists:t,read:l,write:g,toArrayBuffer:_}})}function k(o){var i=o.lastIndexOf("/");if(i===-1)return{dirname:"",basename:o};else return{dirname:o.substring(0,i),basename:o.substring(i+1)}}function c(){var o=Array.prototype.filter.call(arguments,function(t){return t}),i=[];return o.forEach(function(t){if(/^\//.test(t))i=[t];else i.push(t)}),i.join("/")}},{"base64-js":47,jszip:53}],41:[function(X,ce,L){function z(o,i,t){if(t===void 0)t=Array.prototype;if(o&&typeof t.find==="function")return t.find.call(o,i);for(var l=0;l<o.length;l++)if(Object.prototype.hasOwnProperty.call(o,l)){var g=o[l];if(i.call(void 0,g,l,o))return g}}function I(o,i){if(i===void 0)i=Object;return i&&typeof i.freeze==="function"?i.freeze(o):o}function p(o,i){if(o===null||typeof o!=="object")throw TypeError("target is not an object");for(var t in i)if(Object.prototype.hasOwnProperty.call(i,t))o[t]=i[t];return o}var k=I({HTML:"text/html",isHTML:function(o){return o===k.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),c=I({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(o){return o===c.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});L.assign=p,L.find=z,L.freeze=I,L.MIME_TYPE=k,L.NAMESPACE=c},{}],42:[function(X,ce,L){var z=X("./conventions"),I=X("./dom"),p=X("./entities"),k=X("./sax"),c=I.DOMImplementation,o=z.NAMESPACE,{ParseError:i,XMLReader:t}=k;function l(n){return n.replace(/\r[\n\u0085]/g,`
|
|
21
|
+
`).replace(/[\r\u0085\u2028]/g,`
|
|
22
|
+
`)}function g(n){this.options=n||{locator:{}}}g.prototype.parseFromString=function(n,v){var a=this.options,E=new t,F=a.domBuilder||new w,{errorHandler:A,locator:W}=a,S=a.xmlns||{},P=/\/x?html?$/.test(v),O=P?p.HTML_ENTITIES:p.XML_ENTITIES;if(W)F.setDocumentLocator(W);if(E.errorHandler=_(A,F,W),E.domBuilder=a.domBuilder||F,P)S[""]=o.HTML;S.xml=S.xml||o.XML;var H=a.normalizeLineEndings||l;if(n&&typeof n==="string")E.parse(H(n),S,O);else E.errorHandler.error("invalid doc source");return F.doc};function _(n,v,a){if(!n){if(v instanceof w)return v;n=v}var E={},F=n instanceof Function;a=a||{};function A(W){var S=n[W];if(!S&&F)S=n.length==2?function(P){n(W,P)}:n;E[W]=S&&function(P){S("[xmldom "+W+"]\t"+P+h(a))}||function(){}}return A("warning"),A("error"),A("fatalError"),E}function w(){this.cdata=!1}function y(n,v){v.lineNumber=n.lineNumber,v.columnNumber=n.columnNumber}w.prototype={startDocument:function(){if(this.doc=new c().createDocument(null,null,null),this.locator)this.doc.documentURI=this.locator.systemId},startElement:function(n,v,a,E){var F=this.doc,A=F.createElementNS(n,a||v),W=E.length;x(this,A),this.currentElement=A,this.locator&&y(this.locator,A);for(var S=0;S<W;S++){var n=E.getURI(S),P=E.getValue(S),a=E.getQName(S),O=F.createAttributeNS(n,a);this.locator&&y(E.getLocator(S),O),O.value=O.nodeValue=P,A.setAttributeNode(O)}},endElement:function(n,v,a){var E=this.currentElement,F=E.tagName;this.currentElement=E.parentNode},startPrefixMapping:function(n,v){},endPrefixMapping:function(n){},processingInstruction:function(n,v){var a=this.doc.createProcessingInstruction(n,v);this.locator&&y(this.locator,a),x(this,a)},ignorableWhitespace:function(n,v,a){},characters:function(n,v,a){if(n=T.apply(this,arguments),n){if(this.cdata)var E=this.doc.createCDATASection(n);else var E=this.doc.createTextNode(n);if(this.currentElement)this.currentElement.appendChild(E);else if(/^\s*$/.test(n))this.doc.appendChild(E);this.locator&&y(this.locator,E)}},skippedEntity:function(n){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(n){if(this.locator=n)n.lineNumber=0},comment:function(n,v,a){n=T.apply(this,arguments);var E=this.doc.createComment(n);this.locator&&y(this.locator,E),x(this,E)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(n,v,a){var E=this.doc.implementation;if(E&&E.createDocumentType){var F=E.createDocumentType(n,v,a);this.locator&&y(this.locator,F),x(this,F),this.doc.doctype=F}},warning:function(n){console.warn("[xmldom warning]\t"+n,h(this.locator))},error:function(n){console.error("[xmldom error]\t"+n,h(this.locator))},fatalError:function(n){throw new i(n,this.locator)}};function h(n){if(n)return`
|
|
23
|
+
@`+(n.systemId||"")+"#[line:"+n.lineNumber+",col:"+n.columnNumber+"]"}function T(n,v,a){if(typeof n=="string")return n.substr(v,a);else{if(n.length>=v+a||v)return new java.lang.String(n,v,a)+"";return n}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(n){w.prototype[n]=function(){return null}});function x(n,v){if(!n.currentElement)n.doc.appendChild(v);else n.currentElement.appendChild(v)}L.__DOMHandler=w,L.normalizeLineEndings=l,L.DOMParser=g},{"./conventions":41,"./dom":43,"./entities":44,"./sax":46}],43:[function(X,ce,L){var z=X("./conventions"),{find:I,NAMESPACE:p}=z;function k(R){return R!==""}function c(R){return R?R.split(/[\t\n\f\r ]+/).filter(k):[]}function o(R,B){if(!R.hasOwnProperty(B))R[B]=!0;return R}function i(R){if(!R)return[];var B=c(R);return Object.keys(B.reduce(o,{}))}function t(R){return function(B){return R&&R.indexOf(B)!==-1}}function l(R,B){for(var G in R)if(Object.prototype.hasOwnProperty.call(R,G))B[G]=R[G]}function g(R,B){var G=R.prototype;if(!(G instanceof B)){let ge=function(){};var fe=ge;ge.prototype=B.prototype,ge=new ge,l(G,ge),R.prototype=G=ge}if(G.constructor!=R){if(typeof R!="function")console.error("unknown Class:"+R);G.constructor=R}}var _={},w=_.ELEMENT_NODE=1,y=_.ATTRIBUTE_NODE=2,h=_.TEXT_NODE=3,T=_.CDATA_SECTION_NODE=4,x=_.ENTITY_REFERENCE_NODE=5,n=_.ENTITY_NODE=6,v=_.PROCESSING_INSTRUCTION_NODE=7,a=_.COMMENT_NODE=8,E=_.DOCUMENT_NODE=9,F=_.DOCUMENT_TYPE_NODE=10,A=_.DOCUMENT_FRAGMENT_NODE=11,W=_.NOTATION_NODE=12,S={},P={},O=S.INDEX_SIZE_ERR=(P[1]="Index size error",1),H=S.DOMSTRING_SIZE_ERR=(P[2]="DOMString size error",2),ee=S.HIERARCHY_REQUEST_ERR=(P[3]="Hierarchy request error",3),U=S.WRONG_DOCUMENT_ERR=(P[4]="Wrong document",4),J=S.INVALID_CHARACTER_ERR=(P[5]="Invalid character",5),D=S.NO_DATA_ALLOWED_ERR=(P[6]="No data allowed",6),te=S.NO_MODIFICATION_ALLOWED_ERR=(P[7]="No modification allowed",7),ye=S.NOT_FOUND_ERR=(P[8]="Not found",8),se=S.NOT_SUPPORTED_ERR=(P[9]="Not supported",9),ve=S.INUSE_ATTRIBUTE_ERR=(P[10]="Attribute in use",10),le=S.INVALID_STATE_ERR=(P[11]="Invalid state",11),be=S.SYNTAX_ERR=(P[12]="Syntax error",12),Q=S.INVALID_MODIFICATION_ERR=(P[13]="Invalid modification",13),ne=S.NAMESPACE_ERR=(P[14]="Invalid namespace",14),Te=S.INVALID_ACCESS_ERR=(P[15]="Invalid access",15);function pe(R,B){if(B instanceof Error)var G=B;else if(G=this,Error.call(this,P[R]),this.message=P[R],Error.captureStackTrace)Error.captureStackTrace(this,pe);if(G.code=R,B)this.message=this.message+": "+B;return G}pe.prototype=Error.prototype,l(S,pe);function de(){}de.prototype={length:0,item:function(R){return this[R]||null},toString:function(R,B){for(var G=[],fe=0;fe<this.length;fe++)ht(this[fe],G,R,B);return G.join("")},filter:function(R){return Array.prototype.filter.call(this,R)},indexOf:function(R){return Array.prototype.indexOf.call(this,R)}};function Pe(R,B){this._node=R,this._refresh=B,Be(this)}function Be(R){var B=R._node._inc||R._node.ownerDocument._inc;if(R._inc!=B){var G=R._refresh(R._node);It(R,"length",G.length),l(G,R),R._inc=B}}Pe.prototype.item=function(R){return Be(this),this[R]},g(Pe,de);function Ie(){}function ke(R,B){var G=R.length;while(G--)if(R[G]===B)return G}function Ne(R,B,G,fe){if(fe)B[ke(B,fe)]=G;else B[B.length++]=G;if(R){G.ownerElement=R;var ge=R.ownerDocument;if(ge)fe&&f(ge,R,fe),j(ge,R,G)}}function Re(R,B,G){var fe=ke(B,G);if(fe>=0){var ge=B.length-1;while(fe<ge)B[fe]=B[++fe];if(B.length=ge,R){var Oe=R.ownerDocument;if(Oe)f(Oe,R,G),G.ownerElement=null}}else throw new pe(ye,Error(R.tagName+"@"+G))}Ie.prototype={length:0,item:de.prototype.item,getNamedItem:function(R){var B=this.length;while(B--){var G=this[B];if(G.nodeName==R)return G}},setNamedItem:function(R){var B=R.ownerElement;if(B&&B!=this._ownerElement)throw new pe(ve);var G=this.getNamedItem(R.nodeName);return Ne(this._ownerElement,this,R,G),G},setNamedItemNS:function(R){var B=R.ownerElement,G;if(B&&B!=this._ownerElement)throw new pe(ve);return G=this.getNamedItemNS(R.namespaceURI,R.localName),Ne(this._ownerElement,this,R,G),G},removeNamedItem:function(R){var B=this.getNamedItem(R);return Re(this._ownerElement,this,B),B},removeNamedItemNS:function(R,B){var G=this.getNamedItemNS(R,B);return Re(this._ownerElement,this,G),G},getNamedItemNS:function(R,B){var G=this.length;while(G--){var fe=this[G];if(fe.localName==B&&fe.namespaceURI==R)return fe}return null}};function We(){}We.prototype={hasFeature:function(R,B){return!0},createDocument:function(R,B,G){var fe=new Y;if(fe.implementation=this,fe.childNodes=new de,fe.doctype=G||null,G)fe.appendChild(G);if(B){var ge=fe.createElementNS(R,B);fe.appendChild(ge)}return fe},createDocumentType:function(R,B,G){var fe=new ze;return fe.name=R,fe.nodeName=R,fe.publicId=B||"",fe.systemId=G||"",fe}};function Ae(){}Ae.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(R,B){return He(this,R,B)},replaceChild:function(R,B){if(He(this,R,B,Ze),B)this.removeChild(B)},removeChild:function(R){return s(this,R)},appendChild:function(R){return this.insertBefore(R,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(R){return yt(this.ownerDocument||this,this,R)},normalize:function(){var R=this.firstChild;while(R){var B=R.nextSibling;if(B&&B.nodeType==h&&R.nodeType==h)this.removeChild(B),R.appendData(B.data);else R.normalize(),R=B}},isSupported:function(R,B){return this.ownerDocument.implementation.hasFeature(R,B)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(R){var B=this;while(B){var G=B._nsMap;if(G){for(var fe in G)if(Object.prototype.hasOwnProperty.call(G,fe)&&G[fe]===R)return fe}B=B.nodeType==y?B.ownerDocument:B.parentNode}return null},lookupNamespaceURI:function(R){var B=this;while(B){var G=B._nsMap;if(G){if(Object.prototype.hasOwnProperty.call(G,R))return G[R]}B=B.nodeType==y?B.ownerDocument:B.parentNode}return null},isDefaultNamespace:function(R){var B=this.lookupPrefix(R);return B==null}};function d(R){return R=="<"&&"<"||R==">"&&">"||R=="&"&&"&"||R=='"'&&"""||"&#"+R.charCodeAt()+";"}l(_,Ae),l(_,Ae.prototype);function q(R,B){if(B(R))return!0;if(R=R.firstChild)do if(q(R,B))return!0;while(R=R.nextSibling)}function Y(){this.ownerDocument=this}function j(R,B,G){R&&R._inc++;var fe=G.namespaceURI;if(fe===p.XMLNS)B._nsMap[G.prefix?G.localName:""]=G.value}function f(R,B,G,fe){R&&R._inc++;var ge=G.namespaceURI;if(ge===p.XMLNS)delete B._nsMap[G.prefix?G.localName:""]}function r(R,B,G){if(R&&R._inc){R._inc++;var fe=B.childNodes;if(G)fe[fe.length++]=G;else{var ge=B.firstChild,Oe=0;while(ge)fe[Oe++]=ge,ge=ge.nextSibling;fe.length=Oe,delete fe[fe.length]}}}function s(R,B){var{previousSibling:G,nextSibling:fe}=B;if(G)G.nextSibling=fe;else R.firstChild=fe;if(fe)fe.previousSibling=G;else R.lastChild=G;return B.parentNode=null,B.previousSibling=null,B.nextSibling=null,r(R.ownerDocument,R),B}function N(R){return R&&(R.nodeType===Ae.DOCUMENT_NODE||R.nodeType===Ae.DOCUMENT_FRAGMENT_NODE||R.nodeType===Ae.ELEMENT_NODE)}function M(R){return R&&(ie(R)||ue(R)||K(R)||R.nodeType===Ae.DOCUMENT_FRAGMENT_NODE||R.nodeType===Ae.COMMENT_NODE||R.nodeType===Ae.PROCESSING_INSTRUCTION_NODE)}function K(R){return R&&R.nodeType===Ae.DOCUMENT_TYPE_NODE}function ie(R){return R&&R.nodeType===Ae.ELEMENT_NODE}function ue(R){return R&&R.nodeType===Ae.TEXT_NODE}function we(R,B){var G=R.childNodes||[];if(I(G,ie)||K(B))return!1;var fe=I(G,K);return!(B&&fe&&G.indexOf(fe)>G.indexOf(B))}function Se(R,B){var G=R.childNodes||[];function fe(Oe){return ie(Oe)&&Oe!==B}if(I(G,fe))return!1;var ge=I(G,K);return!(B&&ge&&G.indexOf(ge)>G.indexOf(B))}function _e(R,B,G){if(!N(R))throw new pe(ee,"Unexpected parent node type "+R.nodeType);if(G&&G.parentNode!==R)throw new pe(ye,"child not in parent");if(!M(B)||K(B)&&R.nodeType!==Ae.DOCUMENT_NODE)throw new pe(ee,"Unexpected node type "+B.nodeType+" for parent node type "+R.nodeType)}function Fe(R,B,G){var fe=R.childNodes||[],ge=B.childNodes||[];if(B.nodeType===Ae.DOCUMENT_FRAGMENT_NODE){var Oe=ge.filter(ie);if(Oe.length>1||I(ge,ue))throw new pe(ee,"More than one element or text in fragment");if(Oe.length===1&&!we(R,G))throw new pe(ee,"Element in fragment can not be inserted before doctype")}if(ie(B)){if(!we(R,G))throw new pe(ee,"Only one element can be added and only after doctype")}if(K(B)){if(I(fe,K))throw new pe(ee,"Only one doctype is allowed");var je=I(fe,ie);if(G&&fe.indexOf(je)<fe.indexOf(G))throw new pe(ee,"Doctype can only be inserted before an element");if(!G&&je)throw new pe(ee,"Doctype can not be appended since element is present")}}function Ze(R,B,G){var fe=R.childNodes||[],ge=B.childNodes||[];if(B.nodeType===Ae.DOCUMENT_FRAGMENT_NODE){var Oe=ge.filter(ie);if(Oe.length>1||I(ge,ue))throw new pe(ee,"More than one element or text in fragment");if(Oe.length===1&&!Se(R,G))throw new pe(ee,"Element in fragment can not be inserted before doctype")}if(ie(B)){if(!Se(R,G))throw new pe(ee,"Only one element can be added and only after doctype")}if(K(B)){let nt=function(tt){return K(tt)&&tt!==G};var Ye=nt;if(I(fe,nt))throw new pe(ee,"Only one doctype is allowed");var je=I(fe,ie);if(G&&fe.indexOf(je)<fe.indexOf(G))throw new pe(ee,"Doctype can only be inserted before an element")}}function He(R,B,G,fe){if(_e(R,B,G),R.nodeType===Ae.DOCUMENT_NODE)(fe||Fe)(R,B,G);var ge=B.parentNode;if(ge)ge.removeChild(B);if(B.nodeType===A){var Oe=B.firstChild;if(Oe==null)return B;var je=B.lastChild}else Oe=je=B;var Ye=G?G.previousSibling:R.lastChild;if(Oe.previousSibling=Ye,je.nextSibling=G,Ye)Ye.nextSibling=Oe;else R.firstChild=Oe;if(G==null)R.lastChild=je;else G.previousSibling=je;do Oe.parentNode=R;while(Oe!==je&&(Oe=Oe.nextSibling));if(r(R.ownerDocument||R,R),B.nodeType==A)B.firstChild=B.lastChild=null;return B}function Qe(R,B){if(B.parentNode)B.parentNode.removeChild(B);if(B.parentNode=R,B.previousSibling=R.lastChild,B.nextSibling=null,B.previousSibling)B.previousSibling.nextSibling=B;else R.firstChild=B;return R.lastChild=B,r(R.ownerDocument,R,B),B}Y.prototype={nodeName:"#document",nodeType:E,doctype:null,documentElement:null,_inc:1,insertBefore:function(R,B){if(R.nodeType==A){var G=R.firstChild;while(G){var fe=G.nextSibling;this.insertBefore(G,B),G=fe}return R}if(He(this,R,B),R.ownerDocument=this,this.documentElement===null&&R.nodeType===w)this.documentElement=R;return R},removeChild:function(R){if(this.documentElement==R)this.documentElement=null;return s(this,R)},replaceChild:function(R,B){if(He(this,R,B,Ze),R.ownerDocument=this,B)this.removeChild(B);if(ie(R))this.documentElement=R},importNode:function(R,B){return _t(this,R,B)},getElementById:function(R){var B=null;return q(this.documentElement,function(G){if(G.nodeType==w){if(G.getAttribute("id")==R)return B=G,!0}}),B},getElementsByClassName:function(R){var B=i(R);return new Pe(this,function(G){var fe=[];if(B.length>0)q(G.documentElement,function(ge){if(ge!==G&&ge.nodeType===w){var Oe=ge.getAttribute("class");if(Oe){var je=R===Oe;if(!je){var Ye=i(Oe);je=B.every(t(Ye))}if(je)fe.push(ge)}}});return fe})},createElement:function(R){var B=new oe;B.ownerDocument=this,B.nodeName=R,B.tagName=R,B.localName=R,B.childNodes=new de;var G=B.attributes=new Ie;return G._ownerElement=B,B},createDocumentFragment:function(){var R=new at;return R.ownerDocument=this,R.childNodes=new de,R},createTextNode:function(R){var B=new De;return B.ownerDocument=this,B.appendData(R),B},createComment:function(R){var B=new Me;return B.ownerDocument=this,B.appendData(R),B},createCDATASection:function(R){var B=new Xe;return B.ownerDocument=this,B.appendData(R),B},createProcessingInstruction:function(R,B){var G=new xt;return G.ownerDocument=this,G.tagName=G.target=R,G.nodeValue=G.data=B,G},createAttribute:function(R){var B=new me;return B.ownerDocument=this,B.name=R,B.nodeName=R,B.localName=R,B.specified=!0,B},createEntityReference:function(R){var B=new $e;return B.ownerDocument=this,B.nodeName=R,B},createElementNS:function(R,B){var G=new oe,fe=B.split(":"),ge=G.attributes=new Ie;if(G.childNodes=new de,G.ownerDocument=this,G.nodeName=B,G.tagName=B,G.namespaceURI=R,fe.length==2)G.prefix=fe[0],G.localName=fe[1];else G.localName=B;return ge._ownerElement=G,G},createAttributeNS:function(R,B){var G=new me,fe=B.split(":");if(G.ownerDocument=this,G.nodeName=B,G.name=B,G.namespaceURI=R,G.specified=!0,fe.length==2)G.prefix=fe[0],G.localName=fe[1];else G.localName=B;return G}},g(Y,Ae);function oe(){this._nsMap={}}oe.prototype={nodeType:w,hasAttribute:function(R){return this.getAttributeNode(R)!=null},getAttribute:function(R){var B=this.getAttributeNode(R);return B&&B.value||""},getAttributeNode:function(R){return this.attributes.getNamedItem(R)},setAttribute:function(R,B){var G=this.ownerDocument.createAttribute(R);G.value=G.nodeValue=""+B,this.setAttributeNode(G)},removeAttribute:function(R){var B=this.getAttributeNode(R);B&&this.removeAttributeNode(B)},appendChild:function(R){if(R.nodeType===A)return this.insertBefore(R,null);else return Qe(this,R)},setAttributeNode:function(R){return this.attributes.setNamedItem(R)},setAttributeNodeNS:function(R){return this.attributes.setNamedItemNS(R)},removeAttributeNode:function(R){return this.attributes.removeNamedItem(R.nodeName)},removeAttributeNS:function(R,B){var G=this.getAttributeNodeNS(R,B);G&&this.removeAttributeNode(G)},hasAttributeNS:function(R,B){return this.getAttributeNodeNS(R,B)!=null},getAttributeNS:function(R,B){var G=this.getAttributeNodeNS(R,B);return G&&G.value||""},setAttributeNS:function(R,B,G){var fe=this.ownerDocument.createAttributeNS(R,B);fe.value=fe.nodeValue=""+G,this.setAttributeNode(fe)},getAttributeNodeNS:function(R,B){return this.attributes.getNamedItemNS(R,B)},getElementsByTagName:function(R){return new Pe(this,function(B){var G=[];return q(B,function(fe){if(fe!==B&&fe.nodeType==w&&(R==="*"||fe.tagName==R))G.push(fe)}),G})},getElementsByTagNameNS:function(R,B){return new Pe(this,function(G){var fe=[];return q(G,function(ge){if(ge!==G&&ge.nodeType===w&&(R==="*"||ge.namespaceURI===R)&&(B==="*"||ge.localName==B))fe.push(ge)}),fe})}},Y.prototype.getElementsByTagName=oe.prototype.getElementsByTagName,Y.prototype.getElementsByTagNameNS=oe.prototype.getElementsByTagNameNS,g(oe,Ae);function me(){}me.prototype.nodeType=y,g(me,Ae);function xe(){}xe.prototype={data:"",substringData:function(R,B){return this.data.substring(R,R+B)},appendData:function(R){R=this.data+R,this.nodeValue=this.data=R,this.length=R.length},insertData:function(R,B){this.replaceData(R,0,B)},appendChild:function(R){throw Error(P[ee])},deleteData:function(R,B){this.replaceData(R,B,"")},replaceData:function(R,B,G){var fe=this.data.substring(0,R),ge=this.data.substring(R+B);G=fe+G+ge,this.nodeValue=this.data=G,this.length=G.length}},g(xe,Ae);function De(){}De.prototype={nodeName:"#text",nodeType:h,splitText:function(R){var B=this.data,G=B.substring(R);B=B.substring(0,R),this.data=this.nodeValue=B,this.length=B.length;var fe=this.ownerDocument.createTextNode(G);if(this.parentNode)this.parentNode.insertBefore(fe,this.nextSibling);return fe}},g(De,xe);function Me(){}Me.prototype={nodeName:"#comment",nodeType:a},g(Me,xe);function Xe(){}Xe.prototype={nodeName:"#cdata-section",nodeType:T},g(Xe,xe);function ze(){}ze.prototype.nodeType=F,g(ze,Ae);function Ve(){}Ve.prototype.nodeType=W,g(Ve,Ae);function Ge(){}Ge.prototype.nodeType=n,g(Ge,Ae);function $e(){}$e.prototype.nodeType=x,g($e,Ae);function at(){}at.prototype.nodeName="#document-fragment",at.prototype.nodeType=A,g(at,Ae);function xt(){}xt.prototype.nodeType=v,g(xt,Ae);function kt(){}kt.prototype.serializeToString=function(R,B,G){return St.call(R,B,G)},Ae.prototype.toString=St;function St(R,B){var G=[],fe=this.nodeType==9&&this.documentElement||this,{prefix:ge,namespaceURI:Oe}=fe;if(Oe&&ge==null){var ge=fe.lookupPrefix(Oe);if(ge==null)var je=[{namespace:Oe,prefix:null}]}return ht(this,G,R,B,je),G.join("")}function lt(R,B,G){var fe=R.prefix||"",ge=R.namespaceURI;if(!ge)return!1;if(fe==="xml"&&ge===p.XML||ge===p.XMLNS)return!1;var Oe=G.length;while(Oe--){var je=G[Oe];if(je.prefix===fe)return je.namespace!==ge}return!0}function Tt(R,B,G){R.push(" ",B,'="',G.replace(/[<>&"\t\n\r]/g,d),'"')}function ht(R,B,G,fe,ge){if(!ge)ge=[];if(fe)if(R=fe(R),R){if(typeof R=="string"){B.push(R);return}}else return;switch(R.nodeType){case w:var Oe=R.attributes,je=Oe.length,Ue=R.firstChild,Ye=R.tagName;G=p.isHTML(R.namespaceURI)||G;var nt=Ye;if(!G&&!R.prefix&&R.namespaceURI){var tt;for(var ot=0;ot<Oe.length;ot++)if(Oe.item(ot).name==="xmlns"){tt=Oe.item(ot).value;break}if(!tt)for(var st=ge.length-1;st>=0;st--){var it=ge[st];if(it.prefix===""&&it.namespace===R.namespaceURI){tt=it.namespace;break}}if(tt!==R.namespaceURI)for(var st=ge.length-1;st>=0;st--){var it=ge[st];if(it.namespace===R.namespaceURI){if(it.prefix)nt=it.prefix+":"+Ye;break}}}B.push("<",nt);for(var ut=0;ut<je;ut++){var Je=Oe.item(ut);if(Je.prefix=="xmlns")ge.push({prefix:Je.localName,namespace:Je.value});else if(Je.nodeName=="xmlns")ge.push({prefix:"",namespace:Je.value})}for(var ut=0;ut<je;ut++){var Je=Oe.item(ut);if(lt(Je,G,ge)){var ct=Je.prefix||"",pt=Je.namespaceURI;Tt(B,ct?"xmlns:"+ct:"xmlns",pt),ge.push({prefix:ct,namespace:pt})}ht(Je,B,G,fe,ge)}if(Ye===nt&<(R,G,ge)){var ct=R.prefix||"",pt=R.namespaceURI;Tt(B,ct?"xmlns:"+ct:"xmlns",pt),ge.push({prefix:ct,namespace:pt})}if(Ue||G&&!/^(?:meta|link|img|br|hr|input)$/i.test(Ye)){if(B.push(">"),G&&/^script$/i.test(Ye))while(Ue){if(Ue.data)B.push(Ue.data);else ht(Ue,B,G,fe,ge.slice());Ue=Ue.nextSibling}else while(Ue)ht(Ue,B,G,fe,ge.slice()),Ue=Ue.nextSibling;B.push("</",nt,">")}else B.push("/>");return;case E:case A:var Ue=R.firstChild;while(Ue)ht(Ue,B,G,fe,ge.slice()),Ue=Ue.nextSibling;return;case y:return Tt(B,R.name,R.value);case h:return B.push(R.data.replace(/[<&>]/g,d));case T:return B.push("<![CDATA[",R.data,"]]>");case a:return B.push("<!--",R.data,"-->");case F:var At=R.publicId,dt=R.systemId;if(B.push("<!DOCTYPE ",R.name),At){if(B.push(" PUBLIC ",At),dt&&dt!=".")B.push(" ",dt);B.push(">")}else if(dt&&dt!=".")B.push(" SYSTEM ",dt,">");else{var Ot=R.internalSubset;if(Ot)B.push(" [",Ot,"]");B.push(">")}return;case v:return B.push("<?",R.target," ",R.data,"?>");case x:return B.push("&",R.nodeName,";");default:B.push("??",R.nodeName)}}function _t(R,B,G){var fe;switch(B.nodeType){case w:fe=B.cloneNode(!1),fe.ownerDocument=R;case A:break;case y:G=!0;break}if(!fe)fe=B.cloneNode(!1);if(fe.ownerDocument=R,fe.parentNode=null,G){var ge=B.firstChild;while(ge)fe.appendChild(_t(R,ge,G)),ge=ge.nextSibling}return fe}function yt(R,B,G){var fe=new B.constructor;for(var ge in B)if(Object.prototype.hasOwnProperty.call(B,ge)){var Oe=B[ge];if(typeof Oe!="object"){if(Oe!=fe[ge])fe[ge]=Oe}}if(B.childNodes)fe.childNodes=new de;switch(fe.ownerDocument=R,fe.nodeType){case w:var je=B.attributes,Ye=fe.attributes=new Ie,nt=je.length;Ye._ownerElement=fe;for(var tt=0;tt<nt;tt++)fe.setAttributeNode(yt(R,je.item(tt),!0));break;case y:G=!0}if(G){var ot=B.firstChild;while(ot)fe.appendChild(yt(R,ot,G)),ot=ot.nextSibling}return fe}function It(R,B,G){R[B]=G}try{if(Object.defineProperty){let R=function(B){switch(B.nodeType){case w:case A:var G=[];B=B.firstChild;while(B){if(B.nodeType!==7&&B.nodeType!==8)G.push(R(B));B=B.nextSibling}return G.join("");default:return B.nodeValue}};var Nt=R;Object.defineProperty(Pe.prototype,"length",{get:function(){return Be(this),this.$$length}}),Object.defineProperty(Ae.prototype,"textContent",{get:function(){return R(this)},set:function(B){switch(this.nodeType){case w:case A:while(this.firstChild)this.removeChild(this.firstChild);if(B||String(B))this.appendChild(this.ownerDocument.createTextNode(B));break;default:this.data=B,this.value=B,this.nodeValue=B}}}),It=function(B,G,fe){B["$$"+G]=fe}}}catch(R){}L.DocumentType=ze,L.DOMException=pe,L.DOMImplementation=We,L.Element=oe,L.Node=Ae,L.NodeList=de,L.XMLSerializer=kt},{"./conventions":41}],44:[function(X,ce,L){var z=X("./conventions").freeze;L.XML_ENTITIES=z({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),L.HTML_ENTITIES=z({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),L.entityMap=L.HTML_ENTITIES},{"./conventions":41}],45:[function(X,ce,L){var z=X("./dom");L.DOMImplementation=z.DOMImplementation,L.XMLSerializer=z.XMLSerializer,L.DOMParser=X("./dom-parser").DOMParser},{"./dom":43,"./dom-parser":42}],46:[function(X,ce,L){var z=X("./conventions").NAMESPACE,I=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=new RegExp("[\\-\\.0-9"+I.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),k=new RegExp("^"+I.source+p.source+"*(?::"+I.source+p.source+"*)?$"),c=0,o=1,i=2,t=3,l=4,g=5,_=6,w=7;function y(O,H){if(this.message=O,this.locator=H,Error.captureStackTrace)Error.captureStackTrace(this,y)}y.prototype=Error(),y.prototype.name=y.name;function h(){}h.prototype={parse:function(O,H,ee){var U=this.domBuilder;U.startDocument(),F(H,H={}),T(O,H,ee,U,this.errorHandler),U.endDocument()}};function T(O,H,ee,U,J){function D(N){if(N>65535){N-=65536;var M=55296+(N>>10),K=56320+(N&1023);return String.fromCharCode(M,K)}else return String.fromCharCode(N)}function te(N){var M=N.slice(1,-1);if(Object.hasOwnProperty.call(ee,M))return ee[M];else if(M.charAt(0)==="#")return D(parseInt(M.substr(1).replace("x","0x")));else return J.error("entity not found:"+N),N}function ye(N){if(N>pe){var M=O.substring(pe,N).replace(/&#?\w+;/g,te);Q&&se(pe),U.characters(M,0,N-pe),pe=N}}function se(N,M){while(N>=le&&(M=be.exec(O)))ve=M.index,le=ve+M[0].length,Q.lineNumber++;Q.columnNumber=N-ve+1}var ve=0,le=0,be=/.*(?:\r\n?|\n)|.*$/g,Q=U.locator,ne=[{currentNSMap:H}],Te={},pe=0;while(!0){try{var de=O.indexOf("<",pe);if(de<0){if(!O.substr(pe).match(/^\s*$/)){var Pe=U.doc,Be=Pe.createTextNode(O.substr(pe));Pe.appendChild(Be),U.currentElement=Be}return}if(de>pe)ye(de);switch(O.charAt(de+1)){case"/":var Y=O.indexOf(">",de+3),Ie=O.substring(de+2,Y).replace(/[ \t\n\r]+$/g,""),ke=ne.pop();if(Y<0)Ie=O.substring(de+2).replace(/[\s<].*/,""),J.error("end tag name: "+Ie+" is not complete:"+ke.tagName),Y=de+1+Ie.length;else if(Ie.match(/\s</))Ie=Ie.replace(/[\s<].*/,""),J.error("end tag name: "+Ie+" maybe not complete"),Y=de+1+Ie.length;var Ne=ke.localNSMap,Re=ke.tagName==Ie,We=Re||ke.tagName&&ke.tagName.toLowerCase()==Ie.toLowerCase();if(We){if(U.endElement(ke.uri,ke.localName,Ie),Ne){for(var Ae in Ne)if(Object.prototype.hasOwnProperty.call(Ne,Ae))U.endPrefixMapping(Ae)}if(!Re)J.fatalError("end tag name: "+Ie+" is not match the current start tagName:"+ke.tagName)}else ne.push(ke);Y++;break;case"?":Q&&se(de),Y=W(O,de,U);break;case"!":Q&&se(de),Y=A(O,de,U,J);break;default:Q&&se(de);var d=new S,q=ne[ne.length-1].currentNSMap,Y=n(O,de,d,q,te,J),j=d.length;if(!d.closed&&E(O,Y,d.tagName,Te)){if(d.closed=!0,!ee.nbsp)J.warning("unclosed xml attribute")}if(Q&&j){var f=x(Q,{});for(var r=0;r<j;r++){var s=d[r];se(s.offset),s.locator=x(Q,{})}if(U.locator=f,v(d,U,q))ne.push(d);U.locator=Q}else if(v(d,U,q))ne.push(d);if(z.isHTML(d.uri)&&!d.closed)Y=a(O,Y,d.tagName,te,U);else Y++}}catch(N){if(N instanceof y)throw N;J.error("element parse error: "+N),Y=-1}if(Y>pe)pe=Y;else ye(Math.max(de,pe)+1)}}function x(O,H){return H.lineNumber=O.lineNumber,H.columnNumber=O.columnNumber,H}function n(O,H,ee,U,J,D){function te(ne,Te,pe){if(ee.attributeNames.hasOwnProperty(ne))D.fatalError("Attribute "+ne+" redefined");ee.addValue(ne,Te.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,J),pe)}var ye,se,ve=++H,le=c;while(!0){var be=O.charAt(ve);switch(be){case"=":if(le===o)ye=O.slice(H,ve),le=t;else if(le===i)le=t;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(le===t||le===o){if(le===o)D.warning('attribute value must after "="'),ye=O.slice(H,ve);if(H=ve+1,ve=O.indexOf(be,H),ve>0)se=O.slice(H,ve),te(ye,se,H-1),le=g;else throw Error("attribute value no end '"+be+"' match")}else if(le==l)se=O.slice(H,ve),te(ye,se,H),D.warning('attribute "'+ye+'" missed start quot('+be+")!!"),H=ve+1,le=g;else throw Error('attribute value must after "="');break;case"/":switch(le){case c:ee.setTagName(O.slice(H,ve));case g:case _:case w:le=w,ee.closed=!0;case l:case o:case i:break;default:throw Error("attribute invalid close char('/')")}break;case"":if(D.error("unexpected end of input"),le==c)ee.setTagName(O.slice(H,ve));return ve;case">":switch(le){case c:ee.setTagName(O.slice(H,ve));case g:case _:case w:break;case l:case o:if(se=O.slice(H,ve),se.slice(-1)==="/")ee.closed=!0,se=se.slice(0,-1);case i:if(le===i)se=ye;if(le==l)D.warning('attribute "'+se+'" missed quot(")!'),te(ye,se,H);else{if(!z.isHTML(U[""])||!se.match(/^(?:disabled|checked|selected)$/i))D.warning('attribute "'+se+'" missed value!! "'+se+'" instead!!');te(se,se,H)}break;case t:throw Error("attribute value missed!!")}return ve;case"":be=" ";default:if(be<=" ")switch(le){case c:ee.setTagName(O.slice(H,ve)),le=_;break;case o:ye=O.slice(H,ve),le=i;break;case l:var se=O.slice(H,ve);D.warning('attribute "'+se+'" missed quot(")!!'),te(ye,se,H);case g:le=_;break}else switch(le){case i:var Q=ee.tagName;if(!z.isHTML(U[""])||!ye.match(/^(?:disabled|checked|selected)$/i))D.warning('attribute "'+ye+'" missed value!! "'+ye+'" instead2!!');te(ye,ye,H),H=ve,le=o;break;case g:D.warning('attribute space is required"'+ye+'"!!');case _:le=o,H=ve;break;case t:le=l,H=ve;break;case w:throw Error("elements closed character '/' and '>' must be connected to")}}ve++}}function v(O,H,ee){var U=O.tagName,J=null,be=O.length;while(be--){var D=O[be],te=D.qName,ye=D.value,Q=te.indexOf(":");if(Q>0)var se=D.prefix=te.slice(0,Q),ve=te.slice(Q+1),le=se==="xmlns"&&ve;else ve=te,se=null,le=te==="xmlns"&&"";if(D.localName=ve,le!==!1){if(J==null)J={},F(ee,ee={});ee[le]=J[le]=ye,D.uri=z.XMLNS,H.startPrefixMapping(le,ye)}}var be=O.length;while(be--){D=O[be];var se=D.prefix;if(se){if(se==="xml")D.uri=z.XML;if(se!=="xmlns")D.uri=ee[se||""]}}var Q=U.indexOf(":");if(Q>0)se=O.prefix=U.slice(0,Q),ve=O.localName=U.slice(Q+1);else se=null,ve=O.localName=U;var ne=O.uri=ee[se||""];if(H.startElement(ne,ve,U,O),O.closed){if(H.endElement(ne,ve,U),J){for(se in J)if(Object.prototype.hasOwnProperty.call(J,se))H.endPrefixMapping(se)}}else return O.currentNSMap=ee,O.localNSMap=J,!0}function a(O,H,ee,U,J){if(/^(?:script|textarea)$/i.test(ee)){var D=O.indexOf("</"+ee+">",H),te=O.substring(H+1,D);if(/[&<]/.test(te)){if(/^script$/i.test(ee))return J.characters(te,0,te.length),D;return te=te.replace(/&#?\w+;/g,U),J.characters(te,0,te.length),D}}return H+1}function E(O,H,ee,U){var J=U[ee];if(J==null){if(J=O.lastIndexOf("</"+ee+">"),J<H)J=O.lastIndexOf("</"+ee);U[ee]=J}return J<H}function F(O,H){for(var ee in O)if(Object.prototype.hasOwnProperty.call(O,ee))H[ee]=O[ee]}function A(O,H,ee,U){var J=O.charAt(H+2);switch(J){case"-":if(O.charAt(H+3)==="-"){var D=O.indexOf("-->",H+4);if(D>H)return ee.comment(O,H+4,D-H-4),D+3;else return U.error("Unclosed comment"),-1}else return-1;default:if(O.substr(H+3,6)=="CDATA["){var D=O.indexOf("]]>",H+9);return ee.startCDATA(),ee.characters(O,H+9,D-H-9),ee.endCDATA(),D+3}var te=P(O,H),ye=te.length;if(ye>1&&/!doctype/i.test(te[0][0])){var se=te[1][0],ve=!1,le=!1;if(ye>3){if(/^public$/i.test(te[2][0]))ve=te[3][0],le=ye>4&&te[4][0];else if(/^system$/i.test(te[2][0]))le=te[3][0]}var be=te[ye-1];return ee.startDTD(se,ve,le),ee.endDTD(),be.index+be[0].length}}return-1}function W(O,H,ee){var U=O.indexOf("?>",H);if(U){var J=O.substring(H,U).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(J){var D=J[0].length;return ee.processingInstruction(J[1],J[2]),U+2}else return-1}return-1}function S(){this.attributeNames={}}S.prototype={setTagName:function(O){if(!k.test(O))throw Error("invalid tagName:"+O);this.tagName=O},addValue:function(O,H,ee){if(!k.test(O))throw Error("invalid attribute:"+O);this.attributeNames[O]=this.length,this[this.length++]={qName:O,value:H,offset:ee}},length:0,getLocalName:function(O){return this[O].localName},getLocator:function(O){return this[O].locator},getQName:function(O){return this[O].qName},getURI:function(O){return this[O].uri},getValue:function(O){return this[O].value}};function P(O,H){var ee,U=[],J=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;J.lastIndex=H,J.exec(O);while(ee=J.exec(O))if(U.push(ee),ee[1])return U}L.XMLReader=h,L.ParseError=y},{"./conventions":41}],47:[function(X,ce,L){L.byteLength=t,L.toByteArray=g,L.fromByteArray=y;var z=[],I=[],p=typeof Uint8Array<"u"?Uint8Array:Array,k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var c=0,o=k.length;c<o;++c)z[c]=k[c],I[k.charCodeAt(c)]=c;I[45]=62,I[95]=63;function i(h){var T=h.length;if(T%4>0)throw Error("Invalid string. Length must be a multiple of 4");var x=h.indexOf("=");if(x===-1)x=T;var n=x===T?0:4-x%4;return[x,n]}function t(h){var T=i(h),x=T[0],n=T[1];return(x+n)*3/4-n}function l(h,T,x){return(T+x)*3/4-x}function g(h){var T,x=i(h),n=x[0],v=x[1],a=new p(l(h,n,v)),E=0,F=v>0?n-4:n,A;for(A=0;A<F;A+=4)T=I[h.charCodeAt(A)]<<18|I[h.charCodeAt(A+1)]<<12|I[h.charCodeAt(A+2)]<<6|I[h.charCodeAt(A+3)],a[E++]=T>>16&255,a[E++]=T>>8&255,a[E++]=T&255;if(v===2)T=I[h.charCodeAt(A)]<<2|I[h.charCodeAt(A+1)]>>4,a[E++]=T&255;if(v===1)T=I[h.charCodeAt(A)]<<10|I[h.charCodeAt(A+1)]<<4|I[h.charCodeAt(A+2)]>>2,a[E++]=T>>8&255,a[E++]=T&255;return a}function _(h){return z[h>>18&63]+z[h>>12&63]+z[h>>6&63]+z[h&63]}function w(h,T,x){var n,v=[];for(var a=T;a<x;a+=3)n=(h[a]<<16&16711680)+(h[a+1]<<8&65280)+(h[a+2]&255),v.push(_(n));return v.join("")}function y(h){var T,x=h.length,n=x%3,v=[],a=16383;for(var E=0,F=x-n;E<F;E+=a)v.push(w(h,E,E+a>F?F:E+a));if(n===1)T=h[x-1],v.push(z[T>>2]+z[T<<4&63]+"==");else if(n===2)T=(h[x-2]<<8)+h[x-1],v.push(z[T>>10]+z[T>>4&63]+z[T<<2&63]+"=");return v.join("")}},{}],48:[function(X,ce,L){(function(z){/*!
|
|
24
|
+
* The buffer module from node.js, for the browser.
|
|
25
|
+
*
|
|
26
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
27
|
+
* @license MIT
|
|
28
|
+
*/var I=X("base64-js"),p=X("ieee754"),k=X("isarray");L.Buffer=t,L.SlowBuffer=v,L.INSPECT_MAX_BYTES=50,t.TYPED_ARRAY_SUPPORT=z.TYPED_ARRAY_SUPPORT!==void 0?z.TYPED_ARRAY_SUPPORT:c(),L.kMaxLength=o();function c(){try{var f=new Uint8Array(1);return f.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},f.foo()===42&&typeof f.subarray==="function"&&f.subarray(1,1).byteLength===0}catch(r){return!1}}function o(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(f,r){if(o()<r)throw RangeError("Invalid typed array length");if(t.TYPED_ARRAY_SUPPORT)f=new Uint8Array(r),f.__proto__=t.prototype;else{if(f===null)f=new t(r);f.length=r}return f}function t(f,r,s){if(!t.TYPED_ARRAY_SUPPORT&&!(this instanceof t))return new t(f,r,s);if(typeof f==="number"){if(typeof r==="string")throw Error("If encoding is specified then the first argument must be a string");return w(this,f)}return l(this,f,r,s)}t.poolSize=8192,t._augment=function(f){return f.__proto__=t.prototype,f};function l(f,r,s,N){if(typeof r==="number")throw TypeError('"value" argument must not be a number');if(typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer)return T(f,r,s,N);if(typeof r==="string")return y(f,r,s);return x(f,r)}if(t.from=function(f,r,s){return l(null,f,r,s)},t.TYPED_ARRAY_SUPPORT){if(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&t[Symbol.species]===t)Object.defineProperty(t,Symbol.species,{value:null,configurable:!0})}function g(f){if(typeof f!=="number")throw TypeError('"size" argument must be a number');else if(f<0)throw RangeError('"size" argument must not be negative')}function _(f,r,s,N){if(g(r),r<=0)return i(f,r);if(s!==void 0)return typeof N==="string"?i(f,r).fill(s,N):i(f,r).fill(s);return i(f,r)}t.alloc=function(f,r,s){return _(null,f,r,s)};function w(f,r){if(g(r),f=i(f,r<0?0:n(r)|0),!t.TYPED_ARRAY_SUPPORT)for(var s=0;s<r;++s)f[s]=0;return f}t.allocUnsafe=function(f){return w(null,f)},t.allocUnsafeSlow=function(f){return w(null,f)};function y(f,r,s){if(typeof s!=="string"||s==="")s="utf8";if(!t.isEncoding(s))throw TypeError('"encoding" must be a valid string encoding');var N=a(r,s)|0;f=i(f,N);var M=f.write(r,s);if(M!==N)f=f.slice(0,M);return f}function h(f,r){var s=r.length<0?0:n(r.length)|0;f=i(f,s);for(var N=0;N<s;N+=1)f[N]=r[N]&255;return f}function T(f,r,s,N){if(r.byteLength,s<0||r.byteLength<s)throw RangeError("'offset' is out of bounds");if(r.byteLength<s+(N||0))throw RangeError("'length' is out of bounds");if(s===void 0&&N===void 0)r=new Uint8Array(r);else if(N===void 0)r=new Uint8Array(r,s);else r=new Uint8Array(r,s,N);if(t.TYPED_ARRAY_SUPPORT)f=r,f.__proto__=t.prototype;else f=h(f,r);return f}function x(f,r){if(t.isBuffer(r)){var s=n(r.length)|0;if(f=i(f,s),f.length===0)return f;return r.copy(f,0,0,s),f}if(r){if(typeof ArrayBuffer<"u"&&r.buffer instanceof ArrayBuffer||"length"in r){if(typeof r.length!=="number"||j(r.length))return i(f,0);return h(f,r)}if(r.type==="Buffer"&&k(r.data))return h(f,r.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function n(f){if(f>=o())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return f|0}function v(f){if(+f!=f)f=0;return t.alloc(+f)}t.isBuffer=function(r){return!!(r!=null&&r._isBuffer)},t.compare=function(r,s){if(!t.isBuffer(r)||!t.isBuffer(s))throw TypeError("Arguments must be Buffers");if(r===s)return 0;var N=r.length,M=s.length;for(var K=0,ie=Math.min(N,M);K<ie;++K)if(r[K]!==s[K]){N=r[K],M=s[K];break}if(N<M)return-1;if(M<N)return 1;return 0},t.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(r,s){if(!k(r))throw TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return t.alloc(0);var N;if(s===void 0){s=0;for(N=0;N<r.length;++N)s+=r[N].length}var M=t.allocUnsafe(s),K=0;for(N=0;N<r.length;++N){var ie=r[N];if(!t.isBuffer(ie))throw TypeError('"list" argument must be an Array of Buffers');ie.copy(M,K),K+=ie.length}return M};function a(f,r){if(t.isBuffer(f))return f.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView==="function"&&(ArrayBuffer.isView(f)||f instanceof ArrayBuffer))return f.byteLength;if(typeof f!=="string")f=""+f;var s=f.length;if(s===0)return 0;var N=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return s;case"utf8":case"utf-8":case void 0:return We(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s*2;case"hex":return s>>>1;case"base64":return q(f).length;default:if(N)return We(f).length;r=(""+r).toLowerCase(),N=!0}}t.byteLength=a;function E(f,r,s){var N=!1;if(r===void 0||r<0)r=0;if(r>this.length)return"";if(s===void 0||s>this.length)s=this.length;if(s<=0)return"";if(s>>>=0,r>>>=0,s<=r)return"";if(!f)f="utf8";while(!0)switch(f){case"hex":return le(this,r,s);case"utf8":case"utf-8":return D(this,r,s);case"ascii":return se(this,r,s);case"latin1":case"binary":return ve(this,r,s);case"base64":return J(this,r,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,r,s);default:if(N)throw TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),N=!0}}t.prototype._isBuffer=!0;function F(f,r,s){var N=f[r];f[r]=f[s],f[s]=N}t.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var s=0;s<r;s+=2)F(this,s,s+1);return this},t.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var s=0;s<r;s+=4)F(this,s,s+3),F(this,s+1,s+2);return this},t.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var s=0;s<r;s+=8)F(this,s,s+7),F(this,s+1,s+6),F(this,s+2,s+5),F(this,s+3,s+4);return this},t.prototype.toString=function(){var r=this.length|0;if(r===0)return"";if(arguments.length===0)return D(this,0,r);return E.apply(this,arguments)},t.prototype.equals=function(r){if(!t.isBuffer(r))throw TypeError("Argument must be a Buffer");if(this===r)return!0;return t.compare(this,r)===0},t.prototype.inspect=function(){var r="",s=L.INSPECT_MAX_BYTES;if(this.length>0){if(r=this.toString("hex",0,s).match(/.{2}/g).join(" "),this.length>s)r+=" ... "}return"<Buffer "+r+">"},t.prototype.compare=function(r,s,N,M,K){if(!t.isBuffer(r))throw TypeError("Argument must be a Buffer");if(s===void 0)s=0;if(N===void 0)N=r?r.length:0;if(M===void 0)M=0;if(K===void 0)K=this.length;if(s<0||N>r.length||M<0||K>this.length)throw RangeError("out of range index");if(M>=K&&s>=N)return 0;if(M>=K)return-1;if(s>=N)return 1;if(s>>>=0,N>>>=0,M>>>=0,K>>>=0,this===r)return 0;var ie=K-M,ue=N-s,we=Math.min(ie,ue),Se=this.slice(M,K),_e=r.slice(s,N);for(var Fe=0;Fe<we;++Fe)if(Se[Fe]!==_e[Fe]){ie=Se[Fe],ue=_e[Fe];break}if(ie<ue)return-1;if(ue<ie)return 1;return 0};function A(f,r,s,N,M){if(f.length===0)return-1;if(typeof s==="string")N=s,s=0;else if(s>2147483647)s=2147483647;else if(s<-2147483648)s=-2147483648;if(s=+s,isNaN(s))s=M?0:f.length-1;if(s<0)s=f.length+s;if(s>=f.length)if(M)return-1;else s=f.length-1;else if(s<0)if(M)s=0;else return-1;if(typeof r==="string")r=t.from(r,N);if(t.isBuffer(r)){if(r.length===0)return-1;return W(f,r,s,N,M)}else if(typeof r==="number"){if(r=r&255,t.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==="function")if(M)return Uint8Array.prototype.indexOf.call(f,r,s);else return Uint8Array.prototype.lastIndexOf.call(f,r,s);return W(f,[r],s,N,M)}throw TypeError("val must be string, number or Buffer")}function W(f,r,s,N,M){var K=1,ie=f.length,ue=r.length;if(N!==void 0){if(N=String(N).toLowerCase(),N==="ucs2"||N==="ucs-2"||N==="utf16le"||N==="utf-16le"){if(f.length<2||r.length<2)return-1;K=2,ie/=2,ue/=2,s/=2}}function we(He,Qe){if(K===1)return He[Qe];else return He.readUInt16BE(Qe*K)}var Se;if(M){var _e=-1;for(Se=s;Se<ie;Se++)if(we(f,Se)===we(r,_e===-1?0:Se-_e)){if(_e===-1)_e=Se;if(Se-_e+1===ue)return _e*K}else{if(_e!==-1)Se-=Se-_e;_e=-1}}else{if(s+ue>ie)s=ie-ue;for(Se=s;Se>=0;Se--){var Fe=!0;for(var Ze=0;Ze<ue;Ze++)if(we(f,Se+Ze)!==we(r,Ze)){Fe=!1;break}if(Fe)return Se}}return-1}t.prototype.includes=function(r,s,N){return this.indexOf(r,s,N)!==-1},t.prototype.indexOf=function(r,s,N){return A(this,r,s,N,!0)},t.prototype.lastIndexOf=function(r,s,N){return A(this,r,s,N,!1)};function S(f,r,s,N){s=Number(s)||0;var M=f.length-s;if(!N)N=M;else if(N=Number(N),N>M)N=M;var K=r.length;if(K%2!==0)throw TypeError("Invalid hex string");if(N>K/2)N=K/2;for(var ie=0;ie<N;++ie){var ue=parseInt(r.substr(ie*2,2),16);if(isNaN(ue))return ie;f[s+ie]=ue}return ie}function P(f,r,s,N){return Y(We(r,f.length-s),f,s,N)}function O(f,r,s,N){return Y(Ae(r),f,s,N)}function H(f,r,s,N){return O(f,r,s,N)}function ee(f,r,s,N){return Y(q(r),f,s,N)}function U(f,r,s,N){return Y(d(r,f.length-s),f,s,N)}t.prototype.write=function(r,s,N,M){if(s===void 0)M="utf8",N=this.length,s=0;else if(N===void 0&&typeof s==="string")M=s,N=this.length,s=0;else if(isFinite(s))if(s=s|0,isFinite(N)){if(N=N|0,M===void 0)M="utf8"}else M=N,N=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var K=this.length-s;if(N===void 0||N>K)N=K;if(r.length>0&&(N<0||s<0)||s>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!M)M="utf8";var ie=!1;for(;;)switch(M){case"hex":return S(this,r,s,N);case"utf8":case"utf-8":return P(this,r,s,N);case"ascii":return O(this,r,s,N);case"latin1":case"binary":return H(this,r,s,N);case"base64":return ee(this,r,s,N);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,r,s,N);default:if(ie)throw TypeError("Unknown encoding: "+M);M=(""+M).toLowerCase(),ie=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function J(f,r,s){if(r===0&&s===f.length)return I.fromByteArray(f);else return I.fromByteArray(f.slice(r,s))}function D(f,r,s){s=Math.min(f.length,s);var N=[],M=r;while(M<s){var K=f[M],ie=null,ue=K>239?4:K>223?3:K>191?2:1;if(M+ue<=s){var we,Se,_e,Fe;switch(ue){case 1:if(K<128)ie=K;break;case 2:if(we=f[M+1],(we&192)===128){if(Fe=(K&31)<<6|we&63,Fe>127)ie=Fe}break;case 3:if(we=f[M+1],Se=f[M+2],(we&192)===128&&(Se&192)===128){if(Fe=(K&15)<<12|(we&63)<<6|Se&63,Fe>2047&&(Fe<55296||Fe>57343))ie=Fe}break;case 4:if(we=f[M+1],Se=f[M+2],_e=f[M+3],(we&192)===128&&(Se&192)===128&&(_e&192)===128){if(Fe=(K&15)<<18|(we&63)<<12|(Se&63)<<6|_e&63,Fe>65535&&Fe<1114112)ie=Fe}}}if(ie===null)ie=65533,ue=1;else if(ie>65535)ie-=65536,N.push(ie>>>10&1023|55296),ie=56320|ie&1023;N.push(ie),M+=ue}return ye(N)}var te=4096;function ye(f){var r=f.length;if(r<=te)return String.fromCharCode.apply(String,f);var s="",N=0;while(N<r)s+=String.fromCharCode.apply(String,f.slice(N,N+=te));return s}function se(f,r,s){var N="";s=Math.min(f.length,s);for(var M=r;M<s;++M)N+=String.fromCharCode(f[M]&127);return N}function ve(f,r,s){var N="";s=Math.min(f.length,s);for(var M=r;M<s;++M)N+=String.fromCharCode(f[M]);return N}function le(f,r,s){var N=f.length;if(!r||r<0)r=0;if(!s||s<0||s>N)s=N;var M="";for(var K=r;K<s;++K)M+=Re(f[K]);return M}function be(f,r,s){var N=f.slice(r,s),M="";for(var K=0;K<N.length;K+=2)M+=String.fromCharCode(N[K]+N[K+1]*256);return M}t.prototype.slice=function(r,s){var N=this.length;if(r=~~r,s=s===void 0?N:~~s,r<0){if(r+=N,r<0)r=0}else if(r>N)r=N;if(s<0){if(s+=N,s<0)s=0}else if(s>N)s=N;if(s<r)s=r;var M;if(t.TYPED_ARRAY_SUPPORT)M=this.subarray(r,s),M.__proto__=t.prototype;else{var K=s-r;M=new t(K,void 0);for(var ie=0;ie<K;++ie)M[ie]=this[ie+r]}return M};function Q(f,r,s){if(f%1!==0||f<0)throw RangeError("offset is not uint");if(f+r>s)throw RangeError("Trying to access beyond buffer length")}t.prototype.readUIntLE=function(r,s,N){if(r=r|0,s=s|0,!N)Q(r,s,this.length);var M=this[r],K=1,ie=0;while(++ie<s&&(K*=256))M+=this[r+ie]*K;return M},t.prototype.readUIntBE=function(r,s,N){if(r=r|0,s=s|0,!N)Q(r,s,this.length);var M=this[r+--s],K=1;while(s>0&&(K*=256))M+=this[r+--s]*K;return M},t.prototype.readUInt8=function(r,s){if(!s)Q(r,1,this.length);return this[r]},t.prototype.readUInt16LE=function(r,s){if(!s)Q(r,2,this.length);return this[r]|this[r+1]<<8},t.prototype.readUInt16BE=function(r,s){if(!s)Q(r,2,this.length);return this[r]<<8|this[r+1]},t.prototype.readUInt32LE=function(r,s){if(!s)Q(r,4,this.length);return(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},t.prototype.readUInt32BE=function(r,s){if(!s)Q(r,4,this.length);return this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},t.prototype.readIntLE=function(r,s,N){if(r=r|0,s=s|0,!N)Q(r,s,this.length);var M=this[r],K=1,ie=0;while(++ie<s&&(K*=256))M+=this[r+ie]*K;if(K*=128,M>=K)M-=Math.pow(2,8*s);return M},t.prototype.readIntBE=function(r,s,N){if(r=r|0,s=s|0,!N)Q(r,s,this.length);var M=s,K=1,ie=this[r+--M];while(M>0&&(K*=256))ie+=this[r+--M]*K;if(K*=128,ie>=K)ie-=Math.pow(2,8*s);return ie},t.prototype.readInt8=function(r,s){if(!s)Q(r,1,this.length);if(!(this[r]&128))return this[r];return(255-this[r]+1)*-1},t.prototype.readInt16LE=function(r,s){if(!s)Q(r,2,this.length);var N=this[r]|this[r+1]<<8;return N&32768?N|4294901760:N},t.prototype.readInt16BE=function(r,s){if(!s)Q(r,2,this.length);var N=this[r+1]|this[r]<<8;return N&32768?N|4294901760:N},t.prototype.readInt32LE=function(r,s){if(!s)Q(r,4,this.length);return this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},t.prototype.readInt32BE=function(r,s){if(!s)Q(r,4,this.length);return this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},t.prototype.readFloatLE=function(r,s){if(!s)Q(r,4,this.length);return p.read(this,r,!0,23,4)},t.prototype.readFloatBE=function(r,s){if(!s)Q(r,4,this.length);return p.read(this,r,!1,23,4)},t.prototype.readDoubleLE=function(r,s){if(!s)Q(r,8,this.length);return p.read(this,r,!0,52,8)},t.prototype.readDoubleBE=function(r,s){if(!s)Q(r,8,this.length);return p.read(this,r,!1,52,8)};function ne(f,r,s,N,M,K){if(!t.isBuffer(f))throw TypeError('"buffer" argument must be a Buffer instance');if(r>M||r<K)throw RangeError('"value" argument is out of bounds');if(s+N>f.length)throw RangeError("Index out of range")}t.prototype.writeUIntLE=function(r,s,N,M){if(r=+r,s=s|0,N=N|0,!M){var K=Math.pow(2,8*N)-1;ne(this,r,s,N,K,0)}var ie=1,ue=0;this[s]=r&255;while(++ue<N&&(ie*=256))this[s+ue]=r/ie&255;return s+N},t.prototype.writeUIntBE=function(r,s,N,M){if(r=+r,s=s|0,N=N|0,!M){var K=Math.pow(2,8*N)-1;ne(this,r,s,N,K,0)}var ie=N-1,ue=1;this[s+ie]=r&255;while(--ie>=0&&(ue*=256))this[s+ie]=r/ue&255;return s+N},t.prototype.writeUInt8=function(r,s,N){if(r=+r,s=s|0,!N)ne(this,r,s,1,255,0);if(!t.TYPED_ARRAY_SUPPORT)r=Math.floor(r);return this[s]=r&255,s+1};function Te(f,r,s,N){if(r<0)r=65535+r+1;for(var M=0,K=Math.min(f.length-s,2);M<K;++M)f[s+M]=(r&255<<8*(N?M:1-M))>>>(N?M:1-M)*8}t.prototype.writeUInt16LE=function(r,s,N){if(r=+r,s=s|0,!N)ne(this,r,s,2,65535,0);if(t.TYPED_ARRAY_SUPPORT)this[s]=r&255,this[s+1]=r>>>8;else Te(this,r,s,!0);return s+2},t.prototype.writeUInt16BE=function(r,s,N){if(r=+r,s=s|0,!N)ne(this,r,s,2,65535,0);if(t.TYPED_ARRAY_SUPPORT)this[s]=r>>>8,this[s+1]=r&255;else Te(this,r,s,!1);return s+2};function pe(f,r,s,N){if(r<0)r=4294967295+r+1;for(var M=0,K=Math.min(f.length-s,4);M<K;++M)f[s+M]=r>>>(N?M:3-M)*8&255}t.prototype.writeUInt32LE=function(r,s,N){if(r=+r,s=s|0,!N)ne(this,r,s,4,4294967295,0);if(t.TYPED_ARRAY_SUPPORT)this[s+3]=r>>>24,this[s+2]=r>>>16,this[s+1]=r>>>8,this[s]=r&255;else pe(this,r,s,!0);return s+4},t.prototype.writeUInt32BE=function(r,s,N){if(r=+r,s=s|0,!N)ne(this,r,s,4,4294967295,0);if(t.TYPED_ARRAY_SUPPORT)this[s]=r>>>24,this[s+1]=r>>>16,this[s+2]=r>>>8,this[s+3]=r&255;else pe(this,r,s,!1);return s+4},t.prototype.writeIntLE=function(r,s,N,M){if(r=+r,s=s|0,!M){var K=Math.pow(2,8*N-1);ne(this,r,s,N,K-1,-K)}var ie=0,ue=1,we=0;this[s]=r&255;while(++ie<N&&(ue*=256)){if(r<0&&we===0&&this[s+ie-1]!==0)we=1;this[s+ie]=(r/ue>>0)-we&255}return s+N},t.prototype.writeIntBE=function(r,s,N,M){if(r=+r,s=s|0,!M){var K=Math.pow(2,8*N-1);ne(this,r,s,N,K-1,-K)}var ie=N-1,ue=1,we=0;this[s+ie]=r&255;while(--ie>=0&&(ue*=256)){if(r<0&&we===0&&this[s+ie+1]!==0)we=1;this[s+ie]=(r/ue>>0)-we&255}return s+N},t.prototype.writeInt8=function(r,s,N){if(r=+r,s=s|0,!N)ne(this,r,s,1,127,-128);if(!t.TYPED_ARRAY_SUPPORT)r=Math.floor(r);if(r<0)r=255+r+1;return this[s]=r&255,s+1},t.prototype.writeInt16LE=function(r,s,N){if(r=+r,s=s|0,!N)ne(this,r,s,2,32767,-32768);if(t.TYPED_ARRAY_SUPPORT)this[s]=r&255,this[s+1]=r>>>8;else Te(this,r,s,!0);return s+2},t.prototype.writeInt16BE=function(r,s,N){if(r=+r,s=s|0,!N)ne(this,r,s,2,32767,-32768);if(t.TYPED_ARRAY_SUPPORT)this[s]=r>>>8,this[s+1]=r&255;else Te(this,r,s,!1);return s+2},t.prototype.writeInt32LE=function(r,s,N){if(r=+r,s=s|0,!N)ne(this,r,s,4,2147483647,-2147483648);if(t.TYPED_ARRAY_SUPPORT)this[s]=r&255,this[s+1]=r>>>8,this[s+2]=r>>>16,this[s+3]=r>>>24;else pe(this,r,s,!0);return s+4},t.prototype.writeInt32BE=function(r,s,N){if(r=+r,s=s|0,!N)ne(this,r,s,4,2147483647,-2147483648);if(r<0)r=4294967295+r+1;if(t.TYPED_ARRAY_SUPPORT)this[s]=r>>>24,this[s+1]=r>>>16,this[s+2]=r>>>8,this[s+3]=r&255;else pe(this,r,s,!1);return s+4};function de(f,r,s,N,M,K){if(s+N>f.length)throw RangeError("Index out of range");if(s<0)throw RangeError("Index out of range")}function Pe(f,r,s,N,M){if(!M)de(f,r,s,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return p.write(f,r,s,N,23,4),s+4}t.prototype.writeFloatLE=function(r,s,N){return Pe(this,r,s,!0,N)},t.prototype.writeFloatBE=function(r,s,N){return Pe(this,r,s,!1,N)};function Be(f,r,s,N,M){if(!M)de(f,r,s,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return p.write(f,r,s,N,52,8),s+8}t.prototype.writeDoubleLE=function(r,s,N){return Be(this,r,s,!0,N)},t.prototype.writeDoubleBE=function(r,s,N){return Be(this,r,s,!1,N)},t.prototype.copy=function(r,s,N,M){if(!N)N=0;if(!M&&M!==0)M=this.length;if(s>=r.length)s=r.length;if(!s)s=0;if(M>0&&M<N)M=N;if(M===N)return 0;if(r.length===0||this.length===0)return 0;if(s<0)throw RangeError("targetStart out of bounds");if(N<0||N>=this.length)throw RangeError("sourceStart out of bounds");if(M<0)throw RangeError("sourceEnd out of bounds");if(M>this.length)M=this.length;if(r.length-s<M-N)M=r.length-s+N;var K=M-N,ie;if(this===r&&N<s&&s<M)for(ie=K-1;ie>=0;--ie)r[ie+s]=this[ie+N];else if(K<1000||!t.TYPED_ARRAY_SUPPORT)for(ie=0;ie<K;++ie)r[ie+s]=this[ie+N];else Uint8Array.prototype.set.call(r,this.subarray(N,N+K),s);return K},t.prototype.fill=function(r,s,N,M){if(typeof r==="string"){if(typeof s==="string")M=s,s=0,N=this.length;else if(typeof N==="string")M=N,N=this.length;if(r.length===1){var K=r.charCodeAt(0);if(K<256)r=K}if(M!==void 0&&typeof M!=="string")throw TypeError("encoding must be a string");if(typeof M==="string"&&!t.isEncoding(M))throw TypeError("Unknown encoding: "+M)}else if(typeof r==="number")r=r&255;if(s<0||this.length<s||this.length<N)throw RangeError("Out of range index");if(N<=s)return this;if(s=s>>>0,N=N===void 0?this.length:N>>>0,!r)r=0;var ie;if(typeof r==="number")for(ie=s;ie<N;++ie)this[ie]=r;else{var ue=t.isBuffer(r)?r:We(new t(r,M).toString()),we=ue.length;for(ie=0;ie<N-s;++ie)this[ie+s]=ue[ie%we]}return this};var Ie=/[^+\/0-9A-Za-z-_]/g;function ke(f){if(f=Ne(f).replace(Ie,""),f.length<2)return"";while(f.length%4!==0)f=f+"=";return f}function Ne(f){if(f.trim)return f.trim();return f.replace(/^\s+|\s+$/g,"")}function Re(f){if(f<16)return"0"+f.toString(16);return f.toString(16)}function We(f,r){r=r||1/0;var s,N=f.length,M=null,K=[];for(var ie=0;ie<N;++ie){if(s=f.charCodeAt(ie),s>55295&&s<57344){if(!M){if(s>56319){if((r-=3)>-1)K.push(239,191,189);continue}else if(ie+1===N){if((r-=3)>-1)K.push(239,191,189);continue}M=s;continue}if(s<56320){if((r-=3)>-1)K.push(239,191,189);M=s;continue}s=(M-55296<<10|s-56320)+65536}else if(M){if((r-=3)>-1)K.push(239,191,189)}if(M=null,s<128){if((r-=1)<0)break;K.push(s)}else if(s<2048){if((r-=2)<0)break;K.push(s>>6|192,s&63|128)}else if(s<65536){if((r-=3)<0)break;K.push(s>>12|224,s>>6&63|128,s&63|128)}else if(s<1114112){if((r-=4)<0)break;K.push(s>>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else throw Error("Invalid code point")}return K}function Ae(f){var r=[];for(var s=0;s<f.length;++s)r.push(f.charCodeAt(s)&255);return r}function d(f,r){var s,N,M,K=[];for(var ie=0;ie<f.length;++ie){if((r-=2)<0)break;s=f.charCodeAt(ie),N=s>>8,M=s%256,K.push(M),K.push(N)}return K}function q(f){return I.toByteArray(ke(f))}function Y(f,r,s,N){for(var M=0;M<N;++M){if(M+s>=r.length||M>=f.length)break;r[M+s]=f[M]}return M}function j(f){return f!==f}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{"base64-js":47,ieee754:51,isarray:52}],49:[function(X,ce,L){Object.defineProperty(L,"__esModule",{value:!0});var z={SYMBOL:{32:32,33:33,34:8704,35:35,36:8707,37:37,38:38,39:8717,40:40,41:41,42:42,43:43,44:44,45:8722,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:8773,65:913,66:914,67:935,68:916,69:917,70:934,71:915,72:919,73:921,74:977,75:922,76:923,77:924,78:925,79:927,80:928,81:920,82:929,83:931,84:932,85:933,86:962,87:937,88:926,89:936,90:918,91:91,92:8756,93:93,94:8869,95:95,96:8254,97:945,98:946,99:967,100:948,101:949,102:966,103:947,104:951,105:953,106:981,107:954,108:955,109:956,110:957,111:959,112:960,113:952,114:961,115:963,116:964,117:965,118:982,119:969,120:958,121:968,122:950,123:123,124:124,125:125,126:126,160:8364,161:978,162:8242,163:8804,164:8260,165:8734,166:402,167:9827,168:9830,169:9829,170:9824,171:8596,172:8592,173:8593,174:8594,175:8595,176:176,177:177,178:8243,179:8805,180:215,181:8733,182:8706,183:8226,184:247,185:8800,186:8801,187:8776,188:8230,189:9168,190:9135,191:8629,192:8501,193:8465,194:8476,195:8472,196:8855,197:8853,198:8709,199:8745,200:8746,201:8835,202:8839,203:8836,204:8834,205:8838,206:8712,207:8713,208:8736,209:8711,210:174,211:169,212:8482,213:8719,214:8730,215:8901,216:172,217:8743,218:8744,219:8660,220:8656,221:8657,222:8658,223:8659,224:9674,225:12296,226:174,227:169,228:8482,229:8721,230:9115,231:9116,232:9117,233:9121,234:9122,235:9123,236:9127,237:9128,238:9129,239:9130,240:63743,241:12297,242:8747,243:8992,244:9134,245:8993,246:9118,247:9119,248:9120,249:9124,250:9125,251:9126,252:9131,253:9132,254:9133},WEBDINGS:{32:32,33:128375,34:128376,35:128370,36:128374,37:127942,38:127894,39:128391,40:128488,41:128489,42:128496,43:128497,44:127798,45:127895,46:128638,47:128636,48:128469,49:128470,50:128471,51:9204,52:9205,53:9206,54:9207,55:9194,56:9193,57:9198,58:9197,59:9208,60:9209,61:9210,62:128474,63:128499,64:128736,65:127959,66:127960,67:127961,68:127962,69:127964,70:127981,71:127963,72:127968,73:127958,74:127965,75:128739,76:128269,77:127956,78:128065,79:128066,80:127966,81:127957,82:128740,83:127967,84:128755,85:128364,86:128363,87:128360,88:128264,89:127892,90:127893,91:128492,92:128637,93:128493,94:128490,95:128491,96:11156,97:10004,98:128690,99:11036,100:128737,101:128230,102:128753,103:11035,104:128657,105:128712,106:128745,107:128752,108:128968,109:128372,110:11044,111:128741,112:128660,113:128472,114:128473,115:10067,116:128754,117:128647,118:128653,119:9971,120:10680,121:8854,122:128685,123:128494,124:9168,125:128495,126:128498,128:128697,129:128698,130:128713,131:128714,132:128700,133:128125,134:127947,135:9975,136:127938,137:127948,138:127946,139:127940,140:127949,141:127950,142:128664,143:128480,144:128738,145:128176,146:127991,147:128179,148:128106,149:128481,150:128482,151:128483,152:10031,153:128388,154:128389,155:128387,156:128390,157:128441,158:128442,159:128443,160:128373,161:128368,162:128445,163:128446,164:128203,165:128466,166:128467,167:128366,168:128218,169:128478,170:128479,171:128451,172:128450,173:128444,174:127917,175:127900,176:127896,177:127897,178:127911,179:128191,180:127902,181:128247,182:127903,183:127916,184:128253,185:128249,186:128254,187:128251,188:127898,189:127899,190:128250,191:128187,192:128421,193:128422,194:128423,195:128377,196:127918,197:128379,198:128380,199:128223,200:128385,201:128384,202:128424,203:128425,204:128447,205:128426,206:128476,207:128274,208:128275,209:128477,210:128229,211:128228,212:128371,213:127779,214:127780,215:127781,216:127782,217:9729,218:127784,219:127783,220:127785,221:127786,222:127788,223:127787,224:127772,225:127777,226:128715,227:128719,228:127869,229:127864,230:128718,231:128717,232:9413,233:9855,234:128710,235:128392,236:127891,237:128484,238:128485,239:128486,240:128487,241:128746,242:128063,243:128038,244:128031,245:128021,246:128008,247:128620,248:128622,249:128621,250:128623,251:128506,252:127757,253:127759,254:127758,255:128330},WINGDINGS:{32:32,33:128393,34:9986,35:9985,36:128083,37:128365,38:128366,39:128367,40:128383,41:9990,42:128386,43:128387,44:128234,45:128235,46:128236,47:128237,48:128448,49:128449,50:128462,51:128463,52:128464,53:128452,54:8987,55:128430,56:128432,57:128434,58:128435,59:128436,60:128427,61:128428,62:9991,63:9997,64:128398,65:9996,66:128399,67:128077,68:128078,69:9756,70:9758,71:9757,72:9759,73:128400,74:9786,75:128528,76:9785,77:128163,78:128369,79:127987,80:127985,81:9992,82:9788,83:127778,84:10052,85:128326,86:10014,87:128328,88:10016,89:10017,90:9770,91:9775,92:128329,93:9784,94:9800,95:9801,96:9802,97:9803,98:9804,99:9805,100:9806,101:9807,102:9808,103:9809,104:9810,105:9811,106:128624,107:128629,108:9899,109:128318,110:9724,111:128911,112:128912,113:10065,114:10066,115:128927,116:10731,117:9670,118:10070,119:11049,120:8999,121:11193,122:8984,123:127989,124:127990,125:128630,126:128631,127:9647,128:127243,129:10112,130:10113,131:10114,132:10115,133:10116,134:10117,135:10118,136:10119,137:10120,138:10121,139:127244,140:10122,141:10123,142:10124,143:10125,144:10126,145:10127,146:10128,147:10129,148:10130,149:10131,150:128610,151:128608,152:128609,153:128611,154:128606,155:128604,156:128605,157:128607,158:8729,159:8226,160:11037,161:11096,162:128902,163:128904,164:128906,165:128907,166:128319,167:9642,168:128910,169:128961,170:128965,171:9733,172:128971,173:128975,174:128979,175:128977,176:11216,177:8982,178:11214,179:11215,180:11217,181:10026,182:10032,183:128336,184:128337,185:128338,186:128339,187:128340,188:128341,189:128342,190:128343,191:128344,192:128345,193:128346,194:128347,195:11184,196:11185,197:11186,198:11187,199:11188,200:11189,201:11190,202:11191,203:128618,204:128619,205:128597,206:128596,207:128599,208:128598,209:128592,210:128593,211:128594,212:128595,213:9003,214:8998,215:11160,216:11162,217:11161,218:11163,219:11144,220:11146,221:11145,222:11147,223:129128,224:129130,225:129129,226:129131,227:129132,228:129133,229:129135,230:129134,231:129144,232:129146,233:129145,234:129147,235:129148,236:129149,237:129151,238:129150,239:8678,240:8680,241:8679,242:8681,243:11012,244:8691,245:11009,246:11008,247:11011,248:11010,249:129196,250:129197,251:128502,252:10003,253:128503,254:128505},"WINGDINGS 2":{32:32,33:128394,34:128395,35:128396,36:128397,37:9988,38:9984,39:128382,40:128381,41:128453,42:128454,43:128455,44:128456,45:128457,46:128458,47:128459,48:128460,49:128461,50:128203,51:128465,52:128468,53:128437,54:128438,55:128439,56:128440,57:128429,58:128431,59:128433,60:128402,61:128403,62:128408,63:128409,64:128410,65:128411,66:128072,67:128073,68:128412,69:128413,70:128414,71:128415,72:128416,73:128417,74:128070,75:128071,76:128418,77:128419,78:128401,79:128500,80:128504,81:128501,82:9745,83:11197,84:9746,85:11198,86:11199,87:128711,88:10680,89:128625,90:128628,91:128626,92:128627,93:8253,94:128633,95:128634,96:128635,97:128614,98:128612,99:128613,100:128615,101:128602,102:128600,103:128601,104:128603,105:9450,106:9312,107:9313,108:9314,109:9315,110:9316,111:9317,112:9318,113:9319,114:9320,115:9321,116:9471,117:10102,118:10103,119:10104,120:10105,121:10106,122:10107,123:10108,124:10109,125:10110,126:10111,128:9737,129:127765,130:9789,131:9790,132:11839,133:10013,134:128327,135:128348,136:128349,137:128350,138:128351,139:128352,140:128353,141:128354,142:128355,143:128356,144:128357,145:128358,146:128359,147:128616,148:128617,149:8901,150:128900,151:10625,152:9679,153:9675,154:128901,155:128903,156:128905,157:8857,158:10687,159:128908,160:128909,161:9726,162:9632,163:9633,164:128913,165:128914,166:128915,167:128916,168:9635,169:128917,170:128918,171:128919,172:128920,173:11049,174:11045,175:9671,176:128922,177:9672,178:128923,179:128924,180:128925,181:128926,182:11050,183:11047,184:9674,185:128928,186:9686,187:9687,188:11210,189:11211,190:11200,191:11201,192:11039,193:11202,194:11043,195:11042,196:11203,197:11204,198:128929,199:128930,200:128931,201:128932,202:128933,203:128934,204:128935,205:128936,206:128937,207:128938,208:128939,209:128940,210:128941,211:128942,212:128943,213:128944,214:128945,215:128946,216:128947,217:128948,218:128949,219:128950,220:128951,221:128952,222:128953,223:128954,224:128955,225:128956,226:128957,227:128958,228:128959,229:128960,230:128962,231:128964,232:128966,233:128969,234:128970,235:10038,236:128972,237:128974,238:128976,239:128978,240:10041,241:128963,242:128967,243:10031,244:128973,245:128980,246:11212,247:11213,248:8251,249:8258},"WINGDINGS 3":{32:32,33:11104,34:11106,35:11105,36:11107,37:11110,38:11111,39:11113,40:11112,41:11120,42:11122,43:11121,44:11123,45:11126,46:11128,47:11131,48:11133,49:11108,50:11109,51:11114,52:11116,53:11115,54:11117,55:11085,56:11168,57:11169,58:11170,59:11171,60:11172,61:11173,62:11174,63:11175,64:11152,65:11153,66:11154,67:11155,68:11136,69:11139,70:11134,71:11135,72:11140,73:11142,74:11141,75:11143,76:11151,77:11149,78:11150,79:11148,80:11118,81:11119,82:9099,83:8996,84:8963,85:8997,86:9251,87:9085,88:8682,89:11192,90:129184,91:129185,92:129186,93:129187,94:129188,95:129189,96:129190,97:129191,98:129192,99:129193,100:129194,101:129195,102:129104,103:129106,104:129105,105:129107,106:129108,107:129109,108:129111,109:129110,110:129112,111:129113,112:9650,113:9660,114:9651,115:9661,116:9664,117:9654,118:9665,119:9655,120:9699,121:9698,122:9700,123:9701,124:128896,125:128898,126:128897,128:128899,129:11205,130:11206,131:11207,132:11208,133:11164,134:11166,135:11165,136:11167,137:129040,138:129042,139:129041,140:129043,141:129044,142:129046,143:129045,144:129047,145:129048,146:129050,147:129049,148:129051,149:129052,150:129054,151:129053,152:129055,153:129024,154:129026,155:129025,156:129027,157:129028,158:129030,159:129029,160:129031,161:129032,162:129034,163:129033,164:129035,165:129056,166:129058,167:129060,168:129062,169:129064,170:129066,171:129068,172:129180,173:129181,174:129182,175:129183,176:129070,177:129072,178:129074,179:129076,180:129078,181:129080,182:129082,183:129081,184:129083,185:129176,186:129178,187:129177,188:129179,189:129084,190:129086,191:129085,192:129087,193:129088,194:129090,195:129089,196:129091,197:129092,198:129094,199:129093,200:129095,201:11176,202:11177,203:11178,204:11179,205:11180,206:11181,207:11182,208:11183,209:129120,210:129122,211:129121,212:129123,213:129124,214:129125,215:129127,216:129126,217:129136,218:129138,219:129137,220:129139,221:129140,222:129141,223:129143,224:129142,225:129152,226:129154,227:129153,228:129155,229:129156,230:129157,231:129159,232:129158,233:129168,234:129170,235:129169,236:129171,237:129172,238:129174,239:129173,240:129175}};L.default=z},{}],50:[function(X,ce,L){var z=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(L,"__esModule",{value:!0}),L.hex=L.dec=L.codePoint=void 0;var I=z(X("./dingbats")),p={},k=String.fromCodePoint?String.fromCodePoint:t;function c(l,g){var _=I.default[l.toUpperCase()];if(_===void 0)return;var w=_[g];if(w===void 0)return;return{codePoint:w,string:k(w)}}L.codePoint=c;function o(l,g){return c(l,parseInt(g,10))}L.dec=o;function i(l,g){return c(l,parseInt(g,16))}L.hex=i;function t(l){if(l<=65535)return String.fromCharCode(l);else{var g=Math.floor((l-65536)/1024)+55296,_=(l-65536)%1024+56320;return String.fromCharCode(g,_)}}},{"./dingbats":49}],51:[function(X,ce,L){L.read=function(z,I,p,k,c){var o,i,t=c*8-k-1,l=(1<<t)-1,g=l>>1,_=-7,w=p?c-1:0,y=p?-1:1,h=z[I+w];w+=y,o=h&(1<<-_)-1,h>>=-_,_+=t;for(;_>0;o=o*256+z[I+w],w+=y,_-=8);i=o&(1<<-_)-1,o>>=-_,_+=k;for(;_>0;i=i*256+z[I+w],w+=y,_-=8);if(o===0)o=1-g;else if(o===l)return i?NaN:(h?-1:1)*(1/0);else i=i+Math.pow(2,k),o=o-g;return(h?-1:1)*i*Math.pow(2,o-k)},L.write=function(z,I,p,k,c,o){var i,t,l,g=o*8-c-1,_=(1<<g)-1,w=_>>1,y=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=k?0:o-1,T=k?1:-1,x=I<0||I===0&&1/I<0?1:0;if(I=Math.abs(I),isNaN(I)||I===1/0)t=isNaN(I)?1:0,i=_;else{if(i=Math.floor(Math.log(I)/Math.LN2),I*(l=Math.pow(2,-i))<1)i--,l*=2;if(i+w>=1)I+=y/l;else I+=y*Math.pow(2,1-w);if(I*l>=2)i++,l/=2;if(i+w>=_)t=0,i=_;else if(i+w>=1)t=(I*l-1)*Math.pow(2,c),i=i+w;else t=I*Math.pow(2,w-1)*Math.pow(2,c),i=0}for(;c>=8;z[p+h]=t&255,h+=T,t/=256,c-=8);i=i<<c|t,g+=c;for(;g>0;z[p+h]=i&255,h+=T,i/=256,g-=8);z[p+h-T]|=x*128}},{}],52:[function(X,ce,L){var z={}.toString;ce.exports=Array.isArray||function(I){return z.call(I)=="[object Array]"}},{}],53:[function(X,ce,L){(function(z,I){/*!
|
|
29
|
+
|
|
30
|
+
JSZip v3.7.1 - A JavaScript class for generating and reading zip files
|
|
31
|
+
<http://stuartk.com/jszip>
|
|
32
|
+
|
|
33
|
+
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
34
|
+
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.
|
|
35
|
+
|
|
36
|
+
JSZip uses the library pako released under the MIT license :
|
|
37
|
+
https://github.com/nodeca/pako/blob/master/LICENSE
|
|
38
|
+
*/(function(p){if(typeof L=="object"&&typeof ce<"u")ce.exports=p();else if(typeof et=="function"&&et.amd)et([],p);else(typeof window<"u"?window:typeof z<"u"?z:typeof self<"u"?self:this).JSZip=p()})(function(){return function p(k,c,o){function i(g,_){if(!c[g]){if(!k[g]){var w=typeof X=="function"&&X;if(!_&&w)return w(g,!0);if(t)return t(g,!0);var y=Error("Cannot find module '"+g+"'");throw y.code="MODULE_NOT_FOUND",y}var h=c[g]={exports:{}};k[g][0].call(h.exports,function(T){var x=k[g][1][T];return i(x||T)},h,h.exports,p,k,c,o)}return c[g].exports}for(var t=typeof X=="function"&&X,l=0;l<o.length;l++)i(o[l]);return i}({1:[function(p,k,c){var o=p("./utils"),i=p("./support"),t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";c.encode=function(l){for(var g,_,w,y,h,T,x,n=[],v=0,a=l.length,E=a,F=o.getTypeOf(l)!=="string";v<l.length;)E=a-v,w=F?(g=l[v++],_=v<a?l[v++]:0,v<a?l[v++]:0):(g=l.charCodeAt(v++),_=v<a?l.charCodeAt(v++):0,v<a?l.charCodeAt(v++):0),y=g>>2,h=(3&g)<<4|_>>4,T=1<E?(15&_)<<2|w>>6:64,x=2<E?63&w:64,n.push(t.charAt(y)+t.charAt(h)+t.charAt(T)+t.charAt(x));return n.join("")},c.decode=function(l){var g,_,w,y,h,T,x=0,n=0,v="data:";if(l.substr(0,v.length)===v)throw Error("Invalid base64 input, it looks like a data url.");var a,E=3*(l=l.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(l.charAt(l.length-1)===t.charAt(64)&&E--,l.charAt(l.length-2)===t.charAt(64)&&E--,E%1!=0)throw Error("Invalid base64 input, bad content length.");for(a=i.uint8array?new Uint8Array(0|E):Array(0|E);x<l.length;)g=t.indexOf(l.charAt(x++))<<2|(y=t.indexOf(l.charAt(x++)))>>4,_=(15&y)<<4|(h=t.indexOf(l.charAt(x++)))>>2,w=(3&h)<<6|(T=t.indexOf(l.charAt(x++))),a[n++]=g,h!==64&&(a[n++]=_),T!==64&&(a[n++]=w);return a}},{"./support":30,"./utils":32}],2:[function(p,k,c){var o=p("./external"),i=p("./stream/DataWorker"),t=p("./stream/Crc32Probe"),l=p("./stream/DataLengthProbe");function g(_,w,y,h,T){this.compressedSize=_,this.uncompressedSize=w,this.crc32=y,this.compression=h,this.compressedContent=T}g.prototype={getContentWorker:function(){var _=new i(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),w=this;return _.on("end",function(){if(this.streamInfo.data_length!==w.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),_},getCompressedWorker:function(){return new i(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},g.createWorkerFrom=function(_,w,y){return _.pipe(new t).pipe(new l("uncompressedSize")).pipe(w.compressWorker(y)).pipe(new l("compressedSize")).withStreamInfo("compression",w)},k.exports=g},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(p,k,c){var o=p("./stream/GenericWorker");c.STORE={magic:"\x00\x00",compressWorker:function(i){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},c.DEFLATE=p("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(p,k,c){var o=p("./utils"),i=function(){for(var t,l=[],g=0;g<256;g++){t=g;for(var _=0;_<8;_++)t=1&t?3988292384^t>>>1:t>>>1;l[g]=t}return l}();k.exports=function(t,l){return t!==void 0&&t.length?o.getTypeOf(t)!=="string"?function(g,_,w,y){var h=i,T=y+w;g^=-1;for(var x=y;x<T;x++)g=g>>>8^h[255&(g^_[x])];return-1^g}(0|l,t,t.length,0):function(g,_,w,y){var h=i,T=y+w;g^=-1;for(var x=y;x<T;x++)g=g>>>8^h[255&(g^_.charCodeAt(x))];return-1^g}(0|l,t,t.length,0):0}},{"./utils":32}],5:[function(p,k,c){c.base64=!1,c.binary=!1,c.dir=!1,c.createFolders=!0,c.date=null,c.compression=null,c.compressionOptions=null,c.comment=null,c.unixPermissions=null,c.dosPermissions=null},{}],6:[function(p,k,c){var o=null;o=typeof Promise<"u"?Promise:p("lie"),k.exports={Promise:o}},{lie:37}],7:[function(p,k,c){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",i=p("pako"),t=p("./utils"),l=p("./stream/GenericWorker"),g=o?"uint8array":"array";function _(w,y){l.call(this,"FlateWorker/"+w),this._pako=null,this._pakoAction=w,this._pakoOptions=y,this.meta={}}c.magic="\b\x00",t.inherits(_,l),_.prototype.processChunk=function(w){this.meta=w.meta,this._pako===null&&this._createPako(),this._pako.push(t.transformTo(g,w.data),!1)},_.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},_.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},_.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var w=this;this._pako.onData=function(y){w.push({data:y,meta:w.meta})}},c.compressWorker=function(w){return new _("Deflate",w)},c.uncompressWorker=function(){return new _("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(p,k,c){function o(h,T){var x,n="";for(x=0;x<T;x++)n+=String.fromCharCode(255&h),h>>>=8;return n}function i(h,T,x,n,v,a){var E,F,{file:A,compression:W}=h,S=a!==g.utf8encode,P=t.transformTo("string",a(A.name)),O=t.transformTo("string",g.utf8encode(A.name)),H=A.comment,ee=t.transformTo("string",a(H)),U=t.transformTo("string",g.utf8encode(H)),J=O.length!==A.name.length,D=U.length!==H.length,te="",ye="",se="",{dir:ve,date:le}=A,be={crc32:0,compressedSize:0,uncompressedSize:0};T&&!x||(be.crc32=h.crc32,be.compressedSize=h.compressedSize,be.uncompressedSize=h.uncompressedSize);var Q=0;T&&(Q|=8),S||!J&&!D||(Q|=2048);var ne=0,Te=0;ve&&(ne|=16),v==="UNIX"?(Te=798,ne|=function(de,Pe){var Be=de;return de||(Be=Pe?16893:33204),(65535&Be)<<16}(A.unixPermissions,ve)):(Te=20,ne|=function(de){return 63&(de||0)}(A.dosPermissions)),E=le.getUTCHours(),E<<=6,E|=le.getUTCMinutes(),E<<=5,E|=le.getUTCSeconds()/2,F=le.getUTCFullYear()-1980,F<<=4,F|=le.getUTCMonth()+1,F<<=5,F|=le.getUTCDate(),J&&(ye=o(1,1)+o(_(P),4)+O,te+="up"+o(ye.length,2)+ye),D&&(se=o(1,1)+o(_(ee),4)+U,te+="uc"+o(se.length,2)+se);var pe="";return pe+=`
|
|
39
|
+
\x00`,pe+=o(Q,2),pe+=W.magic,pe+=o(E,2),pe+=o(F,2),pe+=o(be.crc32,4),pe+=o(be.compressedSize,4),pe+=o(be.uncompressedSize,4),pe+=o(P.length,2),pe+=o(te.length,2),{fileRecord:w.LOCAL_FILE_HEADER+pe+P+te,dirRecord:w.CENTRAL_FILE_HEADER+o(Te,2)+pe+o(ee.length,2)+"\x00\x00\x00\x00"+o(ne,4)+o(n,4)+P+te+ee}}var t=p("../utils"),l=p("../stream/GenericWorker"),g=p("../utf8"),_=p("../crc32"),w=p("../signature");function y(h,T,x,n){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=T,this.zipPlatform=x,this.encodeFileName=n,this.streamFiles=h,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}t.inherits(y,l),y.prototype.push=function(h){var T=h.meta.percent||0,x=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(h):(this.bytesWritten+=h.data.length,l.prototype.push.call(this,{data:h.data,meta:{currentFile:this.currentFile,percent:x?(T+100*(x-n-1))/x:100}}))},y.prototype.openedSource=function(h){this.currentSourceOffset=this.bytesWritten,this.currentFile=h.file.name;var T=this.streamFiles&&!h.file.dir;if(T){var x=i(h,T,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:x.fileRecord,meta:{percent:0}})}else this.accumulate=!0},y.prototype.closedSource=function(h){this.accumulate=!1;var T=this.streamFiles&&!h.file.dir,x=i(h,T,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(x.dirRecord),T)this.push({data:function(n){return w.DATA_DESCRIPTOR+o(n.crc32,4)+o(n.compressedSize,4)+o(n.uncompressedSize,4)}(h),meta:{percent:100}});else for(this.push({data:x.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},y.prototype.flush=function(){for(var h=this.bytesWritten,T=0;T<this.dirRecords.length;T++)this.push({data:this.dirRecords[T],meta:{percent:100}});var x=this.bytesWritten-h,n=function(v,a,E,F,A){var W=t.transformTo("string",A(F));return w.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+o(v,2)+o(v,2)+o(a,4)+o(E,4)+o(W.length,2)+W}(this.dirRecords.length,x,h,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},y.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},y.prototype.registerPrevious=function(h){this._sources.push(h);var T=this;return h.on("data",function(x){T.processChunk(x)}),h.on("end",function(){T.closedSource(T.previous.streamInfo),T._sources.length?T.prepareNextSource():T.end()}),h.on("error",function(x){T.error(x)}),this},y.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},y.prototype.error=function(h){var T=this._sources;if(!l.prototype.error.call(this,h))return!1;for(var x=0;x<T.length;x++)try{T[x].error(h)}catch(n){}return!0},y.prototype.lock=function(){l.prototype.lock.call(this);for(var h=this._sources,T=0;T<h.length;T++)h[T].lock()},k.exports=y},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(p,k,c){var o=p("../compressions"),i=p("./ZipFileWorker");c.generateWorker=function(t,l,g){var _=new i(l.streamFiles,g,l.platform,l.encodeFileName),w=0;try{t.forEach(function(y,h){w++;var T=function(a,E){var F=a||E,A=o[F];if(!A)throw Error(F+" is not a valid compression method !");return A}(h.options.compression,l.compression),x=h.options.compressionOptions||l.compressionOptions||{},{dir:n,date:v}=h;h._compressWorker(T,x).withStreamInfo("file",{name:y,dir:n,date:v,comment:h.comment||"",unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions}).pipe(_)}),_.entriesCount=w}catch(y){_.error(y)}return _}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(p,k,c){function o(){if(!(this instanceof o))return new o;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var i=new o;for(var t in this)typeof this[t]!="function"&&(i[t]=this[t]);return i}}(o.prototype=p("./object")).loadAsync=p("./load"),o.support=p("./support"),o.defaults=p("./defaults"),o.version="3.7.1",o.loadAsync=function(i,t){return new o().loadAsync(i,t)},o.external=p("./external"),k.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(p,k,c){var o=p("./utils"),i=p("./external"),t=p("./utf8"),l=p("./zipEntries"),g=p("./stream/Crc32Probe"),_=p("./nodejsUtils");function w(y){return new i.Promise(function(h,T){var x=y.decompressed.getContentWorker().pipe(new g);x.on("error",function(n){T(n)}).on("end",function(){x.streamInfo.crc32!==y.decompressed.crc32?T(Error("Corrupted zip : CRC32 mismatch")):h()}).resume()})}k.exports=function(y,h){var T=this;return h=o.extend(h||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:t.utf8decode}),_.isNode&&_.isStream(y)?i.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",y,!0,h.optimizedBinaryString,h.base64).then(function(x){var n=new l(h);return n.load(x),n}).then(function(x){var n=[i.Promise.resolve(x)],v=x.files;if(h.checkCRC32)for(var a=0;a<v.length;a++)n.push(w(v[a]));return i.Promise.all(n)}).then(function(x){for(var n=x.shift(),v=n.files,a=0;a<v.length;a++){var E=v[a];T.file(E.fileNameStr,E.decompressed,{binary:!0,optimizedBinaryString:!0,date:E.date,dir:E.dir,comment:E.fileCommentStr.length?E.fileCommentStr:null,unixPermissions:E.unixPermissions,dosPermissions:E.dosPermissions,createFolders:h.createFolders})}return n.zipComment.length&&(T.comment=n.zipComment),T})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(p,k,c){var o=p("../utils"),i=p("../stream/GenericWorker");function t(l,g){i.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(g)}o.inherits(t,i),t.prototype._bindStream=function(l){var g=this;(this._stream=l).pause(),l.on("data",function(_){g.push({data:_,meta:{percent:0}})}).on("error",function(_){g.isPaused?this.generatedError=_:g.error(_)}).on("end",function(){g.isPaused?g._upstreamEnded=!0:g.end()})},t.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},t.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},k.exports=t},{"../stream/GenericWorker":28,"../utils":32}],13:[function(p,k,c){var o=p("readable-stream").Readable;function i(t,l,g){o.call(this,l),this._helper=t;var _=this;t.on("data",function(w,y){_.push(w)||_._helper.pause(),g&&g(y)}).on("error",function(w){_.emit("error",w)}).on("end",function(){_.push(null)})}p("../utils").inherits(i,o),i.prototype._read=function(){this._helper.resume()},k.exports=i},{"../utils":32,"readable-stream":16}],14:[function(p,k,c){k.exports={isNode:typeof I<"u",newBufferFrom:function(o,i){if(I.from&&I.from!==Uint8Array.from)return I.from(o,i);if(typeof o=="number")throw Error('The "data" argument must not be a number');return new I(o,i)},allocBuffer:function(o){if(I.alloc)return I.alloc(o);var i=new I(o);return i.fill(0),i},isBuffer:function(o){return I.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(p,k,c){function o(A,W,S){var P,O=t.getTypeOf(W),H=t.extend(S||{},_);H.date=H.date||new Date,H.compression!==null&&(H.compression=H.compression.toUpperCase()),typeof H.unixPermissions=="string"&&(H.unixPermissions=parseInt(H.unixPermissions,8)),H.unixPermissions&&16384&H.unixPermissions&&(H.dir=!0),H.dosPermissions&&16&H.dosPermissions&&(H.dir=!0),H.dir&&(A=v(A)),H.createFolders&&(P=n(A))&&a.call(this,P,!0);var ee=O==="string"&&H.binary===!1&&H.base64===!1;S&&S.binary!==void 0||(H.binary=!ee),(W instanceof w&&W.uncompressedSize===0||H.dir||!W||W.length===0)&&(H.base64=!1,H.binary=!0,W="",H.compression="STORE",O="string");var U=null;U=W instanceof w||W instanceof l?W:T.isNode&&T.isStream(W)?new x(A,W):t.prepareContent(A,W,H.binary,H.optimizedBinaryString,H.base64);var J=new y(A,U,H);this.files[A]=J}var i=p("./utf8"),t=p("./utils"),l=p("./stream/GenericWorker"),g=p("./stream/StreamHelper"),_=p("./defaults"),w=p("./compressedObject"),y=p("./zipObject"),h=p("./generate"),T=p("./nodejsUtils"),x=p("./nodejs/NodejsStreamInputAdapter"),n=function(A){A.slice(-1)==="/"&&(A=A.substring(0,A.length-1));var W=A.lastIndexOf("/");return 0<W?A.substring(0,W):""},v=function(A){return A.slice(-1)!=="/"&&(A+="/"),A},a=function(A,W){return W=W!==void 0?W:_.createFolders,A=v(A),this.files[A]||o.call(this,A,null,{dir:!0,createFolders:W}),this.files[A]};function E(A){return Object.prototype.toString.call(A)==="[object RegExp]"}var F={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(A){var W,S,P;for(W in this.files)P=this.files[W],(S=W.slice(this.root.length,W.length))&&W.slice(0,this.root.length)===this.root&&A(S,P)},filter:function(A){var W=[];return this.forEach(function(S,P){A(S,P)&&W.push(P)}),W},file:function(A,W,S){if(arguments.length!==1)return A=this.root+A,o.call(this,A,W,S),this;if(E(A)){var P=A;return this.filter(function(H,ee){return!ee.dir&&P.test(H)})}var O=this.files[this.root+A];return O&&!O.dir?O:null},folder:function(A){if(!A)return this;if(E(A))return this.filter(function(O,H){return H.dir&&A.test(O)});var W=this.root+A,S=a.call(this,W),P=this.clone();return P.root=S.name,P},remove:function(A){A=this.root+A;var W=this.files[A];if(W||(A.slice(-1)!=="/"&&(A+="/"),W=this.files[A]),W&&!W.dir)delete this.files[A];else for(var S=this.filter(function(O,H){return H.name.slice(0,A.length)===A}),P=0;P<S.length;P++)delete this.files[S[P].name];return this},generate:function(A){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(A){var W,S={};try{if((S=t.extend(A||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=S.type.toLowerCase(),S.compression=S.compression.toUpperCase(),S.type==="binarystring"&&(S.type="string"),!S.type)throw Error("No output type specified.");t.checkSupport(S.type),S.platform!=="darwin"&&S.platform!=="freebsd"&&S.platform!=="linux"&&S.platform!=="sunos"||(S.platform="UNIX"),S.platform==="win32"&&(S.platform="DOS");var P=S.comment||this.comment||"";W=h.generateWorker(this,S,P)}catch(O){(W=new l("error")).error(O)}return new g(W,S.type||"string",S.mimeType)},generateAsync:function(A,W){return this.generateInternalStream(A).accumulate(W)},generateNodeStream:function(A,W){return(A=A||{}).type||(A.type="nodebuffer"),this.generateInternalStream(A).toNodejsStream(W)}};k.exports=F},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(p,k,c){k.exports=p("stream")},{stream:void 0}],17:[function(p,k,c){var o=p("./DataReader");function i(t){o.call(this,t);for(var l=0;l<this.data.length;l++)t[l]=255&t[l]}p("../utils").inherits(i,o),i.prototype.byteAt=function(t){return this.data[this.zero+t]},i.prototype.lastIndexOfSignature=function(t){for(var l=t.charCodeAt(0),g=t.charCodeAt(1),_=t.charCodeAt(2),w=t.charCodeAt(3),y=this.length-4;0<=y;--y)if(this.data[y]===l&&this.data[y+1]===g&&this.data[y+2]===_&&this.data[y+3]===w)return y-this.zero;return-1},i.prototype.readAndCheckSignature=function(t){var l=t.charCodeAt(0),g=t.charCodeAt(1),_=t.charCodeAt(2),w=t.charCodeAt(3),y=this.readData(4);return l===y[0]&&g===y[1]&&_===y[2]&&w===y[3]},i.prototype.readData=function(t){if(this.checkOffset(t),t===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,l},k.exports=i},{"../utils":32,"./DataReader":18}],18:[function(p,k,c){var o=p("../utils");function i(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(t){},readInt:function(t){var l,g=0;for(this.checkOffset(t),l=this.index+t-1;l>=this.index;l--)g=(g<<8)+this.byteAt(l);return this.index+=t,g},readString:function(t){return o.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},k.exports=i},{"../utils":32}],19:[function(p,k,c){var o=p("./Uint8ArrayReader");function i(t){o.call(this,t)}p("../utils").inherits(i,o),i.prototype.readData=function(t){this.checkOffset(t);var l=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,l},k.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(p,k,c){var o=p("./DataReader");function i(t){o.call(this,t)}p("../utils").inherits(i,o),i.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},i.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},i.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},i.prototype.readData=function(t){this.checkOffset(t);var l=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,l},k.exports=i},{"../utils":32,"./DataReader":18}],21:[function(p,k,c){var o=p("./ArrayReader");function i(t){o.call(this,t)}p("../utils").inherits(i,o),i.prototype.readData=function(t){if(this.checkOffset(t),t===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,l},k.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(p,k,c){var o=p("../utils"),i=p("../support"),t=p("./ArrayReader"),l=p("./StringReader"),g=p("./NodeBufferReader"),_=p("./Uint8ArrayReader");k.exports=function(w){var y=o.getTypeOf(w);return o.checkSupport(y),y!=="string"||i.uint8array?y==="nodebuffer"?new g(w):i.uint8array?new _(o.transformTo("uint8array",w)):new t(o.transformTo("array",w)):new l(w)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(p,k,c){c.LOCAL_FILE_HEADER="PK\x03\x04",c.CENTRAL_FILE_HEADER="PK\x01\x02",c.CENTRAL_DIRECTORY_END="PK\x05\x06",c.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",c.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",c.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(p,k,c){var o=p("./GenericWorker"),i=p("../utils");function t(l){o.call(this,"ConvertWorker to "+l),this.destType=l}i.inherits(t,o),t.prototype.processChunk=function(l){this.push({data:i.transformTo(this.destType,l.data),meta:l.meta})},k.exports=t},{"../utils":32,"./GenericWorker":28}],25:[function(p,k,c){var o=p("./GenericWorker"),i=p("../crc32");function t(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}p("../utils").inherits(t,o),t.prototype.processChunk=function(l){this.streamInfo.crc32=i(l.data,this.streamInfo.crc32||0),this.push(l)},k.exports=t},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(p,k,c){var o=p("../utils"),i=p("./GenericWorker");function t(l){i.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}o.inherits(t,i),t.prototype.processChunk=function(l){if(l){var g=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=g+l.data.length}i.prototype.processChunk.call(this,l)},k.exports=t},{"../utils":32,"./GenericWorker":28}],27:[function(p,k,c){var o=p("../utils"),i=p("./GenericWorker");function t(l){i.call(this,"DataWorker");var g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(_){g.dataIsReady=!0,g.data=_,g.max=_&&_.length||0,g.type=o.getTypeOf(_),g.isPaused||g._tickAndRepeat()},function(_){g.error(_)})}o.inherits(t,i),t.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},t.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},t.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},t.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,g=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,g);break;case"uint8array":l=this.data.subarray(this.index,g);break;case"array":case"nodebuffer":l=this.data.slice(this.index,g)}return this.index=g,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},k.exports=t},{"../utils":32,"./GenericWorker":28}],28:[function(p,k,c){function o(i){this.name=i||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}o.prototype={push:function(i){this.emit("data",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit("error",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit("error",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,t){return this._listeners[i].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,t){if(this._listeners[i])for(var l=0;l<this._listeners[i].length;l++)this._listeners[i][l].call(this,t)},pipe:function(i){return i.registerPrevious(this)},registerPrevious:function(i){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=i.streamInfo,this.mergeStreamInfo(),this.previous=i;var t=this;return i.on("data",function(l){t.processChunk(l)}),i.on("end",function(){t.end()}),i.on("error",function(l){t.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var i=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),i=!0),this.previous&&this.previous.resume(),!i},flush:function(){},processChunk:function(i){this.push(i)},withStreamInfo:function(i,t){return this.extraStreamInfo[i]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var i in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(i)&&(this.streamInfo[i]=this.extraStreamInfo[i])},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var i="Worker "+this.name;return this.previous?this.previous+" -> "+i:i}},k.exports=o},{}],29:[function(p,k,c){var o=p("../utils"),i=p("./ConvertWorker"),t=p("./GenericWorker"),l=p("../base64"),g=p("../support"),_=p("../external"),w=null;if(g.nodestream)try{w=p("../nodejs/NodejsStreamOutputAdapter")}catch(T){}function y(T,x){return new _.Promise(function(n,v){var a=[],{_internalType:E,_outputType:F,_mimeType:A}=T;T.on("data",function(W,S){a.push(W),x&&x(S)}).on("error",function(W){a=[],v(W)}).on("end",function(){try{var W=function(S,P,O){switch(S){case"blob":return o.newBlob(o.transformTo("arraybuffer",P),O);case"base64":return l.encode(P);default:return o.transformTo(S,P)}}(F,function(S,P){var O,H=0,ee=null,U=0;for(O=0;O<P.length;O++)U+=P[O].length;switch(S){case"string":return P.join("");case"array":return Array.prototype.concat.apply([],P);case"uint8array":for(ee=new Uint8Array(U),O=0;O<P.length;O++)ee.set(P[O],H),H+=P[O].length;return ee;case"nodebuffer":return I.concat(P);default:throw Error("concat : unsupported type '"+S+"'")}}(E,a),A);n(W)}catch(S){v(S)}a=[]}).resume()})}function h(T,x,n){var v=x;switch(x){case"blob":case"arraybuffer":v="uint8array";break;case"base64":v="string"}try{this._internalType=v,this._outputType=x,this._mimeType=n,o.checkSupport(v),this._worker=T.pipe(new i(v)),T.lock()}catch(a){this._worker=new t("error"),this._worker.error(a)}}h.prototype={accumulate:function(T){return y(this,T)},on:function(T,x){var n=this;return T==="data"?this._worker.on(T,function(v){x.call(n,v.data,v.meta)}):this._worker.on(T,function(){o.delay(x,arguments,n)}),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(T){if(o.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw Error(this._outputType+" is not supported by this method");return new w(this,{objectMode:this._outputType!=="nodebuffer"},T)}},k.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(p,k,c){if(c.base64=!0,c.array=!0,c.string=!0,c.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",c.nodebuffer=typeof I<"u",c.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")c.blob=!1;else{var o=new ArrayBuffer(0);try{c.blob=new Blob([o],{type:"application/zip"}).size===0}catch(t){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(o),c.blob=i.getBlob("application/zip").size===0}catch(l){c.blob=!1}}}try{c.nodestream=!!p("readable-stream").Readable}catch(t){c.nodestream=!1}},{"readable-stream":16}],31:[function(p,k,c){for(var o=p("./utils"),i=p("./support"),t=p("./nodejsUtils"),l=p("./stream/GenericWorker"),g=Array(256),_=0;_<256;_++)g[_]=252<=_?6:248<=_?5:240<=_?4:224<=_?3:192<=_?2:1;g[254]=g[254]=1;function w(){l.call(this,"utf-8 decode"),this.leftOver=null}function y(){l.call(this,"utf-8 encode")}c.utf8encode=function(h){return i.nodebuffer?t.newBufferFrom(h,"utf-8"):function(T){var x,n,v,a,E,F=T.length,A=0;for(a=0;a<F;a++)(64512&(n=T.charCodeAt(a)))==55296&&a+1<F&&(64512&(v=T.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(v-56320),a++),A+=n<128?1:n<2048?2:n<65536?3:4;for(x=i.uint8array?new Uint8Array(A):Array(A),a=E=0;E<A;a++)(64512&(n=T.charCodeAt(a)))==55296&&a+1<F&&(64512&(v=T.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(v-56320),a++),n<128?x[E++]=n:(n<2048?x[E++]=192|n>>>6:(n<65536?x[E++]=224|n>>>12:(x[E++]=240|n>>>18,x[E++]=128|n>>>12&63),x[E++]=128|n>>>6&63),x[E++]=128|63&n);return x}(h)},c.utf8decode=function(h){return i.nodebuffer?o.transformTo("nodebuffer",h).toString("utf-8"):function(T){var x,n,v,a,E=T.length,F=Array(2*E);for(x=n=0;x<E;)if((v=T[x++])<128)F[n++]=v;else if(4<(a=g[v]))F[n++]=65533,x+=a-1;else{for(v&=a===2?31:a===3?15:7;1<a&&x<E;)v=v<<6|63&T[x++],a--;1<a?F[n++]=65533:v<65536?F[n++]=v:(v-=65536,F[n++]=55296|v>>10&1023,F[n++]=56320|1023&v)}return F.length!==n&&(F.subarray?F=F.subarray(0,n):F.length=n),o.applyFromCharCode(F)}(h=o.transformTo(i.uint8array?"uint8array":"array",h))},o.inherits(w,l),w.prototype.processChunk=function(h){var T=o.transformTo(i.uint8array?"uint8array":"array",h.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var x=T;(T=new Uint8Array(x.length+this.leftOver.length)).set(this.leftOver,0),T.set(x,this.leftOver.length)}else T=this.leftOver.concat(T);this.leftOver=null}var n=function(a,E){var F;for((E=E||a.length)>a.length&&(E=a.length),F=E-1;0<=F&&(192&a[F])==128;)F--;return F<0?E:F===0?E:F+g[a[F]]>E?F:E}(T),v=T;n!==T.length&&(i.uint8array?(v=T.subarray(0,n),this.leftOver=T.subarray(n,T.length)):(v=T.slice(0,n),this.leftOver=T.slice(n,T.length))),this.push({data:c.utf8decode(v),meta:h.meta})},w.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:c.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},c.Utf8DecodeWorker=w,o.inherits(y,l),y.prototype.processChunk=function(h){this.push({data:c.utf8encode(h.data),meta:h.meta})},c.Utf8EncodeWorker=y},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(p,k,c){var o=p("./support"),i=p("./base64"),t=p("./nodejsUtils"),l=p("set-immediate-shim"),g=p("./external");function _(n){return n}function w(n,v){for(var a=0;a<n.length;++a)v[a]=255&n.charCodeAt(a);return v}c.newBlob=function(n,v){c.checkSupport("blob");try{return new Blob([n],{type:v})}catch(E){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return a.append(n),a.getBlob(v)}catch(F){throw Error("Bug : can't construct the Blob.")}}};var y={stringifyByChunk:function(n,v,a){var E=[],F=0,A=n.length;if(A<=a)return String.fromCharCode.apply(null,n);for(;F<A;)v==="array"||v==="nodebuffer"?E.push(String.fromCharCode.apply(null,n.slice(F,Math.min(F+a,A)))):E.push(String.fromCharCode.apply(null,n.subarray(F,Math.min(F+a,A)))),F+=a;return E.join("")},stringifyByChar:function(n){for(var v="",a=0;a<n.length;a++)v+=String.fromCharCode(n[a]);return v},applyCanBeUsed:{uint8array:function(){try{return o.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(n){return!1}}(),nodebuffer:function(){try{return o.nodebuffer&&String.fromCharCode.apply(null,t.allocBuffer(1)).length===1}catch(n){return!1}}()}};function h(n){var v=65536,a=c.getTypeOf(n),E=!0;if(a==="uint8array"?E=y.applyCanBeUsed.uint8array:a==="nodebuffer"&&(E=y.applyCanBeUsed.nodebuffer),E)for(;1<v;)try{return y.stringifyByChunk(n,a,v)}catch(F){v=Math.floor(v/2)}return y.stringifyByChar(n)}function T(n,v){for(var a=0;a<n.length;a++)v[a]=n[a];return v}c.applyFromCharCode=h;var x={};x.string={string:_,array:function(n){return w(n,Array(n.length))},arraybuffer:function(n){return x.string.uint8array(n).buffer},uint8array:function(n){return w(n,new Uint8Array(n.length))},nodebuffer:function(n){return w(n,t.allocBuffer(n.length))}},x.array={string:h,array:_,arraybuffer:function(n){return new Uint8Array(n).buffer},uint8array:function(n){return new Uint8Array(n)},nodebuffer:function(n){return t.newBufferFrom(n)}},x.arraybuffer={string:function(n){return h(new Uint8Array(n))},array:function(n){return T(new Uint8Array(n),Array(n.byteLength))},arraybuffer:_,uint8array:function(n){return new Uint8Array(n)},nodebuffer:function(n){return t.newBufferFrom(new Uint8Array(n))}},x.uint8array={string:h,array:function(n){return T(n,Array(n.length))},arraybuffer:function(n){return n.buffer},uint8array:_,nodebuffer:function(n){return t.newBufferFrom(n)}},x.nodebuffer={string:h,array:function(n){return T(n,Array(n.length))},arraybuffer:function(n){return x.nodebuffer.uint8array(n).buffer},uint8array:function(n){return T(n,new Uint8Array(n.length))},nodebuffer:_},c.transformTo=function(n,v){if(v=v||"",!n)return v;c.checkSupport(n);var a=c.getTypeOf(v);return x[a][n](v)},c.getTypeOf=function(n){return typeof n=="string"?"string":Object.prototype.toString.call(n)==="[object Array]"?"array":o.nodebuffer&&t.isBuffer(n)?"nodebuffer":o.uint8array&&n instanceof Uint8Array?"uint8array":o.arraybuffer&&n instanceof ArrayBuffer?"arraybuffer":void 0},c.checkSupport=function(n){if(!o[n.toLowerCase()])throw Error(n+" is not supported by this platform")},c.MAX_VALUE_16BITS=65535,c.MAX_VALUE_32BITS=-1,c.pretty=function(n){var v,a,E="";for(a=0;a<(n||"").length;a++)E+="\\x"+((v=n.charCodeAt(a))<16?"0":"")+v.toString(16).toUpperCase();return E},c.delay=function(n,v,a){l(function(){n.apply(a||null,v||[])})},c.inherits=function(n,v){function a(){}a.prototype=v.prototype,n.prototype=new a},c.extend=function(){var n,v,a={};for(n=0;n<arguments.length;n++)for(v in arguments[n])arguments[n].hasOwnProperty(v)&&a[v]===void 0&&(a[v]=arguments[n][v]);return a},c.prepareContent=function(n,v,a,E,F){return g.Promise.resolve(v).then(function(A){return o.blob&&(A instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(A))!==-1)&&typeof FileReader<"u"?new g.Promise(function(W,S){var P=new FileReader;P.onload=function(O){W(O.target.result)},P.onerror=function(O){S(O.target.error)},P.readAsArrayBuffer(A)}):A}).then(function(A){var W=c.getTypeOf(A);return W?(W==="arraybuffer"?A=c.transformTo("uint8array",A):W==="string"&&(F?A=i.decode(A):a&&E!==!0&&(A=function(S){return w(S,o.uint8array?new Uint8Array(S.length):Array(S.length))}(A))),A):g.Promise.reject(Error("Can't read the data of '"+n+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(p,k,c){var o=p("./reader/readerFor"),i=p("./utils"),t=p("./signature"),l=p("./zipEntry"),g=(p("./utf8"),p("./support"));function _(w){this.files=[],this.loadOptions=w}_.prototype={checkSignature:function(w){if(!this.reader.readAndCheckSignature(w)){this.reader.index-=4;var y=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+i.pretty(y)+", expected "+i.pretty(w)+")")}},isSignature:function(w,y){var h=this.reader.index;this.reader.setIndex(w);var T=this.reader.readString(4)===y;return this.reader.setIndex(h),T},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var w=this.reader.readData(this.zipCommentLength),y=g.uint8array?"uint8array":"array",h=i.transformTo(y,w);this.zipComment=this.loadOptions.decodeFileName(h)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var w,y,h,T=this.zip64EndOfCentralSize-44;0<T;)w=this.reader.readInt(2),y=this.reader.readInt(4),h=this.reader.readData(y),this.zip64ExtensibleData[w]={id:w,length:y,value:h}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var w,y;for(w=0;w<this.files.length;w++)y=this.files[w],this.reader.setIndex(y.localHeaderOffset),this.checkSignature(t.LOCAL_FILE_HEADER),y.readLocalPart(this.reader),y.handleUTF8(),y.processAttributes()},readCentralDir:function(){var w;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(t.CENTRAL_FILE_HEADER);)(w=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(w);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var w=this.reader.lastIndexOfSignature(t.CENTRAL_DIRECTORY_END);if(w<0)throw!this.isSignature(0,t.LOCAL_FILE_HEADER)?Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):Error("Corrupted zip: can't find end of central directory");this.reader.setIndex(w);var y=w;if(this.checkSignature(t.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(w=this.reader.lastIndexOfSignature(t.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(w),this.checkSignature(t.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,t.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(t.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(t.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var h=this.centralDirOffset+this.centralDirSize;this.zip64&&(h+=20,h+=12+this.zip64EndOfCentralSize);var T=y-h;if(0<T)this.isSignature(y,t.CENTRAL_FILE_HEADER)||(this.reader.zero=T);else if(T<0)throw Error("Corrupted zip: missing "+Math.abs(T)+" bytes.")},prepareReader:function(w){this.reader=o(w)},load:function(w){this.prepareReader(w),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},k.exports=_},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(p,k,c){var o=p("./reader/readerFor"),i=p("./utils"),t=p("./compressedObject"),l=p("./crc32"),g=p("./utf8"),_=p("./compressions"),w=p("./support");function y(h,T){this.options=h,this.loadOptions=T}y.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(h){var T,x;if(h.skip(22),this.fileNameLength=h.readInt(2),x=h.readInt(2),this.fileName=h.readData(this.fileNameLength),h.skip(x),this.compressedSize===-1||this.uncompressedSize===-1)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((T=function(n){for(var v in _)if(_.hasOwnProperty(v)&&_[v].magic===n)return _[v];return null}(this.compressionMethod))===null)throw Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new t(this.compressedSize,this.uncompressedSize,this.crc32,T,h.readData(this.compressedSize))},readCentralPart:function(h){this.versionMadeBy=h.readInt(2),h.skip(2),this.bitFlag=h.readInt(2),this.compressionMethod=h.readString(2),this.date=h.readDate(),this.crc32=h.readInt(4),this.compressedSize=h.readInt(4),this.uncompressedSize=h.readInt(4);var T=h.readInt(2);if(this.extraFieldsLength=h.readInt(2),this.fileCommentLength=h.readInt(2),this.diskNumberStart=h.readInt(2),this.internalFileAttributes=h.readInt(2),this.externalFileAttributes=h.readInt(4),this.localHeaderOffset=h.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");h.skip(T),this.readExtraFields(h),this.parseZIP64ExtraField(h),this.fileComment=h.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var h=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),h==0&&(this.dosPermissions=63&this.externalFileAttributes),h==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(h){if(this.extraFields[1]){var T=o(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=T.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=T.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=T.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=T.readInt(4))}},readExtraFields:function(h){var T,x,n,v=h.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});h.index+4<v;)T=h.readInt(2),x=h.readInt(2),n=h.readData(x),this.extraFields[T]={id:T,length:x,value:n};h.setIndex(v)},handleUTF8:function(){var h=w.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=g.utf8decode(this.fileName),this.fileCommentStr=g.utf8decode(this.fileComment);else{var T=this.findExtraFieldUnicodePath();if(T!==null)this.fileNameStr=T;else{var x=i.transformTo(h,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(x)}var n=this.findExtraFieldUnicodeComment();if(n!==null)this.fileCommentStr=n;else{var v=i.transformTo(h,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(v)}}},findExtraFieldUnicodePath:function(){var h=this.extraFields[28789];if(h){var T=o(h.value);return T.readInt(1)!==1?null:l(this.fileName)!==T.readInt(4)?null:g.utf8decode(T.readData(h.length-5))}return null},findExtraFieldUnicodeComment:function(){var h=this.extraFields[25461];if(h){var T=o(h.value);return T.readInt(1)!==1?null:l(this.fileComment)!==T.readInt(4)?null:g.utf8decode(T.readData(h.length-5))}return null}},k.exports=y},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(p,k,c){function o(T,x,n){this.name=T,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=x,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=p("./stream/StreamHelper"),t=p("./stream/DataWorker"),l=p("./utf8"),g=p("./compressedObject"),_=p("./stream/GenericWorker");o.prototype={internalStream:function(T){var x=null,n="string";try{if(!T)throw Error("No output type specified.");var v=(n=T.toLowerCase())==="string"||n==="text";n!=="binarystring"&&n!=="text"||(n="string"),x=this._decompressWorker();var a=!this._dataBinary;a&&!v&&(x=x.pipe(new l.Utf8EncodeWorker)),!a&&v&&(x=x.pipe(new l.Utf8DecodeWorker))}catch(E){(x=new _("error")).error(E)}return new i(x,n,"")},async:function(T,x){return this.internalStream(T).accumulate(x)},nodeStream:function(T,x){return this.internalStream(T||"nodebuffer").toNodejsStream(x)},_compressWorker:function(T,x){if(this._data instanceof g&&this._data.compression.magic===T.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new l.Utf8EncodeWorker)),g.createWorkerFrom(n,T,x)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof _?this._data:new t(this._data)}};for(var w=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],y=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<w.length;h++)o.prototype[w[h]]=y;k.exports=o},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(p,k,c){(function(o){var i,t,l=o.MutationObserver||o.WebKitMutationObserver;if(l){var g=0,_=new l(T),w=o.document.createTextNode("");_.observe(w,{characterData:!0}),i=function(){w.data=g=++g%2}}else if(o.setImmediate||o.MessageChannel===void 0)i="document"in o&&"onreadystatechange"in o.document.createElement("script")?function(){var x=o.document.createElement("script");x.onreadystatechange=function(){T(),x.onreadystatechange=null,x.parentNode.removeChild(x),x=null},o.document.documentElement.appendChild(x)}:function(){setTimeout(T,0)};else{var y=new o.MessageChannel;y.port1.onmessage=T,i=function(){y.port2.postMessage(0)}}var h=[];function T(){var x,n;t=!0;for(var v=h.length;v;){for(n=h,h=[],x=-1;++x<v;)n[x]();v=h.length}t=!1}k.exports=function(x){h.push(x)!==1||t||i()}}).call(this,typeof z<"u"?z:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(p,k,c){var o=p("immediate");function i(){}var t={},l=["REJECTED"],g=["FULFILLED"],_=["PENDING"];function w(v){if(typeof v!="function")throw TypeError("resolver must be a function");this.state=_,this.queue=[],this.outcome=void 0,v!==i&&x(this,v)}function y(v,a,E){this.promise=v,typeof a=="function"&&(this.onFulfilled=a,this.callFulfilled=this.otherCallFulfilled),typeof E=="function"&&(this.onRejected=E,this.callRejected=this.otherCallRejected)}function h(v,a,E){o(function(){var F;try{F=a(E)}catch(A){return t.reject(v,A)}F===v?t.reject(v,TypeError("Cannot resolve promise with itself")):t.resolve(v,F)})}function T(v){var a=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof a=="function")return function(){a.apply(v,arguments)}}function x(v,a){var E=!1;function F(S){E||(E=!0,t.reject(v,S))}function A(S){E||(E=!0,t.resolve(v,S))}var W=n(function(){a(A,F)});W.status==="error"&&F(W.value)}function n(v,a){var E={};try{E.value=v(a),E.status="success"}catch(F){E.status="error",E.value=F}return E}(k.exports=w).prototype.finally=function(v){if(typeof v!="function")return this;var a=this.constructor;return this.then(function(E){return a.resolve(v()).then(function(){return E})},function(E){return a.resolve(v()).then(function(){throw E})})},w.prototype.catch=function(v){return this.then(null,v)},w.prototype.then=function(v,a){if(typeof v!="function"&&this.state===g||typeof a!="function"&&this.state===l)return this;var E=new this.constructor(i);return this.state!==_?h(E,this.state===g?v:a,this.outcome):this.queue.push(new y(E,v,a)),E},y.prototype.callFulfilled=function(v){t.resolve(this.promise,v)},y.prototype.otherCallFulfilled=function(v){h(this.promise,this.onFulfilled,v)},y.prototype.callRejected=function(v){t.reject(this.promise,v)},y.prototype.otherCallRejected=function(v){h(this.promise,this.onRejected,v)},t.resolve=function(v,a){var E=n(T,a);if(E.status==="error")return t.reject(v,E.value);var F=E.value;if(F)x(v,F);else{v.state=g,v.outcome=a;for(var A=-1,W=v.queue.length;++A<W;)v.queue[A].callFulfilled(a)}return v},t.reject=function(v,a){v.state=l,v.outcome=a;for(var E=-1,F=v.queue.length;++E<F;)v.queue[E].callRejected(a);return v},w.resolve=function(v){if(v instanceof this)return v;return t.resolve(new this(i),v)},w.reject=function(v){var a=new this(i);return t.reject(a,v)},w.all=function(v){var a=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(TypeError("must be an array"));var E=v.length,F=!1;if(!E)return this.resolve([]);var A=Array(E),W=0,S=-1,P=new this(i);for(;++S<E;)O(v[S],S);return P;function O(H,ee){a.resolve(H).then(function(U){A[ee]=U,++W!==E||F||(F=!0,t.resolve(P,A))},function(U){F||(F=!0,t.reject(P,U))})}},w.race=function(v){var a=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(TypeError("must be an array"));var E=v.length,F=!1;if(!E)return this.resolve([]);var A=-1,W=new this(i);for(;++A<E;)S=v[A],a.resolve(S).then(function(P){F||(F=!0,t.resolve(W,P))},function(P){F||(F=!0,t.reject(W,P))});var S;return W}},{immediate:36}],38:[function(p,k,c){var o={};(0,p("./lib/utils/common").assign)(o,p("./lib/deflate"),p("./lib/inflate"),p("./lib/zlib/constants")),k.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(p,k,c){var o=p("./zlib/deflate"),i=p("./utils/common"),t=p("./utils/strings"),l=p("./zlib/messages"),g=p("./zlib/zstream"),_=Object.prototype.toString,w=0,y=-1,h=0,T=8;function x(v){if(!(this instanceof x))return new x(v);this.options=i.assign({level:y,method:T,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},v||{});var a=this.options;a.raw&&0<a.windowBits?a.windowBits=-a.windowBits:a.gzip&&0<a.windowBits&&a.windowBits<16&&(a.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var E=o.deflateInit2(this.strm,a.level,a.method,a.windowBits,a.memLevel,a.strategy);if(E!==w)throw Error(l[E]);if(a.header&&o.deflateSetHeader(this.strm,a.header),a.dictionary){var F;if(F=typeof a.dictionary=="string"?t.string2buf(a.dictionary):_.call(a.dictionary)==="[object ArrayBuffer]"?new Uint8Array(a.dictionary):a.dictionary,(E=o.deflateSetDictionary(this.strm,F))!==w)throw Error(l[E]);this._dict_set=!0}}function n(v,a){var E=new x(a);if(E.push(v,!0),E.err)throw E.msg||l[E.err];return E.result}x.prototype.push=function(v,a){var E,F,A=this.strm,W=this.options.chunkSize;if(this.ended)return!1;F=a===~~a?a:a===!0?4:0,typeof v=="string"?A.input=t.string2buf(v):_.call(v)==="[object ArrayBuffer]"?A.input=new Uint8Array(v):A.input=v,A.next_in=0,A.avail_in=A.input.length;do{if(A.avail_out===0&&(A.output=new i.Buf8(W),A.next_out=0,A.avail_out=W),(E=o.deflate(A,F))!==1&&E!==w)return this.onEnd(E),!(this.ended=!0);A.avail_out!==0&&(A.avail_in!==0||F!==4&&F!==2)||(this.options.to==="string"?this.onData(t.buf2binstring(i.shrinkBuf(A.output,A.next_out))):this.onData(i.shrinkBuf(A.output,A.next_out)))}while((0<A.avail_in||A.avail_out===0)&&E!==1);return F===4?(E=o.deflateEnd(this.strm),this.onEnd(E),this.ended=!0,E===w):F!==2||(this.onEnd(w),!(A.avail_out=0))},x.prototype.onData=function(v){this.chunks.push(v)},x.prototype.onEnd=function(v){v===w&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},c.Deflate=x,c.deflate=n,c.deflateRaw=function(v,a){return(a=a||{}).raw=!0,n(v,a)},c.gzip=function(v,a){return(a=a||{}).gzip=!0,n(v,a)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(p,k,c){var o=p("./zlib/inflate"),i=p("./utils/common"),t=p("./utils/strings"),l=p("./zlib/constants"),g=p("./zlib/messages"),_=p("./zlib/zstream"),w=p("./zlib/gzheader"),y=Object.prototype.toString;function h(x){if(!(this instanceof h))return new h(x);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},x||{});var n=this.options;n.raw&&0<=n.windowBits&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),!(0<=n.windowBits&&n.windowBits<16)||x&&x.windowBits||(n.windowBits+=32),15<n.windowBits&&n.windowBits<48&&(15&n.windowBits)==0&&(n.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _,this.strm.avail_out=0;var v=o.inflateInit2(this.strm,n.windowBits);if(v!==l.Z_OK)throw Error(g[v]);this.header=new w,o.inflateGetHeader(this.strm,this.header)}function T(x,n){var v=new h(n);if(v.push(x,!0),v.err)throw v.msg||g[v.err];return v.result}h.prototype.push=function(x,n){var v,a,E,F,A,W,S=this.strm,P=this.options.chunkSize,O=this.options.dictionary,H=!1;if(this.ended)return!1;a=n===~~n?n:n===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof x=="string"?S.input=t.binstring2buf(x):y.call(x)==="[object ArrayBuffer]"?S.input=new Uint8Array(x):S.input=x,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new i.Buf8(P),S.next_out=0,S.avail_out=P),(v=o.inflate(S,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&O&&(W=typeof O=="string"?t.string2buf(O):y.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,v=o.inflateSetDictionary(this.strm,W)),v===l.Z_BUF_ERROR&&H===!0&&(v=l.Z_OK,H=!1),v!==l.Z_STREAM_END&&v!==l.Z_OK)return this.onEnd(v),!(this.ended=!0);S.next_out&&(S.avail_out!==0&&v!==l.Z_STREAM_END&&(S.avail_in!==0||a!==l.Z_FINISH&&a!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(E=t.utf8border(S.output,S.next_out),F=S.next_out-E,A=t.buf2string(S.output,E),S.next_out=F,S.avail_out=P-F,F&&i.arraySet(S.output,S.output,E,F,0),this.onData(A)):this.onData(i.shrinkBuf(S.output,S.next_out)))),S.avail_in===0&&S.avail_out===0&&(H=!0)}while((0<S.avail_in||S.avail_out===0)&&v!==l.Z_STREAM_END);return v===l.Z_STREAM_END&&(a=l.Z_FINISH),a===l.Z_FINISH?(v=o.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===l.Z_OK):a!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(S.avail_out=0))},h.prototype.onData=function(x){this.chunks.push(x)},h.prototype.onEnd=function(x){x===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=x,this.msg=this.strm.msg},c.Inflate=h,c.inflate=T,c.inflateRaw=function(x,n){return(n=n||{}).raw=!0,T(x,n)},c.ungzip=T},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(p,k,c){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";c.assign=function(l){for(var g=Array.prototype.slice.call(arguments,1);g.length;){var _=g.shift();if(_){if(typeof _!="object")throw TypeError(_+"must be non-object");for(var w in _)_.hasOwnProperty(w)&&(l[w]=_[w])}}return l},c.shrinkBuf=function(l,g){return l.length===g?l:l.subarray?l.subarray(0,g):(l.length=g,l)};var i={arraySet:function(l,g,_,w,y){if(g.subarray&&l.subarray)l.set(g.subarray(_,_+w),y);else for(var h=0;h<w;h++)l[y+h]=g[_+h]},flattenChunks:function(l){var g,_,w,y,h,T;for(g=w=0,_=l.length;g<_;g++)w+=l[g].length;for(T=new Uint8Array(w),g=y=0,_=l.length;g<_;g++)h=l[g],T.set(h,y),y+=h.length;return T}},t={arraySet:function(l,g,_,w,y){for(var h=0;h<w;h++)l[y+h]=g[_+h]},flattenChunks:function(l){return[].concat.apply([],l)}};c.setTyped=function(l){l?(c.Buf8=Uint8Array,c.Buf16=Uint16Array,c.Buf32=Int32Array,c.assign(c,i)):(c.Buf8=Array,c.Buf16=Array,c.Buf32=Array,c.assign(c,t))},c.setTyped(o)},{}],42:[function(p,k,c){var o=p("./common"),i=!0,t=!0;try{String.fromCharCode.apply(null,[0])}catch(w){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(w){t=!1}for(var l=new o.Buf8(256),g=0;g<256;g++)l[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;function _(w,y){if(y<65537&&(w.subarray&&t||!w.subarray&&i))return String.fromCharCode.apply(null,o.shrinkBuf(w,y));for(var h="",T=0;T<y;T++)h+=String.fromCharCode(w[T]);return h}l[254]=l[254]=1,c.string2buf=function(w){var y,h,T,x,n,v=w.length,a=0;for(x=0;x<v;x++)(64512&(h=w.charCodeAt(x)))==55296&&x+1<v&&(64512&(T=w.charCodeAt(x+1)))==56320&&(h=65536+(h-55296<<10)+(T-56320),x++),a+=h<128?1:h<2048?2:h<65536?3:4;for(y=new o.Buf8(a),x=n=0;n<a;x++)(64512&(h=w.charCodeAt(x)))==55296&&x+1<v&&(64512&(T=w.charCodeAt(x+1)))==56320&&(h=65536+(h-55296<<10)+(T-56320),x++),h<128?y[n++]=h:(h<2048?y[n++]=192|h>>>6:(h<65536?y[n++]=224|h>>>12:(y[n++]=240|h>>>18,y[n++]=128|h>>>12&63),y[n++]=128|h>>>6&63),y[n++]=128|63&h);return y},c.buf2binstring=function(w){return _(w,w.length)},c.binstring2buf=function(w){for(var y=new o.Buf8(w.length),h=0,T=y.length;h<T;h++)y[h]=w.charCodeAt(h);return y},c.buf2string=function(w,y){var h,T,x,n,v=y||w.length,a=Array(2*v);for(h=T=0;h<v;)if((x=w[h++])<128)a[T++]=x;else if(4<(n=l[x]))a[T++]=65533,h+=n-1;else{for(x&=n===2?31:n===3?15:7;1<n&&h<v;)x=x<<6|63&w[h++],n--;1<n?a[T++]=65533:x<65536?a[T++]=x:(x-=65536,a[T++]=55296|x>>10&1023,a[T++]=56320|1023&x)}return _(a,T)},c.utf8border=function(w,y){var h;for((y=y||w.length)>w.length&&(y=w.length),h=y-1;0<=h&&(192&w[h])==128;)h--;return h<0?y:h===0?y:h+l[w[h]]>y?h:y}},{"./common":41}],43:[function(p,k,c){k.exports=function(o,i,t,l){for(var g=65535&o|0,_=o>>>16&65535|0,w=0;t!==0;){for(t-=w=2000<t?2000:t;_=_+(g=g+i[l++]|0)|0,--w;);g%=65521,_%=65521}return g|_<<16|0}},{}],44:[function(p,k,c){k.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(p,k,c){var o=function(){for(var i,t=[],l=0;l<256;l++){i=l;for(var g=0;g<8;g++)i=1&i?3988292384^i>>>1:i>>>1;t[l]=i}return t}();k.exports=function(i,t,l,g){var _=o,w=g+l;i^=-1;for(var y=g;y<w;y++)i=i>>>8^_[255&(i^t[y])];return-1^i}},{}],46:[function(p,k,c){var o,i=p("../utils/common"),t=p("./trees"),l=p("./adler32"),g=p("./crc32"),_=p("./messages"),w=0,y=4,h=0,T=-2,x=-1,n=4,v=2,a=8,E=9,F=286,A=30,W=19,S=2*F+1,P=15,O=3,H=258,ee=H+O+1,U=42,J=113,D=1,te=2,ye=3,se=4;function ve(d,q){return d.msg=_[q],q}function le(d){return(d<<1)-(4<d?9:0)}function be(d){for(var q=d.length;0<=--q;)d[q]=0}function Q(d){var q=d.state,Y=q.pending;Y>d.avail_out&&(Y=d.avail_out),Y!==0&&(i.arraySet(d.output,q.pending_buf,q.pending_out,Y,d.next_out),d.next_out+=Y,q.pending_out+=Y,d.total_out+=Y,d.avail_out-=Y,q.pending-=Y,q.pending===0&&(q.pending_out=0))}function ne(d,q){t._tr_flush_block(d,0<=d.block_start?d.block_start:-1,d.strstart-d.block_start,q),d.block_start=d.strstart,Q(d.strm)}function Te(d,q){d.pending_buf[d.pending++]=q}function pe(d,q){d.pending_buf[d.pending++]=q>>>8&255,d.pending_buf[d.pending++]=255&q}function de(d,q){var Y,j,{max_chain_length:f,strstart:r,prev_length:s,nice_match:N}=d,M=d.strstart>d.w_size-ee?d.strstart-(d.w_size-ee):0,{window:K,w_mask:ie,prev:ue}=d,we=d.strstart+H,Se=K[r+s-1],_e=K[r+s];d.prev_length>=d.good_match&&(f>>=2),N>d.lookahead&&(N=d.lookahead);do if(K[(Y=q)+s]===_e&&K[Y+s-1]===Se&&K[Y]===K[r]&&K[++Y]===K[r+1]){r+=2,Y++;do;while(K[++r]===K[++Y]&&K[++r]===K[++Y]&&K[++r]===K[++Y]&&K[++r]===K[++Y]&&K[++r]===K[++Y]&&K[++r]===K[++Y]&&K[++r]===K[++Y]&&K[++r]===K[++Y]&&r<we);if(j=H-(we-r),r=we-H,s<j){if(d.match_start=q,N<=(s=j))break;Se=K[r+s-1],_e=K[r+s]}}while((q=ue[q&ie])>M&&--f!=0);return s<=d.lookahead?s:d.lookahead}function Pe(d){var q,Y,j,f,r,s,N,M,K,ie,ue=d.w_size;do{if(f=d.window_size-d.lookahead-d.strstart,d.strstart>=ue+(ue-ee)){for(i.arraySet(d.window,d.window,ue,ue,0),d.match_start-=ue,d.strstart-=ue,d.block_start-=ue,q=Y=d.hash_size;j=d.head[--q],d.head[q]=ue<=j?j-ue:0,--Y;);for(q=Y=ue;j=d.prev[--q],d.prev[q]=ue<=j?j-ue:0,--Y;);f+=ue}if(d.strm.avail_in===0)break;if(s=d.strm,N=d.window,M=d.strstart+d.lookahead,K=f,ie=void 0,ie=s.avail_in,K<ie&&(ie=K),Y=ie===0?0:(s.avail_in-=ie,i.arraySet(N,s.input,s.next_in,ie,M),s.state.wrap===1?s.adler=l(s.adler,N,ie,M):s.state.wrap===2&&(s.adler=g(s.adler,N,ie,M)),s.next_in+=ie,s.total_in+=ie,ie),d.lookahead+=Y,d.lookahead+d.insert>=O)for(r=d.strstart-d.insert,d.ins_h=d.window[r],d.ins_h=(d.ins_h<<d.hash_shift^d.window[r+1])&d.hash_mask;d.insert&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[r+O-1])&d.hash_mask,d.prev[r&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=r,r++,d.insert--,!(d.lookahead+d.insert<O)););}while(d.lookahead<ee&&d.strm.avail_in!==0)}function Be(d,q){for(var Y,j;;){if(d.lookahead<ee){if(Pe(d),d.lookahead<ee&&q===w)return D;if(d.lookahead===0)break}if(Y=0,d.lookahead>=O&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+O-1])&d.hash_mask,Y=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),Y!==0&&d.strstart-Y<=d.w_size-ee&&(d.match_length=de(d,Y)),d.match_length>=O)if(j=t._tr_tally(d,d.strstart-d.match_start,d.match_length-O),d.lookahead-=d.match_length,d.match_length<=d.max_lazy_match&&d.lookahead>=O){for(d.match_length--;d.strstart++,d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+O-1])&d.hash_mask,Y=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart,--d.match_length!=0;);d.strstart++}else d.strstart+=d.match_length,d.match_length=0,d.ins_h=d.window[d.strstart],d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+1])&d.hash_mask;else j=t._tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++;if(j&&(ne(d,!1),d.strm.avail_out===0))return D}return d.insert=d.strstart<O-1?d.strstart:O-1,q===y?(ne(d,!0),d.strm.avail_out===0?ye:se):d.last_lit&&(ne(d,!1),d.strm.avail_out===0)?D:te}function Ie(d,q){for(var Y,j,f;;){if(d.lookahead<ee){if(Pe(d),d.lookahead<ee&&q===w)return D;if(d.lookahead===0)break}if(Y=0,d.lookahead>=O&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+O-1])&d.hash_mask,Y=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),d.prev_length=d.match_length,d.prev_match=d.match_start,d.match_length=O-1,Y!==0&&d.prev_length<d.max_lazy_match&&d.strstart-Y<=d.w_size-ee&&(d.match_length=de(d,Y),d.match_length<=5&&(d.strategy===1||d.match_length===O&&4096<d.strstart-d.match_start)&&(d.match_length=O-1)),d.prev_length>=O&&d.match_length<=d.prev_length){for(f=d.strstart+d.lookahead-O,j=t._tr_tally(d,d.strstart-1-d.prev_match,d.prev_length-O),d.lookahead-=d.prev_length-1,d.prev_length-=2;++d.strstart<=f&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+O-1])&d.hash_mask,Y=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),--d.prev_length!=0;);if(d.match_available=0,d.match_length=O-1,d.strstart++,j&&(ne(d,!1),d.strm.avail_out===0))return D}else if(d.match_available){if((j=t._tr_tally(d,0,d.window[d.strstart-1]))&&ne(d,!1),d.strstart++,d.lookahead--,d.strm.avail_out===0)return D}else d.match_available=1,d.strstart++,d.lookahead--}return d.match_available&&(j=t._tr_tally(d,0,d.window[d.strstart-1]),d.match_available=0),d.insert=d.strstart<O-1?d.strstart:O-1,q===y?(ne(d,!0),d.strm.avail_out===0?ye:se):d.last_lit&&(ne(d,!1),d.strm.avail_out===0)?D:te}function ke(d,q,Y,j,f){this.good_length=d,this.max_lazy=q,this.nice_length=Y,this.max_chain=j,this.func=f}function Ne(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=a,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*S),this.dyn_dtree=new i.Buf16(2*(2*A+1)),this.bl_tree=new i.Buf16(2*(2*W+1)),be(this.dyn_ltree),be(this.dyn_dtree),be(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(P+1),this.heap=new i.Buf16(2*F+1),be(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*F+1),be(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Re(d){var q;return d&&d.state?(d.total_in=d.total_out=0,d.data_type=v,(q=d.state).pending=0,q.pending_out=0,q.wrap<0&&(q.wrap=-q.wrap),q.status=q.wrap?U:J,d.adler=q.wrap===2?0:1,q.last_flush=w,t._tr_init(q),h):ve(d,T)}function We(d){var q=Re(d);return q===h&&function(Y){Y.window_size=2*Y.w_size,be(Y.head),Y.max_lazy_match=o[Y.level].max_lazy,Y.good_match=o[Y.level].good_length,Y.nice_match=o[Y.level].nice_length,Y.max_chain_length=o[Y.level].max_chain,Y.strstart=0,Y.block_start=0,Y.lookahead=0,Y.insert=0,Y.match_length=Y.prev_length=O-1,Y.match_available=0,Y.ins_h=0}(d.state),q}function Ae(d,q,Y,j,f,r){if(!d)return T;var s=1;if(q===x&&(q=6),j<0?(s=0,j=-j):15<j&&(s=2,j-=16),f<1||E<f||Y!==a||j<8||15<j||q<0||9<q||r<0||n<r)return ve(d,T);j===8&&(j=9);var N=new Ne;return(d.state=N).strm=d,N.wrap=s,N.gzhead=null,N.w_bits=j,N.w_size=1<<N.w_bits,N.w_mask=N.w_size-1,N.hash_bits=f+7,N.hash_size=1<<N.hash_bits,N.hash_mask=N.hash_size-1,N.hash_shift=~~((N.hash_bits+O-1)/O),N.window=new i.Buf8(2*N.w_size),N.head=new i.Buf16(N.hash_size),N.prev=new i.Buf16(N.w_size),N.lit_bufsize=1<<f+6,N.pending_buf_size=4*N.lit_bufsize,N.pending_buf=new i.Buf8(N.pending_buf_size),N.d_buf=1*N.lit_bufsize,N.l_buf=3*N.lit_bufsize,N.level=q,N.strategy=r,N.method=Y,We(d)}o=[new ke(0,0,0,0,function(d,q){var Y=65535;for(Y>d.pending_buf_size-5&&(Y=d.pending_buf_size-5);;){if(d.lookahead<=1){if(Pe(d),d.lookahead===0&&q===w)return D;if(d.lookahead===0)break}d.strstart+=d.lookahead,d.lookahead=0;var j=d.block_start+Y;if((d.strstart===0||d.strstart>=j)&&(d.lookahead=d.strstart-j,d.strstart=j,ne(d,!1),d.strm.avail_out===0))return D;if(d.strstart-d.block_start>=d.w_size-ee&&(ne(d,!1),d.strm.avail_out===0))return D}return d.insert=0,q===y?(ne(d,!0),d.strm.avail_out===0?ye:se):(d.strstart>d.block_start&&(ne(d,!1),d.strm.avail_out),D)}),new ke(4,4,8,4,Be),new ke(4,5,16,8,Be),new ke(4,6,32,32,Be),new ke(4,4,16,16,Ie),new ke(8,16,32,32,Ie),new ke(8,16,128,128,Ie),new ke(8,32,128,256,Ie),new ke(32,128,258,1024,Ie),new ke(32,258,258,4096,Ie)],c.deflateInit=function(d,q){return Ae(d,q,a,15,8,0)},c.deflateInit2=Ae,c.deflateReset=We,c.deflateResetKeep=Re,c.deflateSetHeader=function(d,q){return d&&d.state?d.state.wrap!==2?T:(d.state.gzhead=q,h):T},c.deflate=function(d,q){var Y,j,f,r;if(!d||!d.state||5<q||q<0)return d?ve(d,T):T;if(j=d.state,!d.output||!d.input&&d.avail_in!==0||j.status===666&&q!==y)return ve(d,d.avail_out===0?-5:T);if(j.strm=d,Y=j.last_flush,j.last_flush=q,j.status===U)if(j.wrap===2)d.adler=0,Te(j,31),Te(j,139),Te(j,8),j.gzhead?(Te(j,(j.gzhead.text?1:0)+(j.gzhead.hcrc?2:0)+(j.gzhead.extra?4:0)+(j.gzhead.name?8:0)+(j.gzhead.comment?16:0)),Te(j,255&j.gzhead.time),Te(j,j.gzhead.time>>8&255),Te(j,j.gzhead.time>>16&255),Te(j,j.gzhead.time>>24&255),Te(j,j.level===9?2:2<=j.strategy||j.level<2?4:0),Te(j,255&j.gzhead.os),j.gzhead.extra&&j.gzhead.extra.length&&(Te(j,255&j.gzhead.extra.length),Te(j,j.gzhead.extra.length>>8&255)),j.gzhead.hcrc&&(d.adler=g(d.adler,j.pending_buf,j.pending,0)),j.gzindex=0,j.status=69):(Te(j,0),Te(j,0),Te(j,0),Te(j,0),Te(j,0),Te(j,j.level===9?2:2<=j.strategy||j.level<2?4:0),Te(j,3),j.status=J);else{var s=a+(j.w_bits-8<<4)<<8;s|=(2<=j.strategy||j.level<2?0:j.level<6?1:j.level===6?2:3)<<6,j.strstart!==0&&(s|=32),s+=31-s%31,j.status=J,pe(j,s),j.strstart!==0&&(pe(j,d.adler>>>16),pe(j,65535&d.adler)),d.adler=1}if(j.status===69)if(j.gzhead.extra){for(f=j.pending;j.gzindex<(65535&j.gzhead.extra.length)&&(j.pending!==j.pending_buf_size||(j.gzhead.hcrc&&j.pending>f&&(d.adler=g(d.adler,j.pending_buf,j.pending-f,f)),Q(d),f=j.pending,j.pending!==j.pending_buf_size));)Te(j,255&j.gzhead.extra[j.gzindex]),j.gzindex++;j.gzhead.hcrc&&j.pending>f&&(d.adler=g(d.adler,j.pending_buf,j.pending-f,f)),j.gzindex===j.gzhead.extra.length&&(j.gzindex=0,j.status=73)}else j.status=73;if(j.status===73)if(j.gzhead.name){f=j.pending;do{if(j.pending===j.pending_buf_size&&(j.gzhead.hcrc&&j.pending>f&&(d.adler=g(d.adler,j.pending_buf,j.pending-f,f)),Q(d),f=j.pending,j.pending===j.pending_buf_size)){r=1;break}r=j.gzindex<j.gzhead.name.length?255&j.gzhead.name.charCodeAt(j.gzindex++):0,Te(j,r)}while(r!==0);j.gzhead.hcrc&&j.pending>f&&(d.adler=g(d.adler,j.pending_buf,j.pending-f,f)),r===0&&(j.gzindex=0,j.status=91)}else j.status=91;if(j.status===91)if(j.gzhead.comment){f=j.pending;do{if(j.pending===j.pending_buf_size&&(j.gzhead.hcrc&&j.pending>f&&(d.adler=g(d.adler,j.pending_buf,j.pending-f,f)),Q(d),f=j.pending,j.pending===j.pending_buf_size)){r=1;break}r=j.gzindex<j.gzhead.comment.length?255&j.gzhead.comment.charCodeAt(j.gzindex++):0,Te(j,r)}while(r!==0);j.gzhead.hcrc&&j.pending>f&&(d.adler=g(d.adler,j.pending_buf,j.pending-f,f)),r===0&&(j.status=103)}else j.status=103;if(j.status===103&&(j.gzhead.hcrc?(j.pending+2>j.pending_buf_size&&Q(d),j.pending+2<=j.pending_buf_size&&(Te(j,255&d.adler),Te(j,d.adler>>8&255),d.adler=0,j.status=J)):j.status=J),j.pending!==0){if(Q(d),d.avail_out===0)return j.last_flush=-1,h}else if(d.avail_in===0&&le(q)<=le(Y)&&q!==y)return ve(d,-5);if(j.status===666&&d.avail_in!==0)return ve(d,-5);if(d.avail_in!==0||j.lookahead!==0||q!==w&&j.status!==666){var N=j.strategy===2?function(M,K){for(var ie;;){if(M.lookahead===0&&(Pe(M),M.lookahead===0)){if(K===w)return D;break}if(M.match_length=0,ie=t._tr_tally(M,0,M.window[M.strstart]),M.lookahead--,M.strstart++,ie&&(ne(M,!1),M.strm.avail_out===0))return D}return M.insert=0,K===y?(ne(M,!0),M.strm.avail_out===0?ye:se):M.last_lit&&(ne(M,!1),M.strm.avail_out===0)?D:te}(j,q):j.strategy===3?function(M,K){for(var ie,ue,we,Se,_e=M.window;;){if(M.lookahead<=H){if(Pe(M),M.lookahead<=H&&K===w)return D;if(M.lookahead===0)break}if(M.match_length=0,M.lookahead>=O&&0<M.strstart&&(ue=_e[we=M.strstart-1])===_e[++we]&&ue===_e[++we]&&ue===_e[++we]){Se=M.strstart+H;do;while(ue===_e[++we]&&ue===_e[++we]&&ue===_e[++we]&&ue===_e[++we]&&ue===_e[++we]&&ue===_e[++we]&&ue===_e[++we]&&ue===_e[++we]&&we<Se);M.match_length=H-(Se-we),M.match_length>M.lookahead&&(M.match_length=M.lookahead)}if(M.match_length>=O?(ie=t._tr_tally(M,1,M.match_length-O),M.lookahead-=M.match_length,M.strstart+=M.match_length,M.match_length=0):(ie=t._tr_tally(M,0,M.window[M.strstart]),M.lookahead--,M.strstart++),ie&&(ne(M,!1),M.strm.avail_out===0))return D}return M.insert=0,K===y?(ne(M,!0),M.strm.avail_out===0?ye:se):M.last_lit&&(ne(M,!1),M.strm.avail_out===0)?D:te}(j,q):o[j.level].func(j,q);if(N!==ye&&N!==se||(j.status=666),N===D||N===ye)return d.avail_out===0&&(j.last_flush=-1),h;if(N===te&&(q===1?t._tr_align(j):q!==5&&(t._tr_stored_block(j,0,0,!1),q===3&&(be(j.head),j.lookahead===0&&(j.strstart=0,j.block_start=0,j.insert=0))),Q(d),d.avail_out===0))return j.last_flush=-1,h}return q!==y?h:j.wrap<=0?1:(j.wrap===2?(Te(j,255&d.adler),Te(j,d.adler>>8&255),Te(j,d.adler>>16&255),Te(j,d.adler>>24&255),Te(j,255&d.total_in),Te(j,d.total_in>>8&255),Te(j,d.total_in>>16&255),Te(j,d.total_in>>24&255)):(pe(j,d.adler>>>16),pe(j,65535&d.adler)),Q(d),0<j.wrap&&(j.wrap=-j.wrap),j.pending!==0?h:1)},c.deflateEnd=function(d){var q;return d&&d.state?(q=d.state.status)!==U&&q!==69&&q!==73&&q!==91&&q!==103&&q!==J&&q!==666?ve(d,T):(d.state=null,q===J?ve(d,-3):h):T},c.deflateSetDictionary=function(d,q){var Y,j,f,r,s,N,M,K,ie=q.length;if(!d||!d.state)return T;if((r=(Y=d.state).wrap)===2||r===1&&Y.status!==U||Y.lookahead)return T;for(r===1&&(d.adler=l(d.adler,q,ie,0)),Y.wrap=0,ie>=Y.w_size&&(r===0&&(be(Y.head),Y.strstart=0,Y.block_start=0,Y.insert=0),K=new i.Buf8(Y.w_size),i.arraySet(K,q,ie-Y.w_size,Y.w_size,0),q=K,ie=Y.w_size),s=d.avail_in,N=d.next_in,M=d.input,d.avail_in=ie,d.next_in=0,d.input=q,Pe(Y);Y.lookahead>=O;){for(j=Y.strstart,f=Y.lookahead-(O-1);Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[j+O-1])&Y.hash_mask,Y.prev[j&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=j,j++,--f;);Y.strstart=j,Y.lookahead=O-1,Pe(Y)}return Y.strstart+=Y.lookahead,Y.block_start=Y.strstart,Y.insert=Y.lookahead,Y.lookahead=0,Y.match_length=Y.prev_length=O-1,Y.match_available=0,d.next_in=N,d.input=M,d.avail_in=s,Y.wrap=r,h},c.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(p,k,c){k.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(p,k,c){k.exports=function(o,i){var t,l,g,_,w,y,h,T,x,n,v,a,E,F,A,W,S,P,O,H,ee,U,J,D,te;t=o.state,l=o.next_in,D=o.input,g=l+(o.avail_in-5),_=o.next_out,te=o.output,w=_-(i-o.avail_out),y=_+(o.avail_out-257),h=t.dmax,T=t.wsize,x=t.whave,n=t.wnext,v=t.window,a=t.hold,E=t.bits,F=t.lencode,A=t.distcode,W=(1<<t.lenbits)-1,S=(1<<t.distbits)-1;e:do{E<15&&(a+=D[l++]<<E,E+=8,a+=D[l++]<<E,E+=8),P=F[a&W];t:for(;;){if(a>>>=O=P>>>24,E-=O,(O=P>>>16&255)===0)te[_++]=65535&P;else{if(!(16&O)){if((64&O)==0){P=F[(65535&P)+(a&(1<<O)-1)];continue t}if(32&O){t.mode=12;break e}o.msg="invalid literal/length code",t.mode=30;break e}H=65535&P,(O&=15)&&(E<O&&(a+=D[l++]<<E,E+=8),H+=a&(1<<O)-1,a>>>=O,E-=O),E<15&&(a+=D[l++]<<E,E+=8,a+=D[l++]<<E,E+=8),P=A[a&S];r:for(;;){if(a>>>=O=P>>>24,E-=O,!(16&(O=P>>>16&255))){if((64&O)==0){P=A[(65535&P)+(a&(1<<O)-1)];continue r}o.msg="invalid distance code",t.mode=30;break e}if(ee=65535&P,E<(O&=15)&&(a+=D[l++]<<E,(E+=8)<O&&(a+=D[l++]<<E,E+=8)),h<(ee+=a&(1<<O)-1)){o.msg="invalid distance too far back",t.mode=30;break e}if(a>>>=O,E-=O,(O=_-w)<ee){if(x<(O=ee-O)&&t.sane){o.msg="invalid distance too far back",t.mode=30;break e}if(J=v,(U=0)===n){if(U+=T-O,O<H){for(H-=O;te[_++]=v[U++],--O;);U=_-ee,J=te}}else if(n<O){if(U+=T+n-O,(O-=n)<H){for(H-=O;te[_++]=v[U++],--O;);if(U=0,n<H){for(H-=O=n;te[_++]=v[U++],--O;);U=_-ee,J=te}}}else if(U+=n-O,O<H){for(H-=O;te[_++]=v[U++],--O;);U=_-ee,J=te}for(;2<H;)te[_++]=J[U++],te[_++]=J[U++],te[_++]=J[U++],H-=3;H&&(te[_++]=J[U++],1<H&&(te[_++]=J[U++]))}else{for(U=_-ee;te[_++]=te[U++],te[_++]=te[U++],te[_++]=te[U++],2<(H-=3););H&&(te[_++]=te[U++],1<H&&(te[_++]=te[U++]))}break}}break}}while(l<g&&_<y);l-=H=E>>3,a&=(1<<(E-=H<<3))-1,o.next_in=l,o.next_out=_,o.avail_in=l<g?g-l+5:5-(l-g),o.avail_out=_<y?y-_+257:257-(_-y),t.hold=a,t.bits=E}},{}],49:[function(p,k,c){var o=p("../utils/common"),i=p("./adler32"),t=p("./crc32"),l=p("./inffast"),g=p("./inftrees"),_=1,w=2,y=0,h=-2,T=1,x=852,n=592;function v(U){return(U>>>24&255)+(U>>>8&65280)+((65280&U)<<8)+((255&U)<<24)}function a(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function E(U){var J;return U&&U.state?(J=U.state,U.total_in=U.total_out=J.total=0,U.msg="",J.wrap&&(U.adler=1&J.wrap),J.mode=T,J.last=0,J.havedict=0,J.dmax=32768,J.head=null,J.hold=0,J.bits=0,J.lencode=J.lendyn=new o.Buf32(x),J.distcode=J.distdyn=new o.Buf32(n),J.sane=1,J.back=-1,y):h}function F(U){var J;return U&&U.state?((J=U.state).wsize=0,J.whave=0,J.wnext=0,E(U)):h}function A(U,J){var D,te;return U&&U.state?(te=U.state,J<0?(D=0,J=-J):(D=1+(J>>4),J<48&&(J&=15)),J&&(J<8||15<J)?h:(te.window!==null&&te.wbits!==J&&(te.window=null),te.wrap=D,te.wbits=J,F(U))):h}function W(U,J){var D,te;return U?(te=new a,(U.state=te).window=null,(D=A(U,J))!==y&&(U.state=null),D):h}var S,P,O=!0;function H(U){if(O){var J;for(S=new o.Buf32(512),P=new o.Buf32(32),J=0;J<144;)U.lens[J++]=8;for(;J<256;)U.lens[J++]=9;for(;J<280;)U.lens[J++]=7;for(;J<288;)U.lens[J++]=8;for(g(_,U.lens,0,288,S,0,U.work,{bits:9}),J=0;J<32;)U.lens[J++]=5;g(w,U.lens,0,32,P,0,U.work,{bits:5}),O=!1}U.lencode=S,U.lenbits=9,U.distcode=P,U.distbits=5}function ee(U,J,D,te){var ye,se=U.state;return se.window===null&&(se.wsize=1<<se.wbits,se.wnext=0,se.whave=0,se.window=new o.Buf8(se.wsize)),te>=se.wsize?(o.arraySet(se.window,J,D-se.wsize,se.wsize,0),se.wnext=0,se.whave=se.wsize):(te<(ye=se.wsize-se.wnext)&&(ye=te),o.arraySet(se.window,J,D-te,ye,se.wnext),(te-=ye)?(o.arraySet(se.window,J,D-te,te,0),se.wnext=te,se.whave=se.wsize):(se.wnext+=ye,se.wnext===se.wsize&&(se.wnext=0),se.whave<se.wsize&&(se.whave+=ye))),0}c.inflateReset=F,c.inflateReset2=A,c.inflateResetKeep=E,c.inflateInit=function(U){return W(U,15)},c.inflateInit2=W,c.inflate=function(U,J){var D,te,ye,se,ve,le,be,Q,ne,Te,pe,de,Pe,Be,Ie,ke,Ne,Re,We,Ae,d,q,Y,j,f=0,r=new o.Buf8(4),s=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!U||!U.state||!U.output||!U.input&&U.avail_in!==0)return h;(D=U.state).mode===12&&(D.mode=13),ve=U.next_out,ye=U.output,be=U.avail_out,se=U.next_in,te=U.input,le=U.avail_in,Q=D.hold,ne=D.bits,Te=le,pe=be,q=y;e:for(;;)switch(D.mode){case T:if(D.wrap===0){D.mode=13;break}for(;ne<16;){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}if(2&D.wrap&&Q===35615){r[D.check=0]=255&Q,r[1]=Q>>>8&255,D.check=t(D.check,r,2,0),ne=Q=0,D.mode=2;break}if(D.flags=0,D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&Q)<<8)+(Q>>8))%31){U.msg="incorrect header check",D.mode=30;break}if((15&Q)!=8){U.msg="unknown compression method",D.mode=30;break}if(ne-=4,d=8+(15&(Q>>>=4)),D.wbits===0)D.wbits=d;else if(d>D.wbits){U.msg="invalid window size",D.mode=30;break}D.dmax=1<<d,U.adler=D.check=1,D.mode=512&Q?10:12,ne=Q=0;break;case 2:for(;ne<16;){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}if(D.flags=Q,(255&D.flags)!=8){U.msg="unknown compression method",D.mode=30;break}if(57344&D.flags){U.msg="unknown header flags set",D.mode=30;break}D.head&&(D.head.text=Q>>8&1),512&D.flags&&(r[0]=255&Q,r[1]=Q>>>8&255,D.check=t(D.check,r,2,0)),ne=Q=0,D.mode=3;case 3:for(;ne<32;){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}D.head&&(D.head.time=Q),512&D.flags&&(r[0]=255&Q,r[1]=Q>>>8&255,r[2]=Q>>>16&255,r[3]=Q>>>24&255,D.check=t(D.check,r,4,0)),ne=Q=0,D.mode=4;case 4:for(;ne<16;){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}D.head&&(D.head.xflags=255&Q,D.head.os=Q>>8),512&D.flags&&(r[0]=255&Q,r[1]=Q>>>8&255,D.check=t(D.check,r,2,0)),ne=Q=0,D.mode=5;case 5:if(1024&D.flags){for(;ne<16;){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}D.length=Q,D.head&&(D.head.extra_len=Q),512&D.flags&&(r[0]=255&Q,r[1]=Q>>>8&255,D.check=t(D.check,r,2,0)),ne=Q=0}else D.head&&(D.head.extra=null);D.mode=6;case 6:if(1024&D.flags&&(le<(de=D.length)&&(de=le),de&&(D.head&&(d=D.head.extra_len-D.length,D.head.extra||(D.head.extra=Array(D.head.extra_len)),o.arraySet(D.head.extra,te,se,de,d)),512&D.flags&&(D.check=t(D.check,te,de,se)),le-=de,se+=de,D.length-=de),D.length))break e;D.length=0,D.mode=7;case 7:if(2048&D.flags){if(le===0)break e;for(de=0;d=te[se+de++],D.head&&d&&D.length<65536&&(D.head.name+=String.fromCharCode(d)),d&&de<le;);if(512&D.flags&&(D.check=t(D.check,te,de,se)),le-=de,se+=de,d)break e}else D.head&&(D.head.name=null);D.length=0,D.mode=8;case 8:if(4096&D.flags){if(le===0)break e;for(de=0;d=te[se+de++],D.head&&d&&D.length<65536&&(D.head.comment+=String.fromCharCode(d)),d&&de<le;);if(512&D.flags&&(D.check=t(D.check,te,de,se)),le-=de,se+=de,d)break e}else D.head&&(D.head.comment=null);D.mode=9;case 9:if(512&D.flags){for(;ne<16;){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}if(Q!==(65535&D.check)){U.msg="header crc mismatch",D.mode=30;break}ne=Q=0}D.head&&(D.head.hcrc=D.flags>>9&1,D.head.done=!0),U.adler=D.check=0,D.mode=12;break;case 10:for(;ne<32;){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}U.adler=D.check=v(Q),ne=Q=0,D.mode=11;case 11:if(D.havedict===0)return U.next_out=ve,U.avail_out=be,U.next_in=se,U.avail_in=le,D.hold=Q,D.bits=ne,2;U.adler=D.check=1,D.mode=12;case 12:if(J===5||J===6)break e;case 13:if(D.last){Q>>>=7&ne,ne-=7&ne,D.mode=27;break}for(;ne<3;){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}switch(D.last=1&Q,ne-=1,3&(Q>>>=1)){case 0:D.mode=14;break;case 1:if(H(D),D.mode=20,J!==6)break;Q>>>=2,ne-=2;break e;case 2:D.mode=17;break;case 3:U.msg="invalid block type",D.mode=30}Q>>>=2,ne-=2;break;case 14:for(Q>>>=7&ne,ne-=7≠ne<32;){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}if((65535&Q)!=(Q>>>16^65535)){U.msg="invalid stored block lengths",D.mode=30;break}if(D.length=65535&Q,ne=Q=0,D.mode=15,J===6)break e;case 15:D.mode=16;case 16:if(de=D.length){if(le<de&&(de=le),be<de&&(de=be),de===0)break e;o.arraySet(ye,te,se,de,ve),le-=de,se+=de,be-=de,ve+=de,D.length-=de;break}D.mode=12;break;case 17:for(;ne<14;){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}if(D.nlen=257+(31&Q),Q>>>=5,ne-=5,D.ndist=1+(31&Q),Q>>>=5,ne-=5,D.ncode=4+(15&Q),Q>>>=4,ne-=4,286<D.nlen||30<D.ndist){U.msg="too many length or distance symbols",D.mode=30;break}D.have=0,D.mode=18;case 18:for(;D.have<D.ncode;){for(;ne<3;){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}D.lens[s[D.have++]]=7&Q,Q>>>=3,ne-=3}for(;D.have<19;)D.lens[s[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,Y={bits:D.lenbits},q=g(0,D.lens,0,19,D.lencode,0,D.work,Y),D.lenbits=Y.bits,q){U.msg="invalid code lengths set",D.mode=30;break}D.have=0,D.mode=19;case 19:for(;D.have<D.nlen+D.ndist;){for(;ke=(f=D.lencode[Q&(1<<D.lenbits)-1])>>>16&255,Ne=65535&f,!((Ie=f>>>24)<=ne);){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}if(Ne<16)Q>>>=Ie,ne-=Ie,D.lens[D.have++]=Ne;else{if(Ne===16){for(j=Ie+2;ne<j;){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}if(Q>>>=Ie,ne-=Ie,D.have===0){U.msg="invalid bit length repeat",D.mode=30;break}d=D.lens[D.have-1],de=3+(3&Q),Q>>>=2,ne-=2}else if(Ne===17){for(j=Ie+3;ne<j;){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}ne-=Ie,d=0,de=3+(7&(Q>>>=Ie)),Q>>>=3,ne-=3}else{for(j=Ie+7;ne<j;){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}ne-=Ie,d=0,de=11+(127&(Q>>>=Ie)),Q>>>=7,ne-=7}if(D.have+de>D.nlen+D.ndist){U.msg="invalid bit length repeat",D.mode=30;break}for(;de--;)D.lens[D.have++]=d}}if(D.mode===30)break;if(D.lens[256]===0){U.msg="invalid code -- missing end-of-block",D.mode=30;break}if(D.lenbits=9,Y={bits:D.lenbits},q=g(_,D.lens,0,D.nlen,D.lencode,0,D.work,Y),D.lenbits=Y.bits,q){U.msg="invalid literal/lengths set",D.mode=30;break}if(D.distbits=6,D.distcode=D.distdyn,Y={bits:D.distbits},q=g(w,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,Y),D.distbits=Y.bits,q){U.msg="invalid distances set",D.mode=30;break}if(D.mode=20,J===6)break e;case 20:D.mode=21;case 21:if(6<=le&&258<=be){U.next_out=ve,U.avail_out=be,U.next_in=se,U.avail_in=le,D.hold=Q,D.bits=ne,l(U,pe),ve=U.next_out,ye=U.output,be=U.avail_out,se=U.next_in,te=U.input,le=U.avail_in,Q=D.hold,ne=D.bits,D.mode===12&&(D.back=-1);break}for(D.back=0;ke=(f=D.lencode[Q&(1<<D.lenbits)-1])>>>16&255,Ne=65535&f,!((Ie=f>>>24)<=ne);){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}if(ke&&(240&ke)==0){for(Re=Ie,We=ke,Ae=Ne;ke=(f=D.lencode[Ae+((Q&(1<<Re+We)-1)>>Re)])>>>16&255,Ne=65535&f,!(Re+(Ie=f>>>24)<=ne);){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}Q>>>=Re,ne-=Re,D.back+=Re}if(Q>>>=Ie,ne-=Ie,D.back+=Ie,D.length=Ne,ke===0){D.mode=26;break}if(32&ke){D.back=-1,D.mode=12;break}if(64&ke){U.msg="invalid literal/length code",D.mode=30;break}D.extra=15&ke,D.mode=22;case 22:if(D.extra){for(j=D.extra;ne<j;){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}D.length+=Q&(1<<D.extra)-1,Q>>>=D.extra,ne-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=23;case 23:for(;ke=(f=D.distcode[Q&(1<<D.distbits)-1])>>>16&255,Ne=65535&f,!((Ie=f>>>24)<=ne);){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}if((240&ke)==0){for(Re=Ie,We=ke,Ae=Ne;ke=(f=D.distcode[Ae+((Q&(1<<Re+We)-1)>>Re)])>>>16&255,Ne=65535&f,!(Re+(Ie=f>>>24)<=ne);){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}Q>>>=Re,ne-=Re,D.back+=Re}if(Q>>>=Ie,ne-=Ie,D.back+=Ie,64&ke){U.msg="invalid distance code",D.mode=30;break}D.offset=Ne,D.extra=15&ke,D.mode=24;case 24:if(D.extra){for(j=D.extra;ne<j;){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}D.offset+=Q&(1<<D.extra)-1,Q>>>=D.extra,ne-=D.extra,D.back+=D.extra}if(D.offset>D.dmax){U.msg="invalid distance too far back",D.mode=30;break}D.mode=25;case 25:if(be===0)break e;if(de=pe-be,D.offset>de){if((de=D.offset-de)>D.whave&&D.sane){U.msg="invalid distance too far back",D.mode=30;break}Pe=de>D.wnext?(de-=D.wnext,D.wsize-de):D.wnext-de,de>D.length&&(de=D.length),Be=D.window}else Be=ye,Pe=ve-D.offset,de=D.length;for(be<de&&(de=be),be-=de,D.length-=de;ye[ve++]=Be[Pe++],--de;);D.length===0&&(D.mode=21);break;case 26:if(be===0)break e;ye[ve++]=D.length,be--,D.mode=21;break;case 27:if(D.wrap){for(;ne<32;){if(le===0)break e;le--,Q|=te[se++]<<ne,ne+=8}if(pe-=be,U.total_out+=pe,D.total+=pe,pe&&(U.adler=D.check=D.flags?t(D.check,ye,pe,ve-pe):i(D.check,ye,pe,ve-pe)),pe=be,(D.flags?Q:v(Q))!==D.check){U.msg="incorrect data check",D.mode=30;break}ne=Q=0}D.mode=28;case 28:if(D.wrap&&D.flags){for(;ne<32;){if(le===0)break e;le--,Q+=te[se++]<<ne,ne+=8}if(Q!==(4294967295&D.total)){U.msg="incorrect length check",D.mode=30;break}ne=Q=0}D.mode=29;case 29:q=1;break e;case 30:q=-3;break e;case 31:return-4;case 32:default:return h}return U.next_out=ve,U.avail_out=be,U.next_in=se,U.avail_in=le,D.hold=Q,D.bits=ne,(D.wsize||pe!==U.avail_out&&D.mode<30&&(D.mode<27||J!==4))&&ee(U,U.output,U.next_out,pe-U.avail_out)?(D.mode=31,-4):(Te-=U.avail_in,pe-=U.avail_out,U.total_in+=Te,U.total_out+=pe,D.total+=pe,D.wrap&&pe&&(U.adler=D.check=D.flags?t(D.check,ye,pe,U.next_out-pe):i(D.check,ye,pe,U.next_out-pe)),U.data_type=D.bits+(D.last?64:0)+(D.mode===12?128:0)+(D.mode===20||D.mode===15?256:0),(Te==0&&pe===0||J===4)&&q===y&&(q=-5),q)},c.inflateEnd=function(U){if(!U||!U.state)return h;var J=U.state;return J.window&&(J.window=null),U.state=null,y},c.inflateGetHeader=function(U,J){var D;return U&&U.state?(2&(D=U.state).wrap)==0?h:((D.head=J).done=!1,y):h},c.inflateSetDictionary=function(U,J){var D,te=J.length;return U&&U.state?(D=U.state).wrap!==0&&D.mode!==11?h:D.mode===11&&i(1,J,te,0)!==D.check?-3:ee(U,J,te,te)?(D.mode=31,-4):(D.havedict=1,y):h},c.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(p,k,c){var o=p("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],t=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],g=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];k.exports=function(_,w,y,h,T,x,n,v){var a,E,F,A,W,S,P,O,H,ee=v.bits,U=0,J=0,D=0,te=0,ye=0,se=0,ve=0,le=0,be=0,Q=0,ne=null,Te=0,pe=new o.Buf16(16),de=new o.Buf16(16),Pe=null,Be=0;for(U=0;U<=15;U++)pe[U]=0;for(J=0;J<h;J++)pe[w[y+J]]++;for(ye=ee,te=15;1<=te&&pe[te]===0;te--);if(te<ye&&(ye=te),te===0)return T[x++]=20971520,T[x++]=20971520,v.bits=1,0;for(D=1;D<te&&pe[D]===0;D++);for(ye<D&&(ye=D),U=le=1;U<=15;U++)if(le<<=1,(le-=pe[U])<0)return-1;if(0<le&&(_===0||te!==1))return-1;for(de[1]=0,U=1;U<15;U++)de[U+1]=de[U]+pe[U];for(J=0;J<h;J++)w[y+J]!==0&&(n[de[w[y+J]]++]=J);if(S=_===0?(ne=Pe=n,19):_===1?(ne=i,Te-=257,Pe=t,Be-=257,256):(ne=l,Pe=g,-1),U=D,W=x,ve=J=Q=0,F=-1,A=(be=1<<(se=ye))-1,_===1&&852<be||_===2&&592<be)return 1;for(;;){for(P=U-ve,H=n[J]<S?(O=0,n[J]):n[J]>S?(O=Pe[Be+n[J]],ne[Te+n[J]]):(O=96,0),a=1<<U-ve,D=E=1<<se;T[W+(Q>>ve)+(E-=a)]=P<<24|O<<16|H|0,E!==0;);for(a=1<<U-1;Q&a;)a>>=1;if(a!==0?(Q&=a-1,Q+=a):Q=0,J++,--pe[U]==0){if(U===te)break;U=w[y+n[J]]}if(ye<U&&(Q&A)!==F){for(ve===0&&(ve=ye),W+=D,le=1<<(se=U-ve);se+ve<te&&!((le-=pe[se+ve])<=0);)se++,le<<=1;if(be+=1<<se,_===1&&852<be||_===2&&592<be)return 1;T[F=Q&A]=ye<<24|se<<16|W-x|0}}return Q!==0&&(T[W+Q]=U-ve<<24|4194304|0),v.bits=ye,0}},{"../utils/common":41}],51:[function(p,k,c){k.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(p,k,c){var o=p("../utils/common"),i=0,t=1;function l(f){for(var r=f.length;0<=--r;)f[r]=0}var g=0,_=29,w=256,y=w+1+_,h=30,T=19,x=2*y+1,n=15,v=16,a=7,E=256,F=16,A=17,W=18,S=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],P=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ee=Array(2*(y+2));l(ee);var U=Array(2*h);l(U);var J=Array(512);l(J);var D=Array(256);l(D);var te=Array(_);l(te);var ye,se,ve,le=Array(h);function be(f,r,s,N,M){this.static_tree=f,this.extra_bits=r,this.extra_base=s,this.elems=N,this.max_length=M,this.has_stree=f&&f.length}function Q(f,r){this.dyn_tree=f,this.max_code=0,this.stat_desc=r}function ne(f){return f<256?J[f]:J[256+(f>>>7)]}function Te(f,r){f.pending_buf[f.pending++]=255&r,f.pending_buf[f.pending++]=r>>>8&255}function pe(f,r,s){f.bi_valid>v-s?(f.bi_buf|=r<<f.bi_valid&65535,Te(f,f.bi_buf),f.bi_buf=r>>v-f.bi_valid,f.bi_valid+=s-v):(f.bi_buf|=r<<f.bi_valid&65535,f.bi_valid+=s)}function de(f,r,s){pe(f,s[2*r],s[2*r+1])}function Pe(f,r){for(var s=0;s|=1&f,f>>>=1,s<<=1,0<--r;);return s>>>1}function Be(f,r,s){var N,M,K=Array(n+1),ie=0;for(N=1;N<=n;N++)K[N]=ie=ie+s[N-1]<<1;for(M=0;M<=r;M++){var ue=f[2*M+1];ue!==0&&(f[2*M]=Pe(K[ue]++,ue))}}function Ie(f){var r;for(r=0;r<y;r++)f.dyn_ltree[2*r]=0;for(r=0;r<h;r++)f.dyn_dtree[2*r]=0;for(r=0;r<T;r++)f.bl_tree[2*r]=0;f.dyn_ltree[2*E]=1,f.opt_len=f.static_len=0,f.last_lit=f.matches=0}function ke(f){8<f.bi_valid?Te(f,f.bi_buf):0<f.bi_valid&&(f.pending_buf[f.pending++]=f.bi_buf),f.bi_buf=0,f.bi_valid=0}function Ne(f,r,s,N){var M=2*r,K=2*s;return f[M]<f[K]||f[M]===f[K]&&N[r]<=N[s]}function Re(f,r,s){for(var N=f.heap[s],M=s<<1;M<=f.heap_len&&(M<f.heap_len&&Ne(r,f.heap[M+1],f.heap[M],f.depth)&&M++,!Ne(r,N,f.heap[M],f.depth));)f.heap[s]=f.heap[M],s=M,M<<=1;f.heap[s]=N}function We(f,r,s){var N,M,K,ie,ue=0;if(f.last_lit!==0)for(;N=f.pending_buf[f.d_buf+2*ue]<<8|f.pending_buf[f.d_buf+2*ue+1],M=f.pending_buf[f.l_buf+ue],ue++,N===0?de(f,M,r):(de(f,(K=D[M])+w+1,r),(ie=S[K])!==0&&pe(f,M-=te[K],ie),de(f,K=ne(--N),s),(ie=P[K])!==0&&pe(f,N-=le[K],ie)),ue<f.last_lit;);de(f,E,r)}function Ae(f,r){var s,N,M,K=r.dyn_tree,ie=r.stat_desc.static_tree,ue=r.stat_desc.has_stree,we=r.stat_desc.elems,Se=-1;for(f.heap_len=0,f.heap_max=x,s=0;s<we;s++)K[2*s]!==0?(f.heap[++f.heap_len]=Se=s,f.depth[s]=0):K[2*s+1]=0;for(;f.heap_len<2;)K[2*(M=f.heap[++f.heap_len]=Se<2?++Se:0)]=1,f.depth[M]=0,f.opt_len--,ue&&(f.static_len-=ie[2*M+1]);for(r.max_code=Se,s=f.heap_len>>1;1<=s;s--)Re(f,K,s);for(M=we;s=f.heap[1],f.heap[1]=f.heap[f.heap_len--],Re(f,K,1),N=f.heap[1],f.heap[--f.heap_max]=s,f.heap[--f.heap_max]=N,K[2*M]=K[2*s]+K[2*N],f.depth[M]=(f.depth[s]>=f.depth[N]?f.depth[s]:f.depth[N])+1,K[2*s+1]=K[2*N+1]=M,f.heap[1]=M++,Re(f,K,1),2<=f.heap_len;);f.heap[--f.heap_max]=f.heap[1],function(_e,Fe){var Ze,He,Qe,oe,me,xe,{dyn_tree:De,max_code:Me}=Fe,Xe=Fe.stat_desc.static_tree,ze=Fe.stat_desc.has_stree,Ve=Fe.stat_desc.extra_bits,Ge=Fe.stat_desc.extra_base,$e=Fe.stat_desc.max_length,at=0;for(oe=0;oe<=n;oe++)_e.bl_count[oe]=0;for(De[2*_e.heap[_e.heap_max]+1]=0,Ze=_e.heap_max+1;Ze<x;Ze++)$e<(oe=De[2*De[2*(He=_e.heap[Ze])+1]+1]+1)&&(oe=$e,at++),De[2*He+1]=oe,Me<He||(_e.bl_count[oe]++,me=0,Ge<=He&&(me=Ve[He-Ge]),xe=De[2*He],_e.opt_len+=xe*(oe+me),ze&&(_e.static_len+=xe*(Xe[2*He+1]+me)));if(at!==0){do{for(oe=$e-1;_e.bl_count[oe]===0;)oe--;_e.bl_count[oe]--,_e.bl_count[oe+1]+=2,_e.bl_count[$e]--,at-=2}while(0<at);for(oe=$e;oe!==0;oe--)for(He=_e.bl_count[oe];He!==0;)Me<(Qe=_e.heap[--Ze])||(De[2*Qe+1]!==oe&&(_e.opt_len+=(oe-De[2*Qe+1])*De[2*Qe],De[2*Qe+1]=oe),He--)}}(f,r),Be(K,Se,f.bl_count)}function d(f,r,s){var N,M,K=-1,ie=r[1],ue=0,we=7,Se=4;for(ie===0&&(we=138,Se=3),r[2*(s+1)+1]=65535,N=0;N<=s;N++)M=ie,ie=r[2*(N+1)+1],++ue<we&&M===ie||(ue<Se?f.bl_tree[2*M]+=ue:M!==0?(M!==K&&f.bl_tree[2*M]++,f.bl_tree[2*F]++):ue<=10?f.bl_tree[2*A]++:f.bl_tree[2*W]++,K=M,Se=(ue=0)===ie?(we=138,3):M===ie?(we=6,3):(we=7,4))}function q(f,r,s){var N,M,K=-1,ie=r[1],ue=0,we=7,Se=4;for(ie===0&&(we=138,Se=3),N=0;N<=s;N++)if(M=ie,ie=r[2*(N+1)+1],!(++ue<we&&M===ie)){if(ue<Se)for(;de(f,M,f.bl_tree),--ue!=0;);else M!==0?(M!==K&&(de(f,M,f.bl_tree),ue--),de(f,F,f.bl_tree),pe(f,ue-3,2)):ue<=10?(de(f,A,f.bl_tree),pe(f,ue-3,3)):(de(f,W,f.bl_tree),pe(f,ue-11,7));K=M,Se=(ue=0)===ie?(we=138,3):M===ie?(we=6,3):(we=7,4)}}l(le);var Y=!1;function j(f,r,s,N){pe(f,(g<<1)+(N?1:0),3),function(M,K,ie,ue){ke(M),ue&&(Te(M,ie),Te(M,~ie)),o.arraySet(M.pending_buf,M.window,K,ie,M.pending),M.pending+=ie}(f,r,s,!0)}c._tr_init=function(f){Y||(function(){var r,s,N,M,K,ie=Array(n+1);for(M=N=0;M<_-1;M++)for(te[M]=N,r=0;r<1<<S[M];r++)D[N++]=M;for(D[N-1]=M,M=K=0;M<16;M++)for(le[M]=K,r=0;r<1<<P[M];r++)J[K++]=M;for(K>>=7;M<h;M++)for(le[M]=K<<7,r=0;r<1<<P[M]-7;r++)J[256+K++]=M;for(s=0;s<=n;s++)ie[s]=0;for(r=0;r<=143;)ee[2*r+1]=8,r++,ie[8]++;for(;r<=255;)ee[2*r+1]=9,r++,ie[9]++;for(;r<=279;)ee[2*r+1]=7,r++,ie[7]++;for(;r<=287;)ee[2*r+1]=8,r++,ie[8]++;for(Be(ee,y+1,ie),r=0;r<h;r++)U[2*r+1]=5,U[2*r]=Pe(r,5);ye=new be(ee,S,w+1,y,n),se=new be(U,P,0,h,n),ve=new be([],O,0,T,a)}(),Y=!0),f.l_desc=new Q(f.dyn_ltree,ye),f.d_desc=new Q(f.dyn_dtree,se),f.bl_desc=new Q(f.bl_tree,ve),f.bi_buf=0,f.bi_valid=0,Ie(f)},c._tr_stored_block=j,c._tr_flush_block=function(f,r,s,N){var M,K,ie=0;0<f.level?(f.strm.data_type===2&&(f.strm.data_type=function(ue){var we,Se=4093624447;for(we=0;we<=31;we++,Se>>>=1)if(1&Se&&ue.dyn_ltree[2*we]!==0)return i;if(ue.dyn_ltree[18]!==0||ue.dyn_ltree[20]!==0||ue.dyn_ltree[26]!==0)return t;for(we=32;we<w;we++)if(ue.dyn_ltree[2*we]!==0)return t;return i}(f)),Ae(f,f.l_desc),Ae(f,f.d_desc),ie=function(ue){var we;for(d(ue,ue.dyn_ltree,ue.l_desc.max_code),d(ue,ue.dyn_dtree,ue.d_desc.max_code),Ae(ue,ue.bl_desc),we=T-1;3<=we&&ue.bl_tree[2*H[we]+1]===0;we--);return ue.opt_len+=3*(we+1)+5+5+4,we}(f),M=f.opt_len+3+7>>>3,(K=f.static_len+3+7>>>3)<=M&&(M=K)):M=K=s+5,s+4<=M&&r!==-1?j(f,r,s,N):f.strategy===4||K===M?(pe(f,2+(N?1:0),3),We(f,ee,U)):(pe(f,4+(N?1:0),3),function(ue,we,Se,_e){var Fe;for(pe(ue,we-257,5),pe(ue,Se-1,5),pe(ue,_e-4,4),Fe=0;Fe<_e;Fe++)pe(ue,ue.bl_tree[2*H[Fe]+1],3);q(ue,ue.dyn_ltree,we-1),q(ue,ue.dyn_dtree,Se-1)}(f,f.l_desc.max_code+1,f.d_desc.max_code+1,ie+1),We(f,f.dyn_ltree,f.dyn_dtree)),Ie(f),N&&ke(f)},c._tr_tally=function(f,r,s){return f.pending_buf[f.d_buf+2*f.last_lit]=r>>>8&255,f.pending_buf[f.d_buf+2*f.last_lit+1]=255&r,f.pending_buf[f.l_buf+f.last_lit]=255&s,f.last_lit++,r===0?f.dyn_ltree[2*s]++:(f.matches++,r--,f.dyn_ltree[2*(D[s]+w+1)]++,f.dyn_dtree[2*ne(r)]++),f.last_lit===f.lit_bufsize-1},c._tr_align=function(f){pe(f,2,3),de(f,E,ee),function(r){r.bi_valid===16?(Te(r,r.bi_buf),r.bi_buf=0,r.bi_valid=0):8<=r.bi_valid&&(r.pending_buf[r.pending++]=255&r.bi_buf,r.bi_buf>>=8,r.bi_valid-=8)}(f)}},{"../utils/common":41}],53:[function(p,k,c){k.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(p,k,c){k.exports=typeof setImmediate=="function"?setImmediate:function(){var o=[].slice.apply(arguments);o.splice(1,0,0),setTimeout.apply(null,o)}},{}]},{},[10])(10)})}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},X("buffer").Buffer)},{buffer:48}],54:[function(X,ce,L){L.Parser=X("./lib/parser").Parser,L.rules=X("./lib/rules"),L.errors=X("./lib/errors"),L.results=X("./lib/parsing-results"),L.StringSource=X("./lib/StringSource"),L.Token=X("./lib/Token"),L.bottomUp=X("./lib/bottom-up"),L.RegexTokeniser=X("./lib/regex-tokeniser").RegexTokeniser,L.rule=function(z){var I;return function(p){if(!I)I=z();return I(p)}}},{"./lib/StringSource":55,"./lib/Token":56,"./lib/bottom-up":58,"./lib/errors":59,"./lib/parser":61,"./lib/parsing-results":62,"./lib/regex-tokeniser":63,"./lib/rules":64}],55:[function(X,ce,L){var z=ce.exports=function(p,k){var c={asString:function(){return p},range:function(o,i){return new I(p,k,o,i)}};return c},I=function(p,k,c,o){this._string=p,this._description=k,this._startIndex=c,this._endIndex=o};I.prototype.to=function(p){return new I(this._string,this._description,this._startIndex,p._endIndex)},I.prototype.describe=function(){var p=this._position(),k=this._description?this._description+`
|
|
40
|
+
`:"";return k+"Line number: "+p.lineNumber+`
|
|
41
|
+
Character number: `+p.characterNumber},I.prototype.lineNumber=function(){return this._position().lineNumber},I.prototype.characterNumber=function(){return this._position().characterNumber},I.prototype._position=function(){var p=this,k=0,c=function(){return p._string.indexOf(`
|
|
42
|
+
`,k)},o=1;while(c()!==-1&&c()<this._startIndex)k=c()+1,o+=1;var i=this._startIndex-k+1;return{lineNumber:o,characterNumber:i}}},{}],56:[function(X,ce,L){ce.exports=function(z,I,p){if(this.name=z,this.value=I,p)this.source=p}},{}],57:[function(X,ce,L){var z=ce.exports=function(I,p){this._tokens=I,this._startIndex=p||0};z.prototype.head=function(){return this._tokens[this._startIndex]},z.prototype.tail=function(I){return new z(this._tokens,this._startIndex+1)},z.prototype.toArray=function(){return this._tokens.slice(this._startIndex)},z.prototype.end=function(){return this._tokens[this._tokens.length-1]},z.prototype.to=function(I){var p=this.head().source,k=I.head()||I.end();return p.to(k.source)}},{}],58:[function(X,ce,L){var z=X("./rules"),I=X("./parsing-results");L.parser=function(c,o,i){var t={rule:w,leftAssociative:y,rightAssociative:h},l=new p(i.map(_)),g=z.firstOf(c,o);function _(n){return{name:n.name,rule:k(n.ruleBuilder.bind(null,t))}}function w(){return T(l)}function y(n){return T(l.untilExclusive(n))}function h(n){return T(l.untilInclusive(n))}function T(n){return x.bind(null,n)}function x(n,v){var a=g(v);if(a.isSuccess())return n.apply(a);else return a}return t};function p(c){function o(_){return new p(c.slice(0,t().indexOf(_)))}function i(_){return new p(c.slice(0,t().indexOf(_)+1))}function t(){return c.map(function(_){return _.name})}function l(_){var w,y;while(!0)if(w=g(_.remaining()),w.isSuccess())y=_.source().to(w.source()),_=I.success(w.value()(_.value(),y),w.remaining(),y);else if(w.isFailure())return _;else return w}function g(_){return z.firstOf("infix",c.map(function(w){return w.rule}))(_)}return{apply:l,untilExclusive:o,untilInclusive:i}}L.infix=function(c,o){function i(t){return L.infix(c,function(l){var g=o(l);return function(_){var w=g(_);return w.map(function(y){return function(h,T){return t(h,y,T)}})}})}return{name:c,ruleBuilder:o,map:i}};var k=function(c){var o;return function(i){if(!o)o=c();return o(i)}}},{"./parsing-results":62,"./rules":64}],59:[function(X,ce,L){L.error=function(I){return new z(I)};var z=function(I){this.expected=I.expected,this.actual=I.actual,this._location=I.location};z.prototype.describe=function(){var I=this._location?this._location.describe()+`:
|
|
43
|
+
`:"";return I+"Expected "+this.expected+`
|
|
44
|
+
but got `+this.actual},z.prototype.lineNumber=function(){return this._location.lineNumber()},z.prototype.characterNumber=function(){return this._location.characterNumber()}},{}],60:[function(X,ce,L){var z=L.fromArray=function(p){var k=0,c=function(){return k<p.length};return new I({hasNext:c,next:function(){if(!c())throw Error("No more elements");else return p[k++]}})},I=function(p){this._iterator=p};I.prototype.map=function(p){var k=this._iterator;return new I({hasNext:function(){return k.hasNext()},next:function(){return p(k.next())}})},I.prototype.filter=function(p){var k=this._iterator,c=!1,o=!1,i,t=function(){if(c)return;c=!0,o=!1;while(k.hasNext()&&!o)i=k.next(),o=p(i)};return new I({hasNext:function(){return t(),o},next:function(){t();var l=i;return c=!1,l}})},I.prototype.first=function(){var p=this._iterator;if(this._iterator.hasNext())return p.next();else return null},I.prototype.toArray=function(){var p=[];while(this._iterator.hasNext())p.push(this._iterator.next());return p}},{}],61:[function(X,ce,L){var z=X("./TokenIterator");L.Parser=function(I){var p=function(k,c){return k(new z(c))};return{parseTokens:p}}},{"./TokenIterator":57}],62:[function(X,ce,L){ce.exports={failure:function(I,p){if(I.length<1)throw Error("Failure must have errors");return new z({status:"failure",remaining:p,errors:I})},error:function(I,p){if(I.length<1)throw Error("Failure must have errors");return new z({status:"error",remaining:p,errors:I})},success:function(I,p,k){return new z({status:"success",value:I,source:k,remaining:p,errors:[]})},cut:function(I){return new z({status:"cut",remaining:I,errors:[]})}};var z=function(I){this._value=I.value,this._status=I.status,this._hasValue=I.value!==void 0,this._remaining=I.remaining,this._source=I.source,this._errors=I.errors};z.prototype.map=function(I){if(this._hasValue)return new z({value:I(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors});else return this},z.prototype.changeRemaining=function(I){return new z({value:this._value,status:this._status,remaining:I,source:this._source,errors:this._errors})},z.prototype.isSuccess=function(){return this._status==="success"||this._status==="cut"},z.prototype.isFailure=function(){return this._status==="failure"},z.prototype.isError=function(){return this._status==="error"},z.prototype.isCut=function(){return this._status==="cut"},z.prototype.value=function(){return this._value},z.prototype.remaining=function(){return this._remaining},z.prototype.source=function(){return this._source},z.prototype.errors=function(){return this._errors}},{}],63:[function(X,ce,L){var z=X("./Token"),I=X("./StringSource");L.RegexTokeniser=p;function p(k){k=k.map(function(t){return{name:t.name,regex:new RegExp(t.regex.source,"g")}});function c(t,l){var g=new I(t,l),_=0,w=[];while(_<t.length){var y=o(t,_,g);_=y.endIndex,w.push(y.token)}return w.push(i(t,g)),w}function o(t,l,g){for(var _=0;_<k.length;_++){var w=k[_].regex;w.lastIndex=l;var y=w.exec(t);if(y){var T=l+y[0].length;if(y.index===l&&T>l){var h=y[1],x=new z(k[_].name,h,g.range(l,T));return{token:x,endIndex:T}}}}var T=l+1,x=new z("unrecognisedCharacter",t.substring(l,T),g.range(l,T));return{token:x,endIndex:T}}function i(t,l){return new z("end",null,l.range(t.length,t.length))}return{tokenise:c}}},{"./StringSource":55,"./Token":56}],64:[function(X,ce,L){var z=X("underscore"),I=X("option"),p=X("./parsing-results"),k=X("./errors"),c=X("./lazy-iterators");L.token=function(w,y){var h=y!==void 0;return function(T){var x=T.head();if(x&&x.name===w&&(!h||x.value===y))return p.success(x.value,T.tail(),x.source);else{var n=g({name:w,value:y});return _(T,n)}}},L.tokenOfType=function(w){return L.token(w)},L.firstOf=function(w,y){if(!z.isArray(y))y=Array.prototype.slice.call(arguments,1);return function(h){return c.fromArray(y).map(function(T){return T(h)}).filter(function(T){return T.isSuccess()||T.isError()}).first()||_(h,w)}},L.then=function(w,y){return function(h){var T=w(h);if(!T.map)console.log(T);return T.map(y)}},L.sequence=function(){var w=Array.prototype.slice.call(arguments,0),y=function(T){var x=z.foldl(w,function(v,a){var{result:E,hasCut:F}=v;if(!E.isSuccess())return{result:E,hasCut:F};var A=a(E.remaining());if(A.isCut())return{result:E,hasCut:!0};else if(A.isSuccess()){var W;if(a.isCaptured)W=E.value().withValue(a,A.value());else W=E.value();var S=A.remaining(),P=T.to(S);return{result:p.success(W,S,P),hasCut:F}}else if(F)return{result:p.error(A.errors(),A.remaining()),hasCut:F};else return{result:A,hasCut:F}},{result:p.success(new o,T),hasCut:!1}).result,n=T.to(x.remaining());return x.map(function(v){return v.withValue(L.sequence.source,n)})};y.head=function(){var T=z.find(w,h);return L.then(y,L.sequence.extract(T))},y.map=function(T){return L.then(y,function(x){return T.apply(this,x.toArray())})};function h(T){return T.isCaptured}return y};var o=function(w,y){this._values=w||{},this._valuesArray=y||[]};o.prototype.withValue=function(w,y){if(w.captureName&&w.captureName in this._values)throw Error('Cannot add second value for capture "'+w.captureName+'"');else{var h=z.clone(this._values);h[w.captureName]=y;var T=this._valuesArray.concat([y]);return new o(h,T)}},o.prototype.get=function(w){if(w.captureName in this._values)return this._values[w.captureName];else throw Error('No value for capture "'+w.captureName+'"')},o.prototype.toArray=function(){return this._valuesArray},L.sequence.capture=function(w,y){var h=function(){return w.apply(this,arguments)};return h.captureName=y,h.isCaptured=!0,h},L.sequence.extract=function(w){return function(y){return y.get(w)}},L.sequence.applyValues=function(w){var y=Array.prototype.slice.call(arguments,1);return function(h){var T=y.map(function(x){return h.get(x)});return w.apply(this,T)}},L.sequence.source={captureName:"☃source☃"},L.sequence.cut=function(){return function(w){return p.cut(w)}},L.optional=function(w){return function(y){var h=w(y);if(h.isSuccess())return h.map(I.some);else if(h.isFailure())return p.success(I.none,y);else return h}},L.zeroOrMoreWithSeparator=function(w,y){return l(w,y,!1)},L.oneOrMoreWithSeparator=function(w,y){return l(w,y,!0)};var i=L.zeroOrMore=function(w){return function(y){var h=[],T;while((T=w(y))&&T.isSuccess())y=T.remaining(),h.push(T.value());if(T.isError())return T;else return p.success(h,y)}};L.oneOrMore=function(w){return L.oneOrMoreWithSeparator(w,t)};function t(w){return p.success(null,w)}var l=function(w,y,h){return function(T){var x=w(T);if(x.isSuccess()){var n=L.sequence.capture(w,"main"),v=i(L.then(L.sequence(y,n),L.sequence.extract(n))),a=v(x.remaining());return p.success([x.value()].concat(a.value()),a.remaining())}else if(h||x.isError())return x;else return p.success([],T)}};L.leftAssociative=function(w,y,h){var T;if(h)T=[{func:h,rule:y}];else T=y;T=T.map(function(n){return L.then(n.rule,function(v){return function(a,E){return n.func(a,v,E)}})});var x=L.firstOf.apply(null,["rules"].concat(T));return function(n){var v=n,a=w(n);if(!a.isSuccess())return a;var E=x(a.remaining());while(E.isSuccess()){var F=E.remaining(),A=v.to(E.remaining()),W=E.value();a=p.success(W(a.value(),A),F,A),E=x(a.remaining())}if(E.isError())return E;return a}},L.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},L.nonConsuming=function(w){return function(y){return w(y).changeRemaining(y)}};var g=function(w){if(w.value)return w.name+' "'+w.value+'"';else return w.name};function _(w,y){var h,T=w.head();if(T)h=k.error({expected:y,actual:g(T),location:T.source});else h=k.error({expected:y,actual:"end of tokens"});return p.failure([h],w)}},{"./errors":59,"./lazy-iterators":60,"./parsing-results":62,option:65,underscore:67}],65:[function(X,ce,L){L.none=Object.create({value:function(){throw Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return L.none},flatMap:function(){return L.none},filter:function(){return L.none},toArray:function(){return[]},orElse:z,valueOrElse:z});function z(p){if(typeof p=="function")return p();else return p}L.some=function(p){return new I(p)};var I=function(p){this._value=p};I.prototype.value=function(){return this._value},I.prototype.isNone=function(){return!1},I.prototype.isSome=function(){return!0},I.prototype.map=function(p){return new I(p(this._value))},I.prototype.flatMap=function(p){return p(this._value)},I.prototype.filter=function(p){return p(this._value)?this:L.none},I.prototype.toArray=function(){return[this._value]},I.prototype.orElse=function(p){return this},I.prototype.valueOrElse=function(p){return this._value},L.isOption=function(p){return p===L.none||p instanceof I},L.fromNullable=function(p){if(p==null)return L.none;return new I(p)}},{}],66:[function(X,ce,L){var z=ce.exports={},I,p;function k(){throw Error("setTimeout has not been defined")}function c(){throw Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function")I=setTimeout;else I=k}catch(x){I=k}try{if(typeof clearTimeout==="function")p=clearTimeout;else p=c}catch(x){p=c}})();function o(x){if(I===setTimeout)return setTimeout(x,0);if((I===k||!I)&&setTimeout)return I=setTimeout,setTimeout(x,0);try{return I(x,0)}catch(n){try{return I.call(null,x,0)}catch(v){return I.call(this,x,0)}}}function i(x){if(p===clearTimeout)return clearTimeout(x);if((p===c||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(x);try{return p(x)}catch(n){try{return p.call(null,x)}catch(v){return p.call(this,x)}}}var t=[],l=!1,g,_=-1;function w(){if(!l||!g)return;if(l=!1,g.length)t=g.concat(t);else _=-1;if(t.length)y()}function y(){if(l)return;var x=o(w);l=!0;var n=t.length;while(n){g=t,t=[];while(++_<n)if(g)g[_].run();_=-1,n=t.length}g=null,l=!1,i(x)}z.nextTick=function(x){var n=Array(arguments.length-1);if(arguments.length>1)for(var v=1;v<arguments.length;v++)n[v-1]=arguments[v];if(t.push(new h(x,n)),t.length===1&&!l)o(y)};function h(x,n){this.fun=x,this.array=n}h.prototype.run=function(){this.fun.apply(null,this.array)},z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function T(){}z.on=T,z.addListener=T,z.once=T,z.off=T,z.removeListener=T,z.removeAllListeners=T,z.emit=T,z.binding=function(x){throw Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(x){throw Error("process.chdir is not supported")},z.umask=function(){return 0}},{}],67:[function(X,ce,L){(function(z){(function(I,p){typeof L==="object"&&typeof ce<"u"?ce.exports=p():typeof et==="function"&&et.amd?et("underscore",p):(I=typeof globalThis<"u"?globalThis:I||self,function(){var k=I._,c=I._=p();c.noConflict=function(){return I._=k,c}}())})(this,function(){var I="1.13.1",p=typeof self=="object"&&self.self===self&&self||typeof z=="object"&&z.global===z&&z||Function("return this")()||{},k=Array.prototype,c=Object.prototype,o=typeof Symbol<"u"?Symbol.prototype:null,{push:i,slice:t}=k,{toString:l,hasOwnProperty:g}=c,_=typeof ArrayBuffer<"u",w=typeof DataView<"u",y=Array.isArray,{keys:h,create:T}=Object,x=_&&ArrayBuffer.isView,n=isNaN,v=isFinite,a=!{toString:null}.propertyIsEnumerable("toString"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],F=Math.pow(2,53)-1;function A(b,C){return C=C==null?b.length-1:+C,function(){var V=Math.max(arguments.length-C,0),Z=Array(V),ae=0;for(;ae<V;ae++)Z[ae]=arguments[ae+C];switch(C){case 0:return b.call(this,Z);case 1:return b.call(this,arguments[0],Z);case 2:return b.call(this,arguments[0],arguments[1],Z)}var re=Array(C+1);for(ae=0;ae<C;ae++)re[ae]=arguments[ae];return re[C]=Z,b.apply(this,re)}}function W(b){var C=typeof b;return C==="function"||C==="object"&&!!b}function S(b){return b===null}function P(b){return b===void 0}function O(b){return b===!0||b===!1||l.call(b)==="[object Boolean]"}function H(b){return!!(b&&b.nodeType===1)}function ee(b){var C="[object "+b+"]";return function(V){return l.call(V)===C}}var U=ee("String"),J=ee("Number"),D=ee("Date"),te=ee("RegExp"),ye=ee("Error"),se=ee("Symbol"),ve=ee("ArrayBuffer"),le=ee("Function"),be=p.document&&p.document.childNodes;if(typeof Int8Array!="object"&&typeof be!="function")le=function(b){return typeof b=="function"||!1};var Q=le,ne=ee("Object"),Te=w&&ne(new DataView(new ArrayBuffer(8))),pe=typeof Map<"u"&&ne(new Map),de=ee("DataView");function Pe(b){return b!=null&&Q(b.getInt8)&&ve(b.buffer)}var Be=Te?Pe:de,Ie=y||ee("Array");function ke(b,C){return b!=null&&g.call(b,C)}var Ne=ee("Arguments");(function(){if(!Ne(arguments))Ne=function(b){return ke(b,"callee")}})();var Re=Ne;function We(b){return!se(b)&&v(b)&&!isNaN(parseFloat(b))}function Ae(b){return J(b)&&n(b)}function d(b){return function(){return b}}function q(b){return function(C){var V=b(C);return typeof V=="number"&&V>=0&&V<=F}}function Y(b){return function(C){return C==null?void 0:C[b]}}var j=Y("byteLength"),f=q(j),r=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function s(b){return x?x(b)&&!Be(b):f(b)&&r.test(l.call(b))}var N=_?s:d(!1),M=Y("length");function K(b){var C={};for(var V=b.length,Z=0;Z<V;++Z)C[b[Z]]=!0;return{contains:function(ae){return C[ae]},push:function(ae){return C[ae]=!0,b.push(ae)}}}function ie(b,C){C=K(C);var V=E.length,Z=b.constructor,ae=Q(Z)&&Z.prototype||c,re="constructor";if(ke(b,re)&&!C.contains(re))C.push(re);while(V--)if(re=E[V],re in b&&b[re]!==ae[re]&&!C.contains(re))C.push(re)}function ue(b){if(!W(b))return[];if(h)return h(b);var C=[];for(var V in b)if(ke(b,V))C.push(V);if(a)ie(b,C);return C}function we(b){if(b==null)return!0;var C=M(b);if(typeof C=="number"&&(Ie(b)||U(b)||Re(b)))return C===0;return M(ue(b))===0}function Se(b,C){var V=ue(C),Z=V.length;if(b==null)return!Z;var ae=Object(b);for(var re=0;re<Z;re++){var he=V[re];if(C[he]!==ae[he]||!(he in ae))return!1}return!0}function _e(b){if(b instanceof _e)return b;if(!(this instanceof _e))return new _e(b);this._wrapped=b}_e.VERSION=I,_e.prototype.value=function(){return this._wrapped},_e.prototype.valueOf=_e.prototype.toJSON=_e.prototype.value,_e.prototype.toString=function(){return String(this._wrapped)};function Fe(b){return new Uint8Array(b.buffer||b,b.byteOffset||0,j(b))}var Ze="[object DataView]";function He(b,C,V,Z){if(b===C)return b!==0||1/b===1/C;if(b==null||C==null)return!1;if(b!==b)return C!==C;var ae=typeof b;if(ae!=="function"&&ae!=="object"&&typeof C!="object")return!1;return Qe(b,C,V,Z)}function Qe(b,C,V,Z){if(b instanceof _e)b=b._wrapped;if(C instanceof _e)C=C._wrapped;var ae=l.call(b);if(ae!==l.call(C))return!1;if(Te&&ae=="[object Object]"&&Be(b)){if(!Be(C))return!1;ae=Ze}switch(ae){case"[object RegExp]":case"[object String]":return""+b===""+C;case"[object Number]":if(+b!==+b)return+C!==+C;return+b===0?1/+b===1/C:+b===+C;case"[object Date]":case"[object Boolean]":return+b===+C;case"[object Symbol]":return o.valueOf.call(b)===o.valueOf.call(C);case"[object ArrayBuffer]":case Ze:return Qe(Fe(b),Fe(C),V,Z)}var re=ae==="[object Array]";if(!re&&N(b)){var he=j(b);if(he!==j(C))return!1;if(b.buffer===C.buffer&&b.byteOffset===C.byteOffset)return!0;re=!0}if(!re){if(typeof b!="object"||typeof C!="object")return!1;var Ee=b.constructor,Le=C.constructor;if(Ee!==Le&&!(Q(Ee)&&Ee instanceof Ee&&Q(Le)&&Le instanceof Le)&&(("constructor"in b)&&("constructor"in C)))return!1}V=V||[],Z=Z||[];var Ce=V.length;while(Ce--)if(V[Ce]===b)return Z[Ce]===C;if(V.push(b),Z.push(C),re){if(Ce=b.length,Ce!==C.length)return!1;while(Ce--)if(!He(b[Ce],C[Ce],V,Z))return!1}else{var Ke=ue(b),qe;if(Ce=Ke.length,ue(C).length!==Ce)return!1;while(Ce--)if(qe=Ke[Ce],!(ke(C,qe)&&He(b[qe],C[qe],V,Z)))return!1}return V.pop(),Z.pop(),!0}function oe(b,C){return He(b,C)}function me(b){if(!W(b))return[];var C=[];for(var V in b)C.push(V);if(a)ie(b,C);return C}function xe(b){var C=M(b);return function(V){if(V==null)return!1;var Z=me(V);if(M(Z))return!1;for(var ae=0;ae<C;ae++)if(!Q(V[b[ae]]))return!1;return b!==Ge||!Q(V[De])}}var De="forEach",Me="has",Xe=["clear","delete"],ze=["get",Me,"set"],Ve=Xe.concat(De,ze),Ge=Xe.concat(ze),$e=["add"].concat(Xe,De,Me),at=pe?xe(Ve):ee("Map"),xt=pe?xe(Ge):ee("WeakMap"),kt=pe?xe($e):ee("Set"),St=ee("WeakSet");function lt(b){var C=ue(b),V=C.length,Z=Array(V);for(var ae=0;ae<V;ae++)Z[ae]=b[C[ae]];return Z}function Tt(b){var C=ue(b),V=C.length,Z=Array(V);for(var ae=0;ae<V;ae++)Z[ae]=[C[ae],b[C[ae]]];return Z}function ht(b){var C={},V=ue(b);for(var Z=0,ae=V.length;Z<ae;Z++)C[b[V[Z]]]=V[Z];return C}function _t(b){var C=[];for(var V in b)if(Q(b[V]))C.push(V);return C.sort()}function yt(b,C){return function(V){var Z=arguments.length;if(C)V=Object(V);if(Z<2||V==null)return V;for(var ae=1;ae<Z;ae++){var re=arguments[ae],he=b(re),Ee=he.length;for(var Le=0;Le<Ee;Le++){var Ce=he[Le];if(!C||V[Ce]===void 0)V[Ce]=re[Ce]}}return V}}var It=yt(me),Nt=yt(ue),R=yt(me,!0);function B(){return function(){}}function G(b){if(!W(b))return{};if(T)return T(b);var C=B();C.prototype=b;var V=new C;return C.prototype=null,V}function fe(b,C){var V=G(b);if(C)Nt(V,C);return V}function ge(b){if(!W(b))return b;return Ie(b)?b.slice():It({},b)}function Oe(b,C){return C(b),b}function je(b){return Ie(b)?b:[b]}_e.toPath=je;function Ye(b){return _e.toPath(b)}function nt(b,C){var V=C.length;for(var Z=0;Z<V;Z++){if(b==null)return;b=b[C[Z]]}return V?b:void 0}function tt(b,C,V){var Z=nt(b,Ye(C));return P(Z)?V:Z}function ot(b,C){C=Ye(C);var V=C.length;for(var Z=0;Z<V;Z++){var ae=C[Z];if(!ke(b,ae))return!1;b=b[ae]}return!!V}function st(b){return b}function it(b){return b=Nt({},b),function(C){return Se(C,b)}}function ut(b){return b=Ye(b),function(C){return nt(C,b)}}function Je(b,C,V){if(C===void 0)return b;switch(V==null?3:V){case 1:return function(Z){return b.call(C,Z)};case 3:return function(Z,ae,re){return b.call(C,Z,ae,re)};case 4:return function(Z,ae,re,he){return b.call(C,Z,ae,re,he)}}return function(){return b.apply(C,arguments)}}function ct(b,C,V){if(b==null)return st;if(Q(b))return Je(b,C,V);if(W(b)&&!Ie(b))return it(b);return ut(b)}function pt(b,C){return ct(b,C,1/0)}_e.iteratee=pt;function Ue(b,C,V){if(_e.iteratee!==pt)return _e.iteratee(b,C);return ct(b,C,V)}function At(b,C,V){C=Ue(C,V);var Z=ue(b),ae=Z.length,re={};for(var he=0;he<ae;he++){var Ee=Z[he];re[Ee]=C(b[Ee],Ee,b)}return re}function dt(){}function Ot(b){if(b==null)return dt;return function(C){return tt(b,C)}}function br(b,C,V){var Z=Array(Math.max(0,b));C=Je(C,V,1);for(var ae=0;ae<b;ae++)Z[ae]=C(ae);return Z}function Mt(b,C){if(C==null)C=b,b=0;return b+Math.floor(Math.random()*(C-b+1))}var Dt=Date.now||function(){return new Date().getTime()};function Gt(b){var C=function(re){return b[re]},V="(?:"+ue(b).join("|")+")",Z=RegExp(V),ae=RegExp(V,"g");return function(re){return re=re==null?"":""+re,Z.test(re)?re.replace(ae,C):re}}var Kt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},xr=Gt(Kt),Tr=ht(Kt),Ir=Gt(Tr),Dr=_e.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Lt=/(.)^/,kr={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Sr=/\\|'|\r|\n|\u2028|\u2029/g;function Nr(b){return"\\"+kr[b]}var Ar=/^\s*(\w|\$)+\s*$/;function Or(b,C,V){if(!C&&V)C=V;C=R({},C,_e.templateSettings);var Z=RegExp([(C.escape||Lt).source,(C.interpolate||Lt).source,(C.evaluate||Lt).source].join("|")+"|$","g"),ae=0,re="__p+='";b.replace(Z,function(Ce,Ke,qe,vr,yr){if(re+=b.slice(ae,yr).replace(Sr,Nr),ae=yr+Ce.length,Ke)re+=`'+
|
|
45
|
+
((__t=(`+Ke+`))==null?'':_.escape(__t))+
|
|
46
|
+
'`;else if(qe)re+=`'+
|
|
47
|
+
((__t=(`+qe+`))==null?'':__t)+
|
|
48
|
+
'`;else if(vr)re+=`';
|
|
49
|
+
`+vr+`
|
|
50
|
+
__p+='`;return Ce}),re+=`';
|
|
51
|
+
`;var he=C.variable;if(he){if(!Ar.test(he))throw Error("variable is not a bare identifier: "+he)}else re=`with(obj||{}){
|
|
52
|
+
`+re+`}
|
|
53
|
+
`,he="obj";re=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
|
|
54
|
+
`+re+`return __p;
|
|
55
|
+
`;var Ee;try{Ee=Function(he,"_",re)}catch(Ce){throw Ce.source=re,Ce}var Le=function(Ce){return Ee.call(this,Ce,_e)};return Le.source="function("+he+`){
|
|
56
|
+
`+re+"}",Le}function Cr(b,C,V){C=Ye(C);var Z=C.length;if(!Z)return Q(V)?V.call(b):V;for(var ae=0;ae<Z;ae++){var re=b==null?void 0:b[C[ae]];if(re===void 0)re=V,ae=Z;b=Q(re)?re.call(b):re}return b}var Rr=0;function Mr(b){var C=++Rr+"";return b?b+C:C}function Lr(b){var C=_e(b);return C._chain=!0,C}function $t(b,C,V,Z,ae){if(!(Z instanceof C))return b.apply(V,ae);var re=G(b.prototype),he=b.apply(re,ae);if(W(he))return he;return re}var bt=A(function(b,C){var V=bt.placeholder,Z=function(){var ae=0,re=C.length,he=Array(re);for(var Ee=0;Ee<re;Ee++)he[Ee]=C[Ee]===V?arguments[ae++]:C[Ee];while(ae<arguments.length)he.push(arguments[ae++]);return $t(b,Z,this,this,he)};return Z});bt.placeholder=_e;var Jt=A(function(b,C,V){if(!Q(b))throw TypeError("Bind must be called on a function");var Z=A(function(ae){return $t(b,Z,C,this,V.concat(ae))});return Z}),rt=q(M);function gt(b,C,V,Z){if(Z=Z||[],!C&&C!==0)C=1/0;else if(C<=0)return Z.concat(b);var ae=Z.length;for(var re=0,he=M(b);re<he;re++){var Ee=b[re];if(rt(Ee)&&(Ie(Ee)||Re(Ee)))if(C>1)gt(Ee,C-1,V,Z),ae=Z.length;else{var Le=0,Ce=Ee.length;while(Le<Ce)Z[ae++]=Ee[Le++]}else if(!V)Z[ae++]=Ee}return Z}var Pr=A(function(b,C){C=gt(C,!1,!1);var V=C.length;if(V<1)throw Error("bindAll must be passed function names");while(V--){var Z=C[V];b[Z]=Jt(b[Z],b)}return b});function Fr(b,C){var V=function(Z){var ae=V.cache,re=""+(C?C.apply(this,arguments):Z);if(!ke(ae,re))ae[re]=b.apply(this,arguments);return ae[re]};return V.cache={},V}var Qt=A(function(b,C,V){return setTimeout(function(){return b.apply(null,V)},C)}),Br=bt(Qt,_e,1);function Xr(b,C,V){var Z,ae,re,he,Ee=0;if(!V)V={};var Le=function(){if(Ee=V.leading===!1?0:Dt(),Z=null,he=b.apply(ae,re),!Z)ae=re=null},Ce=function(){var Ke=Dt();if(!Ee&&V.leading===!1)Ee=Ke;var qe=C-(Ke-Ee);if(ae=this,re=arguments,qe<=0||qe>C){if(Z)clearTimeout(Z),Z=null;if(Ee=Ke,he=b.apply(ae,re),!Z)ae=re=null}else if(!Z&&V.trailing!==!1)Z=setTimeout(Le,qe);return he};return Ce.cancel=function(){clearTimeout(Z),Ee=0,Z=ae=re=null},Ce}function zr(b,C,V){var Z,ae,re,he,Ee,Le=function(){var Ke=Dt()-ae;if(C>Ke)Z=setTimeout(Le,C-Ke);else{if(Z=null,!V)he=b.apply(Ee,re);if(!Z)re=Ee=null}},Ce=A(function(Ke){if(Ee=this,re=Ke,ae=Dt(),!Z){if(Z=setTimeout(Le,C),V)he=b.apply(Ee,re)}return he});return Ce.cancel=function(){clearTimeout(Z),Z=re=Ee=null},Ce}function Ur(b,C){return bt(C,b)}function Pt(b){return function(){return!b.apply(this,arguments)}}function Wr(){var b=arguments,C=b.length-1;return function(){var V=C,Z=b[C].apply(this,arguments);while(V--)Z=b[V].call(this,Z);return Z}}function jr(b,C){return function(){if(--b<1)return C.apply(this,arguments)}}function qt(b,C){var V;return function(){if(--b>0)V=C.apply(this,arguments);if(b<=1)C=null;return V}}var Hr=bt(qt,2);function er(b,C,V){C=Ue(C,V);var Z=ue(b),ae;for(var re=0,he=Z.length;re<he;re++)if(ae=Z[re],C(b[ae],ae,b))return ae}function tr(b){return function(C,V,Z){V=Ue(V,Z);var ae=M(C),re=b>0?0:ae-1;for(;re>=0&&re<ae;re+=b)if(V(C[re],re,C))return re;return-1}}var Ft=tr(1),rr=tr(-1);function nr(b,C,V,Z){V=Ue(V,Z,1);var ae=V(C),re=0,he=M(b);while(re<he){var Ee=Math.floor((re+he)/2);if(V(b[Ee])<ae)re=Ee+1;else he=Ee}return re}function ir(b,C,V){return function(Z,ae,re){var he=0,Ee=M(Z);if(typeof re=="number")if(b>0)he=re>=0?re:Math.max(re+Ee,he);else Ee=re>=0?Math.min(re+1,Ee):re+Ee+1;else if(V&&re&&Ee)return re=V(Z,ae),Z[re]===ae?re:-1;if(ae!==ae)return re=C(t.call(Z,he,Ee),Ae),re>=0?re+he:-1;for(re=b>0?he:Ee-1;re>=0&&re<Ee;re+=b)if(Z[re]===ae)return re;return-1}}var ar=ir(1,Ft,nr),Vr=ir(-1,rr);function Bt(b,C,V){var Z=rt(b)?Ft:er,ae=Z(b,C,V);if(ae!==void 0&&ae!==-1)return b[ae]}function Zr(b,C){return Bt(b,it(C))}function mt(b,C,V){C=Je(C,V);var Z,ae;if(rt(b))for(Z=0,ae=b.length;Z<ae;Z++)C(b[Z],Z,b);else{var re=ue(b);for(Z=0,ae=re.length;Z<ae;Z++)C(b[re[Z]],re[Z],b)}return b}function wt(b,C,V){C=Ue(C,V);var Z=!rt(b)&&ue(b),ae=(Z||b).length,re=Array(ae);for(var he=0;he<ae;he++){var Ee=Z?Z[he]:he;re[he]=C(b[Ee],Ee,b)}return re}function or(b){var C=function(V,Z,ae,re){var he=!rt(V)&&ue(V),Ee=(he||V).length,Le=b>0?0:Ee-1;if(!re)ae=V[he?he[Le]:Le],Le+=b;for(;Le>=0&&Le<Ee;Le+=b){var Ce=he?he[Le]:Le;ae=Z(ae,V[Ce],Ce,V)}return ae};return function(V,Z,ae,re){var he=arguments.length>=3;return C(V,Je(Z,re,4),ae,he)}}var Xt=or(1),sr=or(-1);function Et(b,C,V){var Z=[];return C=Ue(C,V),mt(b,function(ae,re,he){if(C(ae,re,he))Z.push(ae)}),Z}function Yr(b,C,V){return Et(b,Pt(Ue(C)),V)}function ur(b,C,V){C=Ue(C,V);var Z=!rt(b)&&ue(b),ae=(Z||b).length;for(var re=0;re<ae;re++){var he=Z?Z[re]:re;if(!C(b[he],he,b))return!1}return!0}function lr(b,C,V){C=Ue(C,V);var Z=!rt(b)&&ue(b),ae=(Z||b).length;for(var re=0;re<ae;re++){var he=Z?Z[re]:re;if(C(b[he],he,b))return!0}return!1}function vt(b,C,V,Z){if(!rt(b))b=lt(b);if(typeof V!="number"||Z)V=0;return ar(b,C,V)>=0}var Gr=A(function(b,C,V){var Z,ae;if(Q(C))ae=C;else C=Ye(C),Z=C.slice(0,-1),C=C[C.length-1];return wt(b,function(re){var he=ae;if(!he){if(Z&&Z.length)re=nt(re,Z);if(re==null)return;he=re[C]}return he==null?he:he.apply(re,V)})});function zt(b,C){return wt(b,ut(C))}function Kr(b,C){return Et(b,it(C))}function cr(b,C,V){var Z=-1/0,ae=-1/0,re,he;if(C==null||typeof C=="number"&&typeof b[0]!="object"&&b!=null){b=rt(b)?b:lt(b);for(var Ee=0,Le=b.length;Ee<Le;Ee++)if(re=b[Ee],re!=null&&re>Z)Z=re}else C=Ue(C,V),mt(b,function(Ce,Ke,qe){if(he=C(Ce,Ke,qe),he>ae||he===-1/0&&Z===-1/0)Z=Ce,ae=he});return Z}function $r(b,C,V){var Z=1/0,ae=1/0,re,he;if(C==null||typeof C=="number"&&typeof b[0]!="object"&&b!=null){b=rt(b)?b:lt(b);for(var Ee=0,Le=b.length;Ee<Le;Ee++)if(re=b[Ee],re!=null&&re<Z)Z=re}else C=Ue(C,V),mt(b,function(Ce,Ke,qe){if(he=C(Ce,Ke,qe),he<ae||he===1/0&&Z===1/0)Z=Ce,ae=he});return Z}function fr(b,C,V){if(C==null||V){if(!rt(b))b=lt(b);return b[Mt(b.length-1)]}var Z=rt(b)?ge(b):lt(b),ae=M(Z);C=Math.max(Math.min(C,ae),0);var re=ae-1;for(var he=0;he<C;he++){var Ee=Mt(he,re),Le=Z[he];Z[he]=Z[Ee],Z[Ee]=Le}return Z.slice(0,C)}function Jr(b){return fr(b,1/0)}function Qr(b,C,V){var Z=0;return C=Ue(C,V),zt(wt(b,function(ae,re,he){return{value:ae,index:Z++,criteria:C(ae,re,he)}}).sort(function(ae,re){var he=ae.criteria,Ee=re.criteria;if(he!==Ee){if(he>Ee||he===void 0)return 1;if(he<Ee||Ee===void 0)return-1}return ae.index-re.index}),"value")}function Ct(b,C){return function(V,Z,ae){var re=C?[[],[]]:{};return Z=Ue(Z,ae),mt(V,function(he,Ee){var Le=Z(he,Ee,V);b(re,he,Le)}),re}}var qr=Ct(function(b,C,V){if(ke(b,V))b[V].push(C);else b[V]=[C]}),en=Ct(function(b,C,V){b[V]=C}),tn=Ct(function(b,C,V){if(ke(b,V))b[V]++;else b[V]=1}),nn=Ct(function(b,C,V){b[V?0:1].push(C)},!0),an=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function on(b){if(!b)return[];if(Ie(b))return t.call(b);if(U(b))return b.match(an);if(rt(b))return wt(b,st);return lt(b)}function sn(b){if(b==null)return 0;return rt(b)?b.length:ue(b).length}function un(b,C,V){return C in V}var hr=A(function(b,C){var V={},Z=C[0];if(b==null)return V;if(Q(Z)){if(C.length>1)Z=Je(Z,C[1]);C=me(b)}else Z=un,C=gt(C,!1,!1),b=Object(b);for(var ae=0,re=C.length;ae<re;ae++){var he=C[ae],Ee=b[he];if(Z(Ee,he,b))V[he]=Ee}return V}),ln=A(function(b,C){var V=C[0],Z;if(Q(V)){if(V=Pt(V),C.length>1)Z=C[1]}else C=wt(gt(C,!1,!1),String),V=function(ae,re){return!vt(C,re)};return hr(b,V,Z)});function pr(b,C,V){return t.call(b,0,Math.max(0,b.length-(C==null||V?1:C)))}function Ut(b,C,V){if(b==null||b.length<1)return C==null||V?void 0:[];if(C==null||V)return b[0];return pr(b,b.length-C)}function Rt(b,C,V){return t.call(b,C==null||V?1:C)}function cn(b,C,V){if(b==null||b.length<1)return C==null||V?void 0:[];if(C==null||V)return b[b.length-1];return Rt(b,Math.max(0,b.length-C))}function fn(b){return Et(b,Boolean)}function hn(b,C){return gt(b,C,!1)}var dr=A(function(b,C){return C=gt(C,!0,!0),Et(b,function(V){return!vt(C,V)})}),pn=A(function(b,C){return dr(b,C)});function Wt(b,C,V,Z){if(!O(C))Z=V,V=C,C=!1;if(V!=null)V=Ue(V,Z);var ae=[],re=[];for(var he=0,Ee=M(b);he<Ee;he++){var Le=b[he],Ce=V?V(Le,he,b):Le;if(C&&!V){if(!he||re!==Ce)ae.push(Le);re=Ce}else if(V){if(!vt(re,Ce))re.push(Ce),ae.push(Le)}else if(!vt(ae,Le))ae.push(Le)}return ae}var dn=A(function(b){return Wt(gt(b,!0,!0))});function mn(b){var C=[],V=arguments.length;for(var Z=0,ae=M(b);Z<ae;Z++){var re=b[Z];if(vt(C,re))continue;var he;for(he=1;he<V;he++)if(!vt(arguments[he],re))break;if(he===V)C.push(re)}return C}function jt(b){var C=b&&cr(b,M).length||0,V=Array(C);for(var Z=0;Z<C;Z++)V[Z]=zt(b,Z);return V}var vn=A(jt);function gn(b,C){var V={};for(var Z=0,ae=M(b);Z<ae;Z++)if(C)V[b[Z]]=C[Z];else V[b[Z][0]]=b[Z][1];return V}function wn(b,C,V){if(C==null)C=b||0,b=0;if(!V)V=C<b?-1:1;var Z=Math.max(Math.ceil((C-b)/V),0),ae=Array(Z);for(var re=0;re<Z;re++,b+=V)ae[re]=b;return ae}function _n(b,C){if(C==null||C<1)return[];var V=[],Z=0,ae=b.length;while(Z<ae)V.push(t.call(b,Z,Z+=C));return V}function Ht(b,C){return b._chain?_e(C).chain():C}function mr(b){return mt(_t(b),function(C){var V=_e[C]=b[C];_e.prototype[C]=function(){var Z=[this._wrapped];return i.apply(Z,arguments),Ht(this,V.apply(_e,Z))}}),_e}mt(["pop","push","reverse","shift","sort","splice","unshift"],function(b){var C=k[b];_e.prototype[b]=function(){var V=this._wrapped;if(V!=null){if(C.apply(V,arguments),(b==="shift"||b==="splice")&&V.length===0)delete V[0]}return Ht(this,V)}}),mt(["concat","join","slice"],function(b){var C=k[b];_e.prototype[b]=function(){var V=this._wrapped;if(V!=null)V=C.apply(V,arguments);return Ht(this,V)}});var bn={__proto__:null,VERSION:I,restArguments:A,isObject:W,isNull:S,isUndefined:P,isBoolean:O,isElement:H,isString:U,isNumber:J,isDate:D,isRegExp:te,isError:ye,isSymbol:se,isArrayBuffer:ve,isDataView:Be,isArray:Ie,isFunction:Q,isArguments:Re,isFinite:We,isNaN:Ae,isTypedArray:N,isEmpty:we,isMatch:Se,isEqual:oe,isMap:at,isWeakMap:xt,isSet:kt,isWeakSet:St,keys:ue,allKeys:me,values:lt,pairs:Tt,invert:ht,functions:_t,methods:_t,extend:It,extendOwn:Nt,assign:Nt,defaults:R,create:fe,clone:ge,tap:Oe,get:tt,has:ot,mapObject:At,identity:st,constant:d,noop:dt,toPath:je,property:ut,propertyOf:Ot,matcher:it,matches:it,times:br,random:Mt,now:Dt,escape:xr,unescape:Ir,templateSettings:Dr,template:Or,result:Cr,uniqueId:Mr,chain:Lr,iteratee:pt,partial:bt,bind:Jt,bindAll:Pr,memoize:Fr,delay:Qt,defer:Br,throttle:Xr,debounce:zr,wrap:Ur,negate:Pt,compose:Wr,after:jr,before:qt,once:Hr,findKey:er,findIndex:Ft,findLastIndex:rr,sortedIndex:nr,indexOf:ar,lastIndexOf:Vr,find:Bt,detect:Bt,findWhere:Zr,each:mt,forEach:mt,map:wt,collect:wt,reduce:Xt,foldl:Xt,inject:Xt,reduceRight:sr,foldr:sr,filter:Et,select:Et,reject:Yr,every:ur,all:ur,some:lr,any:lr,contains:vt,includes:vt,include:vt,invoke:Gr,pluck:zt,where:Kr,max:cr,min:$r,shuffle:Jr,sample:fr,sortBy:Qr,groupBy:qr,indexBy:en,countBy:tn,partition:nn,toArray:on,size:sn,pick:hr,omit:ln,first:Ut,head:Ut,take:Ut,initial:pr,last:cn,rest:Rt,tail:Rt,drop:Rt,compact:fn,flatten:hn,without:pn,uniq:Wt,unique:Wt,union:dn,intersection:mn,difference:dr,unzip:jt,transpose:jt,zip:vn,object:gn,range:wn,chunk:_n,mixin:mr,default:_e},Vt=mr(bn);return Vt._=Vt,Vt})}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],68:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t=[].slice,l={}.hasOwnProperty;z=function(){var g,_,w,y,h,T;if(T=arguments[0],h=2<=arguments.length?t.call(arguments,1):[],c(Object.assign))Object.assign.apply(null,arguments);else for(g=0,w=h.length;g<w;g++)if(y=h[g],y!=null)for(_ in y){if(!l.call(y,_))continue;T[_]=y[_]}return T},c=function(g){return!!g&&Object.prototype.toString.call(g)==="[object Function]"},o=function(g){var _;return!!g&&((_=typeof g)==="function"||_==="object")},p=function(g){if(c(Array.isArray))return Array.isArray(g);else return Object.prototype.toString.call(g)==="[object Array]"},k=function(g){var _;if(p(g))return!g.length;else{for(_ in g){if(!l.call(g,_))continue;return!1}return!0}},i=function(g){var _,w;return o(g)&&(w=Object.getPrototypeOf(g))&&(_=w.constructor)&&typeof _==="function"&&_ instanceof _&&Function.prototype.toString.call(_)===Function.prototype.toString.call(Object)},I=function(g){if(c(g.valueOf))return g.valueOf();else return g},ce.exports.assign=z,ce.exports.isFunction=c,ce.exports.isObject=o,ce.exports.isArray=p,ce.exports.isEmpty=k,ce.exports.isPlainObject=i,ce.exports.getValue=I}).call(this)},{}],69:[function(X,ce,L){(function(){var z;ce.exports=z=function(){function I(p,k,c){if(this.options=p.options,this.stringify=p.stringify,this.parent=p,k==null)throw Error("Missing attribute name. "+this.debugInfo(k));if(c==null)throw Error("Missing attribute value. "+this.debugInfo(k));this.name=this.stringify.attName(k),this.value=this.stringify.attValue(c)}return I.prototype.clone=function(){return Object.create(this)},I.prototype.toString=function(p){return this.options.writer.set(p).attribute(this)},I.prototype.debugInfo=function(p){var k,c;if(p=p||this.name,p==null&&!((k=this.parent)!=null?k.name:void 0))return"";else if(p==null)return"parent: <"+this.parent.name+">";else if(!((c=this.parent)!=null?c.name:void 0))return"attribute: {"+p+"}";else return"attribute: {"+p+"}, parent: <"+this.parent.name+">"},I}()}).call(this)},{}],70:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).cdata(this)},o}(I)}).call(this)},{"./XMLNode":81}],71:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).comment(this)},o}(I)}).call(this)},{"./XMLNode":81}],72:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t,l,g,_,w){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing DTD element name. "+this.debugInfo());if(l==null)throw Error("Missing DTD attribute name. "+this.debugInfo(t));if(!g)throw Error("Missing DTD attribute type. "+this.debugInfo(t));if(!_)throw Error("Missing DTD attribute default. "+this.debugInfo(t));if(_.indexOf("#")!==0)_="#"+_;if(!_.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(t));if(w&&!_.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(t));this.elementName=this.stringify.eleName(t),this.attributeName=this.stringify.attName(l),this.attributeType=this.stringify.dtdAttType(g),this.defaultValue=this.stringify.dtdAttDefault(w),this.defaultValueType=_}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdAttList(this)},o}(I)}).call(this)},{"./XMLNode":81}],73:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t,l){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing DTD element name. "+this.debugInfo());if(!l)l="(#PCDATA)";if(Array.isArray(l))l="("+l.join(",")+")";this.name=this.stringify.eleName(t),this.value=this.stringify.dtdElementValue(l)}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdElement(this)},o}(I)}).call(this)},{"./XMLNode":81}],74:[function(X,ce,L){(function(){var z,I,p,k=function(o,i){for(var t in i)if(c.call(i,t))o[t]=i[t];function l(){this.constructor=o}return l.prototype=i.prototype,o.prototype=new l,o.__super__=i.prototype,o},c={}.hasOwnProperty;p=X("./Utility").isObject,I=X("./XMLNode"),ce.exports=z=function(o){k(i,o);function i(t,l,g,_){if(i.__super__.constructor.call(this,t),g==null)throw Error("Missing DTD entity name. "+this.debugInfo(g));if(_==null)throw Error("Missing DTD entity value. "+this.debugInfo(g));if(this.pe=!!l,this.name=this.stringify.eleName(g),!p(_))this.value=this.stringify.dtdEntityValue(_);else{if(!_.pubID&&!_.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(g));if(_.pubID&&!_.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(g));if(_.pubID!=null)this.pubID=this.stringify.dtdPubID(_.pubID);if(_.sysID!=null)this.sysID=this.stringify.dtdSysID(_.sysID);if(_.nData!=null)this.nData=this.stringify.dtdNData(_.nData);if(this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(g))}}return i.prototype.toString=function(t){return this.options.writer.set(t).dtdEntity(this)},i}(I)}).call(this)},{"./Utility":68,"./XMLNode":81}],75:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t,l){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing DTD notation name. "+this.debugInfo(t));if(!l.pubID&&!l.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(t));if(this.name=this.stringify.eleName(t),l.pubID!=null)this.pubID=this.stringify.dtdPubID(l.pubID);if(l.sysID!=null)this.sysID=this.stringify.dtdSysID(l.sysID)}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdNotation(this)},o}(I)}).call(this)},{"./XMLNode":81}],76:[function(X,ce,L){(function(){var z,I,p,k=function(o,i){for(var t in i)if(c.call(i,t))o[t]=i[t];function l(){this.constructor=o}return l.prototype=i.prototype,o.prototype=new l,o.__super__=i.prototype,o},c={}.hasOwnProperty;p=X("./Utility").isObject,I=X("./XMLNode"),ce.exports=z=function(o){k(i,o);function i(t,l,g,_){var w;if(i.__super__.constructor.call(this,t),p(l))w=l,l=w.version,g=w.encoding,_=w.standalone;if(!l)l="1.0";if(this.version=this.stringify.xmlVersion(l),g!=null)this.encoding=this.stringify.xmlEncoding(g);if(_!=null)this.standalone=this.stringify.xmlStandalone(_)}return i.prototype.toString=function(t){return this.options.writer.set(t).declaration(this)},i}(I)}).call(this)},{"./Utility":68,"./XMLNode":81}],77:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t=function(g,_){for(var w in _)if(l.call(_,w))g[w]=_[w];function y(){this.constructor=g}return y.prototype=_.prototype,g.prototype=new y,g.__super__=_.prototype,g},l={}.hasOwnProperty;i=X("./Utility").isObject,o=X("./XMLNode"),z=X("./XMLDTDAttList"),p=X("./XMLDTDEntity"),I=X("./XMLDTDElement"),k=X("./XMLDTDNotation"),ce.exports=c=function(g){t(_,g);function _(w,y,h){var T,x;if(_.__super__.constructor.call(this,w),this.name="!DOCTYPE",this.documentObject=w,i(y))T=y,y=T.pubID,h=T.sysID;if(h==null)x=[y,h],h=x[0],y=x[1];if(y!=null)this.pubID=this.stringify.dtdPubID(y);if(h!=null)this.sysID=this.stringify.dtdSysID(h)}return _.prototype.element=function(w,y){var h=new I(this,w,y);return this.children.push(h),this},_.prototype.attList=function(w,y,h,T,x){var n=new z(this,w,y,h,T,x);return this.children.push(n),this},_.prototype.entity=function(w,y){var h=new p(this,!1,w,y);return this.children.push(h),this},_.prototype.pEntity=function(w,y){var h=new p(this,!0,w,y);return this.children.push(h),this},_.prototype.notation=function(w,y){var h=new k(this,w,y);return this.children.push(h),this},_.prototype.toString=function(w){return this.options.writer.set(w).docType(this)},_.prototype.ele=function(w,y){return this.element(w,y)},_.prototype.att=function(w,y,h,T,x){return this.attList(w,y,h,T,x)},_.prototype.ent=function(w,y){return this.entity(w,y)},_.prototype.pent=function(w,y){return this.pEntity(w,y)},_.prototype.not=function(w,y){return this.notation(w,y)},_.prototype.up=function(){return this.root()||this.documentObject},_}(o)}).call(this)},{"./Utility":68,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLNode":81}],78:[function(X,ce,L){(function(){var z,I,p,k,c,o=function(t,l){for(var g in l)if(i.call(l,g))t[g]=l[g];function _(){this.constructor=t}return _.prototype=l.prototype,t.prototype=new _,t.__super__=l.prototype,t},i={}.hasOwnProperty;c=X("./Utility").isPlainObject,I=X("./XMLNode"),k=X("./XMLStringifier"),p=X("./XMLStringWriter"),ce.exports=z=function(t){o(l,t);function l(g){if(l.__super__.constructor.call(this,null),this.name="?xml",g||(g={}),!g.writer)g.writer=new p;this.options=g,this.stringify=new k(g),this.isDocument=!0}return l.prototype.end=function(g){var _;if(!g)g=this.options.writer;else if(c(g))_=g,g=this.options.writer.set(_);return g.document(this)},l.prototype.toString=function(g){return this.options.writer.set(g).document(this)},l}(I)}).call(this)},{"./Utility":68,"./XMLNode":81,"./XMLStringWriter":85,"./XMLStringifier":86}],79:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T,x,n,v,a,E,F,A={}.hasOwnProperty;F=X("./Utility"),a=F.isObject,v=F.isFunction,E=F.isPlainObject,n=F.getValue,_=X("./XMLElement"),I=X("./XMLCData"),p=X("./XMLComment"),y=X("./XMLRaw"),x=X("./XMLText"),w=X("./XMLProcessingInstruction"),t=X("./XMLDeclaration"),l=X("./XMLDocType"),k=X("./XMLDTDAttList"),o=X("./XMLDTDEntity"),c=X("./XMLDTDElement"),i=X("./XMLDTDNotation"),z=X("./XMLAttribute"),T=X("./XMLStringifier"),h=X("./XMLStringWriter"),ce.exports=g=function(){function W(S,P,O){var H;if(this.name="?xml",S||(S={}),!S.writer)S.writer=new h(S);else if(E(S.writer))H=S.writer,S.writer=new h(H);this.options=S,this.writer=S.writer,this.stringify=new T(S),this.onDataCallback=P||function(){},this.onEndCallback=O||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return W.prototype.node=function(S,P,O){var H;if(S==null)throw Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw Error("Document can only have one root node. "+this.debugInfo(S));if(this.openCurrent(),S=n(S),P==null)P={};if(P=n(P),!a(P))H=[P,O],O=H[0],P=H[1];if(this.currentNode=new _(this,S,P),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,O!=null)this.text(O);return this},W.prototype.element=function(S,P,O){if(this.currentNode&&this.currentNode instanceof l)return this.dtdElement.apply(this,arguments);else return this.node(S,P,O)},W.prototype.attribute=function(S,P){var O,H;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(S));if(S!=null)S=n(S);if(a(S))for(O in S){if(!A.call(S,O))continue;H=S[O],this.attribute(O,H)}else{if(v(P))P=P.apply();if(!this.options.skipNullAttributes||P!=null)this.currentNode.attributes[S]=new z(this,S,P)}return this},W.prototype.text=function(S){var P;return this.openCurrent(),P=new x(this,S),this.onData(this.writer.text(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.cdata=function(S){var P;return this.openCurrent(),P=new I(this,S),this.onData(this.writer.cdata(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.comment=function(S){var P;return this.openCurrent(),P=new p(this,S),this.onData(this.writer.comment(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.raw=function(S){var P;return this.openCurrent(),P=new y(this,S),this.onData(this.writer.raw(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.instruction=function(S,P){var O,H,ee,U,J;if(this.openCurrent(),S!=null)S=n(S);if(P!=null)P=n(P);if(Array.isArray(S))for(O=0,U=S.length;O<U;O++)H=S[O],this.instruction(H);else if(a(S))for(H in S){if(!A.call(S,H))continue;ee=S[H],this.instruction(H,ee)}else{if(v(P))P=P.apply();J=new w(this,S,P),this.onData(this.writer.processingInstruction(J,this.currentLevel+1),this.currentLevel+1)}return this},W.prototype.declaration=function(S,P,O){var H;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return H=new t(this,S,P,O),this.onData(this.writer.declaration(H,this.currentLevel+1),this.currentLevel+1),this},W.prototype.doctype=function(S,P,O){if(this.openCurrent(),S==null)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new l(this,P,O),this.currentNode.rootNodeName=S,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},W.prototype.dtdElement=function(S,P){var O;return this.openCurrent(),O=new c(this,S,P),this.onData(this.writer.dtdElement(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.attList=function(S,P,O,H,ee){var U;return this.openCurrent(),U=new k(this,S,P,O,H,ee),this.onData(this.writer.dtdAttList(U,this.currentLevel+1),this.currentLevel+1),this},W.prototype.entity=function(S,P){var O;return this.openCurrent(),O=new o(this,!1,S,P),this.onData(this.writer.dtdEntity(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.pEntity=function(S,P){var O;return this.openCurrent(),O=new o(this,!0,S,P),this.onData(this.writer.dtdEntity(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.notation=function(S,P){var O;return this.openCurrent(),O=new i(this,S,P),this.onData(this.writer.dtdNotation(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.up=function(){if(this.currentLevel<0)throw Error("The document node has no parent.");if(this.currentNode){if(this.currentNode.children)this.closeNode(this.currentNode);else this.openNode(this.currentNode);this.currentNode=null}else this.closeNode(this.openTags[this.currentLevel]);return delete this.openTags[this.currentLevel],this.currentLevel--,this},W.prototype.end=function(){while(this.currentLevel>=0)this.up();return this.onEnd()},W.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},W.prototype.openNode=function(S){if(!S.isOpen){if(!this.root&&this.currentLevel===0&&S instanceof _)this.root=S;return this.onData(this.writer.openNode(S,this.currentLevel),this.currentLevel),S.isOpen=!0}},W.prototype.closeNode=function(S){if(!S.isClosed)return this.onData(this.writer.closeNode(S,this.currentLevel),this.currentLevel),S.isClosed=!0},W.prototype.onData=function(S,P){return this.documentStarted=!0,this.onDataCallback(S,P+1)},W.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},W.prototype.debugInfo=function(S){if(S==null)return"";else return"node: <"+S+">"},W.prototype.ele=function(){return this.element.apply(this,arguments)},W.prototype.nod=function(S,P,O){return this.node(S,P,O)},W.prototype.txt=function(S){return this.text(S)},W.prototype.dat=function(S){return this.cdata(S)},W.prototype.com=function(S){return this.comment(S)},W.prototype.ins=function(S,P){return this.instruction(S,P)},W.prototype.dec=function(S,P,O){return this.declaration(S,P,O)},W.prototype.dtd=function(S,P,O){return this.doctype(S,P,O)},W.prototype.e=function(S,P,O){return this.element(S,P,O)},W.prototype.n=function(S,P,O){return this.node(S,P,O)},W.prototype.t=function(S){return this.text(S)},W.prototype.d=function(S){return this.cdata(S)},W.prototype.c=function(S){return this.comment(S)},W.prototype.r=function(S){return this.raw(S)},W.prototype.i=function(S,P){return this.instruction(S,P)},W.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof l)return this.attList.apply(this,arguments);else return this.attribute.apply(this,arguments)},W.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof l)return this.attList.apply(this,arguments);else return this.attribute.apply(this,arguments)},W.prototype.ent=function(S,P){return this.entity(S,P)},W.prototype.pent=function(S,P){return this.pEntity(S,P)},W.prototype.not=function(S,P){return this.notation(S,P)},W}()}).call(this)},{"./Utility":68,"./XMLAttribute":69,"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLStringWriter":85,"./XMLStringifier":86,"./XMLText":87}],80:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t=function(g,_){for(var w in _)if(l.call(_,w))g[w]=_[w];function y(){this.constructor=g}return y.prototype=_.prototype,g.prototype=new y,g.__super__=_.prototype,g},l={}.hasOwnProperty;i=X("./Utility"),o=i.isObject,c=i.isFunction,k=i.getValue,p=X("./XMLNode"),z=X("./XMLAttribute"),ce.exports=I=function(g){t(_,g);function _(w,y,h){if(_.__super__.constructor.call(this,w),y==null)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.eleName(y),this.attributes={},h!=null)this.attribute(h);if(w.isDocument)this.isRoot=!0,this.documentObject=w,w.rootObject=this}return _.prototype.clone=function(){var w,y,h,T;if(h=Object.create(this),h.isRoot)h.documentObject=null;h.attributes={},T=this.attributes;for(y in T){if(!l.call(T,y))continue;w=T[y],h.attributes[y]=w.clone()}return h.children=[],this.children.forEach(function(x){var n=x.clone();return n.parent=h,h.children.push(n)}),h},_.prototype.attribute=function(w,y){var h,T;if(w!=null)w=k(w);if(o(w))for(h in w){if(!l.call(w,h))continue;T=w[h],this.attribute(h,T)}else{if(c(y))y=y.apply();if(!this.options.skipNullAttributes||y!=null)this.attributes[w]=new z(this,w,y)}return this},_.prototype.removeAttribute=function(w){var y,h,T;if(w==null)throw Error("Missing attribute name. "+this.debugInfo());if(w=k(w),Array.isArray(w))for(h=0,T=w.length;h<T;h++)y=w[h],delete this.attributes[y];else delete this.attributes[w];return this},_.prototype.toString=function(w){return this.options.writer.set(w).element(this)},_.prototype.att=function(w,y){return this.attribute(w,y)},_.prototype.a=function(w,y){return this.attribute(w,y)},_}(p)}).call(this)},{"./Utility":68,"./XMLAttribute":69,"./XMLNode":81}],81:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T={}.hasOwnProperty;h=X("./Utility"),y=h.isObject,w=h.isFunction,_=h.isEmpty,g=h.getValue,c=null,z=null,I=null,p=null,k=null,t=null,l=null,i=null,ce.exports=o=function(){function x(n){if(this.parent=n,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(this.children=[],!c)c=X("./XMLElement"),z=X("./XMLCData"),I=X("./XMLComment"),p=X("./XMLDeclaration"),k=X("./XMLDocType"),t=X("./XMLRaw"),l=X("./XMLText"),i=X("./XMLProcessingInstruction")}return x.prototype.element=function(n,v,a){var E,F,A,W,S,P,O,H,ee,U;if(P=null,v==null)v={};if(v=g(v),!y(v))ee=[v,a],a=ee[0],v=ee[1];if(n!=null)n=g(n);if(Array.isArray(n))for(A=0,O=n.length;A<O;A++)F=n[A],P=this.element(F);else if(w(n))P=this.element(n.apply());else if(y(n))for(S in n){if(!T.call(n,S))continue;if(U=n[S],w(U))U=U.apply();if(y(U)&&_(U))U=null;if(!this.options.ignoreDecorators&&this.stringify.convertAttKey&&S.indexOf(this.stringify.convertAttKey)===0)P=this.attribute(S.substr(this.stringify.convertAttKey.length),U);else if(!this.options.separateArrayItems&&Array.isArray(U))for(W=0,H=U.length;W<H;W++)F=U[W],E={},E[S]=F,P=this.element(E);else if(y(U))P=this.element(S),P.element(U);else P=this.element(S,U)}else if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&n.indexOf(this.stringify.convertTextKey)===0)P=this.text(a);else if(!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&n.indexOf(this.stringify.convertCDataKey)===0)P=this.cdata(a);else if(!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&n.indexOf(this.stringify.convertCommentKey)===0)P=this.comment(a);else if(!this.options.ignoreDecorators&&this.stringify.convertRawKey&&n.indexOf(this.stringify.convertRawKey)===0)P=this.raw(a);else if(!this.options.ignoreDecorators&&this.stringify.convertPIKey&&n.indexOf(this.stringify.convertPIKey)===0)P=this.instruction(n.substr(this.stringify.convertPIKey.length),a);else P=this.node(n,v,a);if(P==null)throw Error("Could not create any elements with: "+n+". "+this.debugInfo());return P},x.prototype.insertBefore=function(n,v,a){var E,F,A;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(n));return F=this.parent.children.indexOf(this),A=this.parent.children.splice(F),E=this.parent.element(n,v,a),Array.prototype.push.apply(this.parent.children,A),E},x.prototype.insertAfter=function(n,v,a){var E,F,A;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(n));return F=this.parent.children.indexOf(this),A=this.parent.children.splice(F+1),E=this.parent.element(n,v,a),Array.prototype.push.apply(this.parent.children,A),E},x.prototype.remove=function(){var n,v;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return n=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[n,n-n+1].concat(v=[])),this.parent},x.prototype.node=function(n,v,a){var E,F;if(n!=null)n=g(n);if(v||(v={}),v=g(v),!y(v))F=[v,a],a=F[0],v=F[1];if(E=new c(this,n,v),a!=null)E.text(a);return this.children.push(E),E},x.prototype.text=function(n){var v=new l(this,n);return this.children.push(v),this},x.prototype.cdata=function(n){var v=new z(this,n);return this.children.push(v),this},x.prototype.comment=function(n){var v=new I(this,n);return this.children.push(v),this},x.prototype.commentBefore=function(n){var v,a,E;return a=this.parent.children.indexOf(this),E=this.parent.children.splice(a),v=this.parent.comment(n),Array.prototype.push.apply(this.parent.children,E),this},x.prototype.commentAfter=function(n){var v,a,E;return a=this.parent.children.indexOf(this),E=this.parent.children.splice(a+1),v=this.parent.comment(n),Array.prototype.push.apply(this.parent.children,E),this},x.prototype.raw=function(n){var v=new t(this,n);return this.children.push(v),this},x.prototype.instruction=function(n,v){var a,E,F,A,W;if(n!=null)n=g(n);if(v!=null)v=g(v);if(Array.isArray(n))for(A=0,W=n.length;A<W;A++)a=n[A],this.instruction(a);else if(y(n))for(a in n){if(!T.call(n,a))continue;E=n[a],this.instruction(a,E)}else{if(w(v))v=v.apply();F=new i(this,n,v),this.children.push(F)}return this},x.prototype.instructionBefore=function(n,v){var a,E,F;return E=this.parent.children.indexOf(this),F=this.parent.children.splice(E),a=this.parent.instruction(n,v),Array.prototype.push.apply(this.parent.children,F),this},x.prototype.instructionAfter=function(n,v){var a,E,F;return E=this.parent.children.indexOf(this),F=this.parent.children.splice(E+1),a=this.parent.instruction(n,v),Array.prototype.push.apply(this.parent.children,F),this},x.prototype.declaration=function(n,v,a){var E,F;if(E=this.document(),F=new p(E,n,v,a),E.children[0]instanceof p)E.children[0]=F;else E.children.unshift(F);return E.root()||E},x.prototype.doctype=function(n,v){var a,E,F,A,W,S,P,O,H,ee;E=this.document(),F=new k(E,n,v),H=E.children;for(A=W=0,P=H.length;W<P;A=++W)if(a=H[A],a instanceof k)return E.children[A]=F,F;ee=E.children;for(A=S=0,O=ee.length;S<O;A=++S)if(a=ee[A],a.isRoot)return E.children.splice(A,0,F),F;return E.children.push(F),F},x.prototype.up=function(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},x.prototype.root=function(){var n=this;while(n)if(n.isDocument)return n.rootObject;else if(n.isRoot)return n;else n=n.parent},x.prototype.document=function(){var n=this;while(n)if(n.isDocument)return n;else n=n.parent},x.prototype.end=function(n){return this.document().end(n)},x.prototype.prev=function(){var n=this.parent.children.indexOf(this);if(n<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[n-1]},x.prototype.next=function(){var n=this.parent.children.indexOf(this);if(n===-1||n===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[n+1]},x.prototype.importDocument=function(n){var v=n.root().clone();return v.parent=this,v.isRoot=!1,this.children.push(v),this},x.prototype.debugInfo=function(n){var v,a;if(n=n||this.name,n==null&&!((v=this.parent)!=null?v.name:void 0))return"";else if(n==null)return"parent: <"+this.parent.name+">";else if(!((a=this.parent)!=null?a.name:void 0))return"node: <"+n+">";else return"node: <"+n+">, parent: <"+this.parent.name+">"},x.prototype.ele=function(n,v,a){return this.element(n,v,a)},x.prototype.nod=function(n,v,a){return this.node(n,v,a)},x.prototype.txt=function(n){return this.text(n)},x.prototype.dat=function(n){return this.cdata(n)},x.prototype.com=function(n){return this.comment(n)},x.prototype.ins=function(n,v){return this.instruction(n,v)},x.prototype.doc=function(){return this.document()},x.prototype.dec=function(n,v,a){return this.declaration(n,v,a)},x.prototype.dtd=function(n,v){return this.doctype(n,v)},x.prototype.e=function(n,v,a){return this.element(n,v,a)},x.prototype.n=function(n,v,a){return this.node(n,v,a)},x.prototype.t=function(n){return this.text(n)},x.prototype.d=function(n){return this.cdata(n)},x.prototype.c=function(n){return this.comment(n)},x.prototype.r=function(n){return this.raw(n)},x.prototype.i=function(n,v){return this.instruction(n,v)},x.prototype.u=function(){return this.up()},x.prototype.importXMLBuilder=function(n){return this.importDocument(n)},x}()}).call(this)},{"./Utility":68,"./XMLCData":70,"./XMLComment":71,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87}],82:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;z=X("./XMLNode"),ce.exports=I=function(c){p(o,c);function o(i,t,l){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing instruction target. "+this.debugInfo());if(this.target=this.stringify.insTarget(t),l)this.value=this.stringify.insValue(l)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).processingInstruction(this)},o}(z)}).call(this)},{"./XMLNode":81}],83:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;z=X("./XMLNode"),ce.exports=I=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).raw(this)},o}(z)}).call(this)},{"./XMLNode":81}],84:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T=function(n,v){for(var a in v)if(x.call(v,a))n[a]=v[a];function E(){this.constructor=n}return E.prototype=v.prototype,n.prototype=new E,n.__super__=v.prototype,n},x={}.hasOwnProperty;i=X("./XMLDeclaration"),t=X("./XMLDocType"),z=X("./XMLCData"),I=X("./XMLComment"),l=X("./XMLElement"),_=X("./XMLRaw"),y=X("./XMLText"),g=X("./XMLProcessingInstruction"),p=X("./XMLDTDAttList"),k=X("./XMLDTDElement"),c=X("./XMLDTDEntity"),o=X("./XMLDTDNotation"),h=X("./XMLWriterBase"),ce.exports=w=function(n){T(v,n);function v(a,E){v.__super__.constructor.call(this,E),this.stream=a}return v.prototype.document=function(a){var E,F,A,W,S,P,O,H;P=a.children;for(F=0,W=P.length;F<W;F++)E=P[F],E.isLastRootNode=!1;a.children[a.children.length-1].isLastRootNode=!0,O=a.children,H=[];for(A=0,S=O.length;A<S;A++)switch(E=O[A],!1){case!(E instanceof i):H.push(this.declaration(E));break;case!(E instanceof t):H.push(this.docType(E));break;case!(E instanceof I):H.push(this.comment(E));break;case!(E instanceof g):H.push(this.processingInstruction(E));break;default:H.push(this.element(E))}return H},v.prototype.attribute=function(a){return this.stream.write(" "+a.name+'="'+a.value+'"')},v.prototype.cdata=function(a,E){return this.stream.write(this.space(E)+"<![CDATA["+a.text+"]]>"+this.endline(a))},v.prototype.comment=function(a,E){return this.stream.write(this.space(E)+"<!-- "+a.text+" -->"+this.endline(a))},v.prototype.declaration=function(a,E){if(this.stream.write(this.space(E)),this.stream.write('<?xml version="'+a.version+'"'),a.encoding!=null)this.stream.write(' encoding="'+a.encoding+'"');if(a.standalone!=null)this.stream.write(' standalone="'+a.standalone+'"');return this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(a))},v.prototype.docType=function(a,E){var F,A,W,S;if(E||(E=0),this.stream.write(this.space(E)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID)this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"');else if(a.sysID)this.stream.write(' SYSTEM "'+a.sysID+'"');if(a.children.length>0){this.stream.write(" ["),this.stream.write(this.endline(a)),S=a.children;for(A=0,W=S.length;A<W;A++)switch(F=S[A],!1){case!(F instanceof p):this.dtdAttList(F,E+1);break;case!(F instanceof k):this.dtdElement(F,E+1);break;case!(F instanceof c):this.dtdEntity(F,E+1);break;case!(F instanceof o):this.dtdNotation(F,E+1);break;case!(F instanceof z):this.cdata(F,E+1);break;case!(F instanceof I):this.comment(F,E+1);break;case!(F instanceof g):this.processingInstruction(F,E+1);break;default:throw Error("Unknown DTD node type: "+F.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(a))},v.prototype.element=function(a,E){var F,A,W,S,P,O,H,ee;E||(E=0),ee=this.space(E),this.stream.write(ee+"<"+a.name),O=a.attributes;for(P in O){if(!x.call(O,P))continue;F=O[P],this.attribute(F)}if(a.children.length===0||a.children.every(function(U){return U.value===""}))if(this.allowEmpty)this.stream.write("></"+a.name+">");else this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&a.children.length===1&&a.children[0].value!=null)this.stream.write(">"),this.stream.write(a.children[0].value),this.stream.write("</"+a.name+">");else{this.stream.write(">"+this.newline),H=a.children;for(W=0,S=H.length;W<S;W++)switch(A=H[W],!1){case!(A instanceof z):this.cdata(A,E+1);break;case!(A instanceof I):this.comment(A,E+1);break;case!(A instanceof l):this.element(A,E+1);break;case!(A instanceof _):this.raw(A,E+1);break;case!(A instanceof y):this.text(A,E+1);break;case!(A instanceof g):this.processingInstruction(A,E+1);break;default:throw Error("Unknown XML node type: "+A.constructor.name)}this.stream.write(ee+"</"+a.name+">")}return this.stream.write(this.endline(a))},v.prototype.processingInstruction=function(a,E){if(this.stream.write(this.space(E)+"<?"+a.target),a.value)this.stream.write(" "+a.value);return this.stream.write(this.spacebeforeslash+"?>"+this.endline(a))},v.prototype.raw=function(a,E){return this.stream.write(this.space(E)+a.value+this.endline(a))},v.prototype.text=function(a,E){return this.stream.write(this.space(E)+a.value+this.endline(a))},v.prototype.dtdAttList=function(a,E){if(this.stream.write(this.space(E)+"<!ATTLIST "+a.elementName+" "+a.attributeName+" "+a.attributeType),a.defaultValueType!=="#DEFAULT")this.stream.write(" "+a.defaultValueType);if(a.defaultValue)this.stream.write(' "'+a.defaultValue+'"');return this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.dtdElement=function(a,E){return this.stream.write(this.space(E)+"<!ELEMENT "+a.name+" "+a.value),this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.dtdEntity=function(a,E){if(this.stream.write(this.space(E)+"<!ENTITY"),a.pe)this.stream.write(" %");if(this.stream.write(" "+a.name),a.value)this.stream.write(' "'+a.value+'"');else{if(a.pubID&&a.sysID)this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"');else if(a.sysID)this.stream.write(' SYSTEM "'+a.sysID+'"');if(a.nData)this.stream.write(" NDATA "+a.nData)}return this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.dtdNotation=function(a,E){if(this.stream.write(this.space(E)+"<!NOTATION "+a.name),a.pubID&&a.sysID)this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"');else if(a.pubID)this.stream.write(' PUBLIC "'+a.pubID+'"');else if(a.sysID)this.stream.write(' SYSTEM "'+a.sysID+'"');return this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.endline=function(a){if(!a.isLastRootNode)return this.newline;else return""},v}(h)}).call(this)},{"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87,"./XMLWriterBase":88}],85:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T=function(n,v){for(var a in v)if(x.call(v,a))n[a]=v[a];function E(){this.constructor=n}return E.prototype=v.prototype,n.prototype=new E,n.__super__=v.prototype,n},x={}.hasOwnProperty;i=X("./XMLDeclaration"),t=X("./XMLDocType"),z=X("./XMLCData"),I=X("./XMLComment"),l=X("./XMLElement"),_=X("./XMLRaw"),y=X("./XMLText"),g=X("./XMLProcessingInstruction"),p=X("./XMLDTDAttList"),k=X("./XMLDTDElement"),c=X("./XMLDTDEntity"),o=X("./XMLDTDNotation"),h=X("./XMLWriterBase"),ce.exports=w=function(n){T(v,n);function v(a){v.__super__.constructor.call(this,a)}return v.prototype.document=function(a){var E,F,A,W,S;this.textispresent=!1,W="",S=a.children;for(F=0,A=S.length;F<A;F++)E=S[F],W+=function(){switch(!1){case!(E instanceof i):return this.declaration(E);case!(E instanceof t):return this.docType(E);case!(E instanceof I):return this.comment(E);case!(E instanceof g):return this.processingInstruction(E);default:return this.element(E,0)}}.call(this);if(this.pretty&&W.slice(-this.newline.length)===this.newline)W=W.slice(0,-this.newline.length);return W},v.prototype.attribute=function(a){return" "+a.name+'="'+a.value+'"'},v.prototype.cdata=function(a,E){return this.space(E)+"<![CDATA["+a.text+"]]>"+this.newline},v.prototype.comment=function(a,E){return this.space(E)+"<!-- "+a.text+" -->"+this.newline},v.prototype.declaration=function(a,E){var F=this.space(E);if(F+='<?xml version="'+a.version+'"',a.encoding!=null)F+=' encoding="'+a.encoding+'"';if(a.standalone!=null)F+=' standalone="'+a.standalone+'"';return F+=this.spacebeforeslash+"?>",F+=this.newline,F},v.prototype.docType=function(a,E){var F,A,W,S,P;if(E||(E=0),S=this.space(E),S+="<!DOCTYPE "+a.root().name,a.pubID&&a.sysID)S+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.sysID)S+=' SYSTEM "'+a.sysID+'"';if(a.children.length>0){S+=" [",S+=this.newline,P=a.children;for(A=0,W=P.length;A<W;A++)F=P[A],S+=function(){switch(!1){case!(F instanceof p):return this.dtdAttList(F,E+1);case!(F instanceof k):return this.dtdElement(F,E+1);case!(F instanceof c):return this.dtdEntity(F,E+1);case!(F instanceof o):return this.dtdNotation(F,E+1);case!(F instanceof z):return this.cdata(F,E+1);case!(F instanceof I):return this.comment(F,E+1);case!(F instanceof g):return this.processingInstruction(F,E+1);default:throw Error("Unknown DTD node type: "+F.constructor.name)}}.call(this);S+="]"}return S+=this.spacebeforeslash+">",S+=this.newline,S},v.prototype.element=function(a,E){var F,A,W,S,P,O,H,ee,U,J,D,te,ye;if(E||(E=0),ye=!1,this.textispresent)this.newline="",this.pretty=!1;else this.newline=this.newlinedefault,this.pretty=this.prettydefault;te=this.space(E),ee="",ee+=te+"<"+a.name,U=a.attributes;for(H in U){if(!x.call(U,H))continue;F=U[H],ee+=this.attribute(F)}if(a.children.length===0||a.children.every(function(se){return se.value===""}))if(this.allowEmpty)ee+="></"+a.name+">"+this.newline;else ee+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&a.children.length===1&&a.children[0].value!=null)ee+=">",ee+=a.children[0].value,ee+="</"+a.name+">"+this.newline;else{if(this.dontprettytextnodes){J=a.children;for(W=0,P=J.length;W<P;W++)if(A=J[W],A.value!=null){this.textispresent++,ye=!0;break}}if(this.textispresent)this.newline="",this.pretty=!1,te=this.space(E);ee+=">"+this.newline,D=a.children;for(S=0,O=D.length;S<O;S++)A=D[S],ee+=function(){switch(!1){case!(A instanceof z):return this.cdata(A,E+1);case!(A instanceof I):return this.comment(A,E+1);case!(A instanceof l):return this.element(A,E+1);case!(A instanceof _):return this.raw(A,E+1);case!(A instanceof y):return this.text(A,E+1);case!(A instanceof g):return this.processingInstruction(A,E+1);default:throw Error("Unknown XML node type: "+A.constructor.name)}}.call(this);if(ye)this.textispresent--;if(!this.textispresent)this.newline=this.newlinedefault,this.pretty=this.prettydefault;ee+=te+"</"+a.name+">"+this.newline}return ee},v.prototype.processingInstruction=function(a,E){var F=this.space(E)+"<?"+a.target;if(a.value)F+=" "+a.value;return F+=this.spacebeforeslash+"?>"+this.newline,F},v.prototype.raw=function(a,E){return this.space(E)+a.value+this.newline},v.prototype.text=function(a,E){return this.space(E)+a.value+this.newline},v.prototype.dtdAttList=function(a,E){var F=this.space(E)+"<!ATTLIST "+a.elementName+" "+a.attributeName+" "+a.attributeType;if(a.defaultValueType!=="#DEFAULT")F+=" "+a.defaultValueType;if(a.defaultValue)F+=' "'+a.defaultValue+'"';return F+=this.spacebeforeslash+">"+this.newline,F},v.prototype.dtdElement=function(a,E){return this.space(E)+"<!ELEMENT "+a.name+" "+a.value+this.spacebeforeslash+">"+this.newline},v.prototype.dtdEntity=function(a,E){var F=this.space(E)+"<!ENTITY";if(a.pe)F+=" %";if(F+=" "+a.name,a.value)F+=' "'+a.value+'"';else{if(a.pubID&&a.sysID)F+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.sysID)F+=' SYSTEM "'+a.sysID+'"';if(a.nData)F+=" NDATA "+a.nData}return F+=this.spacebeforeslash+">"+this.newline,F},v.prototype.dtdNotation=function(a,E){var F=this.space(E)+"<!NOTATION "+a.name;if(a.pubID&&a.sysID)F+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.pubID)F+=' PUBLIC "'+a.pubID+'"';else if(a.sysID)F+=' SYSTEM "'+a.sysID+'"';return F+=this.spacebeforeslash+">"+this.newline,F},v.prototype.openNode=function(a,E){var F,A,W,S;if(E||(E=0),a instanceof l){W=this.space(E)+"<"+a.name,S=a.attributes;for(A in S){if(!x.call(S,A))continue;F=S[A],W+=this.attribute(F)}return W+=(a.children?">":"/>")+this.newline,W}else{if(W=this.space(E)+"<!DOCTYPE "+a.rootNodeName,a.pubID&&a.sysID)W+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.sysID)W+=' SYSTEM "'+a.sysID+'"';return W+=(a.children?" [":">")+this.newline,W}},v.prototype.closeNode=function(a,E){switch(E||(E=0),!1){case!(a instanceof l):return this.space(E)+"</"+a.name+">"+this.newline;case!(a instanceof t):return this.space(E)+"]>"+this.newline}},v}(h)}).call(this)},{"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87,"./XMLWriterBase":88}],86:[function(X,ce,L){(function(){var z,I=function(k,c){return function(){return k.apply(c,arguments)}},p={}.hasOwnProperty;ce.exports=z=function(){function k(c){this.assertLegalChar=I(this.assertLegalChar,this);var o,i,t;c||(c={}),this.noDoubleEncoding=c.noDoubleEncoding,i=c.stringify||{};for(o in i){if(!p.call(i,o))continue;t=i[o],this[o]=t}}return k.prototype.eleName=function(c){return c=""+c||"",this.assertLegalChar(c)},k.prototype.eleText=function(c){return c=""+c||"",this.assertLegalChar(this.elEscape(c))},k.prototype.cdata=function(c){return c=""+c||"",c=c.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(c)},k.prototype.comment=function(c){if(c=""+c||"",c.match(/--/))throw Error("Comment text cannot contain double-hypen: "+c);return this.assertLegalChar(c)},k.prototype.raw=function(c){return""+c||""},k.prototype.attName=function(c){return c=""+c||""},k.prototype.attValue=function(c){return c=""+c||"",this.attEscape(c)},k.prototype.insTarget=function(c){return""+c||""},k.prototype.insValue=function(c){if(c=""+c||"",c.match(/\?>/))throw Error("Invalid processing instruction value: "+c);return c},k.prototype.xmlVersion=function(c){if(c=""+c||"",!c.match(/1\.[0-9]+/))throw Error("Invalid version number: "+c);return c},k.prototype.xmlEncoding=function(c){if(c=""+c||"",!c.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+c);return c},k.prototype.xmlStandalone=function(c){if(c)return"yes";else return"no"},k.prototype.dtdPubID=function(c){return""+c||""},k.prototype.dtdSysID=function(c){return""+c||""},k.prototype.dtdElementValue=function(c){return""+c||""},k.prototype.dtdAttType=function(c){return""+c||""},k.prototype.dtdAttDefault=function(c){if(c!=null)return""+c||"";else return c},k.prototype.dtdEntityValue=function(c){return""+c||""},k.prototype.dtdNData=function(c){return""+c||""},k.prototype.convertAttKey="@",k.prototype.convertPIKey="?",k.prototype.convertTextKey="#text",k.prototype.convertCDataKey="#cdata",k.prototype.convertCommentKey="#comment",k.prototype.convertRawKey="#raw",k.prototype.assertLegalChar=function(c){var o=c.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(o)throw Error("Invalid character in string: "+c+" at index "+o.index);return c},k.prototype.elEscape=function(c){var o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return c.replace(o,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},k.prototype.attEscape=function(c){var o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return c.replace(o,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},k}()}).call(this)},{}],87:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;z=X("./XMLNode"),ce.exports=I=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).text(this)},o}(z)}).call(this)},{"./XMLNode":81}],88:[function(X,ce,L){(function(){var z,I={}.hasOwnProperty;ce.exports=z=function(){function p(k){var c,o,i,t,l,g,_,w,y;if(k||(k={}),this.pretty=k.pretty||!1,this.allowEmpty=(o=k.allowEmpty)!=null?o:!1,this.pretty)this.indent=(i=k.indent)!=null?i:" ",this.newline=(t=k.newline)!=null?t:`
|
|
57
|
+
`,this.offset=(l=k.offset)!=null?l:0,this.dontprettytextnodes=(g=k.dontprettytextnodes)!=null?g:0;else this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0;if(this.spacebeforeslash=(_=k.spacebeforeslash)!=null?_:"",this.spacebeforeslash===!0)this.spacebeforeslash=" ";this.newlinedefault=this.newline,this.prettydefault=this.pretty,w=k.writer||{};for(c in w){if(!I.call(w,c))continue;y=w[c],this[c]=y}}return p.prototype.set=function(k){var c,o,i;if(k||(k={}),"pretty"in k)this.pretty=k.pretty;if("allowEmpty"in k)this.allowEmpty=k.allowEmpty;if(this.pretty)this.indent="indent"in k?k.indent:" ",this.newline="newline"in k?k.newline:`
|
|
58
|
+
`,this.offset="offset"in k?k.offset:0,this.dontprettytextnodes="dontprettytextnodes"in k?k.dontprettytextnodes:0;else this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0;if(this.spacebeforeslash="spacebeforeslash"in k?k.spacebeforeslash:"",this.spacebeforeslash===!0)this.spacebeforeslash=" ";this.newlinedefault=this.newline,this.prettydefault=this.pretty,o=k.writer||{};for(c in o){if(!I.call(o,c))continue;i=o[c],this[c]=i}return this},p.prototype.space=function(k){var c;if(this.pretty)if(c=(k||0)+this.offset+1,c>0)return Array(c).join(this.indent);else return"";else return""},p}()}).call(this)},{}],89:[function(X,ce,L){(function(){var z,I,p,k,c,o,i;i=X("./Utility"),c=i.assign,o=i.isFunction,z=X("./XMLDocument"),I=X("./XMLDocumentCB"),k=X("./XMLStringWriter"),p=X("./XMLStreamWriter"),ce.exports.create=function(t,l,g,_){var w,y;if(t==null)throw Error("Root element needs a name.");if(_=c({},l,g,_),w=new z(_),y=w.element(t),!_.headless){if(w.declaration(_),_.pubID!=null||_.sysID!=null)w.doctype(_)}return y},ce.exports.begin=function(t,l,g){var _;if(o(t))_=[t,l],l=_[0],g=_[1],t={};if(l)return new I(t,l,g);else return new z(t)},ce.exports.stringWriter=function(t){return new k(t)},ce.exports.streamWriter=function(t,l){return new p(t,l)}}).call(this)},{"./Utility":68,"./XMLDocument":78,"./XMLDocumentCB":79,"./XMLStreamWriter":84,"./XMLStringWriter":85}]},{},[21])(21)})});var _r=rn(wr(),1);async function En(et){return(await _r.default.convertToHtml({arrayBuffer:et})).value}function Nn({source:et,name:ft,revision:Yt=0}){let{value:X,loading:ce,error:L}=Wu(et,En,Yt),z=u(()=>X?xp(X):"",[X]);if(L)return e(Er,{name:ft,message:L});if(ce||X===null)return e("div",{className:"flex flex-1 items-center justify-center gap-2 text-xs text-ink/40",children:[e(m,{size:14,className:"animate-spin"}),e("span",{children:"Loading document…"})]});return e("div",{className:"flex-1 overflow-auto bg-paper",children:e("div",{className:"prose-content mx-auto max-w-4xl p-6 font-sans",dangerouslySetInnerHTML:{__html:z}})})}export{Nn as DocxView};
|