filens-preview 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,49 +1,192 @@
1
1
  if(typeof document!=="undefined"){const s=document.createElement("style");s.textContent=".archivev-preview{--archivev-summary-height: 44px;box-sizing:border-box;width:100%;height:100%;min-height:320px;overflow:auto;background:#f7f9fc;color:#1f2937;font-family:system-ui,sans-serif}.archivev-summary{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:16px;box-sizing:border-box;height:var(--archivev-summary-height);padding:12px 16px;border-bottom:1px solid #d7dee8;background:#fff;color:#5b6b81;font:700 12px/1 system-ui,sans-serif}.archivev-breadcrumbs{display:flex;flex:1 1 auto;align-items:center;gap:4px;min-width:0;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:thin}.archivev-breadcrumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;flex:0 0 auto;min-width:0;max-width:min(280px,45vw);overflow:hidden;border:0;padding:2px 4px;background:transparent;color:#2563eb;font:700 12px/1.2 system-ui,sans-serif;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.archivev-breadcrumb:disabled{color:#5b6b81;cursor:default}.archivev-breadcrumb-separator{flex:0 0 auto;color:#9aa8b8;-webkit-user-select:none;user-select:none}.archivev-breadcrumb-current{flex:0 0 auto;max-width:min(320px,50vw);overflow:hidden;color:#1f2937;text-overflow:ellipsis}.archivev-item-count{flex:0 0 auto;color:#7a8798;white-space:nowrap}.archivev-toolbar{position:sticky;top:var(--archivev-summary-height);z-index:1;display:flex;gap:8px;padding:10px 16px;border-bottom:1px solid #e5ebf2;background:#fff}.archivev-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #d7dee8;background:#f8fafc;color:#1f2937;font:600 12px/1 system-ui,sans-serif;padding:7px 10px;cursor:pointer}.archivev-button:disabled{cursor:default;opacity:.6}.archivev-table{width:100%;border-collapse:collapse;table-layout:fixed;background:#fff}.archivev-table th,.archivev-table td{padding:10px 14px;border-bottom:1px solid #e5ebf2;text-align:left;vertical-align:middle;font-size:13px}.archivev-table th{background:#f1f5f9;color:#5b6b81;font-size:12px;font-weight:700}.archivev-row{cursor:pointer}.archivev-row:focus-visible{outline:2px solid rgba(37,99,235,.35);outline-offset:-2px}.archivev-row:hover td{background:#f8fafc}.archivev-entry-preview{box-sizing:border-box;min-height:320px;height:calc(100% - 96px);overflow:auto;background:#fff}.archivev-entry-image{display:block;max-width:100%;max-height:70vh;margin:24px auto;object-fit:contain}.archivev-entry-frame{display:block;width:100%;height:70vh;border:0}.archivev-entry-media{display:block;width:min(100%,720px);margin:32px auto}.archivev-entry-text{box-sizing:border-box;min-height:320px;margin:0;padding:24px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;color:#1f2937;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.archivev-name{width:52%;overflow-wrap:anywhere;font-weight:600}.archivev-name:before{content:\"\";display:inline-block;width:9px;height:9px;margin-right:8px;border-radius:2px;background:#9db3d1}.archivev-name[data-type=directory]:before{background:#2d8f6f}.archivev-type,.archivev-size,.archivev-modified{width:16%;color:#5b6b81;white-space:nowrap}.pptxv-shell{--pptxv-panel: #ffffff;--pptxv-border: #d7dee8;--pptxv-border-strong: #9db3d1;--pptxv-text: #1f2937;--pptxv-muted: #5b6b81;--pptxv-accent: #2563eb;--pptxv-surface: #f3f6fa;display:flex;flex-direction:column;width:100%;height:var(--pptxv-height, clamp(520px, 78vh, 960px));min-height:480px;max-height:100%;color:var(--pptxv-text);background:var(--pptxv-panel);border:1px solid var(--pptxv-border);border-radius:0;overflow:hidden;font-family:system-ui,sans-serif}.pptxv-password-form{display:grid;gap:12px;width:min(340px,calc(100% - 40px));padding:24px;box-sizing:border-box;background:var(--pptxv-panel);border:1px solid var(--pptxv-border);color:var(--pptxv-text);text-align:left}.pptxv-password-form h2{margin:0;font-size:20px}.pptxv-password-form p{margin:0;font-size:14px}.pptxv-password-form label{font-size:14px}.pptxv-password-form input{min-width:0;padding:10px;border:1px solid var(--pptxv-border-strong);border-radius:4px;font:inherit}.pptxv-password-form input:focus-visible{outline:2px solid var(--pptxv-accent);outline-offset:2px}.pptxv-password-error{color:#b91c1c}.pptxv-password-actions{display:flex;justify-content:flex-end;gap:10px}.pptxv-shell:focus-visible{outline:2px solid rgba(37,99,235,.3);outline-offset:0}.pptxv-toolbar{display:flex;align-items:center;gap:12px;padding:10px 16px;border-bottom:1px solid var(--pptxv-border);background:#fff}.pptxv-toolbar-group{display:flex;align-items:center;gap:8px;flex:0 0 auto;min-width:0}.pptxv-toolbar-group+.pptxv-toolbar-group{flex:1 1 auto;justify-content:flex-end;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-gutter:stable}.pptxv-pill--hidden{visibility:hidden}.pptxv-layout{display:flex;min-height:0;flex:1;overflow:hidden}.pptxv-model-tools{display:flex;flex:0 0 auto;min-height:0}.pptxv-button.pptxv-model-tools-toggle{position:absolute;top:12px;left:12px;z-index:2;display:grid;place-items:center;width:34px;height:34px;padding:0}.pptxv-model-tools-toggle svg{width:20px;height:20px}.pptxv-sidebar{width:204px;flex:0 0 204px;padding:12px;overflow:auto;scrollbar-gutter:stable;scroll-behavior:smooth;scroll-snap-type:y proximity;border-right:1px solid var(--pptxv-border);background:#f6f8fb}.pptxv-meta-sidebar{width:240px;flex:0 0 240px}.pptxv-tree-sidebar{width:260px;flex:0 0 260px}.pptxv-meta-panel{display:grid;gap:10px}.pptxv-meta-heading{color:var(--pptxv-text);font:700 12px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-meta-muted{padding:10px;border:1px dashed var(--pptxv-border);color:var(--pptxv-muted);font:600 12px/1.35 system-ui,sans-serif}.pptxv-meta-list{display:grid;gap:8px;margin:0}.pptxv-material-list{display:grid;gap:8px}.pptxv-material-card{display:grid;gap:8px;padding:10px;border:1px solid var(--pptxv-border);background:#fff}.pptxv-material-card.is-active{border-color:var(--pptxv-accent);background:#eff6ff}.pptxv-material-title-copy{display:grid;gap:2px;min-width:0}.pptxv-material-title{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.pptxv-material-title strong,.pptxv-material-title span{min-width:0;overflow-wrap:anywhere}.pptxv-material-title strong{color:var(--pptxv-text);font:700 12px/1.35 system-ui,sans-serif}.pptxv-material-title span{color:var(--pptxv-muted);font:700 10px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-material-swatches{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.pptxv-material-swatch{width:16px;min-width:16px;height:16px;border:1px solid rgba(15,23,42,.16);box-shadow:inset 0 0 0 1px #ffffff59}.pptxv-material-actions{display:flex;justify-content:flex-start}.pptxv-material-action,.pptxv-material-clear{min-width:96px}.pptxv-material-detail-list{display:grid;gap:6px;margin:0}.pptxv-material-detail-row{display:grid;gap:2px}.pptxv-material-detail-row dt{margin:0;color:var(--pptxv-muted);font:700 10px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-material-detail-row dd{margin:0;color:var(--pptxv-text);font:600 12px/1.35 system-ui,sans-serif;overflow-wrap:anywhere}.pptxv-meta-row{display:grid;gap:4px;padding:8px 10px;border:1px solid var(--pptxv-border);background:#fff}.pptxv-meta-row dt{margin:0;color:var(--pptxv-muted);font:700 11px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-meta-row dd{margin:0;color:var(--pptxv-text);font:600 12px/1.4 system-ui,sans-serif;overflow-wrap:anywhere}.pptxv-tree-reset{flex:1}.pptxv-tree-actions{display:flex;gap:8px}.pptxv-tree-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.pptxv-tree-search-input{width:100%;min-width:0;height:32px;padding:0 10px;border:1px solid var(--pptxv-border);background:#fff;color:var(--pptxv-text);font:600 12px/1 system-ui,sans-serif}.pptxv-tree-search-clear{min-width:64px}.pptxv-tree-search-status{color:var(--pptxv-muted);font:700 11px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-tree-explode{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center}.pptxv-tree-explode-label{color:var(--pptxv-muted);font:700 11px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-tree-explode-slider{width:100%;min-width:0;margin:0}.pptxv-tree-explode-value{min-width:58px;padding-inline:8px}.pptxv-tree-summary{display:flex;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid var(--pptxv-border);background:#f8fafc;color:var(--pptxv-text);font:600 12px/1.35 system-ui,sans-serif}.pptxv-tree-summary span,.pptxv-tree-summary strong{min-width:0;overflow-wrap:anywhere}.pptxv-tree-detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.pptxv-tree-empty{padding:10px;border:1px dashed var(--pptxv-border);color:var(--pptxv-muted);background:#fff;font:600 12px/1.35 system-ui,sans-serif}.pptxv-tree-detail-row{display:grid;gap:4px;padding:8px 10px;border:1px solid var(--pptxv-border);background:#fff}.pptxv-tree-detail-row dt{margin:0;color:var(--pptxv-muted);font:700 11px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-tree-detail-row dd{margin:0;color:var(--pptxv-text);font:600 12px/1.35 system-ui,sans-serif;overflow-wrap:anywhere}.pptxv-tree-list{display:grid;gap:6px}.pptxv-tree-row{display:grid;grid-template-columns:20px 16px minmax(0,1fr);gap:6px;align-items:stretch}.pptxv-tree-toggle,.pptxv-tree-spacer{width:20px;min-width:20px;height:100%}.pptxv-tree-toggle{border:1px solid var(--pptxv-border);background:#fff;color:var(--pptxv-muted);font:700 11px/1 system-ui,sans-serif;cursor:pointer}.pptxv-tree-spacer{display:block}.pptxv-tree-visibility{width:16px;height:16px;align-self:center;margin:0}.pptxv-tree-button{display:grid;gap:2px;width:100%;min-width:0;padding:8px 10px;border:1px solid var(--pptxv-border);background:#fff;color:var(--pptxv-text);text-align:left;cursor:pointer}.pptxv-tree-button.is-active{border-color:var(--pptxv-accent);background:#eff6ff}.pptxv-tree-button.is-hidden{opacity:.62}.pptxv-tree-topline{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:8px;align-items:center}.pptxv-tree-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;border:1px solid var(--pptxv-border);background:#f8fafc;color:var(--pptxv-muted);font:700 10px/1 system-ui,sans-serif}.pptxv-tree-count{color:var(--pptxv-muted);font:700 11px/1 system-ui,sans-serif}.pptxv-tree-kind{color:var(--pptxv-muted);font:700 10px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-tree-label{color:var(--pptxv-text);font:600 12px/1.35 system-ui,sans-serif;overflow-wrap:anywhere}.pptxv-meta-heading-split{display:flex;justify-content:space-between;gap:10px;align-items:center}.pptxv-meta-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.pptxv-meta-count{color:var(--pptxv-muted);font:700 11px/1 system-ui,sans-serif}.pptxv-measurement-controls{display:grid;gap:8px}.pptxv-measurement-group{display:grid;gap:6px}.pptxv-measurement-label{color:var(--pptxv-muted);font:700 11px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-measurement-buttons{display:flex;gap:6px;flex-wrap:wrap}.pptxv-section-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.pptxv-section-value{color:var(--pptxv-text);font:700 12px/1 system-ui,sans-serif}.pptxv-section-slider{width:100%}.pptxv-section-range{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--pptxv-muted);font:600 11px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums}.pptxv-section-box{display:grid;gap:10px}.pptxv-main{flex:1;min-width:0;min-height:0;padding:0;overflow:hidden;background:var(--pptxv-surface);contain:layout paint}.pptxv-main-stage{position:relative;width:100%;height:100%;overflow:hidden}.pptxv-main-view{width:100%;height:100%;min-height:420px;overflow:hidden}.pptxv-main-view.iworkv-root{overflow:auto}.pptxv-button{flex:0 0 auto;min-height:28px;border:1px solid var(--pptxv-border);border-radius:4px;padding:6px 12px;background:#fff;color:var(--pptxv-text);font:600 12px/1 system-ui,sans-serif;cursor:pointer;transition:border-color .12s ease,background-color .12s ease,color .12s ease}.pptxv-button.is-active{border-color:var(--pptxv-accent);background:#eff6ff;color:#1d4ed8}.pptxv-button:hover{border-color:var(--pptxv-border-strong);background:#f8fbff}.pptxv-button:disabled{cursor:not-allowed;opacity:.46}.pptxv-status{flex:0 0 96px;max-width:96px;text-align:center;font:600 12px/1 system-ui,sans-serif;color:var(--pptxv-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.pptxv-pill{display:inline-flex;align-items:center;justify-content:center;min-height:26px;flex:0 0 92px;max-width:92px;padding:0 10px;border:1px solid #ead8a2;border-radius:4px;background:#fff9e8;color:#8a5b00;font:600 11px/1 system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.pptxv-layer-menu{position:relative}.pptxv-layer-menu--hidden{visibility:hidden;pointer-events:none}.pptxv-layer-menu[open] .pptxv-layer-summary{border-color:var(--pptxv-accent);background:#f4f8ff}.pptxv-layer-summary{display:inline-flex;align-items:center;justify-content:center;width:132px;min-height:28px;list-style:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.pptxv-layer-summary::-webkit-details-marker{display:none}.pptxv-layer-popover{position:absolute;z-index:20;top:calc(100% + 8px);left:0;width:min(260px,72vw);max-height:320px;overflow:auto;padding:8px;border:1px solid var(--pptxv-border);background:#fff;box-shadow:0 12px 28px #1f293724}.pptxv-layer-actions{display:flex;gap:6px;padding:0 0 8px;border-bottom:1px solid var(--pptxv-border);margin-bottom:6px}.pptxv-layer-action{min-height:26px;padding:0 10px;border:1px solid var(--pptxv-border);border-radius:4px;background:#fff;color:var(--pptxv-text);font:600 11px/1 system-ui,sans-serif;cursor:pointer}.pptxv-layer-row{display:grid;grid-template-columns:16px 14px minmax(0,1fr);align-items:center;gap:8px;min-height:30px;padding:3px 4px;color:var(--pptxv-text);font:600 12px/1.25 system-ui,sans-serif}.pptxv-layer-row input{width:14px;height:14px;margin:0}.pptxv-layer-color{width:12px;height:12px;border:1px solid rgba(31,41,55,.2)}.pptxv-layer-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pptxv-thumb-button{display:flex;flex-direction:column;width:100%;margin-bottom:8px;padding:8px;border:1px solid var(--pptxv-border);border-radius:0;background:#fff;cursor:pointer;scroll-snap-align:start;content-visibility:auto;contain-intrinsic-size:0 220px;transition:border-color .12s ease,background-color .12s ease}.pptxv-thumb-button:hover{border-color:var(--pptxv-border-strong);background:#fbfdff}.pptxv-thumb-button.is-active{border-color:var(--pptxv-accent);box-shadow:inset 0 0 0 1px #2563eb1f}.pptxv-thumb-host{width:100%;border-radius:0}.pptxv-thumb-host.is-placeholder{position:relative;overflow:hidden;background:linear-gradient(90deg,#eef3f8,#fff,#eef3f8);background-size:200% 100%;animation:pptxv-thumb-shimmer 1.6s linear infinite}.pptxv-thumb-stage{overflow:hidden;border-radius:0;box-shadow:none}.pptxv-thumb-label{margin-top:6px;text-align:center;color:var(--pptxv-muted);font:600 12px/1 system-ui,sans-serif}.pptxv-overlay{position:absolute;top:12px;right:12px;bottom:12px;left:12px;display:flex;align-items:center;justify-content:center;padding:18px;border:1px solid var(--pptxv-border);border-radius:0;background:#fffffff5;color:var(--pptxv-text);text-align:center;font:600 14px/1.45 system-ui,sans-serif}.pptxv-overlay.is-error{border-color:#c436362e;background:#fff4f4eb;color:#8a1f1f}.pptxv-tabs{display:flex;gap:8px;padding:10px 16px;border-bottom:1px solid var(--pptxv-border);background:#fbfcfe;overflow:auto}.pptxv-tab{min-height:34px;padding:0 12px;border:1px solid var(--pptxv-border);background:#fff;color:var(--pptxv-text);font:600 12px/1 system-ui,sans-serif;white-space:nowrap;cursor:pointer}.pptxv-tab.is-active{border-color:var(--pptxv-accent);box-shadow:inset 0 0 0 1px #2563eb1f}@keyframes pptxv-thumb-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (max-width: 900px){.pptxv-toolbar{flex-wrap:wrap}.pptxv-layout{flex-direction:column}.pptxv-model-tools{flex-direction:column;flex:0 1 auto;max-height:min(40vh,320px);overflow:auto}.pptxv-model-tools .pptxv-sidebar{box-sizing:border-box}.pptxv-sidebar{width:100%;flex:none;display:flex;gap:12px;overflow:auto;scrollbar-gutter:stable both-edges;scroll-snap-type:x proximity;border-right:0;border-bottom:1px solid var(--pptxv-border)}.pptxv-thumb-button{min-width:176px;margin-bottom:0}}.cadv-preview{box-sizing:border-box;width:100%;height:100%;min-height:320px;overflow:auto;background:linear-gradient(#eef3f8 1px,transparent 1px),linear-gradient(90deg,#eef3f8 1px,transparent 1px),#f8fafc;background-size:24px 24px;color:#223245}.cadv-stage{box-sizing:border-box;height:100%;min-width:100%;min-height:100%;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;padding:32px}.cadv-canvas{width:100%;height:100%;max-width:min(100%,1200px);max-height:100%;overflow:visible;transform-origin:center center;filter:drop-shadow(0 8px 22px rgba(34,50,69,.12))}.cadv-canvas text{paint-order:stroke;stroke:#f8fafc;stroke-width:2px}.cadv-empty{padding:24px;border:1px solid #cfd8e3;background:#fff;font-weight:700}.diagramv-preview{box-sizing:border-box;width:100%;height:100%;min-height:0;overflow:auto;background:#f6f8fb;color:#1f2937;font-family:system-ui,sans-serif}.diagramv-summary{position:sticky;top:0;z-index:1;padding:12px 16px;border-bottom:1px solid #d7dee8;background:#fff;color:#5b6b81;font:700 12px/1 system-ui,sans-serif}.diagramv-canvas-wrap{margin:0}.diagramv-canvas{display:block;width:100%;height:100%}.diagramv-edge,.diagramv-node{cursor:pointer;outline:none}.diagramv-edge polyline{fill:none}.diagramv-edge text,.diagramv-node text{font:600 13px/1 system-ui,sans-serif;text-anchor:middle;pointer-events:none}.diagramv-edge text{text-anchor:start}.diagramv-edge:hover polyline,.diagramv-edge:focus-visible polyline{stroke:#2563eb}.diagramv-node:hover rect,.diagramv-node:hover ellipse,.diagramv-node:hover polygon,.diagramv-node:focus-visible rect{stroke:#2563eb}.diagramv-node:focus-visible ellipse,.diagramv-node:focus-visible polygon{stroke:#2563eb}.diagramv-edge.is-selected polyline{stroke:#2d8f6f;stroke-width:3}.diagramv-node.is-selected rect{fill:#ecfdf5;stroke:#2d8f6f;stroke-width:2}.diagramv-node.is-selected ellipse,.diagramv-node.is-selected polygon{fill:#ecfdf5;stroke:#2d8f6f;stroke-width:2}.mindmapv-preview{box-sizing:border-box;width:100%;height:100%;min-height:0;overflow:auto;background:#f6f8fb;color:#1f2937;font-family:system-ui,sans-serif}.mindmapv-summary{position:sticky;top:0;z-index:1;padding:12px 16px;border-bottom:1px solid #d7dee8;background:#fff;color:#5b6b81;font:700 12px/1 system-ui,sans-serif}.mindmapv-canvas-wrap{margin:0}.mindmapv-canvas{display:block;width:100%;height:100%}.mindmapv-links path{fill:none;stroke:#9db3d1;stroke-width:2}.mindmapv-node{cursor:pointer;outline:none}.mindmapv-node rect{fill:#fff;stroke:#9db3d1;stroke-width:1.4}.mindmapv-node text{fill:#1f2937;font:600 13px/1 system-ui,sans-serif;pointer-events:none}.mindmapv-node:hover rect,.mindmapv-node:focus-visible rect{stroke:#2563eb}.mindmapv-node.is-selected rect{fill:#ecfdf5;stroke:#2d8f6f;stroke-width:2}.model3dv-preview{width:100%;height:100%;min-height:420px;position:relative;overflow:hidden;background:#111827}.model3dv-stage{width:100%;height:100%;min-height:inherit;cursor:grab;touch-action:none}.model3dv-stage:active{cursor:grabbing}.model3dv-canvas{display:block;width:100%;height:100%}.model3dv-hint{position:absolute;left:14px;bottom:14px;padding:7px 10px;border:1px solid rgba(255,255,255,.16);background:#111827b8;color:#e5edf8;font:600 12px/1 system-ui,sans-serif;pointer-events:none}.panoramav-preview{position:relative;box-sizing:border-box;width:100%;height:100%;min-height:360px;overflow:hidden;background:#111827;color:#f8fafc;font-family:system-ui,sans-serif}.panoramav-stage{width:100%;height:100%;min-height:inherit;overflow:hidden}.panoramav-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.panoramav-canvas:active{cursor:grabbing}.panoramav-hint{position:absolute;left:14px;bottom:14px;padding:7px 10px;border:1px solid rgba(255,255,255,.18);background:#111827b8;color:#f8fafc;font-size:12px;font-weight:700;pointer-events:none}.panoramav-notice{position:absolute;top:14px;right:14px;left:14px;z-index:2;padding:9px 12px;border:1px solid rgba(251,191,36,.5);background:#451a03e0;color:#fef3c7;font-size:12px;line-height:1.45}.panoramav-video-controls{position:absolute;right:14px;bottom:12px;left:14px;z-index:2;width:calc(100% - 28px);height:42px;border-radius:10px;background:#111827db;object-fit:none}.panoramav-calibrated-controls{position:absolute;right:14px;bottom:12px;left:14px;z-index:2;display:grid;grid-template-columns:auto minmax(80px,1fr) auto;align-items:center;gap:10px;min-height:42px;padding:0 12px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:#111827db;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.panoramav-calibrated-controls button{min-width:58px;border:0;border-radius:6px;padding:6px 10px;background:#f8fafc;color:#111827;font:inherit;font-weight:700;cursor:pointer}.panoramav-calibrated-controls input{width:100%;accent-color:#f59e0b}.panoramav-calibrated-controls output{min-width:82px;font-size:12px;font-variant-numeric:tabular-nums;text-align:right}.docxv-preview{box-sizing:border-box;width:100%;height:100%;min-height:360px;overflow:auto;padding:24px;background:#eef2f7}.docxv-document{box-sizing:border-box;min-height:100%}.docxv-document .docx-wrapper{background:transparent;padding:0}.docxv-document .docx{margin:0 auto 16px;box-shadow:0 1px 4px #0f172a2e;content-visibility:auto;contain-intrinsic-size:816px 1056px}.xlsxv-preview{box-sizing:border-box;width:100%;height:100%;min-height:360px;overflow:hidden;background:#f8fafc;color:#172033;font-family:system-ui,sans-serif}.xlsxv-sheet-tabs{display:flex;gap:4px;min-height:36px;padding:6px 8px;overflow-x:auto;border-bottom:1px solid #d8dee8;background:#eef2f7}.xlsxv-sheet-tab{min-width:64px;height:24px;border:1px solid #c9d2df;border-radius:4px;background:#fff;color:#2f3b52;font:600 12px/1 system-ui,sans-serif;cursor:pointer}.xlsxv-sheet-tab.is-active{border-color:#2f6bff;color:#1d4fd7}.xlsxv-grid{height:calc(100% - 36px);overflow:auto}.xlsxv-table{border-collapse:collapse;min-width:100%;background:#fff;table-layout:fixed}.xlsxv-corner,.xlsxv-row-header,.xlsxv-col-header,.xlsxv-cell{box-sizing:border-box;height:26px;border:1px solid #d8dee8;padding:4px 8px;font-size:12px;line-height:1.3}.xlsxv-corner,.xlsxv-row-header,.xlsxv-col-header{position:sticky;z-index:2;background:#eef2f7;color:#526070;font-weight:600;text-align:center}.xlsxv-corner,.xlsxv-row-header{left:0;min-width:48px}.xlsxv-corner,.xlsxv-col-header{top:0}.xlsxv-corner{z-index:3}.xlsxv-cell{min-width:96px;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:top}.iworkv-root{position:relative;width:100%;height:100%;overflow:auto;background:#dde3ea;color:#1f2937}.iworkv-root.is-loading:before,.iworkv-root.is-error:before{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#dde3eab8;z-index:10;font:600 14px/1.4 system-ui,sans-serif;content:attr(data-status)}.iworkv-stage{min-height:100%;padding:16px;box-sizing:border-box}.iworkv-stage.iworkv-numbers-stage{height:100%;padding:0}.iworkv-numbers-tables{display:grid;gap:24px;padding:16px}.iworkv-numbers-table-title{margin:0 0 8px;color:#526070;font:600 12px/1.3 system-ui,sans-serif}.iworkv-numbers-table{content-visibility:auto}.iworkv-cell-image{display:block;width:100%;max-height:180px;margin-bottom:4px;object-fit:contain}.iworkv-numbers-objects{overflow:auto}.iworkv-numbers-objects .iworkv-page-shell{box-shadow:none}.iworkv-pages{display:grid;gap:18px;justify-content:center}.iworkv-page-shell{position:relative;background:#fff;box-shadow:0 10px 40px #0f172a24}.iworkv-sheet-shell{position:relative;background:linear-gradient(180deg,#f7fafc,#edf2f7);border:1px solid #d6dee8}.pdfv-preview{position:relative;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;align-content:start;gap:16px;width:100%;height:100%;min-height:360px;background:#fff;overflow:auto}.pdfv-page-slot{justify-self:start;margin-inline:auto}.pdfv-page{box-sizing:border-box;display:block;border:1px solid #d7dee8;background:#fff}.pptxv-viewer{position:relative;display:flex;width:100%;height:100%;min-height:320px;background:#e6e9ef;overflow:hidden}.pptxv-scroll-area{flex:1;overflow:auto;padding:12px;scroll-behavior:smooth;scroll-padding:12px;scroll-snap-type:y proximity}.pptxv-loading{display:flex;align-items:center;justify-content:center;min-height:240px;color:#395170;font:600 15px/1.4 system-ui,sans-serif}.pptxv-loading--error{color:#8a1f1f}.pptxv-slide-shell{position:relative;contain:layout style;margin:0 auto 18px;scroll-snap-align:start}.pptxv-slide-stage{position:relative;border-radius:0;box-shadow:none;overflow:hidden}.pptxv-slide{position:relative;overflow:hidden;font-family:system-ui,sans-serif}.pptxv-slide--thumbnail{box-shadow:none}.pptxv-item{box-sizing:border-box}.pptxv-item--table,.pptxv-item--chart,.pptxv-item--unsupported{overflow:hidden}.pptxv-item--shape,.pptxv-item--media{overflow:visible}.pptxv-shape-svg{display:block;overflow:visible}.pptxv-text-frame{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.pptxv-shape-text{display:block;width:auto;height:auto;box-sizing:border-box}.pptxv-paragraph{margin:0;line-height:1;word-break:normal;overflow-wrap:break-word}.pptxv-run{white-space:pre-wrap}.pptxv-run--tab{display:inline-block;white-space:pre;min-width:4px}.pptxv-run--link{color:inherit;text-decoration-line:underline;text-decoration-color:currentcolor;text-underline-offset:.08em}.pptxv-item-link{cursor:pointer}.pptxv-item-link:focus-visible{outline:none;box-shadow:inset 0 0 0 2px #2f6bffd1,inset 0 0 0 4px #ffffffc2}.pptxv-run--bullet{display:inline-block;min-width:1.2em}.pptxv-run--bullet-auto{min-width:2.4em}.pptxv-image{display:block;-webkit-user-select:none;user-select:none}.pptxv-media-stage{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;background:transparent}.pptxv-media-poster-frame{position:absolute}.pptxv-media-poster,.pptxv-media-player{display:block}.pptxv-media-poster{-webkit-user-select:none;user-select:none;pointer-events:none}.pptxv-media-player--video{background:transparent}.pptxv-media-player--audio{min-width:220px}.pptxv-table{width:100%;height:100%;border-collapse:collapse;table-layout:fixed;background:transparent}.pptxv-table-cell{border:0 solid transparent;vertical-align:top;padding:0}.pptxv-chart-svg{display:block;width:100%;height:100%;overflow:hidden;font-family:Aptos,Calibri,Segoe UI,sans-serif}.pptxv-chart-title,.pptxv-chart-axis-label,.pptxv-chart-category-label,.pptxv-chart-legend{fill:#595959;font-weight:400}.pptxv-chart-gridline{stroke:#bfbfbf;stroke-width:1}.pptxv-chart-axis{stroke:#000;stroke-width:1.25}.pptxv-item--unsupported{display:flex;align-items:center;justify-content:center;border:1px dashed rgba(57,81,112,.35);background:#ffffffb8;color:#395170;font:600 12px/1.3 system-ui,sans-serif}.pptxv-native-preview{box-sizing:border-box;width:100%;height:100%;min-height:280px;font-family:system-ui,sans-serif}.pptxv-native-preview--image,.pptxv-native-preview--video,.pptxv-native-preview--audio{display:flex;align-items:center;justify-content:center;overflow:auto;padding:16px;background:#151923}.pptxv-native-preview--image{cursor:grab;touch-action:none}.pptxv-native-preview--image.is-panning{cursor:grabbing}.pptxv-native-preview--audio{background:radial-gradient(ellipse at 12% 10%,#e3eadd,transparent 65%),#f2f0eb;flex-direction:column;padding:clamp(16px,4%,48px);justify-content:safe center;container-type:inline-size}.pptxv-native-image{display:block;width:auto;height:auto;transform-origin:center center;-webkit-user-select:none;user-select:none}.pptxv-native-media{display:block;max-width:100%}.pptxv-native-media--video{max-height:100%;background:#000}.pptxv-native-media--audio{width:min(640px,100%)}.pptxv-native-audio-cover{display:block;position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;object-fit:cover;border-radius:inherit}.pptxv-audio-player{--audio-accent: #40634c;box-sizing:border-box;width:min(880px,100%);flex-shrink:0;margin:auto;color:#283c32;background:#fffefa;border:1px solid #d7dbd0;border-radius:22px;box-shadow:0 16px 56px #243b2c0c;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;overflow:hidden}.pptxv-audio-player button,.pptxv-audio-player select{font:inherit;cursor:pointer;color:inherit}.pptxv-audio-player button:focus-visible,.pptxv-audio-player select:focus-visible,.pptxv-audio-lyrics:focus-visible{outline:2px solid var(--audio-accent);outline-offset:3px}.pptxv-audio-body{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(24px,5%,56px);padding:clamp(24px,5%,44px)}.pptxv-audio-album{min-width:0}.pptxv-audio-artwork{position:relative;aspect-ratio:1;width:100%;max-width:280px;margin-bottom:26px;border-radius:14px;background:#45644e;box-shadow:0 10px 24px #223b3026;isolation:isolate}.pptxv-audio-placeholder{display:grid;place-items:center;height:100%;overflow:hidden;border-radius:inherit;background:radial-gradient(circle at 25% 15%,#9cab7c,transparent 50%),linear-gradient(145deg,#526c53,#1f3c37)}.pptxv-audio-placeholder span{display:grid;place-items:center;width:66%;aspect-ratio:1;border:1px solid #ffffff30;border-radius:50%;box-shadow:0 0 0 15px #ffffff06,0 0 0 30px #ffffff06;color:#e8e8cd;font-size:52px}.pptxv-audio-play{position:absolute;z-index:2;right:14px;bottom:14px;display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid #ffffffa0;border-radius:50%;color:#293f32!important;background:#fffef4ee;box-shadow:0 4px 16px #0002}.pptxv-audio-play:hover{background:#fff;transform:scale(1.04)}.pptxv-audio-eyebrow{margin:0 0 10px;color:#697c63;font-size:10px;letter-spacing:.16em}.pptxv-audio-eyebrow:before{content:\"\";display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:#a7b19b}.is-playing .pptxv-audio-eyebrow:before{background:#52835b;box-shadow:0 0 0 4px #52835b18}.pptxv-audio-title{margin:0 0 8px;font-size:clamp(19px,2.4cqw,25px);font-weight:600;line-height:1.4;overflow-wrap:anywhere}.pptxv-audio-details{margin:0 0 18px;color:#6c756b;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.pptxv-audio-import{padding:6px 10px;border:1px solid #dce0d4;border-radius:6px;background:transparent;font-size:11px!important}.pptxv-audio-import:hover{border-color:#95a48c;background:#f3f5ed}.pptxv-audio-lyric-panel{min-width:0;display:flex;flex-direction:column}.pptxv-audio-lyric-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid #e8e9e1}.pptxv-audio-lyric-header h3{margin:0;color:#6c756b;font-size:12px;font-weight:500;letter-spacing:.06em}.pptxv-audio-lyrics{position:relative;flex:1 0 auto;height:280px;max-height:340px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cbd1c3 transparent;margin-top:12px;padding:40px 0;box-sizing:border-box}.pptxv-audio-lyrics.is-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#7b8375;gap:12px}.pptxv-audio-empty-icon{font-size:42px;color:#a0ae93}.pptxv-audio-lyrics.is-empty p{margin:0;font-size:14px}.pptxv-audio-lyrics.is-empty small{color:#7b8375;font-size:11px;line-height:1.7}.pptxv-audio-lyric{display:block;width:100%;padding:12px 10px;margin:0;border:0;border-left:2px solid transparent;border-radius:0 6px 6px 0;background:transparent;color:#7c8378!important;text-align:left;font-size:14px!important;line-height:1.8;white-space:pre-line;overflow-wrap:anywhere;transition:color .18s,background .18s}.pptxv-audio-lyric:hover{color:#40634c!important;background:#f4f5ee}.pptxv-audio-lyric.is-active{border-left-color:var(--audio-accent);color:#304e39!important;background:#eff3e9;font-weight:600}.pptxv-audio-timing{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:12px;color:#6c756b;font-size:10px}.pptxv-audio-timing[hidden]{display:none}.pptxv-audio-timing button{padding:4px 7px;border:1px solid #e0e3d8;border-radius:4px;background:transparent}.pptxv-audio-timing output{min-width:38px;text-align:center;font-variant-numeric:tabular-nums}.pptxv-audio-status{margin:10px 0 0;color:#707969;font-size:11px;line-height:1.6}.pptxv-audio-status:empty{display:none}.pptxv-audio-footer{display:flex;align-items:center;gap:14px;padding:16px 24px;background:#f3f5ee;border-top:1px solid #e2e6d9}.pptxv-audio-footer audio{width:100%;min-width:0;height:44px;flex:1}.pptxv-audio-extras{display:flex;align-items:center;gap:10px}.pptxv-audio-repeat{width:30px;height:30px;border:1px solid transparent;border-radius:50%;background:transparent;font-size:22px!important}.pptxv-audio-repeat[aria-pressed=true]{color:#355d3e;border-color:#cad7bf;background:#e1ead7}.pptxv-audio-speed{max-width:68px;padding:4px;border:0;border-radius:4px;background:transparent;font-size:12px!important}@container (max-width: 560px){.pptxv-audio-body{grid-template-columns:minmax(0,1fr);gap:24px;padding:24px}.pptxv-audio-album{display:grid;grid-template-columns:112px minmax(0,1fr);column-gap:18px;align-content:center}.pptxv-audio-artwork{width:112px;grid-row:span 4;margin:0}.pptxv-audio-eyebrow{margin-bottom:6px;font-size:9px}.pptxv-audio-title{font-size:18px}.pptxv-audio-details{margin-bottom:10px;font-size:11px}.pptxv-audio-play{width:36px;height:36px;right:8px;bottom:8px}.pptxv-audio-placeholder span{font-size:28px}.pptxv-audio-lyrics{flex:none;height:230px}.pptxv-audio-footer{flex-wrap:wrap;gap:6px;padding:12px}.pptxv-audio-footer audio{flex-basis:100%}.pptxv-audio-extras{margin-left:auto}}@media (prefers-reduced-motion: reduce){.pptxv-audio-player *{transition:none!important}}.pptxv-native-preview--text{overflow:auto;background:#f8fafc}.pptxv-native-preview--html{overflow:hidden;background:#fff}.pptxv-native-html-frame{display:block;width:100%;height:100%;min-height:inherit;border:0;background:#fff}.pptxv-native-text-shell{box-sizing:border-box;min-width:100%;min-height:100%;padding:18px}.pptxv-native-text-body{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;min-width:max-content}.pptxv-native-text-gutter{box-sizing:border-box;position:sticky;left:0;z-index:1;white-space:pre;min-width:3.25rem;padding-right:14px;color:#64748b;background:#f8fafc;border-right:1px solid rgba(100,116,139,.2);font:13px/1.55 Consolas,SFMono-Regular,Liberation Mono,Menlo,monospace;text-align:right;-webkit-user-select:none;user-select:none}.pptxv-native-text{box-sizing:border-box;min-width:100%;margin:0;padding-left:14px;color:#1f2937;font:13px/1.55 Consolas,SFMono-Regular,Liberation Mono,Menlo,monospace;-moz-tab-size:2;tab-size:2;white-space:pre-wrap;overflow-wrap:anywhere}.pptxv-native-text[data-wrap=false]{white-space:pre;overflow-wrap:normal}.pptxv-native-text-shell[data-family=code]{color-scheme:dark;background:#0b1220}.pptxv-native-text-shell[data-family=code] .pptxv-native-text-gutter{color:#607089;background:#0b1220;border-right-color:#94a3b82e}.pptxv-native-text[data-family=code]{color:#d7e0ec}.pptxv-token--comment{color:#6f8f72;font-style:italic}.pptxv-token--keyword{color:#f08fc5}.pptxv-token--literal{color:#79b8ff}.pptxv-token--string{color:#e7a873}.pptxv-token--number{color:#a8d58d}.pptxv-token--property{color:#8bd5ff}.pptxv-token--tag,.pptxv-token--type{color:#67d4c0}.pptxv-token--function{color:#e8d17a}.pptxv-token--operator{color:#b9c5d6}.ebookv-preview{box-sizing:border-box;display:grid;grid-template-columns:220px minmax(0,1fr);width:100%;height:100%;min-height:360px;overflow:hidden;background:#f5f7fb;color:#1f2937;font-family:system-ui,sans-serif}.ebookv-chapters{overflow:auto;border-right:1px solid #d7dee8;background:#fff}.ebookv-chapter-tab{display:block;width:100%;min-height:38px;padding:10px 12px;border:0;border-bottom:1px solid #e5ebf2;background:transparent;color:#39485c;text-align:left;font:600 12px/1.35 system-ui,sans-serif;cursor:pointer}.ebookv-chapter-tab:hover{background:#f6f9fd}.ebookv-chapter-tab.is-active{background:#eaf2ff;color:#1f4f94}.ebookv-stage{min-width:0;min-height:0;overflow:hidden;background:#fff}.ebookv-frame{display:block;width:100%;height:100%;min-height:inherit;border:0;background:#fff}@media (max-width: 760px){.ebookv-preview{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.ebookv-chapters{display:flex;gap:0;overflow-x:auto;border-right:0;border-bottom:1px solid #d7dee8}.ebookv-chapter-tab{width:auto;min-width:160px;border-right:1px solid #e5ebf2}}\n";document.head.append(s);}
2
- var Ga = Object.defineProperty;
3
- var Oa = (f, l, u) => l in f ? Ga(f, l, { enumerable: !0, configurable: !0, writable: !0, value: u }) : f[l] = u;
4
- var R = (f, l, u) => Oa(f, typeof l != "symbol" ? l + "" : l, u);
5
- import { am as ja, an as Wt, ao as Ua, ap as Ge, aq as Wa, ar as v, as as s, at as b, au as x, av as $, aw as V, ax as w, ay as Oe, az as Ka, aA as Kt, aB as Ha, aC as je, aD as Ya, aE as W, aF as Ht, aG as r, aH as Xa, aI as d, aJ as Ue, aK as qa, aL as Za, aM as Qa } from "./chunks/vendor-DRiz60Cl.js";
6
- import { D as Ke, n as Ja, p as es, c as qt, P as ts, j as as, q as ss, t as ns, u as os, v as ls } from "./chunks/core-Btd5PUTt.js";
7
- import { c as is, a as rs } from "./chunks/archive-6Qub9mNw.js";
8
- import { c as us, a as cs } from "./chunks/cad-EFq1g8br.js";
9
- import { c as vs, a as ds } from "./chunks/diagram-DF4cLJ7x.js";
10
- import { c as ps, a as hs } from "./chunks/mindmap-DHsLhGt7.js";
11
- import { c as fs, a as ms } from "./chunks/model3d-wQkZPAgr.js";
12
- import { a as bs, b as gs, d as ys, R as xs, e as ws, f as ks } from "./chunks/panorama-D_kQX6f4.js";
13
- import { c as Ss, a as Cs } from "./chunks/docx-_znXEdDw.js";
14
- import { c as Ms, a as _s } from "./chunks/iwork-Dfnhl8e6.js";
15
- import { b as Ds, d as Rs } from "./chunks/xlsx-BzBqnY9p.js";
16
- import { c as Ps, a as Ts } from "./chunks/ebook-DieqKVSP.js";
2
+ var Wa = Object.defineProperty;
3
+ var ja = (h, o, i) => o in h ? Wa(h, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : h[o] = i;
4
+ var C = (h, o, i) => ja(h, typeof o != "symbol" ? o + "" : o, i);
5
+ import { am as Ha, an as jt, ao as Ka, ap as Ge, aq as Ya, ar as d, as as s, at as g, au as x, av as E, aw as V, ax as w, ay as Oe, az as Xa, aA as Ht, aB as qa, aC as Ue, aD as Za, aE as j, aF as Kt, aG as c, aH as Qa, aI as v, aJ as We, aK as Ja, aL as es, aM as ts } from "./chunks/vendor-Cv2Fxtsf.js";
6
+ import { p as Zt, n as Qt, D as He, c as Jt, P as as, j as ss, q as ns, t as os, u as is, v as ls } from "./chunks/core-BvtuMqS1.js";
7
+ import { c as rs, a as us } from "./chunks/archive-Drem4a-o.js";
8
+ import { c as cs, a as ds } from "./chunks/cad-CsU3TiHK.js";
9
+ import { c as vs, a as ps } from "./chunks/diagram-BxRNHzmO.js";
10
+ import { c as hs, a as fs } from "./chunks/mindmap-vFlOJSIq.js";
11
+ import { c as ms, a as bs } from "./chunks/model3d-BBFXmxkf.js";
12
+ import { a as gs, b as ys, d as xs, e as ws, R as ks, f as Ss, g as Cs } from "./chunks/panorama-Bw_8HQsv.js";
13
+ import { c as Ms, a as _s } from "./chunks/docx-Ch1AvEUX.js";
14
+ import { c as Ds, a as Rs } from "./chunks/iwork-HnghW_EB.js";
15
+ import { b as Ps, d as Ts } from "./chunks/xlsx-ypLtJxeq.js";
16
+ import { c as Ls, a as Es } from "./chunks/ebook-P42eILp5.js";
17
17
  function $s() {
18
18
  return [
19
- us(),
19
+ cs(),
20
20
  vs(),
21
- ps(),
22
- fs()
21
+ hs(),
22
+ ms()
23
23
  ];
24
24
  }
25
- function Ls(f = []) {
26
- return cs(
27
- ds(ms(hs(f)))
25
+ function As(h = []) {
26
+ return ds(
27
+ ps(bs(fs(h)))
28
28
  );
29
29
  }
30
- const As = /* @__PURE__ */ new Set(["image", "media"]), Es = Ke.filter((f) => As.has(f.driverId));
31
- function Is(f = {}) {
30
+ const Is = [{
31
+ extensions: ["heic", "heif"],
32
+ family: "image",
33
+ driverId: "heif-image",
34
+ contentTypes: ["image/heic", "image/heif", "image/heic-sequence", "image/heif-sequence"],
35
+ group: "image"
36
+ }];
37
+ function Fs(h) {
38
+ return [{
39
+ id: "heif-image",
40
+ family: "image",
41
+ supports: (o) => ["heic", "heif"].includes(o.replace(/^\./, "").toLowerCase()),
42
+ createSession: (o, i) => new Yt(o, i ?? {}, h ?? gs(), !0)
43
+ }, {
44
+ ...Zt(),
45
+ createSession: (o, i) => new Yt(o, i ?? {}, h, !1)
46
+ }];
47
+ }
48
+ class Yt {
49
+ constructor(o, i, n, p) {
50
+ C(this, "child");
51
+ C(this, "controller");
52
+ C(this, "removeAbort");
53
+ C(this, "childListeners", []);
54
+ C(this, "listeners", /* @__PURE__ */ new Map());
55
+ C(this, "state");
56
+ this.host = o, this.options = i, this.converter = n, this.image = p, this.state = { family: p ? "image" : "video", loading: !1, error: null, warnings: [], capabilities: {} };
57
+ }
58
+ async load(o, i) {
59
+ var u, r, M, T;
60
+ this.destroy();
61
+ const n = this.controller = new AbortController(), p = n.signal, f = () => n.abort();
62
+ if ((u = i.signal) == null || u.addEventListener("abort", f, { once: !0 }), this.removeAbort = () => {
63
+ var S;
64
+ return (S = i.signal) == null ? void 0 : S.removeEventListener("abort", f);
65
+ }, p.addEventListener("abort", () => {
66
+ this.controller === n && (this.releaseChild(), this.state = { ...this.state, loading: !1, error: null }, this.emit("statechange", this.state));
67
+ }, { once: !0 }), this.state = { ...this.state, loading: !0, error: null, title: i.descriptor.name, warnings: [] }, this.emit("loading", this.state), this.emit("statechange", this.state), (r = i.signal) != null && r.aborted && n.abort(), p.aborted) return;
68
+ const k = { ...i, signal: p };
69
+ await this.open(
70
+ o,
71
+ k,
72
+ n,
73
+ this.image || this.converter && ((T = ((M = i.route) == null ? void 0 : M.sourceFormat) ?? i.descriptor.extension) == null ? void 0 : T.toLowerCase()) === "mov" ? () => {
74
+ this.convert(o, k, n);
75
+ } : void 0
76
+ );
77
+ }
78
+ async convert(o, i, n) {
79
+ var p;
80
+ if (!(n.signal.aborted || this.controller !== n)) {
81
+ this.releaseChild(), this.state = { ...this.state, loading: !0, error: null }, this.emit("loading", this.state), this.emit("statechange", this.state);
82
+ try {
83
+ if (!this.converter) throw new Error("No optional media converter is configured.");
84
+ const f = await this.converter.convert({
85
+ source: o,
86
+ sourceFormat: ((p = i.route) == null ? void 0 : p.sourceFormat) ?? i.descriptor.extension ?? (this.image ? "heic" : "mov"),
87
+ targetFormat: this.image ? "png" : "mp4",
88
+ name: i.descriptor.name
89
+ }, i);
90
+ if (n.signal.aborted || this.controller !== n) return;
91
+ await this.open(f.source, {
92
+ ...i,
93
+ descriptor: { ...i.descriptor, source: f.source, extension: f.format, contentType: f.contentType },
94
+ route: { family: this.image ? "image" : "video", driverId: this.image ? "image" : "media", sourceFormat: f.format, targetFormat: f.format }
95
+ }, n);
96
+ } catch (f) {
97
+ this.fail(f, n);
98
+ }
99
+ }
100
+ }
101
+ async open(o, i, n, p) {
102
+ if (n.signal.aborted || this.controller !== n) return;
103
+ const f = (this.image ? Qt() : Zt()).createSession(this.host, this.options);
104
+ this.child = f;
105
+ const k = () => this.child === f && this.controller === n && !n.signal.aborted;
106
+ for (const u of ["loading", "rendered", "statechange", "error", "warnings"])
107
+ this.childListeners.push(f.on(u, (r) => {
108
+ var M;
109
+ if (k()) {
110
+ if (u === "error" && p) {
111
+ p();
112
+ return;
113
+ }
114
+ if (u === "rendered" && !this.image && !((M = this.host.querySelector("video")) != null && M.videoWidth)) {
115
+ p ? p() : (this.releaseChild(), this.fail(new Error("The browser cannot decode this video codec. Use a compatible browser or an optional media converter."), n));
116
+ return;
117
+ }
118
+ u === "loading" || u === "rendered" || u === "statechange" ? (this.state = r, this.emit(u, this.state)) : this.emit(u, r);
119
+ }
120
+ }));
121
+ try {
122
+ await f.load(o, i);
123
+ } catch (u) {
124
+ k() && this.fail(u, n);
125
+ }
126
+ }
127
+ fail(o, i) {
128
+ if (i.signal.aborted || this.controller !== i) return;
129
+ const n = o instanceof Error ? o : new Error(String(o));
130
+ this.state = { ...this.state, loading: !1, error: n.message }, this.emit("error", n), this.emit("statechange", this.state);
131
+ }
132
+ getState() {
133
+ return this.state;
134
+ }
135
+ on(o, i) {
136
+ const n = this.listeners.get(o) ?? /* @__PURE__ */ new Set();
137
+ return this.listeners.set(o, n), n.add(i), () => n.delete(i);
138
+ }
139
+ emit(o, i) {
140
+ var n;
141
+ (n = this.listeners.get(o)) == null || n.forEach((p) => p(i));
142
+ }
143
+ setScale(o) {
144
+ var i, n;
145
+ (n = (i = this.child) == null ? void 0 : i.setScale) == null || n.call(i, o);
146
+ }
147
+ fit(o) {
148
+ var i, n;
149
+ (n = (i = this.child) == null ? void 0 : i.fit) == null || n.call(i, o);
150
+ }
151
+ rotate(o) {
152
+ var i, n;
153
+ (n = (i = this.child) == null ? void 0 : i.rotate) == null || n.call(i, o);
154
+ }
155
+ pan(o, i) {
156
+ var n, p;
157
+ (p = (n = this.child) == null ? void 0 : n.pan) == null || p.call(n, o, i);
158
+ }
159
+ async fullscreen() {
160
+ var o, i;
161
+ await ((i = (o = this.child) == null ? void 0 : o.fullscreen) == null ? void 0 : i.call(o));
162
+ }
163
+ destroy() {
164
+ var i;
165
+ const o = this.controller;
166
+ this.controller = void 0, o == null || o.abort(), (i = this.removeAbort) == null || i.call(this), this.removeAbort = void 0, this.releaseChild(), this.state = { ...this.state, loading: !1 };
167
+ }
168
+ releaseChild() {
169
+ var o;
170
+ this.childListeners.splice(0).forEach((i) => i()), (o = this.child) == null || o.destroy(), this.child = void 0;
171
+ }
172
+ }
173
+ const Ns = /* @__PURE__ */ new Set(["image", "media"]), zs = He.filter((h) => Ns.has(h.driverId));
174
+ function Bs(h = {}) {
32
175
  return [
33
- Ja(),
34
- es(),
35
- bs({ processor: f.panoramaProcessor }),
36
- ...f.converter ? [gs({ processor: f.panoramaProcessor, converter: f.converter })] : []
176
+ Qt(),
177
+ ...Fs(h.mediaConverter),
178
+ ys({ processor: h.panoramaProcessor }),
179
+ ...h.converter ? [xs({ processor: h.panoramaProcessor, converter: h.converter })] : []
37
180
  ];
38
181
  }
39
- function Fs(f = Es, l = {}) {
40
- const u = ys(f);
41
- return l.rawPreview ? [...xs, ...u.map((n) => ({
182
+ function Vs(h = zs, o = {}) {
183
+ const i = [...Is, ...ws(h)];
184
+ return o.rawPreview ? [...ks, ...i.map((n) => ({
42
185
  ...n,
43
- extensions: n.extensions.filter((m) => m !== "dng")
44
- })).filter((n) => n.extensions.length > 0)] : u;
186
+ extensions: n.extensions.filter((p) => p !== "dng")
187
+ })).filter((n) => n.extensions.length > 0)] : i;
45
188
  }
46
- const Ns = [
189
+ const Gs = [
47
190
  {
48
191
  extensions: ["pdf"],
49
192
  family: "paged",
@@ -52,43 +195,43 @@ const Ns = [
52
195
  contentTypes: ["application/pdf"]
53
196
  }
54
197
  ];
55
- class Bs {
56
- constructor(l, u = {}) {
57
- R(this, "listeners", {
198
+ class Os {
199
+ constructor(o, i = {}) {
200
+ C(this, "listeners", {
58
201
  loading: /* @__PURE__ */ new Set(),
59
202
  rendered: /* @__PURE__ */ new Set(),
60
203
  error: /* @__PURE__ */ new Set(),
61
204
  statechange: /* @__PURE__ */ new Set(),
62
205
  warnings: /* @__PURE__ */ new Set()
63
206
  });
64
- R(this, "root");
65
- R(this, "document", null);
66
- R(this, "loadingTask", null);
67
- R(this, "pages", []);
68
- R(this, "loadGeneration", 0);
69
- R(this, "renderGeneration", 0);
70
- R(this, "rendering", null);
71
- R(this, "renderAgain", !1);
72
- R(this, "animationFrame", null);
73
- R(this, "resizeObserver");
74
- R(this, "removeAbortListener");
75
- R(this, "dimensions", "");
76
- R(this, "virtual");
77
- R(this, "state");
78
- R(this, "inspectedFontPages", /* @__PURE__ */ new Set());
79
- R(this, "fonts", /* @__PURE__ */ new Map());
80
- R(this, "scheduleRender", () => {
207
+ C(this, "root");
208
+ C(this, "document", null);
209
+ C(this, "loadingTask", null);
210
+ C(this, "pages", []);
211
+ C(this, "loadGeneration", 0);
212
+ C(this, "renderGeneration", 0);
213
+ C(this, "rendering", null);
214
+ C(this, "renderAgain", !1);
215
+ C(this, "animationFrame", null);
216
+ C(this, "resizeObserver");
217
+ C(this, "removeAbortListener");
218
+ C(this, "dimensions", "");
219
+ C(this, "virtual");
220
+ C(this, "state");
221
+ C(this, "inspectedFontPages", /* @__PURE__ */ new Set());
222
+ C(this, "fonts", /* @__PURE__ */ new Map());
223
+ C(this, "scheduleRender", () => {
81
224
  this.animationFrame === null && (this.animationFrame = requestAnimationFrame(() => {
82
225
  this.animationFrame = null;
83
- const l = this.loadGeneration;
84
- this.renderVisiblePages().catch((u) => {
85
- if (l !== this.loadGeneration) return;
86
- const n = u instanceof Error ? u : new Error(String(u));
226
+ const o = this.loadGeneration;
227
+ this.renderVisiblePages().catch((i) => {
228
+ if (o !== this.loadGeneration) return;
229
+ const n = i instanceof Error ? i : new Error(String(i));
87
230
  this.state.error = n.message, this.emit("error", n), this.emit("statechange", this.getState());
88
231
  });
89
232
  }));
90
233
  });
91
- this.host = l, this.root = document.createElement("div"), this.root.className = "pdfv-preview", this.host.replaceChildren(this.root), this.virtual = u.virtual !== !1, this.root.addEventListener("scroll", this.scheduleRender, { passive: !0 }), typeof ResizeObserver < "u" && (this.resizeObserver = new ResizeObserver(() => {
234
+ this.host = o, this.root = document.createElement("div"), this.root.className = "pdfv-preview", this.host.replaceChildren(this.root), this.virtual = i.virtual !== !1, this.root.addEventListener("scroll", this.scheduleRender, { passive: !0 }), typeof ResizeObserver < "u" && (this.resizeObserver = new ResizeObserver(() => {
92
235
  this.document && this.dimensions !== this.rootDimensions() && this.relayout();
93
236
  }), this.resizeObserver.observe(this.root)), this.state = {
94
237
  loading: !1,
@@ -105,77 +248,77 @@ class Bs {
105
248
  },
106
249
  pageIndex: 0,
107
250
  pageCount: 0,
108
- scale: u.initialScale ?? 1,
109
- fit: u.fit ?? "contain"
251
+ scale: i.initialScale ?? 1,
252
+ fit: i.fit ?? "contain"
110
253
  };
111
254
  }
112
- async load(l, u) {
113
- var c;
114
- const n = u.signal, m = ++this.loadGeneration;
115
- (c = this.removeAbortListener) == null || c.call(this);
116
- const y = this.releaseDocument();
255
+ async load(o, i) {
256
+ var u;
257
+ const n = i.signal, p = ++this.loadGeneration;
258
+ (u = this.removeAbortListener) == null || u.call(this);
259
+ const f = this.releaseDocument();
117
260
  this.state = {
118
261
  ...this.state,
119
262
  loading: !0,
120
263
  error: null,
121
- title: u.descriptor.name,
264
+ title: i.descriptor.name,
122
265
  warnings: [],
123
266
  pageIndex: 0,
124
267
  pageCount: 0
125
268
  }, this.emit("loading", this.state), this.emit("statechange", this.state);
126
269
  const k = () => {
127
- m === this.loadGeneration && (this.loadGeneration++, this.releaseDocument().catch(() => {
270
+ p === this.loadGeneration && (this.loadGeneration++, this.releaseDocument().catch(() => {
128
271
  }), this.state.loading = !1, this.state.pageIndex = this.state.pageCount = 0);
129
272
  };
130
273
  n == null || n.addEventListener("abort", k, { once: !0 }), this.removeAbortListener = () => n == null ? void 0 : n.removeEventListener("abort", k);
131
274
  try {
132
- if (await y, n != null && n.aborted) throw We();
133
- if (m !== this.loadGeneration) return;
134
- const [i, P, { default: L }] = await Promise.all([
135
- Os(l),
275
+ if (await f, n != null && n.aborted) throw je();
276
+ if (p !== this.loadGeneration) return;
277
+ const [r, M, { default: T }] = await Promise.all([
278
+ Hs(o),
136
279
  import("./chunks/pdf-CecYOWld.js").then((q) => q.p),
137
280
  import("./chunks/pdf-CecYOWld.js").then((q) => q.a)
138
281
  ]);
139
- if (n != null && n.aborted) throw We();
140
- if (m !== this.loadGeneration) return;
141
- P.GlobalWorkerOptions.workerSrc = L;
142
- const S = P.getDocument({
143
- ...typeof i == "string" ? { url: i } : { data: i },
144
- password: u.descriptor.password
282
+ if (n != null && n.aborted) throw je();
283
+ if (p !== this.loadGeneration) return;
284
+ M.GlobalWorkerOptions.workerSrc = T;
285
+ const S = M.getDocument({
286
+ ...typeof r == "string" ? { url: r } : { data: r },
287
+ password: i.descriptor.password
145
288
  });
146
289
  this.loadingTask = S;
147
- const D = await S.promise;
148
- if (m !== this.loadGeneration) return;
149
- this.document = D, this.state.pageCount = D.numPages, this.root.setAttribute("role", "document"), this.root.setAttribute("aria-label", u.descriptor.name ?? "PDF preview"), this.root.replaceChildren();
150
- const K = await D.getPage(1);
151
- if (m !== this.loadGeneration) return;
152
- const _ = K.getViewport({ scale: 1 }), A = document.createDocumentFragment();
153
- if (this.pages = Array.from({ length: D.numPages }, (q, G) => {
154
- const H = document.createElement("div");
155
- return H.className = "pdfv-page-slot", H.dataset.pageIndex = String(G), A.append(H), { element: H, width: _.width, height: _.height, page: G === 0 ? K : void 0 };
156
- }), this.root.append(A), this.root.scrollTop = 0, this.layoutPages(), await this.renderVisiblePages(), m !== this.loadGeneration) return;
290
+ const P = await S.promise;
291
+ if (p !== this.loadGeneration) return;
292
+ this.document = P, this.state.pageCount = P.numPages, this.root.setAttribute("role", "document"), this.root.setAttribute("aria-label", i.descriptor.name ?? "PDF preview"), this.root.replaceChildren();
293
+ const H = await P.getPage(1);
294
+ if (p !== this.loadGeneration) return;
295
+ const R = H.getViewport({ scale: 1 }), $ = document.createDocumentFragment();
296
+ if (this.pages = Array.from({ length: P.numPages }, (q, G) => {
297
+ const K = document.createElement("div");
298
+ return K.className = "pdfv-page-slot", K.dataset.pageIndex = String(G), $.append(K), { element: K, width: R.width, height: R.height, page: G === 0 ? H : void 0 };
299
+ }), this.root.append($), this.root.scrollTop = 0, this.layoutPages(), await this.renderVisiblePages(), p !== this.loadGeneration) return;
157
300
  this.state.loading = !1, this.state.error = null, this.emit("rendered", this.state), this.emit("statechange", this.state), this.virtual && this.scheduleRender();
158
- } catch (i) {
301
+ } catch (r) {
159
302
  if (n != null && n.aborted)
160
- throw k(), We();
161
- if (m !== this.loadGeneration) return;
162
- const P = (i == null ? void 0 : i.name) === "PasswordException" ? new ts(i.code === 2 ? "password_invalid" : "password_required") : i instanceof Error ? i : new Error(String(i));
163
- throw this.state.loading = !1, this.state.error = P.message, this.emit("error", P), this.emit("statechange", this.state), P;
303
+ throw k(), je();
304
+ if (p !== this.loadGeneration) return;
305
+ const M = (r == null ? void 0 : r.name) === "PasswordException" ? new as(r.code === 2 ? "password_invalid" : "password_required") : r instanceof Error ? r : new Error(String(r));
306
+ throw this.state.loading = !1, this.state.error = M.message, this.emit("error", M), this.emit("statechange", this.state), M;
164
307
  }
165
308
  }
166
309
  destroy() {
167
- var l, u;
168
- this.loadGeneration += 1, (l = this.removeAbortListener) == null || l.call(this), this.root.removeEventListener("scroll", this.scheduleRender), (u = this.resizeObserver) == null || u.disconnect(), this.releaseDocument().catch(() => {
310
+ var o, i;
311
+ this.loadGeneration += 1, (o = this.removeAbortListener) == null || o.call(this), this.root.removeEventListener("scroll", this.scheduleRender), (i = this.resizeObserver) == null || i.disconnect(), this.releaseDocument().catch(() => {
169
312
  }), this.root.parentElement === this.host && this.host.replaceChildren();
170
313
  }
171
314
  getState() {
172
- var l;
173
- return { ...this.state, fonts: (l = this.state.fonts) == null ? void 0 : l.map((u) => ({ ...u, classification: u.classification ? { ...u.classification } : void 0 })), warnings: this.state.warnings.slice(), capabilities: { ...this.state.capabilities } };
315
+ var o;
316
+ return { ...this.state, fonts: (o = this.state.fonts) == null ? void 0 : o.map((i) => ({ ...i, classification: i.classification ? { ...i.classification } : void 0 })), warnings: this.state.warnings.slice(), capabilities: { ...this.state.capabilities } };
174
317
  }
175
- goToPage(l) {
176
- if (!Number.isFinite(l) || !this.pages.length) return;
177
- const u = Math.max(0, Math.min(this.pages.length - 1, Math.trunc(l)));
178
- this.state.pageIndex = u, this.root.scrollTop = this.pages[u].element.offsetTop, this.emit("statechange", this.getState()), this.scheduleRender();
318
+ goToPage(o) {
319
+ if (!Number.isFinite(o) || !this.pages.length) return;
320
+ const i = Math.max(0, Math.min(this.pages.length - 1, Math.trunc(o)));
321
+ this.state.pageIndex = i, this.root.scrollTop = this.pages[i].element.offsetTop, this.emit("statechange", this.getState()), this.scheduleRender();
179
322
  }
180
323
  next() {
181
324
  this.goToPage(this.state.pageIndex + 1);
@@ -183,79 +326,79 @@ class Bs {
183
326
  prev() {
184
327
  this.goToPage(this.state.pageIndex - 1);
185
328
  }
186
- setScale(l) {
187
- !Number.isFinite(l) || l <= 0 || l === this.state.scale || (this.state.scale = l, this.relayout());
329
+ setScale(o) {
330
+ !Number.isFinite(o) || o <= 0 || o === this.state.scale || (this.state.scale = o, this.relayout());
188
331
  }
189
- fit(l = "contain") {
190
- this.state.fit = l, this.relayout();
332
+ fit(o = "contain") {
333
+ this.state.fit = o, this.relayout();
191
334
  }
192
335
  fullscreen() {
193
- var l, u;
194
- return (u = (l = this.host).requestFullscreen) == null ? void 0 : u.call(l);
336
+ var o, i;
337
+ return (i = (o = this.host).requestFullscreen) == null ? void 0 : i.call(o);
195
338
  }
196
- on(l, u) {
197
- return this.listeners[l].add(u), () => {
198
- this.listeners[l].delete(u);
339
+ on(o, i) {
340
+ return this.listeners[o].add(i), () => {
341
+ this.listeners[o].delete(i);
199
342
  };
200
343
  }
201
- emit(l, u) {
202
- for (const n of this.listeners[l])
203
- n(u);
344
+ emit(o, i) {
345
+ for (const n of this.listeners[o])
346
+ n(i);
204
347
  }
205
- pageScale(l, u, n = this.root.clientWidth, m = this.root.clientHeight) {
206
- const y = n > 0 ? n / l : 1, k = m > 0 ? m / u : 1;
207
- return this.state.fit === "width" ? y * this.state.scale : this.state.fit === "height" ? k * this.state.scale : this.state.fit === "contain" ? Math.min(y, k, 1) * this.state.scale : this.state.scale;
348
+ pageScale(o, i, n = this.root.clientWidth, p = this.root.clientHeight) {
349
+ const f = n > 0 ? n / o : 1, k = p > 0 ? p / i : 1;
350
+ return this.state.fit === "width" ? f * this.state.scale : this.state.fit === "height" ? k * this.state.scale : this.state.fit === "contain" ? Math.min(f, k, 1) * this.state.scale : this.state.scale;
208
351
  }
209
352
  rootDimensions() {
210
353
  return `${this.root.clientWidth}:${this.root.clientHeight}`;
211
354
  }
212
355
  layoutPages() {
213
- const l = this.root.clientWidth, u = this.root.clientHeight;
214
- this.dimensions = `${l}:${u}`;
215
- for (const n of this.pages) this.sizeSlot(n, l, u);
356
+ const o = this.root.clientWidth, i = this.root.clientHeight;
357
+ this.dimensions = `${o}:${i}`;
358
+ for (const n of this.pages) this.sizeSlot(n, o, i);
216
359
  }
217
- sizeSlot(l, u, n) {
218
- const m = this.pageScale(l.width, l.height, u, n);
219
- l.element.style.width = `${l.width * m}px`, l.element.style.height = `${l.height * m}px`;
360
+ sizeSlot(o, i, n) {
361
+ const p = this.pageScale(o.width, o.height, i, n);
362
+ o.element.style.width = `${o.width * p}px`, o.element.style.height = `${o.height * p}px`;
220
363
  }
221
364
  relayout() {
222
- const l = this.pages[this.state.pageIndex], u = l ? this.root.scrollTop - l.element.offsetTop : 0;
365
+ const o = this.pages[this.state.pageIndex], i = o ? this.root.scrollTop - o.element.offsetTop : 0;
223
366
  this.renderGeneration++, this.renderAgain = !0;
224
367
  for (const n of this.pages) this.clearCanvas(n);
225
- this.layoutPages(), l && (this.root.scrollTop = l.element.offsetTop + u), this.emit("statechange", this.getState()), this.scheduleRender();
368
+ this.layoutPages(), o && (this.root.scrollTop = o.element.offsetTop + i), this.emit("statechange", this.getState()), this.scheduleRender();
226
369
  }
227
370
  visiblePages() {
228
- if (!this.virtual) return this.pages.map((k, c) => c);
229
- const l = this.root.getBoundingClientRect();
371
+ if (!this.virtual) return this.pages.map((k, u) => u);
372
+ const o = this.root.getBoundingClientRect();
230
373
  if (!this.root.clientHeight) return this.pages.length ? [this.state.pageIndex] : [];
231
- const u = this.state.loading ? 0 : this.root.clientHeight / 2, n = [];
232
- let m = this.state.pageIndex, y = -1;
233
- for (const [k, c] of this.pages.entries()) {
234
- const i = c.element.getBoundingClientRect();
235
- i.bottom > l.top - u && i.top < l.bottom + u && n.push(k);
236
- const P = Math.min(i.bottom, l.bottom) - Math.max(i.top, l.top);
237
- P > y && (m = k, y = P);
238
- }
239
- return m !== this.state.pageIndex && (this.state.pageIndex = m, this.emit("statechange", this.getState())), n;
374
+ const i = this.state.loading ? 0 : this.root.clientHeight / 2, n = [];
375
+ let p = this.state.pageIndex, f = -1;
376
+ for (const [k, u] of this.pages.entries()) {
377
+ const r = u.element.getBoundingClientRect();
378
+ r.bottom > o.top - i && r.top < o.bottom + i && n.push(k);
379
+ const M = Math.min(r.bottom, o.bottom) - Math.max(r.top, o.top);
380
+ M > f && (p = k, f = M);
381
+ }
382
+ return p !== this.state.pageIndex && (this.state.pageIndex = p, this.emit("statechange", this.getState())), n;
240
383
  }
241
384
  async renderVisiblePages() {
242
385
  if (this.renderAgain = !0, this.rendering) {
243
- const m = new Set(this.visiblePages());
244
- for (const [y, k] of this.pages.entries()) k.task && !m.has(y) && this.clearCanvas(k);
386
+ const p = new Set(this.visiblePages());
387
+ for (const [f, k] of this.pages.entries()) k.task && !p.has(f) && this.clearCanvas(k);
245
388
  return this.rendering;
246
389
  }
247
- const l = this.loadGeneration, u = this.document;
248
- if (!u) return;
390
+ const o = this.loadGeneration, i = this.document;
391
+ if (!i) return;
249
392
  const n = (async () => {
250
393
  do {
251
394
  this.renderAgain = !1;
252
- const m = this.renderGeneration, y = new Set(this.visiblePages());
253
- for (const [k, c] of this.pages.entries()) y.has(k) || this.clearCanvas(c);
254
- for (const k of y) {
255
- if (l !== this.loadGeneration || m !== this.renderGeneration || this.renderAgain) break;
256
- await this.renderPage(u, k, l, m);
395
+ const p = this.renderGeneration, f = new Set(this.visiblePages());
396
+ for (const [k, u] of this.pages.entries()) f.has(k) || this.clearCanvas(u);
397
+ for (const k of f) {
398
+ if (o !== this.loadGeneration || p !== this.renderGeneration || this.renderAgain) break;
399
+ await this.renderPage(i, k, o, p);
257
400
  }
258
- } while (this.renderAgain && l === this.loadGeneration);
401
+ } while (this.renderAgain && o === this.loadGeneration);
259
402
  })();
260
403
  this.rendering = n;
261
404
  try {
@@ -264,55 +407,55 @@ class Bs {
264
407
  this.rendering === n && (this.rendering = null);
265
408
  }
266
409
  }
267
- async renderPage(l, u, n, m) {
268
- var K;
269
- const y = this.pages[u];
270
- if (y.canvas) return;
271
- const k = y.page ?? await l.getPage(u + 1);
272
- if (n !== this.loadGeneration || m !== this.renderGeneration) return;
273
- y.page = k;
274
- const c = k.getViewport({ scale: 1 });
275
- if (y.width !== c.width || y.height !== c.height) {
276
- const _ = (K = this.pages[this.state.pageIndex]) == null ? void 0 : K.element, A = (_ == null ? void 0 : _.offsetTop) ?? 0;
277
- y.width = c.width, y.height = c.height, this.sizeSlot(y), _ && (this.root.scrollTop += _.offsetTop - A);
278
- }
279
- const i = this.pageScale(c.width, c.height), P = k.getViewport({ scale: i }), L = window.devicePixelRatio || 1, S = document.createElement("canvas");
280
- S.className = "pdfv-page", S.dataset.pageIndex = String(u), S.setAttribute("role", "img"), S.setAttribute("aria-label", `Page ${u + 1}`), S.width = Math.ceil(P.width * L), S.height = Math.ceil(P.height * L), S.style.width = `${P.width}px`, S.style.height = `${P.height}px`, y.canvas = S, y.element.append(S);
281
- const D = k.render({ canvas: S, viewport: k.getViewport({ scale: i * L }), background: "#ffffff" });
282
- y.task = D;
410
+ async renderPage(o, i, n, p) {
411
+ var H;
412
+ const f = this.pages[i];
413
+ if (f.canvas) return;
414
+ const k = f.page ?? await o.getPage(i + 1);
415
+ if (n !== this.loadGeneration || p !== this.renderGeneration) return;
416
+ f.page = k;
417
+ const u = k.getViewport({ scale: 1 });
418
+ if (f.width !== u.width || f.height !== u.height) {
419
+ const R = (H = this.pages[this.state.pageIndex]) == null ? void 0 : H.element, $ = (R == null ? void 0 : R.offsetTop) ?? 0;
420
+ f.width = u.width, f.height = u.height, this.sizeSlot(f), R && (this.root.scrollTop += R.offsetTop - $);
421
+ }
422
+ const r = this.pageScale(u.width, u.height), M = k.getViewport({ scale: r }), T = window.devicePixelRatio || 1, S = document.createElement("canvas");
423
+ S.className = "pdfv-page", S.dataset.pageIndex = String(i), S.setAttribute("role", "img"), S.setAttribute("aria-label", `Page ${i + 1}`), S.width = Math.ceil(M.width * T), S.height = Math.ceil(M.height * T), S.style.width = `${M.width}px`, S.style.height = `${M.height}px`, f.canvas = S, f.element.append(S);
424
+ const P = k.render({ canvas: S, viewport: k.getViewport({ scale: r * T }), background: "#ffffff" });
425
+ f.task = P;
283
426
  try {
284
- await D.promise, y.canvas === S && (S.dataset.rendered = "true", this.inspectPageFonts(k, u, n));
285
- } catch (_) {
286
- if (y.canvas === S && this.clearCanvas(y), n === this.loadGeneration && m === this.renderGeneration && (_ == null ? void 0 : _.name) !== "RenderingCancelledException") throw _;
427
+ await P.promise, f.canvas === S && (S.dataset.rendered = "true", this.inspectPageFonts(k, i, n));
428
+ } catch (R) {
429
+ if (f.canvas === S && this.clearCanvas(f), n === this.loadGeneration && p === this.renderGeneration && (R == null ? void 0 : R.name) !== "RenderingCancelledException") throw R;
287
430
  } finally {
288
- y.task === D && (y.task = void 0);
431
+ f.task === P && (f.task = void 0);
289
432
  }
290
433
  }
291
- clearCanvas(l) {
292
- var u;
293
- (u = l.task) == null || u.cancel(), l.task = void 0, l.canvas && (l.canvas.width = l.canvas.height = 0, l.canvas.remove(), l.canvas = void 0);
434
+ clearCanvas(o) {
435
+ var i;
436
+ (i = o.task) == null || i.cancel(), o.task = void 0, o.canvas && (o.canvas.width = o.canvas.height = 0, o.canvas.remove(), o.canvas = void 0);
294
437
  }
295
- async inspectPageFonts(l, u, n) {
296
- var m;
297
- if (!(n !== this.loadGeneration || this.inspectedFontPages.has(u))) {
298
- this.inspectedFontPages.add(u);
438
+ async inspectPageFonts(o, i, n) {
439
+ var p;
440
+ if (!(n !== this.loadGeneration || this.inspectedFontPages.has(i))) {
441
+ this.inspectedFontPages.add(i);
299
442
  try {
300
- const y = await ((m = l.getTextContent) == null ? void 0 : m.call(l));
301
- if (!y || n !== this.loadGeneration) return;
443
+ const f = await ((p = o.getTextContent) == null ? void 0 : p.call(o));
444
+ if (!f || n !== this.loadGeneration) return;
302
445
  let k = !1;
303
- for (const [c, i] of Object.entries(y.styles))
304
- this.fonts.has(c) || (this.fonts.set(c, {
305
- fontId: c,
306
- fontFamily: i.fontFamily,
446
+ for (const [u, r] of Object.entries(f.styles))
447
+ this.fonts.has(u) || (this.fonts.set(u, {
448
+ fontId: u,
449
+ fontFamily: r.fontFamily,
307
450
  status: "unknown",
308
451
  source: "unknown",
309
- classification: as(i.fontFamily)
452
+ classification: ss(r.fontFamily)
310
453
  }), k = !0);
311
454
  k && (this.state.fonts = [...this.fonts.values()], this.emit("statechange", this.getState()));
312
455
  } catch {
313
456
  if (n !== this.loadGeneration) return;
314
- const y = `Font metadata is unavailable for PDF page ${u + 1}.`;
315
- this.state.warnings = [.../* @__PURE__ */ new Set([...this.state.warnings, y])], this.emit("warnings", this.state.warnings), this.emit("statechange", this.getState());
457
+ const f = `Font metadata is unavailable for PDF page ${i + 1}.`;
458
+ this.state.warnings = [.../* @__PURE__ */ new Set([...this.state.warnings, f])], this.emit("warnings", this.state.warnings), this.emit("statechange", this.getState());
316
459
  }
317
460
  }
318
461
  }
@@ -320,164 +463,164 @@ class Bs {
320
463
  this.animationFrame !== null && cancelAnimationFrame(this.animationFrame), this.animationFrame = null, this.renderGeneration++;
321
464
  for (const n of this.pages) this.clearCanvas(n);
322
465
  this.pages = [], this.inspectedFontPages.clear(), this.fonts.clear(), this.state.fonts = [], this.rendering = null, this.renderAgain = !1, this.root.replaceChildren();
323
- const l = this.loadingTask, u = this.document;
324
- return this.loadingTask = null, this.document = null, l ? l.destroy() : (u == null ? void 0 : u.destroy()) ?? Promise.resolve();
466
+ const o = this.loadingTask, i = this.document;
467
+ return this.loadingTask = null, this.document = null, o ? o.destroy() : (i == null ? void 0 : i.destroy()) ?? Promise.resolve();
325
468
  }
326
469
  }
327
- function We() {
470
+ function je() {
328
471
  return new DOMException("PDF loading was aborted.", "AbortError");
329
472
  }
330
- function zs() {
473
+ function Us() {
331
474
  return {
332
475
  id: "pdf",
333
476
  family: "paged",
334
- supports: (f) => Gs(f) === "pdf",
335
- createSession: (f, l) => new Bs(f, l)
477
+ supports: (h) => js(h) === "pdf",
478
+ createSession: (h, o) => new Os(h, o)
336
479
  };
337
480
  }
338
- function Vs(f = qt()) {
481
+ function Ws(h = Jt()) {
339
482
  return [
340
- ...Ns,
341
- ...f.filter((l) => !l.extensions.includes("pdf"))
483
+ ...Gs,
484
+ ...h.filter((o) => !o.extensions.includes("pdf"))
342
485
  ];
343
486
  }
344
- function Gs(f) {
345
- return f.trim().replace(/^\./, "").toLowerCase();
487
+ function js(h) {
488
+ return h.trim().replace(/^\./, "").toLowerCase();
346
489
  }
347
- async function Os(f) {
348
- if (typeof f == "string") return f;
349
- if (f instanceof Blob) return new Uint8Array(await f.arrayBuffer());
350
- if (ArrayBuffer.isView(f)) {
351
- const l = new Uint8Array(f.buffer, f.byteOffset, f.byteLength), u = new Uint8Array(l.byteLength);
352
- return u.set(l), u;
490
+ async function Hs(h) {
491
+ if (typeof h == "string") return h;
492
+ if (h instanceof Blob) return new Uint8Array(await h.arrayBuffer());
493
+ if (ArrayBuffer.isView(h)) {
494
+ const o = new Uint8Array(h.buffer, h.byteOffset, h.byteLength), i = new Uint8Array(o.byteLength);
495
+ return i.set(o), i;
353
496
  }
354
- return new Uint8Array(f.slice(0));
497
+ return new Uint8Array(h.slice(0));
355
498
  }
356
- const js = /* @__PURE__ */ new Set(["pptx", "pdf", "docx", "xlsx"]), Us = Ke.filter((f) => js.has(f.driverId));
357
- function Ws() {
499
+ const Ks = /* @__PURE__ */ new Set(["pptx", "pdf", "docx", "xlsx"]), Ys = He.filter((h) => Ks.has(h.driverId));
500
+ function Xs() {
358
501
  return [
359
- ss(),
360
- zs(),
361
- Ss(),
362
- Ds(),
363
- Ms()
502
+ ns(),
503
+ Us(),
504
+ Ms(),
505
+ Ps(),
506
+ Ds()
364
507
  ];
365
508
  }
366
- function Ks(f = Us) {
367
- return _s(
368
- Vs(Cs(Rs(f)))
509
+ function qs(h = Ys) {
510
+ return Rs(
511
+ Ws(_s(Ts(h)))
369
512
  );
370
513
  }
371
- const Hs = /* @__PURE__ */ new Set(["text", "html"]), Ys = Ke.filter((f) => Hs.has(f.driverId));
372
- function Xs() {
373
- return [ns(), os(), Ps()];
514
+ const Zs = /* @__PURE__ */ new Set(["text", "html"]), Qs = He.filter((h) => Zs.has(h.driverId));
515
+ function Js() {
516
+ return [os(), is(), Ls()];
374
517
  }
375
- function qs(f = Ys) {
376
- return Ts(f);
518
+ function en(h = Qs) {
519
+ return Es(h);
377
520
  }
378
- function Zs(f = {}) {
379
- return Ks(
380
- is(
381
- Ls(
382
- qs(Fs(qt(), f))
521
+ function tn(h = {}) {
522
+ return qs(
523
+ rs(
524
+ As(
525
+ en(Vs(Jt(), h))
383
526
  )
384
527
  )
385
528
  );
386
529
  }
387
- const Qs = ["aria-label"], Js = {
530
+ const an = ["aria-label"], sn = {
388
531
  key: 0,
389
532
  class: "pptxv-toolbar"
390
- }, en = { class: "pptxv-toolbar-group" }, tn = ["disabled"], an = ["disabled"], sn = { class: "pptxv-status" }, nn = { class: "pptxv-button pptxv-layer-summary" }, on = { class: "pptxv-layer-popover" }, ln = ["checked", "onChange"], rn = { class: "pptxv-layer-name" }, un = { class: "pptxv-toolbar-group" }, cn = ["disabled"], vn = { class: "pptxv-status" }, dn = ["disabled"], pn = ["disabled"], hn = ["disabled"], fn = ["disabled"], mn = ["disabled"], bn = ["disabled"], gn = ["disabled"], yn = ["disabled"], xn = { class: "pptxv-layout" }, wn = { class: "pptxv-sidebar pptxv-tree-sidebar" }, kn = { class: "pptxv-meta-panel" }, Sn = { class: "pptxv-tree-actions" }, Cn = ["disabled"], Mn = ["disabled"], _n = { class: "pptxv-tree-search" }, Dn = ["disabled"], Rn = { class: "pptxv-tree-search-status" }, Pn = {
533
+ }, nn = { class: "pptxv-toolbar-group" }, on = ["disabled"], ln = ["disabled"], rn = { class: "pptxv-status" }, un = { class: "pptxv-button pptxv-layer-summary" }, cn = { class: "pptxv-layer-popover" }, dn = ["checked", "onChange"], vn = { class: "pptxv-layer-name" }, pn = { class: "pptxv-toolbar-group" }, hn = ["disabled"], fn = { class: "pptxv-status" }, mn = ["disabled"], bn = ["disabled"], gn = ["disabled"], yn = ["disabled"], xn = ["disabled"], wn = ["disabled"], kn = ["disabled"], Sn = ["disabled"], Cn = { class: "pptxv-layout" }, Mn = { class: "pptxv-sidebar pptxv-tree-sidebar" }, _n = { class: "pptxv-meta-panel" }, Dn = { class: "pptxv-tree-actions" }, Rn = ["disabled"], Pn = ["disabled"], Tn = { class: "pptxv-tree-search" }, Ln = ["disabled"], En = { class: "pptxv-tree-search-status" }, $n = {
391
534
  key: 0,
392
535
  class: "pptxv-tree-explode"
393
- }, Tn = ["value"], $n = {
536
+ }, An = ["value"], In = {
394
537
  key: 1,
395
538
  class: "pptxv-tree-summary"
396
- }, Ln = {
539
+ }, Fn = {
397
540
  key: 2,
398
541
  class: "pptxv-measurement-controls"
399
- }, An = { class: "pptxv-measurement-group" }, En = { class: "pptxv-measurement-buttons" }, In = {
542
+ }, Nn = { class: "pptxv-measurement-group" }, zn = { class: "pptxv-measurement-buttons" }, Bn = {
400
543
  key: 0,
401
544
  class: "pptxv-measurement-group"
402
- }, Fn = { class: "pptxv-measurement-buttons" }, Nn = {
545
+ }, Vn = { class: "pptxv-measurement-buttons" }, Gn = {
403
546
  key: 3,
404
547
  class: "pptxv-tree-detail-list"
405
- }, Bn = { class: "pptxv-tree-list" }, zn = ["aria-label", "onClick"], Vn = {
548
+ }, On = { class: "pptxv-tree-list" }, Un = ["aria-label", "onClick"], Wn = {
406
549
  key: 1,
407
550
  class: "pptxv-tree-spacer"
408
- }, Gn = ["checked", "aria-label", "onChange"], On = ["onClick"], jn = { class: "pptxv-tree-topline" }, Un = { class: "pptxv-tree-badge" }, Wn = { class: "pptxv-tree-label" }, Kn = {
551
+ }, jn = ["checked", "aria-label", "onChange"], Hn = ["onClick"], Kn = { class: "pptxv-tree-topline" }, Yn = { class: "pptxv-tree-badge" }, Xn = { class: "pptxv-tree-label" }, qn = {
409
552
  key: 0,
410
553
  class: "pptxv-tree-count"
411
- }, Hn = { class: "pptxv-tree-kind" }, Yn = {
554
+ }, Zn = { class: "pptxv-tree-kind" }, Qn = {
412
555
  key: 4,
413
556
  class: "pptxv-tree-empty"
414
- }, Xn = { class: "pptxv-meta-muted" }, qn = { class: "pptxv-sidebar pptxv-meta-sidebar" }, Zn = { class: "pptxv-meta-panel" }, Qn = {
557
+ }, Jn = { class: "pptxv-meta-muted" }, eo = { class: "pptxv-sidebar pptxv-meta-sidebar" }, to = { class: "pptxv-meta-panel" }, ao = {
415
558
  key: 0,
416
559
  class: "pptxv-meta-list"
417
- }, Jn = {
560
+ }, so = {
418
561
  key: 1,
419
562
  class: "pptxv-meta-muted"
420
- }, eo = {
563
+ }, no = {
421
564
  key: 2,
422
565
  class: "pptxv-meta-heading pptxv-meta-heading-split"
423
- }, to = { class: "pptxv-meta-heading-actions" }, ao = { class: "pptxv-meta-count" }, so = {
566
+ }, oo = { class: "pptxv-meta-heading-actions" }, io = { class: "pptxv-meta-count" }, lo = {
424
567
  key: 3,
425
568
  class: "pptxv-material-list"
426
- }, no = { class: "pptxv-material-title" }, oo = { class: "pptxv-material-title-copy" }, lo = {
569
+ }, ro = { class: "pptxv-material-title" }, uo = { class: "pptxv-material-title-copy" }, co = {
427
570
  key: 0,
428
571
  class: "pptxv-material-swatches"
429
- }, io = ["title"], ro = { class: "pptxv-material-actions" }, uo = ["onClick"], co = { class: "pptxv-material-detail-list" }, vo = {
572
+ }, vo = ["title"], po = { class: "pptxv-material-actions" }, ho = ["onClick"], fo = { class: "pptxv-material-detail-list" }, mo = {
430
573
  key: 4,
431
574
  class: "pptxv-meta-heading"
432
- }, po = {
575
+ }, bo = {
433
576
  key: 5,
434
577
  class: "pptxv-meta-heading"
435
- }, ho = {
578
+ }, go = {
436
579
  key: 6,
437
580
  class: "pptxv-meta-list"
438
- }, fo = { class: "pptxv-meta-row" }, mo = { class: "pptxv-meta-row" }, bo = {
581
+ }, yo = { class: "pptxv-meta-row" }, xo = { class: "pptxv-meta-row" }, wo = {
439
582
  key: 7,
440
583
  class: "pptxv-measurement-controls"
441
- }, go = { class: "pptxv-measurement-group" }, yo = { class: "pptxv-measurement-buttons" }, xo = {
584
+ }, ko = { class: "pptxv-measurement-group" }, So = { class: "pptxv-measurement-buttons" }, Co = {
442
585
  key: 8,
443
586
  class: "pptxv-measurement-controls"
444
- }, wo = { class: "pptxv-measurement-group" }, ko = { class: "pptxv-measurement-buttons" }, So = { class: "pptxv-measurement-group" }, Co = { class: "pptxv-measurement-buttons" }, Mo = {
587
+ }, Mo = { class: "pptxv-measurement-group" }, _o = { class: "pptxv-measurement-buttons" }, Do = { class: "pptxv-measurement-group" }, Ro = { class: "pptxv-measurement-buttons" }, Po = {
445
588
  key: 9,
446
589
  class: "pptxv-meta-list"
447
- }, _o = {
590
+ }, To = {
448
591
  key: 10,
449
592
  class: "pptxv-meta-heading"
450
- }, Do = {
593
+ }, Lo = {
451
594
  key: 11,
452
595
  class: "pptxv-measurement-controls"
453
- }, Ro = { class: "pptxv-measurement-group" }, Po = { class: "pptxv-measurement-buttons" }, To = { class: "pptxv-measurement-group" }, $o = { class: "pptxv-measurement-buttons" }, Lo = {
596
+ }, Eo = { class: "pptxv-measurement-group" }, $o = { class: "pptxv-measurement-buttons" }, Ao = { class: "pptxv-measurement-group" }, Io = { class: "pptxv-measurement-buttons" }, Fo = {
454
597
  key: 0,
455
598
  class: "pptxv-measurement-group"
456
- }, Ao = { class: "pptxv-section-header" }, Eo = { class: "pptxv-section-value" }, Io = ["min", "max", "step", "value"], Fo = { class: "pptxv-section-range" }, No = {
599
+ }, No = { class: "pptxv-section-header" }, zo = { class: "pptxv-section-value" }, Bo = ["min", "max", "step", "value"], Vo = { class: "pptxv-section-range" }, Go = {
457
600
  key: 1,
458
601
  class: "pptxv-section-box"
459
- }, Bo = { class: "pptxv-section-header" }, zo = { class: "pptxv-measurement-label" }, Vo = { class: "pptxv-section-value" }, Go = ["min", "max", "step", "value", "onInput"], Oo = ["min", "max", "step", "value", "onInput"], jo = { class: "pptxv-section-range" }, Uo = {
602
+ }, Oo = { class: "pptxv-section-header" }, Uo = { class: "pptxv-measurement-label" }, Wo = { class: "pptxv-section-value" }, jo = ["min", "max", "step", "value", "onInput"], Ho = ["min", "max", "step", "value", "onInput"], Ko = { class: "pptxv-section-range" }, Yo = {
460
603
  key: 12,
461
604
  class: "pptxv-meta-list"
462
- }, Wo = { class: "pptxv-main" }, Ko = { class: "pptxv-main-stage" }, Ho = ["aria-label", "title", "aria-expanded"], Yo = {
605
+ }, Xo = { class: "pptxv-main" }, qo = { class: "pptxv-main-stage" }, Zo = ["aria-label", "title", "aria-expanded"], Qo = {
463
606
  viewBox: "0 0 20 20",
464
607
  fill: "none",
465
608
  stroke: "currentColor",
466
609
  "stroke-width": "1.5",
467
610
  "aria-hidden": "true"
468
- }, Xo = ["d"], qo = {
611
+ }, Jo = ["d"], ei = {
469
612
  key: 1,
470
613
  class: "pptxv-overlay"
471
- }, Zo = ["aria-labelledby", "onKeydown"], Qo = ["id"], Jo = ["id"], el = ["aria-invalid", "aria-describedby"], tl = { class: "pptxv-password-actions" }, al = ["disabled"], sl = {
614
+ }, ti = ["aria-labelledby", "onKeydown"], ai = ["id"], si = ["id"], ni = ["aria-invalid", "aria-describedby"], oi = { class: "pptxv-password-actions" }, ii = ["disabled"], li = {
472
615
  key: 2,
473
616
  class: "pptxv-overlay"
474
- }, nl = {
617
+ }, ri = {
475
618
  key: 3,
476
619
  class: "pptxv-overlay is-error"
477
- }, ol = {
620
+ }, ui = {
478
621
  key: 0,
479
622
  class: "pptxv-password-form"
480
- }, ll = /* @__PURE__ */ ja({
623
+ }, ci = /* @__PURE__ */ Ha({
481
624
  __name: "Preview",
482
625
  props: {
483
626
  src: {},
@@ -494,6 +637,7 @@ const Qs = ["aria-label"], Js = {
494
637
  drivers: { default: void 0 },
495
638
  routes: { default: void 0 },
496
639
  converter: { default: void 0 },
640
+ mediaConverter: { default: void 0 },
497
641
  fontResolver: { type: Function, default: void 0 },
498
642
  fontLoading: { type: [Boolean, Object], default: void 0 },
499
643
  resourceResolver: { type: Function, default: void 0 },
@@ -501,74 +645,74 @@ const Qs = ["aria-label"], Js = {
501
645
  panoramaProcessor: { default: void 0 }
502
646
  },
503
647
  emits: ["rendered", "error", "state-change", "warnings", "page-change", "sheet-change", "scale-change"],
504
- setup(f, { expose: l, emit: u }) {
505
- const n = f, m = u, y = W(null), k = W(null), c = Ht(null), i = W({
648
+ setup(h, { expose: o, emit: i }) {
649
+ const n = h, p = i, f = j(null), k = j(null), u = Kt(null), r = j({
506
650
  loading: !1,
507
651
  error: null,
508
652
  family: "unsupported",
509
653
  warnings: [],
510
654
  capabilities: {}
511
- }), P = [], L = W(/* @__PURE__ */ new Set()), S = W(""), D = W(!1), K = `pptxv-model-tools-${Wt()}`, _ = `pptxv-password-${Wt()}`, A = W(""), q = W(null), G = Ht(null), H = W(!1);
512
- let T;
513
- function Zt(e) {
514
- return T == null || T(null), new Promise((t) => {
515
- var h, p;
516
- const a = (U) => {
517
- var B;
518
- (B = e.signal) == null || B.removeEventListener("abort", o), T === a && (T = void 0, G.value = null, A.value = ""), t(U);
519
- }, o = () => a(null);
520
- T = a, A.value = "", G.value = e, (h = e.signal) != null && h.aborted ? o() : ((p = e.signal) == null || p.addEventListener("abort", o, { once: !0 }), Xa(() => {
521
- var U;
522
- return (U = q.value) == null ? void 0 : U.focus();
655
+ }), M = [], T = j(/* @__PURE__ */ new Set()), S = j(""), P = j(!1), H = `pptxv-model-tools-${jt()}`, R = `pptxv-password-${jt()}`, $ = j(""), q = j(null), G = Kt(null), K = j(!1);
656
+ let L;
657
+ function ea(e) {
658
+ return L == null || L(null), new Promise((t) => {
659
+ var b, m;
660
+ const a = (W) => {
661
+ var z;
662
+ (z = e.signal) == null || z.removeEventListener("abort", l), L === a && (L = void 0, G.value = null, $.value = ""), t(W);
663
+ }, l = () => a(null);
664
+ L = a, $.value = "", G.value = e, (b = e.signal) != null && b.aborted ? l() : ((m = e.signal) == null || m.addEventListener("abort", l, { once: !0 }), Qa(() => {
665
+ var W;
666
+ return (W = q.value) == null ? void 0 : W.focus();
523
667
  }));
524
668
  });
525
669
  }
526
- function Qt() {
527
- A.value.length && (T == null || T(A.value));
528
- }
529
- function He() {
530
- H.value = !0, T == null || T(null);
531
- }
532
- const C = r(() => i.value.loading), Ye = r(() => i.value.error), Xe = r(() => i.value.family === "paged"), qe = r(() => i.value.family === "workbook"), Ze = r(() => i.value.family === "ebook"), Se = r(() => Xe.value ? i.value : null), ve = r(() => qe.value ? i.value : null), Ce = r(() => Ze.value ? i.value : null), Jt = r(
533
- () => i.value.family === "image" || i.value.family === "panorama" ? i.value : null
534
- ), Me = r(() => i.value.family === "cad" ? i.value : null), I = r(() => i.value.family === "model3d" ? i.value : null), ea = r(() => i.value.family === "mindmap" ? i.value : null), de = r(() => i.value.family === "diagram" ? i.value : null), Y = r(() => {
535
- var e, t, a, o;
536
- return ((e = Se.value) == null ? void 0 : e.pageIndex) ?? ((t = ve.value) == null ? void 0 : t.activeSheetIndex) ?? ((a = Ce.value) == null ? void 0 : a.chapterIndex) ?? ((o = de.value) == null ? void 0 : o.pageIndex) ?? 0;
537
- }), oe = r(() => {
538
- var e, t, a, o;
539
- return ((e = Se.value) == null ? void 0 : e.pageCount) ?? ((t = ve.value) == null ? void 0 : t.sheets.length) ?? ((a = Ce.value) == null ? void 0 : a.chapterCount) ?? ((o = de.value) == null ? void 0 : o.pageCount) ?? 0;
540
- }), te = r(() => {
541
- var e, t, a, o, h, p;
542
- return ((e = Se.value) == null ? void 0 : e.scale) ?? ((t = ve.value) == null ? void 0 : t.scale) ?? ((a = Jt.value) == null ? void 0 : a.scale) ?? ((o = Me.value) == null ? void 0 : o.scale) ?? ((h = ea.value) == null ? void 0 : h.scale) ?? ((p = de.value) == null ? void 0 : p.scale) ?? n.initialScale;
543
- }), ta = r(() => `${Math.round(te.value * 100)}%`), Qe = r(() => !!(i.value.capabilities.paged || i.value.capabilities.sheets || i.value.capabilities.chapters)), aa = r(() => !C.value && Qe.value && Y.value > 0), sa = r(
544
- () => !C.value && Qe.value && Y.value < oe.value - 1
545
- ), na = r(() => !C.value && !!i.value.capabilities.zoom && te.value > n.minScale + 1e-3), oa = r(() => !C.value && !!i.value.capabilities.zoom && te.value < n.maxScale - 1e-3), la = r(() => !C.value && !!i.value.capabilities.rotate), ia = r(() => !C.value && !!i.value.capabilities.fullscreen), pe = r(() => {
670
+ function ta() {
671
+ $.value.length && (L == null || L($.value));
672
+ }
673
+ function Ke() {
674
+ K.value = !0, L == null || L(null);
675
+ }
676
+ const _ = c(() => r.value.loading), Ye = c(() => r.value.error), Xe = c(() => r.value.family === "paged"), qe = c(() => r.value.family === "workbook"), Ze = c(() => r.value.family === "ebook"), Se = c(() => Xe.value ? r.value : null), de = c(() => qe.value ? r.value : null), Ce = c(() => Ze.value ? r.value : null), aa = c(
677
+ () => r.value.family === "image" || r.value.family === "panorama" ? r.value : null
678
+ ), Me = c(() => r.value.family === "cad" ? r.value : null), I = c(() => r.value.family === "model3d" ? r.value : null), sa = c(() => r.value.family === "mindmap" ? r.value : null), ve = c(() => r.value.family === "diagram" ? r.value : null), Y = c(() => {
679
+ var e, t, a, l;
680
+ return ((e = Se.value) == null ? void 0 : e.pageIndex) ?? ((t = de.value) == null ? void 0 : t.activeSheetIndex) ?? ((a = Ce.value) == null ? void 0 : a.chapterIndex) ?? ((l = ve.value) == null ? void 0 : l.pageIndex) ?? 0;
681
+ }), oe = c(() => {
682
+ var e, t, a, l;
683
+ return ((e = Se.value) == null ? void 0 : e.pageCount) ?? ((t = de.value) == null ? void 0 : t.sheets.length) ?? ((a = Ce.value) == null ? void 0 : a.chapterCount) ?? ((l = ve.value) == null ? void 0 : l.pageCount) ?? 0;
684
+ }), te = c(() => {
685
+ var e, t, a, l, b, m;
686
+ return ((e = Se.value) == null ? void 0 : e.scale) ?? ((t = de.value) == null ? void 0 : t.scale) ?? ((a = aa.value) == null ? void 0 : a.scale) ?? ((l = Me.value) == null ? void 0 : l.scale) ?? ((b = sa.value) == null ? void 0 : b.scale) ?? ((m = ve.value) == null ? void 0 : m.scale) ?? n.initialScale;
687
+ }), na = c(() => `${Math.round(te.value * 100)}%`), Qe = c(() => !!(r.value.capabilities.paged || r.value.capabilities.sheets || r.value.capabilities.chapters)), oa = c(() => !_.value && Qe.value && Y.value > 0), ia = c(
688
+ () => !_.value && Qe.value && Y.value < oe.value - 1
689
+ ), la = c(() => !_.value && !!r.value.capabilities.zoom && te.value > n.minScale + 1e-3), ra = c(() => !_.value && !!r.value.capabilities.zoom && te.value < n.maxScale - 1e-3), ua = c(() => !_.value && !!r.value.capabilities.rotate), ca = c(() => !_.value && !!r.value.capabilities.fullscreen), pe = c(() => {
546
690
  var e;
547
691
  return ((e = Me.value) == null ? void 0 : e.layers) ?? [];
548
- }), Je = r(() => {
692
+ }), Je = c(() => {
549
693
  var e;
550
694
  return new Set(((e = Me.value) == null ? void 0 : e.activeLayerIds) ?? []);
551
- }), ra = r(() => !C.value && !!i.value.capabilities.layers && pe.value.length > 0), Z = r(() => {
695
+ }), da = c(() => !_.value && !!r.value.capabilities.layers && pe.value.length > 0), Z = c(() => {
552
696
  var e;
553
697
  return ((e = I.value) == null ? void 0 : e.modelTree) ?? [];
554
- }), _e = r(() => Gt(S.value)), ae = r(() => _e.value.length > 0), ua = r(() => ae.value ? Nt(Z.value, _e.value) : Z.value), De = r(() => Bt(Z.value)), et = r(() => ae.value ? zt(Z.value, _e.value) : De.value), z = r(() => {
698
+ }), _e = c(() => Gt(S.value)), ae = c(() => _e.value.length > 0), va = c(() => ae.value ? Nt(Z.value, _e.value) : Z.value), De = c(() => zt(Z.value)), et = c(() => ae.value ? Bt(Z.value, _e.value) : De.value), B = c(() => {
555
699
  var e;
556
700
  return (e = I.value) == null ? void 0 : e.selectedNodeId;
557
- }), tt = r(() => {
558
- var a, o, h;
701
+ }), tt = c(() => {
702
+ var a, l, b;
559
703
  const e = (a = I.value) == null ? void 0 : a.metadata;
560
704
  if (!e)
561
705
  return [];
562
706
  const t = [];
563
- return e.format && t.push({ label: "Format", value: e.format.toUpperCase() }), typeof e.objectCount == "number" && t.push({ label: "Objects", value: String(e.objectCount) }), typeof e.meshCount == "number" && t.push({ label: "Meshes", value: String(e.meshCount) }), typeof e.lineCount == "number" && t.push({ label: "Lines", value: String(e.lineCount) }), typeof e.pointCount == "number" && t.push({ label: "Points", value: String(e.pointCount) }), typeof e.materialCount == "number" && t.push({ label: "Materials", value: String(e.materialCount) }), typeof e.animationCount == "number" && e.animationCount > 0 && t.push({ label: "Animations", value: String(e.animationCount) }), typeof e.triangleCount == "number" && t.push({ label: "Triangles", value: String(e.triangleCount) }), typeof e.vertexCount == "number" && t.push({ label: "Vertices", value: String(e.vertexCount) }), (o = e.bounds) != null && o.size && t.push({ label: "Size", value: e.bounds.size.map(M).join(" x ") }), typeof e.hasVertexColors == "boolean" && t.push({ label: "Vertex colors", value: e.hasVertexColors ? "Yes" : "No" }), (h = e.materialNames) != null && h.length && t.push({ label: "Material names", value: e.materialNames.join(", ") }), t;
564
- }), Re = r(() => Ft(
565
- ua.value,
566
- ae.value ? /* @__PURE__ */ new Set() : L.value
567
- )), he = r(() => Re.value.find((e) => e.id === z.value)), at = r(() => {
568
- var a, o, h, p, U, B, ue, ce, Ot, jt, Ut;
569
- if (!z.value)
707
+ return e.format && t.push({ label: "Format", value: e.format.toUpperCase() }), typeof e.objectCount == "number" && t.push({ label: "Objects", value: String(e.objectCount) }), typeof e.meshCount == "number" && t.push({ label: "Meshes", value: String(e.meshCount) }), typeof e.lineCount == "number" && t.push({ label: "Lines", value: String(e.lineCount) }), typeof e.pointCount == "number" && t.push({ label: "Points", value: String(e.pointCount) }), typeof e.materialCount == "number" && t.push({ label: "Materials", value: String(e.materialCount) }), typeof e.animationCount == "number" && e.animationCount > 0 && t.push({ label: "Animations", value: String(e.animationCount) }), typeof e.triangleCount == "number" && t.push({ label: "Triangles", value: String(e.triangleCount) }), typeof e.vertexCount == "number" && t.push({ label: "Vertices", value: String(e.vertexCount) }), (l = e.bounds) != null && l.size && t.push({ label: "Size", value: e.bounds.size.map(D).join(" x ") }), typeof e.hasVertexColors == "boolean" && t.push({ label: "Vertex colors", value: e.hasVertexColors ? "Yes" : "No" }), (b = e.materialNames) != null && b.length && t.push({ label: "Material names", value: e.materialNames.join(", ") }), t;
708
+ }), Re = c(() => Ft(
709
+ va.value,
710
+ ae.value ? /* @__PURE__ */ new Set() : T.value
711
+ )), he = c(() => Re.value.find((e) => e.id === B.value)), at = c(() => {
712
+ var a, l, b, m, W, z, ue, ce, Ot, Ut, Wt;
713
+ if (!B.value)
570
714
  return [];
571
- const e = Ve(Z.value, z.value);
715
+ const e = Ve(Z.value, B.value);
572
716
  if (!e)
573
717
  return [];
574
718
  const t = It(e);
@@ -577,174 +721,174 @@ const Qs = ["aria-label"], Js = {
577
721
  { label: "Children", value: String(e.children.length) },
578
722
  { label: "Subtree nodes", value: String(t.nodes) },
579
723
  { label: "Meshes", value: String(((a = e.metadata) == null ? void 0 : a.meshCount) ?? t.meshes) },
580
- { label: "Lines", value: String(((o = e.metadata) == null ? void 0 : o.lineCount) ?? t.lines) },
581
- { label: "Points", value: String(((h = e.metadata) == null ? void 0 : h.pointCount) ?? t.points) },
724
+ { label: "Lines", value: String(((l = e.metadata) == null ? void 0 : l.lineCount) ?? t.lines) },
725
+ { label: "Points", value: String(((b = e.metadata) == null ? void 0 : b.pointCount) ?? t.points) },
582
726
  { label: "Groups", value: String(t.groups) },
583
- { label: "Materials", value: String(((p = e.metadata) == null ? void 0 : p.materialCount) ?? 0) },
584
- { label: "Triangles", value: String(((U = e.metadata) == null ? void 0 : U.triangleCount) ?? 0) },
585
- { label: "Vertices", value: String(((B = e.metadata) == null ? void 0 : B.vertexCount) ?? 0) },
727
+ { label: "Materials", value: String(((m = e.metadata) == null ? void 0 : m.materialCount) ?? 0) },
728
+ { label: "Triangles", value: String(((W = e.metadata) == null ? void 0 : W.triangleCount) ?? 0) },
729
+ { label: "Vertices", value: String(((z = e.metadata) == null ? void 0 : z.vertexCount) ?? 0) },
586
730
  { label: "Vertex colors", value: typeof ((ue = e.metadata) == null ? void 0 : ue.hasVertexColors) == "boolean" && e.metadata.hasVertexColors ? "Yes" : "No" },
587
731
  { label: "Visible", value: e.visible ? "Yes" : "No" },
588
- ...(Ot = (ce = e.metadata) == null ? void 0 : ce.bounds) != null && Ot.size ? [{ label: "Bounds", value: e.metadata.bounds.size.map(M).join(" x ") }] : [],
589
- ...(Ut = (jt = e.metadata) == null ? void 0 : jt.materialNames) != null && Ut.length ? [{ label: "Material names", value: e.metadata.materialNames.join(", ") }] : []
732
+ ...(Ot = (ce = e.metadata) == null ? void 0 : ce.bounds) != null && Ot.size ? [{ label: "Bounds", value: e.metadata.bounds.size.map(D).join(" x ") }] : [],
733
+ ...(Wt = (Ut = e.metadata) == null ? void 0 : Ut.materialNames) != null && Wt.length ? [{ label: "Material names", value: e.metadata.materialNames.join(", ") }] : []
590
734
  ];
591
- }), Pe = r(() => {
735
+ }), Pe = c(() => {
592
736
  var e, t;
593
- return z.value ? ((t = (e = Ve(Z.value, z.value)) == null ? void 0 : e.metadata) == null ? void 0 : t.materialDetails) ?? [] : [];
594
- }), fe = r(
737
+ return B.value ? ((t = (e = Ve(Z.value, B.value)) == null ? void 0 : e.metadata) == null ? void 0 : t.materialDetails) ?? [] : [];
738
+ }), fe = c(
595
739
  () => {
596
740
  var e, t;
597
741
  return Pe.value.length ? Pe.value : ((t = (e = I.value) == null ? void 0 : e.metadata) == null ? void 0 : t.materialDetails) ?? [];
598
742
  }
599
- ), ca = r(
743
+ ), pa = c(
600
744
  () => Pe.value.length ? "Selected materials" : "Model materials"
601
- ), va = r(() => String(fe.value.length)), me = r(() => {
745
+ ), ha = c(() => String(fe.value.length)), me = c(() => {
602
746
  var e;
603
747
  return (e = I.value) == null ? void 0 : e.isolatedMaterialKey;
604
- }), le = r(() => {
748
+ }), ie = c(() => {
605
749
  var e;
606
750
  return (e = I.value) == null ? void 0 : e.measurement;
607
- }), st = r(() => {
751
+ }), st = c(() => {
608
752
  var e;
609
- return !!((e = le.value) != null && e.active);
610
- }), se = r(() => !C.value && i.value.family === "model3d" && !!i.value.capabilities.measure), nt = r(() => {
753
+ return !!((e = ie.value) != null && e.active);
754
+ }), se = c(() => !_.value && r.value.family === "model3d" && !!r.value.capabilities.measure), nt = c(() => {
611
755
  var e;
612
- return !!((e = le.value) != null && e.start);
613
- }), ot = r(() => {
756
+ return !!((e = ie.value) != null && e.start);
757
+ }), ot = c(() => {
614
758
  var e;
615
- return ((e = le.value) == null ? void 0 : e.snapMode) ?? "surface";
616
- }), be = r(() => {
759
+ return ((e = ie.value) == null ? void 0 : e.snapMode) ?? "surface";
760
+ }), be = c(() => {
617
761
  var e;
618
- return ((e = le.value) == null ? void 0 : e.axisLock) ?? "free";
619
- }), da = r(() => {
620
- const e = le.value;
762
+ return ((e = ie.value) == null ? void 0 : e.axisLock) ?? "free";
763
+ }), fa = c(() => {
764
+ const e = ie.value;
621
765
  return e ? [
622
- { label: "Status", value: Ea(e) },
623
- { label: "Snap", value: Ia(e.snapMode ?? "surface") },
624
- { label: "Axis", value: Lt(e.axisLock ?? "free") },
766
+ { label: "Status", value: Na(e) },
767
+ { label: "Snap", value: za(e.snapMode ?? "surface") },
768
+ { label: "Axis", value: Et(e.axisLock ?? "free") },
625
769
  ...e.start ? [{ label: "Start", value: re(e.start) }] : [],
626
770
  ...e.end ? [{ label: "End", value: re(e.end) }] : [],
627
771
  ...!e.end && e.previewPoint ? [{ label: "Preview", value: re(e.previewPoint) }] : [],
628
772
  ...e.delta ? [{ label: "Delta", value: re(e.delta) }] : [],
629
773
  ...!e.delta && e.previewDelta ? [{ label: "Preview delta", value: re(e.previewDelta) }] : [],
630
- ...typeof e.distance == "number" ? [{ label: "Distance", value: M(e.distance) }] : [],
631
- ...typeof e.distance != "number" && typeof e.previewDistance == "number" ? [{ label: "Preview distance", value: M(e.previewDistance) }] : []
774
+ ...typeof e.distance == "number" ? [{ label: "Distance", value: D(e.distance) }] : [],
775
+ ...typeof e.distance != "number" && typeof e.previewDistance == "number" ? [{ label: "Preview distance", value: D(e.previewDistance) }] : []
632
776
  ] : [];
633
- }), O = r(() => {
777
+ }), O = c(() => {
634
778
  var e;
635
779
  return (e = I.value) == null ? void 0 : e.section;
636
- }), ne = r(() => !C.value && i.value.family === "model3d" && !!i.value.capabilities.section), ge = r(() => {
780
+ }), ne = c(() => !_.value && r.value.family === "model3d" && !!r.value.capabilities.section), ge = c(() => {
637
781
  var e;
638
782
  return !!((e = O.value) != null && e.active);
639
- }), Te = r(() => {
783
+ }), Te = c(() => {
640
784
  var e;
641
785
  return ((e = O.value) == null ? void 0 : e.mode) ?? "single";
642
- }), $e = r(() => {
786
+ }), Le = c(() => {
643
787
  var e;
644
788
  return ((e = O.value) == null ? void 0 : e.axis) ?? "x";
645
- }), Le = r(() => {
789
+ }), Ee = c(() => {
646
790
  var e;
647
791
  return ((e = O.value) == null ? void 0 : e.min) ?? -1;
648
- }), Ae = r(() => {
792
+ }), $e = c(() => {
649
793
  var e;
650
794
  return ((e = O.value) == null ? void 0 : e.max) ?? 1;
651
- }), Ee = r(() => {
795
+ }), Ae = c(() => {
652
796
  var e;
653
797
  return ((e = O.value) == null ? void 0 : e.offset) ?? 0;
654
- }), pa = r(() => {
655
- const e = Math.abs(Ae.value - Le.value);
798
+ }), ma = c(() => {
799
+ const e = Math.abs($e.value - Ee.value);
656
800
  return e > 0 ? Math.max(e / 200, 1e-3) : 1e-3;
657
- }), F = r(() => {
801
+ }), F = c(() => {
658
802
  var e;
659
803
  return ((e = O.value) == null ? void 0 : e.bounds) ?? {
660
804
  x: [-1, 1],
661
805
  y: [-1, 1],
662
806
  z: [-1, 1]
663
807
  };
664
- }), Q = r(() => {
808
+ }), Q = c(() => {
665
809
  var e;
666
810
  return ((e = O.value) == null ? void 0 : e.range) ?? F.value;
667
- }), ha = r(() => {
811
+ }), ba = c(() => {
668
812
  const e = O.value;
669
813
  return e ? [
670
814
  { label: "Status", value: e.active ? "Active" : "Idle" },
671
815
  { label: "Mode", value: e.mode === "box" ? "Box" : "Plane" },
672
- { label: "Axis", value: Lt(e.axis) },
673
- { label: "Offset", value: M(e.offset) },
674
- { label: "Plane range", value: `${M(e.min)} .. ${M(e.max)}` },
816
+ { label: "Axis", value: Et(e.axis) },
817
+ { label: "Offset", value: D(e.offset) },
818
+ { label: "Plane range", value: `${D(e.min)} .. ${D(e.max)}` },
675
819
  ...e.mode === "box" ? [
676
820
  { label: "Box X", value: ke(Q.value.x) },
677
821
  { label: "Box Y", value: ke(Q.value.y) },
678
822
  { label: "Box Z", value: ke(Q.value.z) }
679
823
  ] : []
680
824
  ] : [];
681
- }), lt = r(() => {
825
+ }), it = c(() => {
682
826
  var e;
683
827
  return (e = I.value) == null ? void 0 : e.camera;
684
- }), it = r(() => {
828
+ }), lt = c(() => {
685
829
  var e;
686
- return ((e = lt.value) == null ? void 0 : e.projection) ?? "perspective";
687
- }), J = r(() => {
830
+ return ((e = it.value) == null ? void 0 : e.projection) ?? "perspective";
831
+ }), J = c(() => {
688
832
  var e;
689
- return ((e = lt.value) == null ? void 0 : e.viewPreset) ?? "free";
690
- }), j = r(() => {
833
+ return ((e = it.value) == null ? void 0 : e.viewPreset) ?? "free";
834
+ }), U = c(() => {
691
835
  var e;
692
836
  return ((e = I.value) == null ? void 0 : e.displayMode) ?? "solid-edge";
693
- }), X = r(() => {
837
+ }), X = c(() => {
694
838
  var e;
695
839
  return ((e = I.value) == null ? void 0 : e.snapshotBackground) ?? "scene";
696
- }), Ie = r(() => !C.value && i.value.family === "model3d"), N = r(() => !C.value && i.value.family === "model3d" && !!i.value.capabilities.displayMode), ye = r(() => !C.value && i.value.family === "model3d" && !!i.value.capabilities.download), fa = r(() => ae.value ? `${et.value} match${et.value === 1 ? "" : "es"}` : `${De.value} node${De.value === 1 ? "" : "s"}`), rt = r(() => !C.value && i.value.family === "model3d" && Z.value.length > 0), ma = r(() => rt.value && ae.value && Re.value.length === 0), ba = r(() => !C.value && i.value.family === "model3d" && tt.value.length > 0), ut = r(() => !C.value && i.value.family === "model3d" && !!i.value.capabilities.explode), Fe = r(() => {
840
+ }), Ie = c(() => !_.value && r.value.family === "model3d"), N = c(() => !_.value && r.value.family === "model3d" && !!r.value.capabilities.displayMode), ye = c(() => !_.value && r.value.family === "model3d" && !!r.value.capabilities.download), ga = c(() => ae.value ? `${et.value} match${et.value === 1 ? "" : "es"}` : `${De.value} node${De.value === 1 ? "" : "s"}`), rt = c(() => !_.value && r.value.family === "model3d" && Z.value.length > 0), ya = c(() => rt.value && ae.value && Re.value.length === 0), xa = c(() => !_.value && r.value.family === "model3d" && tt.value.length > 0), ut = c(() => !_.value && r.value.family === "model3d" && !!r.value.capabilities.explode), Fe = c(() => {
697
841
  var e;
698
842
  return Math.round((((e = I.value) == null ? void 0 : e.explode) ?? 0) * 100);
699
- }), ga = r(() => {
843
+ }), wa = c(() => {
700
844
  const e = pe.value.length, t = Je.value.size;
701
845
  return e ? `${t} / ${e}` : "Layers";
702
- }), ct = r(
703
- () => i.value.warnings.length ? `${i.value.warnings.length} warning${i.value.warnings.length > 1 ? "s" : ""}` : ""
704
- ), vt = r(() => i.value.family === "unsupported" ? "Preview" : i.value.family), ya = r(() => {
846
+ }), ct = c(
847
+ () => r.value.warnings.length ? `${r.value.warnings.length} warning${r.value.warnings.length > 1 ? "s" : ""}` : ""
848
+ ), dt = c(() => r.value.family === "unsupported" ? "Preview" : r.value.family), ka = c(() => {
705
849
  var e, t, a;
706
- return Xe.value ? `${Y.value + 1} / ${oe.value || 1}` : qe.value ? `${((t = (e = ve.value) == null ? void 0 : e.sheets[Y.value]) == null ? void 0 : t.name) ?? "Sheet"} ${Y.value + 1} / ${oe.value || 1}` : Ze.value ? `${((a = Ce.value) == null ? void 0 : a.chapterTitle) ?? "Chapter"} ${Y.value + 1} / ${oe.value || 1}` : de.value ? `Page ${Y.value + 1} / ${oe.value || 1}` : vt.value;
850
+ return Xe.value ? `${Y.value + 1} / ${oe.value || 1}` : qe.value ? `${((t = (e = de.value) == null ? void 0 : e.sheets[Y.value]) == null ? void 0 : t.name) ?? "Sheet"} ${Y.value + 1} / ${oe.value || 1}` : Ze.value ? `${((a = Ce.value) == null ? void 0 : a.chapterTitle) ?? "Chapter"} ${Y.value + 1} / ${oe.value || 1}` : ve.value ? `Page ${Y.value + 1} / ${oe.value || 1}` : dt.value;
707
851
  });
708
- function g(e) {
709
- var h;
710
- const t = i.value.family, a = Y.value, o = te.value;
711
- if (i.value = xa(e ?? ((h = c.value) == null ? void 0 : h.getState()) ?? i.value), i.value.family === "paged") {
712
- const p = i.value;
713
- t === "paged" && p.pageIndex !== a && m("page-change", p.pageIndex), p.scale !== o && m("scale-change", p.scale);
852
+ function y(e) {
853
+ var b;
854
+ const t = r.value.family, a = Y.value, l = te.value;
855
+ if (r.value = Sa(e ?? ((b = u.value) == null ? void 0 : b.getState()) ?? r.value), r.value.family === "paged") {
856
+ const m = r.value;
857
+ t === "paged" && m.pageIndex !== a && p("page-change", m.pageIndex), m.scale !== l && p("scale-change", m.scale);
714
858
  return;
715
859
  }
716
- if (i.value.family === "workbook") {
717
- const p = i.value;
718
- t === "workbook" && p.activeSheetIndex !== a && m("sheet-change", p.activeSheetIndex), typeof p.scale == "number" && p.scale !== o && m("scale-change", p.scale);
860
+ if (r.value.family === "workbook") {
861
+ const m = r.value;
862
+ t === "workbook" && m.activeSheetIndex !== a && p("sheet-change", m.activeSheetIndex), typeof m.scale == "number" && m.scale !== l && p("scale-change", m.scale);
719
863
  return;
720
864
  }
721
- if ((i.value.family === "image" || i.value.family === "panorama") && "scale" in i.value) {
722
- const p = i.value;
723
- p.scale !== o && m("scale-change", p.scale);
865
+ if ((r.value.family === "image" || r.value.family === "panorama") && "scale" in r.value) {
866
+ const m = r.value;
867
+ m.scale !== l && p("scale-change", m.scale);
724
868
  return;
725
869
  }
726
- if (i.value.family === "cad") {
727
- const p = i.value;
728
- p.scale !== o && m("scale-change", p.scale);
870
+ if (r.value.family === "cad") {
871
+ const m = r.value;
872
+ m.scale !== l && p("scale-change", m.scale);
729
873
  return;
730
874
  }
731
- if (i.value.family === "mindmap") {
732
- const p = i.value;
733
- p.scale !== o && m("scale-change", p.scale);
875
+ if (r.value.family === "mindmap") {
876
+ const m = r.value;
877
+ m.scale !== l && p("scale-change", m.scale);
734
878
  return;
735
879
  }
736
- if (i.value.family === "diagram") {
737
- const p = i.value;
738
- t === "diagram" && p.pageIndex !== a && m("page-change", p.pageIndex ?? 0), p.scale !== o && m("scale-change", p.scale);
880
+ if (r.value.family === "diagram") {
881
+ const m = r.value;
882
+ t === "diagram" && m.pageIndex !== a && p("page-change", m.pageIndex ?? 0), m.scale !== l && p("scale-change", m.scale);
739
883
  }
740
884
  }
741
- function xa(e) {
885
+ function Sa(e) {
742
886
  const t = {
743
887
  ...e,
744
888
  capabilities: { ...e.capabilities },
745
889
  warnings: [...e.warnings]
746
890
  };
747
- e.fonts && (t.fonts = e.fonts.map((p) => ({ ...p, classification: p.classification ? { ...p.classification } : void 0 })));
891
+ e.fonts && (t.fonts = e.fonts.map((m) => ({ ...m, classification: m.classification ? { ...m.classification } : void 0 })));
748
892
  const a = e.measurement;
749
893
  a && (t.measurement = {
750
894
  ...a,
@@ -755,248 +899,248 @@ const Qs = ["aria-label"], Js = {
755
899
  previewDelta: a.previewDelta ? [...a.previewDelta] : void 0,
756
900
  previewDistance: a.previewDistance
757
901
  });
758
- const o = e.section;
759
- o && (t.section = {
760
- ...o,
761
- bounds: o.bounds ? {
762
- x: [...o.bounds.x],
763
- y: [...o.bounds.y],
764
- z: [...o.bounds.z]
902
+ const l = e.section;
903
+ l && (t.section = {
904
+ ...l,
905
+ bounds: l.bounds ? {
906
+ x: [...l.bounds.x],
907
+ y: [...l.bounds.y],
908
+ z: [...l.bounds.z]
765
909
  } : void 0,
766
- range: o.range ? {
767
- x: [...o.range.x],
768
- y: [...o.range.y],
769
- z: [...o.range.z]
910
+ range: l.range ? {
911
+ x: [...l.range.x],
912
+ y: [...l.range.y],
913
+ z: [...l.range.z]
770
914
  } : void 0
771
915
  });
772
- const h = e.camera;
773
- return h && (t.camera = {
774
- ...h,
775
- position: [...h.position],
776
- target: [...h.target]
916
+ const b = e.camera;
917
+ return b && (t.camera = {
918
+ ...b,
919
+ position: [...b.position],
920
+ target: [...b.target]
777
921
  }), t;
778
922
  }
779
- async function dt() {
780
- var o;
781
- if (P.splice(0).forEach((h) => h()), (o = c.value) == null || o.destroy(), c.value = null, !y.value)
923
+ async function vt() {
924
+ var l;
925
+ if (M.splice(0).forEach((b) => b()), (l = u.value) == null || l.destroy(), u.value = null, !f.value)
782
926
  return;
783
- const e = n.drivers ?? Va(n.panoramaProcessor, n.converter), t = n.routes ?? Zs({ rawPreview: !!(n.panoramaProcessor && n.converter) }), a = (h, p = {}) => ls(h, {
784
- fit: p.fit ?? n.fit,
785
- initialScale: p.initialScale ?? n.initialScale,
786
- minScale: p.minScale ?? n.minScale,
787
- maxScale: p.maxScale ?? n.maxScale,
788
- fontResolver: p.fontResolver ?? n.fontResolver,
789
- fontLoading: p.fontLoading ?? n.fontLoading,
790
- resourceResolver: p.resourceResolver ?? n.resourceResolver,
791
- audio: p.audio ?? n.audio,
792
- requestPassword: p.requestPassword ?? n.requestPassword ?? Zt,
927
+ const e = n.drivers ?? Ua(n.panoramaProcessor, n.converter, n.mediaConverter), t = n.routes ?? tn({ rawPreview: !!(n.panoramaProcessor && n.converter) }), a = (b, m = {}) => ls(b, {
928
+ fit: m.fit ?? n.fit,
929
+ initialScale: m.initialScale ?? n.initialScale,
930
+ minScale: m.minScale ?? n.minScale,
931
+ maxScale: m.maxScale ?? n.maxScale,
932
+ fontResolver: m.fontResolver ?? n.fontResolver,
933
+ fontLoading: m.fontLoading ?? n.fontLoading,
934
+ resourceResolver: m.resourceResolver ?? n.resourceResolver,
935
+ audio: m.audio ?? n.audio,
936
+ requestPassword: m.requestPassword ?? n.requestPassword ?? ea,
793
937
  drivers: e,
794
938
  routes: t,
795
939
  converter: n.converter,
796
940
  previewerFactory: a
797
941
  });
798
- c.value = a(y.value), P.push(
799
- c.value.on("rendered", (h) => {
800
- g(h), m("rendered", h);
942
+ u.value = a(f.value), M.push(
943
+ u.value.on("rendered", (b) => {
944
+ y(b), p("rendered", b);
801
945
  }),
802
- c.value.on("statechange", (h) => {
803
- g(h), m("state-change", h);
946
+ u.value.on("statechange", (b) => {
947
+ y(b), p("state-change", b);
804
948
  }),
805
- c.value.on("error", (h) => {
806
- g(), m("error", h);
949
+ u.value.on("error", (b) => {
950
+ y(), p("error", b);
807
951
  }),
808
- c.value.on("warnings", (h) => {
809
- g(), m("warnings", h);
952
+ u.value.on("warnings", (b) => {
953
+ y(), p("warnings", b);
810
954
  })
811
955
  );
812
956
  }
813
- async function ie() {
814
- if (!c.value || n.src == null)
957
+ async function le() {
958
+ if (!u.value || n.src == null)
815
959
  return;
816
- H.value = !1;
817
- const e = c.value.preview(n.src, {
960
+ K.value = !1;
961
+ const e = u.value.preview(n.src, {
818
962
  name: n.name,
819
963
  extension: n.extension,
820
964
  contentType: n.contentType,
821
965
  ...n.password !== void 0 ? { password: n.password } : {}
822
966
  });
823
- g(), await e, g();
967
+ y(), await e, y();
824
968
  }
825
969
  function pt() {
826
970
  var e;
827
- (e = c.value) == null || e.setScale(te.value + 0.1), g();
971
+ (e = u.value) == null || e.setScale(te.value + 0.1), y();
828
972
  }
829
973
  function ht() {
830
974
  var e;
831
- (e = c.value) == null || e.setScale(te.value - 0.1), g();
975
+ (e = u.value) == null || e.setScale(te.value - 0.1), y();
832
976
  }
833
977
  function ft() {
834
978
  var e;
835
- (e = c.value) == null || e.fit("contain"), g();
979
+ (e = u.value) == null || e.fit("contain"), y();
836
980
  }
837
981
  function mt() {
838
982
  var e;
839
- (e = c.value) == null || e.fit("width"), g();
983
+ (e = u.value) == null || e.fit("width"), y();
840
984
  }
841
985
  function bt() {
842
986
  var e;
843
- (e = c.value) == null || e.fit("height"), g();
987
+ (e = u.value) == null || e.fit("height"), y();
844
988
  }
845
989
  function gt() {
846
990
  var e;
847
- (e = c.value) == null || e.rotate(90), g();
991
+ (e = u.value) == null || e.rotate(90), y();
848
992
  }
849
993
  async function yt() {
850
994
  var e;
851
- await ((e = c.value) == null ? void 0 : e.fullscreen());
995
+ await ((e = u.value) == null ? void 0 : e.fullscreen());
852
996
  }
853
997
  function Ne() {
854
998
  var e;
855
- (e = c.value) == null || e.prev();
999
+ (e = u.value) == null || e.prev();
856
1000
  }
857
- function Be() {
1001
+ function ze() {
858
1002
  var e;
859
- (e = c.value) == null || e.next();
1003
+ (e = u.value) == null || e.next();
860
1004
  }
861
- function wa(e) {
1005
+ function Ca(e) {
862
1006
  var t;
863
- (t = c.value) == null || t.goToPage(e), g();
1007
+ (t = u.value) == null || t.goToPage(e), y();
864
1008
  }
865
- function ka(e, t) {
866
- var o, h;
867
- const a = (o = t.target) == null ? void 0 : o.checked;
868
- (h = c.value) == null || h.toggleLayer(e, a), g();
1009
+ function Ma(e, t) {
1010
+ var l, b;
1011
+ const a = (l = t.target) == null ? void 0 : l.checked;
1012
+ (b = u.value) == null || b.toggleLayer(e, a), y();
869
1013
  }
870
- function Sa() {
1014
+ function _a() {
871
1015
  var e;
872
- (e = c.value) == null || e.setActiveLayers(pe.value.map((t) => t.id)), g();
1016
+ (e = u.value) == null || e.setActiveLayers(pe.value.map((t) => t.id)), y();
873
1017
  }
874
- function Ca() {
1018
+ function Da() {
875
1019
  var e;
876
- (e = c.value) == null || e.setActiveLayers([]), g();
1020
+ (e = u.value) == null || e.setActiveLayers([]), y();
877
1021
  }
878
1022
  function xt(e) {
879
1023
  var t;
880
- (t = c.value) == null || t.selectNode(e), g();
1024
+ (t = u.value) == null || t.selectNode(e), y();
881
1025
  }
882
- function Ma(e, t) {
883
- var o, h, p;
884
- const a = (o = t.target) == null ? void 0 : o.checked;
885
- typeof a == "boolean" && ((p = (h = c.value) == null ? void 0 : h.setNodeVisibility) == null || p.call(h, e, a), g());
1026
+ function Ra(e, t) {
1027
+ var l, b, m;
1028
+ const a = (l = t.target) == null ? void 0 : l.checked;
1029
+ typeof a == "boolean" && ((m = (b = u.value) == null ? void 0 : b.setNodeVisibility) == null || m.call(b, e, a), y());
886
1030
  }
887
- function _a(e) {
888
- var a, o, h;
1031
+ function Pa(e) {
1032
+ var a, l, b;
889
1033
  const t = Number(((a = e.target) == null ? void 0 : a.value) ?? 0);
890
- (h = (o = c.value) == null ? void 0 : o.setExplode) == null || h.call(o, t / 100), g();
1034
+ (b = (l = u.value) == null ? void 0 : l.setExplode) == null || b.call(l, t / 100), y();
891
1035
  }
892
1036
  function wt() {
893
1037
  var e, t;
894
- (t = (e = c.value) == null ? void 0 : e.setExplode) == null || t.call(e, Fe.value > 0 ? 0 : 1), g();
1038
+ (t = (e = u.value) == null ? void 0 : e.setExplode) == null || t.call(e, Fe.value > 0 ? 0 : 1), y();
895
1039
  }
896
- function Da() {
1040
+ function Ta() {
897
1041
  var e;
898
- z.value && ((e = c.value) == null || e.selectNode(z.value), g());
1042
+ B.value && ((e = u.value) == null || e.selectNode(B.value), y());
899
1043
  }
900
- function Ra() {
901
- var t, a, o, h, p;
902
- const e = c.value;
903
- (t = c.value) == null || t.selectNode(), (a = c.value) == null || a.fit("contain"), (o = e == null ? void 0 : e.setCameraViewPreset) == null || o.call(e, "isometric"), (h = e == null ? void 0 : e.setCameraProjection) == null || h.call(e, "perspective"), (p = e == null ? void 0 : e.setDisplayMode) == null || p.call(e, "solid-edge"), g();
1044
+ function La() {
1045
+ var t, a, l, b, m;
1046
+ const e = u.value;
1047
+ (t = u.value) == null || t.selectNode(), (a = u.value) == null || a.fit("contain"), (l = e == null ? void 0 : e.setCameraViewPreset) == null || l.call(e, "isometric"), (b = e == null ? void 0 : e.setCameraProjection) == null || b.call(e, "perspective"), (m = e == null ? void 0 : e.setDisplayMode) == null || m.call(e, "solid-edge"), y();
904
1048
  }
905
- function Pa(e) {
906
- const t = new Set(L.value);
907
- t.has(e) ? t.delete(e) : t.add(e), L.value = t;
1049
+ function Ea(e) {
1050
+ const t = new Set(T.value);
1051
+ t.has(e) ? t.delete(e) : t.add(e), T.value = t;
908
1052
  }
909
- function Ta() {
1053
+ function $a() {
910
1054
  S.value = "";
911
1055
  }
912
1056
  function kt(e) {
913
1057
  var a;
914
- const t = c.value;
915
- (a = t == null ? void 0 : t.setActiveMaterial) == null || a.call(t, me.value === e ? void 0 : e), g();
1058
+ const t = u.value;
1059
+ (a = t == null ? void 0 : t.setActiveMaterial) == null || a.call(t, me.value === e ? void 0 : e), y();
916
1060
  }
917
1061
  function St() {
918
1062
  var t;
919
- const e = c.value;
920
- (t = e == null ? void 0 : e.setMeasurementActive) == null || t.call(e, !st.value), g();
1063
+ const e = u.value;
1064
+ (t = e == null ? void 0 : e.setMeasurementActive) == null || t.call(e, !st.value), y();
921
1065
  }
922
1066
  function Ct() {
923
1067
  var t;
924
- const e = c.value;
925
- (t = e == null ? void 0 : e.clearMeasurement) == null || t.call(e), g();
1068
+ const e = u.value;
1069
+ (t = e == null ? void 0 : e.clearMeasurement) == null || t.call(e), y();
926
1070
  }
927
1071
  function Mt(e) {
928
1072
  var a;
929
- const t = c.value;
930
- (a = t == null ? void 0 : t.setMeasurementSnapMode) == null || a.call(t, e), g();
1073
+ const t = u.value;
1074
+ (a = t == null ? void 0 : t.setMeasurementSnapMode) == null || a.call(t, e), y();
931
1075
  }
932
1076
  function xe(e) {
933
1077
  var a;
934
- const t = c.value;
935
- (a = t == null ? void 0 : t.setMeasurementAxisLock) == null || a.call(t, e), g();
1078
+ const t = u.value;
1079
+ (a = t == null ? void 0 : t.setMeasurementAxisLock) == null || a.call(t, e), y();
936
1080
  }
937
1081
  function _t() {
938
1082
  var t;
939
- const e = c.value;
940
- (t = e == null ? void 0 : e.setSectionActive) == null || t.call(e, !ge.value), g();
1083
+ const e = u.value;
1084
+ (t = e == null ? void 0 : e.setSectionActive) == null || t.call(e, !ge.value), y();
941
1085
  }
942
1086
  function Dt() {
943
1087
  var t;
944
- const e = c.value;
945
- (t = e == null ? void 0 : e.clearSection) == null || t.call(e), g();
1088
+ const e = u.value;
1089
+ (t = e == null ? void 0 : e.clearSection) == null || t.call(e), y();
946
1090
  }
947
1091
  function Rt(e) {
948
1092
  var a;
949
- const t = c.value;
950
- (a = t == null ? void 0 : t.setSectionMode) == null || a.call(t, e), g();
1093
+ const t = u.value;
1094
+ (a = t == null ? void 0 : t.setSectionMode) == null || a.call(t, e), y();
951
1095
  }
952
- function ze(e) {
1096
+ function Be(e) {
953
1097
  var a;
954
- const t = c.value;
955
- (a = t == null ? void 0 : t.setSectionAxis) == null || a.call(t, e), g();
1098
+ const t = u.value;
1099
+ (a = t == null ? void 0 : t.setSectionAxis) == null || a.call(t, e), y();
956
1100
  }
957
- function $a(e) {
958
- var o, h;
959
- const t = Number(((o = e.target) == null ? void 0 : o.value) ?? 0), a = c.value;
960
- (h = a == null ? void 0 : a.setSectionOffset) == null || h.call(a, t), g();
1101
+ function Aa(e) {
1102
+ var l, b;
1103
+ const t = Number(((l = e.target) == null ? void 0 : l.value) ?? 0), a = u.value;
1104
+ (b = a == null ? void 0 : a.setSectionOffset) == null || b.call(a, t), y();
961
1105
  }
962
1106
  function Pt(e, t, a) {
963
1107
  var ue, ce;
964
- const o = Number(((ue = a.target) == null ? void 0 : ue.value) ?? 0), h = Q.value[e], p = t === "min" ? o : h[0], U = t === "max" ? o : h[1], B = c.value;
965
- (ce = B == null ? void 0 : B.setSectionRange) == null || ce.call(B, e, p, U), g();
1108
+ const l = Number(((ue = a.target) == null ? void 0 : ue.value) ?? 0), b = Q.value[e], m = t === "min" ? l : b[0], W = t === "max" ? l : b[1], z = u.value;
1109
+ (ce = z == null ? void 0 : z.setSectionRange) == null || ce.call(z, e, m, W), y();
966
1110
  }
967
1111
  function Tt(e) {
968
1112
  var a;
969
- const t = c.value;
970
- (a = t == null ? void 0 : t.setCameraProjection) == null || a.call(t, e), g();
1113
+ const t = u.value;
1114
+ (a = t == null ? void 0 : t.setCameraProjection) == null || a.call(t, e), y();
971
1115
  }
972
1116
  function ee(e) {
973
1117
  var a;
974
- const t = c.value;
975
- (a = t == null ? void 0 : t.setCameraViewPreset) == null || a.call(t, e), g();
1118
+ const t = u.value;
1119
+ (a = t == null ? void 0 : t.setCameraViewPreset) == null || a.call(t, e), y();
976
1120
  }
977
- function E(e) {
1121
+ function A(e) {
978
1122
  var a;
979
- const t = c.value;
980
- (a = t == null ? void 0 : t.setDisplayMode) == null || a.call(t, e), g();
1123
+ const t = u.value;
1124
+ (a = t == null ? void 0 : t.setDisplayMode) == null || a.call(t, e), y();
981
1125
  }
982
1126
  function we(e) {
983
1127
  var a;
984
- const t = c.value;
985
- (a = t == null ? void 0 : t.setSnapshotBackground) == null || a.call(t, e), g();
1128
+ const t = u.value;
1129
+ (a = t == null ? void 0 : t.setSnapshotBackground) == null || a.call(t, e), y();
986
1130
  }
987
- function $t() {
1131
+ function Lt() {
988
1132
  var t;
989
- const e = c.value;
1133
+ const e = u.value;
990
1134
  (t = e == null ? void 0 : e.downloadSnapshot) == null || t.call(e, void 0, X.value);
991
1135
  }
992
- function La(e) {
993
- if (!(e.defaultPrevented || !c.value || Aa(e))) {
1136
+ function Ia(e) {
1137
+ if (!(e.defaultPrevented || !u.value || Fa(e))) {
994
1138
  if (e.key === "ArrowLeft" || e.key === "PageUp") {
995
1139
  e.preventDefault(), Ne();
996
1140
  return;
997
1141
  }
998
1142
  if (e.key === "ArrowRight" || e.key === "PageDown") {
999
- e.preventDefault(), Be();
1143
+ e.preventDefault(), ze();
1000
1144
  return;
1001
1145
  }
1002
1146
  if ((e.key === "+" || e.key === "=") && !e.ctrlKey && !e.metaKey) {
@@ -1028,7 +1172,7 @@ const Qs = ["aria-label"], Js = {
1028
1172
  return;
1029
1173
  }
1030
1174
  if (e.key.toLowerCase() === "g" && ye.value) {
1031
- e.preventDefault(), $t();
1175
+ e.preventDefault(), Lt();
1032
1176
  return;
1033
1177
  }
1034
1178
  if (e.key.toLowerCase() === "x" && ut.value) {
@@ -1044,19 +1188,19 @@ const Qs = ["aria-label"], Js = {
1044
1188
  return;
1045
1189
  }
1046
1190
  if (e.key === "1" && N.value) {
1047
- e.preventDefault(), E("shaded");
1191
+ e.preventDefault(), A("shaded");
1048
1192
  return;
1049
1193
  }
1050
1194
  if (e.key === "2" && N.value) {
1051
- e.preventDefault(), E("solid-edge");
1195
+ e.preventDefault(), A("solid-edge");
1052
1196
  return;
1053
1197
  }
1054
1198
  if (e.key === "3" && N.value) {
1055
- e.preventDefault(), E("wireframe");
1199
+ e.preventDefault(), A("wireframe");
1056
1200
  return;
1057
1201
  }
1058
1202
  if (e.key === "4" && N.value) {
1059
- e.preventDefault(), E("xray");
1203
+ e.preventDefault(), A("xray");
1060
1204
  return;
1061
1205
  }
1062
1206
  if (e.key === "Escape" && nt.value) {
@@ -1066,20 +1210,20 @@ const Qs = ["aria-label"], Js = {
1066
1210
  e.key === "Escape" && ge.value && (e.preventDefault(), Dt());
1067
1211
  }
1068
1212
  }
1069
- function Aa(e) {
1213
+ function Fa(e) {
1070
1214
  const t = e.target;
1071
1215
  return !!(t != null && t.closest('input, textarea, select, [contenteditable="true"], button'));
1072
1216
  }
1073
- function M(e) {
1217
+ function D(e) {
1074
1218
  return Number.isInteger(e) ? String(e) : e.toFixed(2).replace(/\.?0+$/, "");
1075
1219
  }
1076
1220
  function re(e) {
1077
- return e.map(M).join(", ");
1221
+ return e.map(D).join(", ");
1078
1222
  }
1079
1223
  function ke(e) {
1080
- return `${M(e[0])} .. ${M(e[1])}`;
1224
+ return `${D(e[0])} .. ${D(e[1])}`;
1081
1225
  }
1082
- function Ea(e) {
1226
+ function Na(e) {
1083
1227
  switch (e.status) {
1084
1228
  case "pick-start":
1085
1229
  return "Pick start";
@@ -1091,10 +1235,10 @@ const Qs = ["aria-label"], Js = {
1091
1235
  return e.active ? "Pick start" : "Idle";
1092
1236
  }
1093
1237
  }
1094
- function Ia(e) {
1238
+ function za(e) {
1095
1239
  return e === "vertex" ? "Vertex" : "Surface";
1096
1240
  }
1097
- function Lt(e) {
1241
+ function Et(e) {
1098
1242
  switch (e) {
1099
1243
  case "x":
1100
1244
  return "X";
@@ -1106,7 +1250,7 @@ const Qs = ["aria-label"], Js = {
1106
1250
  return "Free";
1107
1251
  }
1108
1252
  }
1109
- function Fa(e) {
1253
+ function Ba(e) {
1110
1254
  switch (e) {
1111
1255
  case "shaded":
1112
1256
  return "Shaded";
@@ -1118,7 +1262,7 @@ const Qs = ["aria-label"], Js = {
1118
1262
  return "Solid + edge";
1119
1263
  }
1120
1264
  }
1121
- function At(e) {
1265
+ function $t(e) {
1122
1266
  switch (e) {
1123
1267
  case "white":
1124
1268
  return "White";
@@ -1128,15 +1272,15 @@ const Qs = ["aria-label"], Js = {
1128
1272
  return "Scene";
1129
1273
  }
1130
1274
  }
1131
- function Na(e) {
1275
+ function Va(e) {
1132
1276
  var t;
1133
1277
  return [
1134
1278
  ...e.name ? [{ label: "Name", value: e.name }] : [],
1135
1279
  { label: "Type", value: e.type },
1136
1280
  ...e.color ? [{ label: "Color", value: e.color }] : [],
1137
1281
  ...e.emissiveColor ? [{ label: "Emissive", value: e.emissiveColor }] : [],
1138
- ...typeof e.opacity == "number" ? [{ label: "Opacity", value: M(e.opacity) }] : [],
1139
- ...typeof e.alphaTest == "number" ? [{ label: "Alpha test", value: M(e.alphaTest) }] : [],
1282
+ ...typeof e.opacity == "number" ? [{ label: "Opacity", value: D(e.opacity) }] : [],
1283
+ ...typeof e.alphaTest == "number" ? [{ label: "Alpha test", value: D(e.alphaTest) }] : [],
1140
1284
  ...typeof e.transparent == "boolean" ? [{ label: "Transparent", value: e.transparent ? "Yes" : "No" }] : [],
1141
1285
  ...typeof e.wireframe == "boolean" ? [{ label: "Wireframe", value: e.wireframe ? "Yes" : "No" }] : [],
1142
1286
  ...typeof e.vertexColors == "boolean" ? [{ label: "Vertex colors", value: e.vertexColors ? "Yes" : "No" }] : [],
@@ -1144,23 +1288,23 @@ const Qs = ["aria-label"], Js = {
1144
1288
  ...typeof e.depthWrite == "boolean" ? [{ label: "Depth write", value: e.depthWrite ? "Yes" : "No" }] : [],
1145
1289
  ...typeof e.depthTest == "boolean" ? [{ label: "Depth test", value: e.depthTest ? "Yes" : "No" }] : [],
1146
1290
  ...e.side ? [{ label: "Side", value: e.side }] : [],
1147
- ...typeof e.roughness == "number" ? [{ label: "Roughness", value: M(e.roughness) }] : [],
1148
- ...typeof e.metalness == "number" ? [{ label: "Metalness", value: M(e.metalness) }] : [],
1149
- ...typeof e.shininess == "number" ? [{ label: "Shininess", value: M(e.shininess) }] : [],
1150
- ...typeof e.size == "number" ? [{ label: "Size", value: M(e.size) }] : [],
1291
+ ...typeof e.roughness == "number" ? [{ label: "Roughness", value: D(e.roughness) }] : [],
1292
+ ...typeof e.metalness == "number" ? [{ label: "Metalness", value: D(e.metalness) }] : [],
1293
+ ...typeof e.shininess == "number" ? [{ label: "Shininess", value: D(e.shininess) }] : [],
1294
+ ...typeof e.size == "number" ? [{ label: "Size", value: D(e.size) }] : [],
1151
1295
  ...(t = e.mapKinds) != null && t.length ? [{ label: "Maps", value: e.mapKinds.join(", ") }] : []
1152
1296
  ];
1153
1297
  }
1154
- function Et(e) {
1298
+ function At(e) {
1155
1299
  return [
1156
1300
  ...e.color ? [{ label: "Base", color: e.color }] : [],
1157
1301
  ...e.emissiveColor ? [{ label: "Emissive", color: e.emissiveColor }] : []
1158
1302
  ];
1159
1303
  }
1160
- function Ba(e) {
1304
+ function Ga(e) {
1161
1305
  return me.value === e.key ? "Clear isolate" : "Isolate";
1162
1306
  }
1163
- function za(e) {
1307
+ function Oa(e) {
1164
1308
  switch (e) {
1165
1309
  case "mesh":
1166
1310
  return "M";
@@ -1184,9 +1328,9 @@ const Qs = ["aria-label"], Js = {
1184
1328
  for (const a of e) {
1185
1329
  if (a.id === t)
1186
1330
  return a;
1187
- const o = Ve(a.children, t);
1188
- if (o)
1189
- return o;
1331
+ const l = Ve(a.children, t);
1332
+ if (l)
1333
+ return l;
1190
1334
  }
1191
1335
  }
1192
1336
  function It(e) {
@@ -1198,34 +1342,34 @@ const Qs = ["aria-label"], Js = {
1198
1342
  points: e.kind === "points" ? 1 : 0
1199
1343
  };
1200
1344
  for (const a of e.children) {
1201
- const o = It(a);
1202
- t.nodes += o.nodes, t.groups += o.groups, t.meshes += o.meshes, t.lines += o.lines, t.points += o.points;
1345
+ const l = It(a);
1346
+ t.nodes += l.nodes, t.groups += l.groups, t.meshes += l.meshes, t.lines += l.lines, t.points += l.points;
1203
1347
  }
1204
1348
  return t;
1205
1349
  }
1206
1350
  function Ft(e, t, a = 0) {
1207
- return e.flatMap((o) => [
1351
+ return e.flatMap((l) => [
1208
1352
  {
1209
- ...o,
1353
+ ...l,
1210
1354
  depth: a,
1211
- collapsed: t.has(o.id)
1355
+ collapsed: t.has(l.id)
1212
1356
  },
1213
- ...t.has(o.id) ? [] : Ft(o.children, t, a + 1)
1357
+ ...t.has(l.id) ? [] : Ft(l.children, t, a + 1)
1214
1358
  ]);
1215
1359
  }
1216
1360
  function Nt(e, t) {
1217
1361
  return e.flatMap((a) => {
1218
1362
  if (Vt(a).includes(t))
1219
1363
  return [a];
1220
- const o = Nt(a.children, t);
1221
- return o.length ? [{ ...a, children: o }] : [];
1364
+ const l = Nt(a.children, t);
1365
+ return l.length ? [{ ...a, children: l }] : [];
1222
1366
  });
1223
1367
  }
1224
- function Bt(e) {
1225
- return e.reduce((t, a) => t + 1 + Bt(a.children), 0);
1368
+ function zt(e) {
1369
+ return e.reduce((t, a) => t + 1 + zt(a.children), 0);
1226
1370
  }
1227
- function zt(e, t) {
1228
- return e.reduce((a, o) => a + (Vt(o).includes(t) ? 1 : 0) + zt(o.children, t), 0);
1371
+ function Bt(e, t) {
1372
+ return e.reduce((a, l) => a + (Vt(l).includes(t) ? 1 : 0) + Bt(l.children, t), 0);
1229
1373
  }
1230
1374
  function Vt(e) {
1231
1375
  var t;
@@ -1239,29 +1383,29 @@ const Qs = ["aria-label"], Js = {
1239
1383
  function Gt(e) {
1240
1384
  return e.trim().toLowerCase();
1241
1385
  }
1242
- l({
1243
- goToIndex: wa,
1244
- next: Be,
1386
+ o({
1387
+ goToIndex: Ca,
1388
+ next: ze,
1245
1389
  prev: Ne,
1246
1390
  fit: (e) => {
1247
1391
  var t;
1248
- (t = c.value) == null || t.fit(e), g();
1392
+ (t = u.value) == null || t.fit(e), y();
1249
1393
  },
1250
1394
  setScale: (e) => {
1251
1395
  var t;
1252
- (t = c.value) == null || t.setScale(e), g();
1396
+ (t = u.value) == null || t.setScale(e), y();
1253
1397
  },
1254
1398
  rotate: (e) => {
1255
1399
  var t;
1256
- (t = c.value) == null || t.rotate(e), g();
1400
+ (t = u.value) == null || t.rotate(e), y();
1257
1401
  },
1258
- getState: () => i.value
1259
- }), Ua(async () => {
1260
- await dt(), await ie();
1402
+ getState: () => r.value
1403
+ }), Ka(async () => {
1404
+ await vt(), await le();
1261
1405
  }), Ge(
1262
1406
  () => n.src,
1263
1407
  async () => {
1264
- D.value = !1, L.value = /* @__PURE__ */ new Set(), S.value = "", await ie();
1408
+ P.value = !1, T.value = /* @__PURE__ */ new Set(), S.value = "", await le();
1265
1409
  }
1266
1410
  ), Ge(
1267
1411
  () => [
@@ -1272,6 +1416,7 @@ const Qs = ["aria-label"], Js = {
1272
1416
  n.drivers,
1273
1417
  n.routes,
1274
1418
  n.converter,
1419
+ n.mediaConverter,
1275
1420
  n.fontResolver,
1276
1421
  n.fontLoading,
1277
1422
  n.resourceResolver,
@@ -1280,238 +1425,238 @@ const Qs = ["aria-label"], Js = {
1280
1425
  n.panoramaProcessor
1281
1426
  ],
1282
1427
  async () => {
1283
- D.value = !1, L.value = /* @__PURE__ */ new Set(), S.value = "", await dt(), await ie();
1428
+ P.value = !1, T.value = /* @__PURE__ */ new Set(), S.value = "", await vt(), await le();
1284
1429
  }
1285
1430
  ), Ge(
1286
1431
  () => [n.name, n.extension, n.contentType, n.password],
1287
1432
  async () => {
1288
- D.value = !1, L.value = /* @__PURE__ */ new Set(), S.value = "", await ie();
1433
+ P.value = !1, T.value = /* @__PURE__ */ new Set(), S.value = "", await le();
1289
1434
  }
1290
- ), Wa(() => {
1435
+ ), Ya(() => {
1291
1436
  var e;
1292
- T == null || T(null), P.forEach((t) => t()), (e = c.value) == null || e.destroy();
1437
+ L == null || L(null), M.forEach((t) => t()), (e = u.value) == null || e.destroy();
1293
1438
  });
1294
- function Va(e, t) {
1439
+ function Ua(e, t, a) {
1295
1440
  return [
1296
- ...Ws(),
1441
+ ...Xs(),
1297
1442
  ...$s(),
1298
- ...Is({ panoramaProcessor: e, converter: t }),
1299
- rs(),
1300
- ...Xs()
1443
+ ...Bs({ panoramaProcessor: e, converter: t, mediaConverter: a }),
1444
+ us(),
1445
+ ...Js()
1301
1446
  ];
1302
1447
  }
1303
- return (e, t) => (d(), v("div", {
1448
+ return (e, t) => (v(), d("div", {
1304
1449
  ref_key: "shellRef",
1305
1450
  ref: k,
1306
1451
  class: "pptxv-shell pptxv-generic-shell",
1307
1452
  tabindex: "0",
1308
1453
  role: "region",
1309
- "aria-label": `${vt.value} preview`,
1310
- onKeydown: La
1454
+ "aria-label": `${dt.value} preview`,
1455
+ onKeydown: Ia
1311
1456
  }, [
1312
- f.toolbar ? (d(), v("div", Js, [
1313
- s("div", en, [
1457
+ h.toolbar ? (v(), d("div", sn, [
1458
+ s("div", nn, [
1314
1459
  s("button", {
1315
1460
  type: "button",
1316
1461
  class: "pptxv-button",
1317
- disabled: !aa.value,
1462
+ disabled: !oa.value,
1318
1463
  onClick: Ne
1319
- }, "Prev", 8, tn),
1464
+ }, "Prev", 8, on),
1320
1465
  s("button", {
1321
1466
  type: "button",
1322
1467
  class: "pptxv-button",
1323
- disabled: !sa.value,
1324
- onClick: Be
1325
- }, "Next", 8, an),
1326
- s("span", sn, b(ya.value), 1),
1468
+ disabled: !ia.value,
1469
+ onClick: ze
1470
+ }, "Next", 8, ln),
1471
+ s("span", rn, g(ka.value), 1),
1327
1472
  s("span", {
1328
1473
  class: x(["pptxv-pill", { "pptxv-pill--hidden": !ct.value }])
1329
- }, b(ct.value || "0 warnings"), 3),
1474
+ }, g(ct.value || "0 warnings"), 3),
1330
1475
  s("details", {
1331
- class: x(["pptxv-layer-menu", { "pptxv-layer-menu--hidden": !ra.value }])
1476
+ class: x(["pptxv-layer-menu", { "pptxv-layer-menu--hidden": !da.value }])
1332
1477
  }, [
1333
- s("summary", nn, "Layers " + b(ga.value), 1),
1334
- s("div", on, [
1478
+ s("summary", un, "Layers " + g(wa.value), 1),
1479
+ s("div", cn, [
1335
1480
  s("div", { class: "pptxv-layer-actions" }, [
1336
1481
  s("button", {
1337
1482
  type: "button",
1338
1483
  class: "pptxv-layer-action",
1339
- onClick: Sa
1484
+ onClick: _a
1340
1485
  }, "All"),
1341
1486
  s("button", {
1342
1487
  type: "button",
1343
1488
  class: "pptxv-layer-action",
1344
- onClick: Ca
1489
+ onClick: Da
1345
1490
  }, "None")
1346
1491
  ]),
1347
- (d(!0), v($, null, V(pe.value, (a) => (d(), v("label", {
1492
+ (v(!0), d(E, null, V(pe.value, (a) => (v(), d("label", {
1348
1493
  key: a.id,
1349
1494
  class: "pptxv-layer-row"
1350
1495
  }, [
1351
1496
  s("input", {
1352
1497
  type: "checkbox",
1353
1498
  checked: Je.value.has(a.id),
1354
- onChange: (o) => ka(a.id, o)
1355
- }, null, 40, ln),
1499
+ onChange: (l) => Ma(a.id, l)
1500
+ }, null, 40, dn),
1356
1501
  s("span", {
1357
1502
  class: "pptxv-layer-color",
1358
- style: Ue({ backgroundColor: a.color ?? "#9aa8b8" })
1503
+ style: We({ backgroundColor: a.color ?? "#9aa8b8" })
1359
1504
  }, null, 4),
1360
- s("span", rn, b(a.name), 1)
1505
+ s("span", vn, g(a.name), 1)
1361
1506
  ]))), 128))
1362
1507
  ])
1363
1508
  ], 2)
1364
1509
  ]),
1365
- s("div", un, [
1510
+ s("div", pn, [
1366
1511
  s("button", {
1367
1512
  type: "button",
1368
1513
  class: "pptxv-button",
1369
- disabled: !na.value,
1514
+ disabled: !la.value,
1370
1515
  onClick: ht
1371
- }, "-", 8, cn),
1372
- s("span", vn, b(ta.value), 1),
1516
+ }, "-", 8, hn),
1517
+ s("span", fn, g(na.value), 1),
1373
1518
  s("button", {
1374
1519
  type: "button",
1375
1520
  class: "pptxv-button",
1376
- disabled: !oa.value,
1521
+ disabled: !ra.value,
1377
1522
  onClick: pt
1378
- }, "+", 8, dn),
1523
+ }, "+", 8, mn),
1379
1524
  s("button", {
1380
1525
  type: "button",
1381
1526
  class: "pptxv-button",
1382
- disabled: C.value || !i.value.capabilities.fit,
1527
+ disabled: _.value || !r.value.capabilities.fit,
1383
1528
  onClick: ft
1384
- }, " Fit ", 8, pn),
1529
+ }, " Fit ", 8, bn),
1385
1530
  s("button", {
1386
1531
  type: "button",
1387
1532
  class: "pptxv-button",
1388
- disabled: C.value || !i.value.capabilities.fit,
1533
+ disabled: _.value || !r.value.capabilities.fit,
1389
1534
  onClick: mt
1390
- }, " Width ", 8, hn),
1535
+ }, " Width ", 8, gn),
1391
1536
  s("button", {
1392
1537
  type: "button",
1393
1538
  class: "pptxv-button",
1394
- disabled: C.value || !i.value.capabilities.fit,
1539
+ disabled: _.value || !r.value.capabilities.fit,
1395
1540
  onClick: bt
1396
- }, " Height ", 8, fn),
1541
+ }, " Height ", 8, yn),
1397
1542
  s("button", {
1398
1543
  type: "button",
1399
1544
  class: "pptxv-button",
1400
- disabled: !la.value,
1545
+ disabled: !ua.value,
1401
1546
  onClick: gt
1402
- }, "Rotate", 8, mn),
1403
- se.value ? (d(), v("button", {
1547
+ }, "Rotate", 8, xn),
1548
+ se.value ? (v(), d("button", {
1404
1549
  key: 0,
1405
1550
  type: "button",
1406
1551
  class: x(["pptxv-button", { "is-active": st.value }]),
1407
1552
  onClick: St
1408
1553
  }, " Measure ", 2)) : w("", !0),
1409
- se.value ? (d(), v("button", {
1554
+ se.value ? (v(), d("button", {
1410
1555
  key: 1,
1411
1556
  type: "button",
1412
1557
  class: "pptxv-button",
1413
1558
  disabled: !nt.value,
1414
1559
  onClick: Ct
1415
- }, " Clear ", 8, bn)) : w("", !0),
1416
- ne.value ? (d(), v("button", {
1560
+ }, " Clear ", 8, wn)) : w("", !0),
1561
+ ne.value ? (v(), d("button", {
1417
1562
  key: 2,
1418
1563
  type: "button",
1419
1564
  class: x(["pptxv-button", { "is-active": ge.value }]),
1420
1565
  onClick: _t
1421
1566
  }, " Section ", 2)) : w("", !0),
1422
- ne.value ? (d(), v("button", {
1567
+ ne.value ? (v(), d("button", {
1423
1568
  key: 3,
1424
1569
  type: "button",
1425
1570
  class: "pptxv-button",
1426
- disabled: !ge.value && Math.abs(Ee.value) < 5e-4,
1571
+ disabled: !ge.value && Math.abs(Ae.value) < 5e-4,
1427
1572
  onClick: Dt
1428
- }, " Reset cut ", 8, gn)) : w("", !0),
1429
- Ie.value ? (d(), v("button", {
1573
+ }, " Reset cut ", 8, kn)) : w("", !0),
1574
+ Ie.value ? (v(), d("button", {
1430
1575
  key: 4,
1431
1576
  type: "button",
1432
- class: x(["pptxv-button", { "is-active": it.value === "perspective" }]),
1577
+ class: x(["pptxv-button", { "is-active": lt.value === "perspective" }]),
1433
1578
  onClick: t[0] || (t[0] = (a) => Tt("perspective"))
1434
1579
  }, " Persp ", 2)) : w("", !0),
1435
- Ie.value ? (d(), v("button", {
1580
+ Ie.value ? (v(), d("button", {
1436
1581
  key: 5,
1437
1582
  type: "button",
1438
- class: x(["pptxv-button", { "is-active": it.value === "orthographic" }]),
1583
+ class: x(["pptxv-button", { "is-active": lt.value === "orthographic" }]),
1439
1584
  onClick: t[1] || (t[1] = (a) => Tt("orthographic"))
1440
1585
  }, " Ortho ", 2)) : w("", !0),
1441
- N.value ? (d(), v("button", {
1586
+ N.value ? (v(), d("button", {
1442
1587
  key: 6,
1443
1588
  type: "button",
1444
- class: x(["pptxv-button", { "is-active": j.value === "shaded" }]),
1445
- onClick: t[2] || (t[2] = (a) => E("shaded"))
1589
+ class: x(["pptxv-button", { "is-active": U.value === "shaded" }]),
1590
+ onClick: t[2] || (t[2] = (a) => A("shaded"))
1446
1591
  }, " Shade ", 2)) : w("", !0),
1447
- N.value ? (d(), v("button", {
1592
+ N.value ? (v(), d("button", {
1448
1593
  key: 7,
1449
1594
  type: "button",
1450
- class: x(["pptxv-button", { "is-active": j.value === "solid-edge" }]),
1451
- onClick: t[3] || (t[3] = (a) => E("solid-edge"))
1595
+ class: x(["pptxv-button", { "is-active": U.value === "solid-edge" }]),
1596
+ onClick: t[3] || (t[3] = (a) => A("solid-edge"))
1452
1597
  }, " Edge ", 2)) : w("", !0),
1453
- N.value ? (d(), v("button", {
1598
+ N.value ? (v(), d("button", {
1454
1599
  key: 8,
1455
1600
  type: "button",
1456
- class: x(["pptxv-button", { "is-active": j.value === "wireframe" }]),
1457
- onClick: t[4] || (t[4] = (a) => E("wireframe"))
1601
+ class: x(["pptxv-button", { "is-active": U.value === "wireframe" }]),
1602
+ onClick: t[4] || (t[4] = (a) => A("wireframe"))
1458
1603
  }, " Wire ", 2)) : w("", !0),
1459
- N.value ? (d(), v("button", {
1604
+ N.value ? (v(), d("button", {
1460
1605
  key: 9,
1461
1606
  type: "button",
1462
- class: x(["pptxv-button", { "is-active": j.value === "xray" }]),
1463
- onClick: t[5] || (t[5] = (a) => E("xray"))
1607
+ class: x(["pptxv-button", { "is-active": U.value === "xray" }]),
1608
+ onClick: t[5] || (t[5] = (a) => A("xray"))
1464
1609
  }, " X-Ray ", 2)) : w("", !0),
1465
- ye.value ? (d(), v("button", {
1610
+ ye.value ? (v(), d("button", {
1466
1611
  key: 10,
1467
1612
  type: "button",
1468
1613
  class: "pptxv-button",
1469
- onClick: $t
1614
+ onClick: Lt
1470
1615
  }, " PNG ")) : w("", !0),
1471
- ye.value ? (d(), v("button", {
1616
+ ye.value ? (v(), d("button", {
1472
1617
  key: 11,
1473
1618
  type: "button",
1474
1619
  class: "pptxv-button",
1475
1620
  onClick: t[6] || (t[6] = (a) => we(X.value === "scene" ? "white" : X.value === "white" ? "transparent" : "scene"))
1476
- }, b(At(X.value)), 1)) : w("", !0),
1621
+ }, g($t(X.value)), 1)) : w("", !0),
1477
1622
  s("button", {
1478
1623
  type: "button",
1479
1624
  class: "pptxv-button",
1480
- disabled: !ia.value,
1625
+ disabled: !ca.value,
1481
1626
  onClick: yt
1482
- }, "Full", 8, yn)
1627
+ }, "Full", 8, Sn)
1483
1628
  ])
1484
1629
  ])) : w("", !0),
1485
- s("div", xn, [
1486
- i.value.family === "model3d" ? Oe((d(), v("div", {
1630
+ s("div", Cn, [
1631
+ r.value.family === "model3d" ? Oe((v(), d("div", {
1487
1632
  key: 0,
1488
- id: K,
1633
+ id: H,
1489
1634
  class: "pptxv-model-tools"
1490
1635
  }, [
1491
- s("aside", wn, [
1492
- s("div", kn, [
1493
- rt.value ? (d(), v($, { key: 0 }, [
1636
+ s("aside", Mn, [
1637
+ s("div", _n, [
1638
+ rt.value ? (v(), d(E, { key: 0 }, [
1494
1639
  t[43] || (t[43] = s("div", { class: "pptxv-meta-heading" }, "Model tree", -1)),
1495
- s("div", Sn, [
1640
+ s("div", Dn, [
1496
1641
  s("button", {
1497
1642
  type: "button",
1498
1643
  class: "pptxv-button pptxv-tree-reset",
1499
- disabled: !z.value,
1644
+ disabled: !B.value,
1500
1645
  onClick: t[7] || (t[7] = (a) => xt(void 0))
1501
- }, " Show all ", 8, Cn),
1646
+ }, " Show all ", 8, Rn),
1502
1647
  s("button", {
1503
1648
  type: "button",
1504
1649
  class: "pptxv-button pptxv-tree-reset",
1505
- disabled: !z.value,
1506
- onClick: Da
1507
- }, " Refocus ", 8, Mn),
1650
+ disabled: !B.value,
1651
+ onClick: Ta
1652
+ }, " Refocus ", 8, Pn),
1508
1653
  s("button", {
1509
1654
  type: "button",
1510
1655
  class: "pptxv-button pptxv-tree-reset",
1511
- onClick: Ra
1656
+ onClick: La
1512
1657
  }, " Reset view ")
1513
1658
  ]),
1514
- s("div", _n, [
1659
+ s("div", Tn, [
1515
1660
  Oe(s("input", {
1516
1661
  "onUpdate:modelValue": t[8] || (t[8] = (a) => S.value = a),
1517
1662
  type: "search",
@@ -1519,7 +1664,7 @@ const Qs = ["aria-label"], Js = {
1519
1664
  placeholder: "Search nodes, kinds, materials"
1520
1665
  }, null, 512), [
1521
1666
  [
1522
- Kt,
1667
+ Ht,
1523
1668
  S.value,
1524
1669
  void 0,
1525
1670
  { trim: !0 }
@@ -1529,11 +1674,11 @@ const Qs = ["aria-label"], Js = {
1529
1674
  type: "button",
1530
1675
  class: "pptxv-button pptxv-tree-search-clear",
1531
1676
  disabled: !ae.value,
1532
- onClick: Ta
1533
- }, " Clear ", 8, Dn)
1677
+ onClick: $a
1678
+ }, " Clear ", 8, Ln)
1534
1679
  ]),
1535
- s("div", Rn, b(fa.value), 1),
1536
- ut.value ? (d(), v("div", Pn, [
1680
+ s("div", En, g(ga.value), 1),
1681
+ ut.value ? (v(), d("div", $n, [
1537
1682
  t[40] || (t[40] = s("span", { class: "pptxv-tree-explode-label" }, "Explode", -1)),
1538
1683
  s("input", {
1539
1684
  type: "range",
@@ -1542,22 +1687,22 @@ const Qs = ["aria-label"], Js = {
1542
1687
  step: "1",
1543
1688
  class: "pptxv-tree-explode-slider",
1544
1689
  value: Fe.value,
1545
- onInput: t[9] || (t[9] = (a) => _a(a))
1546
- }, null, 40, Tn),
1690
+ onInput: t[9] || (t[9] = (a) => Pa(a))
1691
+ }, null, 40, An),
1547
1692
  s("button", {
1548
1693
  type: "button",
1549
1694
  class: "pptxv-button pptxv-tree-explode-value",
1550
1695
  onClick: wt
1551
- }, b(Fe.value) + "% ", 1)
1696
+ }, g(Fe.value) + "% ", 1)
1552
1697
  ])) : w("", !0),
1553
- he.value ? (d(), v("div", $n, [
1554
- s("span", null, b(he.value.label), 1),
1555
- s("strong", null, b(he.value.children.length) + " child" + b(he.value.children.length === 1 ? "" : "ren"), 1)
1698
+ he.value ? (v(), d("div", In, [
1699
+ s("span", null, g(he.value.label), 1),
1700
+ s("strong", null, g(he.value.children.length) + " child" + g(he.value.children.length === 1 ? "" : "ren"), 1)
1556
1701
  ])) : w("", !0),
1557
- Ie.value ? (d(), v("div", Ln, [
1558
- s("div", An, [
1702
+ Ie.value ? (v(), d("div", Fn, [
1703
+ s("div", Nn, [
1559
1704
  t[41] || (t[41] = s("span", { class: "pptxv-measurement-label" }, "View", -1)),
1560
- s("div", En, [
1705
+ s("div", zn, [
1561
1706
  s("button", {
1562
1707
  type: "button",
1563
1708
  class: x(["pptxv-button", { "is-active": J.value === "isometric" }]),
@@ -1595,161 +1740,161 @@ const Qs = ["aria-label"], Js = {
1595
1740
  }, "Bottom", 2)
1596
1741
  ])
1597
1742
  ]),
1598
- N.value ? (d(), v("div", In, [
1743
+ N.value ? (v(), d("div", Bn, [
1599
1744
  t[42] || (t[42] = s("span", { class: "pptxv-measurement-label" }, "Display", -1)),
1600
- s("div", Fn, [
1745
+ s("div", Vn, [
1601
1746
  s("button", {
1602
1747
  type: "button",
1603
- class: x(["pptxv-button", { "is-active": j.value === "shaded" }]),
1604
- onClick: t[17] || (t[17] = (a) => E("shaded"))
1748
+ class: x(["pptxv-button", { "is-active": U.value === "shaded" }]),
1749
+ onClick: t[17] || (t[17] = (a) => A("shaded"))
1605
1750
  }, "Shaded", 2),
1606
1751
  s("button", {
1607
1752
  type: "button",
1608
- class: x(["pptxv-button", { "is-active": j.value === "solid-edge" }]),
1609
- onClick: t[18] || (t[18] = (a) => E("solid-edge"))
1753
+ class: x(["pptxv-button", { "is-active": U.value === "solid-edge" }]),
1754
+ onClick: t[18] || (t[18] = (a) => A("solid-edge"))
1610
1755
  }, "Solid+Edge", 2),
1611
1756
  s("button", {
1612
1757
  type: "button",
1613
- class: x(["pptxv-button", { "is-active": j.value === "wireframe" }]),
1614
- onClick: t[19] || (t[19] = (a) => E("wireframe"))
1758
+ class: x(["pptxv-button", { "is-active": U.value === "wireframe" }]),
1759
+ onClick: t[19] || (t[19] = (a) => A("wireframe"))
1615
1760
  }, "Wireframe", 2),
1616
1761
  s("button", {
1617
1762
  type: "button",
1618
- class: x(["pptxv-button", { "is-active": j.value === "xray" }]),
1619
- onClick: t[20] || (t[20] = (a) => E("xray"))
1763
+ class: x(["pptxv-button", { "is-active": U.value === "xray" }]),
1764
+ onClick: t[20] || (t[20] = (a) => A("xray"))
1620
1765
  }, "X-Ray", 2)
1621
1766
  ])
1622
1767
  ])) : w("", !0)
1623
1768
  ])) : w("", !0),
1624
- at.value.length ? (d(), v("dl", Nn, [
1625
- (d(!0), v($, null, V(at.value, (a) => (d(), v("div", {
1769
+ at.value.length ? (v(), d("dl", Gn, [
1770
+ (v(!0), d(E, null, V(at.value, (a) => (v(), d("div", {
1626
1771
  key: a.label,
1627
1772
  class: "pptxv-tree-detail-row"
1628
1773
  }, [
1629
- s("dt", null, b(a.label), 1),
1630
- s("dd", null, b(a.value), 1)
1774
+ s("dt", null, g(a.label), 1),
1775
+ s("dd", null, g(a.value), 1)
1631
1776
  ]))), 128))
1632
1777
  ])) : w("", !0),
1633
- s("div", Bn, [
1634
- (d(!0), v($, null, V(Re.value, (a) => (d(), v("div", {
1778
+ s("div", On, [
1779
+ (v(!0), d(E, null, V(Re.value, (a) => (v(), d("div", {
1635
1780
  key: a.id,
1636
1781
  class: "pptxv-tree-row",
1637
- style: Ue({ paddingLeft: `${8 + a.depth * 14}px` })
1782
+ style: We({ paddingLeft: `${8 + a.depth * 14}px` })
1638
1783
  }, [
1639
- a.children.length ? (d(), v("button", {
1784
+ a.children.length ? (v(), d("button", {
1640
1785
  key: 0,
1641
1786
  type: "button",
1642
1787
  class: "pptxv-tree-toggle",
1643
1788
  "aria-label": a.collapsed ? "Expand node" : "Collapse node",
1644
- onClick: (o) => Pa(a.id)
1645
- }, b(a.collapsed ? "+" : "-"), 9, zn)) : (d(), v("span", Vn)),
1789
+ onClick: (l) => Ea(a.id)
1790
+ }, g(a.collapsed ? "+" : "-"), 9, Un)) : (v(), d("span", Wn)),
1646
1791
  s("input", {
1647
1792
  type: "checkbox",
1648
1793
  class: "pptxv-tree-visibility",
1649
1794
  checked: a.visible,
1650
1795
  "aria-label": a.visible ? "Hide node" : "Show node",
1651
- onClick: t[21] || (t[21] = je(() => {
1796
+ onClick: t[21] || (t[21] = Ue(() => {
1652
1797
  }, ["stop"])),
1653
- onChange: (o) => Ma(a.id, o)
1654
- }, null, 40, Gn),
1798
+ onChange: (l) => Ra(a.id, l)
1799
+ }, null, 40, jn),
1655
1800
  s("button", {
1656
1801
  type: "button",
1657
- class: x(["pptxv-tree-button", { "is-active": z.value === a.id, "is-hidden": !a.visible }]),
1658
- onClick: (o) => xt(a.id)
1802
+ class: x(["pptxv-tree-button", { "is-active": B.value === a.id, "is-hidden": !a.visible }]),
1803
+ onClick: (l) => xt(a.id)
1659
1804
  }, [
1660
- s("div", jn, [
1661
- s("span", Un, b(za(a.kind)), 1),
1662
- s("span", Wn, b(a.label), 1),
1663
- a.children.length ? (d(), v("span", Kn, b(a.children.length), 1)) : w("", !0)
1805
+ s("div", Kn, [
1806
+ s("span", Yn, g(Oa(a.kind)), 1),
1807
+ s("span", Xn, g(a.label), 1),
1808
+ a.children.length ? (v(), d("span", qn, g(a.children.length), 1)) : w("", !0)
1664
1809
  ]),
1665
- s("span", Hn, b(a.kind), 1)
1666
- ], 10, On)
1810
+ s("span", Zn, g(a.kind), 1)
1811
+ ], 10, Hn)
1667
1812
  ], 4))), 128))
1668
1813
  ]),
1669
- ma.value ? (d(), v("div", Yn, " No nodes matched the current filter. ")) : w("", !0)
1670
- ], 64)) : (d(), v($, { key: 1 }, [
1814
+ ya.value ? (v(), d("div", Qn, " No nodes matched the current filter. ")) : w("", !0)
1815
+ ], 64)) : (v(), d(E, { key: 1 }, [
1671
1816
  t[44] || (t[44] = s("div", { class: "pptxv-meta-heading" }, "Model tree", -1)),
1672
- s("div", Xn, b(C.value ? "Loading model..." : "No model tree available."), 1)
1817
+ s("div", Jn, g(_.value ? "Loading model..." : "No model tree available."), 1)
1673
1818
  ], 64))
1674
1819
  ])
1675
1820
  ]),
1676
- s("aside", qn, [
1677
- s("div", Zn, [
1821
+ s("aside", eo, [
1822
+ s("div", to, [
1678
1823
  t[53] || (t[53] = s("div", { class: "pptxv-meta-heading" }, "Model info", -1)),
1679
- ba.value ? (d(), v("dl", Qn, [
1680
- (d(!0), v($, null, V(tt.value, (a) => (d(), v("div", {
1824
+ xa.value ? (v(), d("dl", ao, [
1825
+ (v(!0), d(E, null, V(tt.value, (a) => (v(), d("div", {
1681
1826
  key: a.label,
1682
1827
  class: "pptxv-meta-row"
1683
1828
  }, [
1684
- s("dt", null, b(a.label), 1),
1685
- s("dd", null, b(a.value), 1)
1829
+ s("dt", null, g(a.label), 1),
1830
+ s("dd", null, g(a.value), 1)
1686
1831
  ]))), 128))
1687
- ])) : (d(), v("div", Jn, b(C.value ? "Loading model..." : "No model metadata available."), 1)),
1688
- fe.value.length ? (d(), v("div", eo, [
1689
- s("span", null, b(ca.value), 1),
1690
- s("div", to, [
1691
- me.value ? (d(), v("button", {
1832
+ ])) : (v(), d("div", so, g(_.value ? "Loading model..." : "No model metadata available."), 1)),
1833
+ fe.value.length ? (v(), d("div", no, [
1834
+ s("span", null, g(pa.value), 1),
1835
+ s("div", oo, [
1836
+ me.value ? (v(), d("button", {
1692
1837
  key: 0,
1693
1838
  type: "button",
1694
1839
  class: "pptxv-button pptxv-material-clear",
1695
1840
  onClick: t[22] || (t[22] = (a) => kt(void 0))
1696
1841
  }, " Clear isolate ")) : w("", !0),
1697
- s("span", ao, b(va.value), 1)
1842
+ s("span", io, g(ha.value), 1)
1698
1843
  ])
1699
1844
  ])) : w("", !0),
1700
- fe.value.length ? (d(), v("div", so, [
1701
- (d(!0), v($, null, V(fe.value, (a) => (d(), v("section", {
1845
+ fe.value.length ? (v(), d("div", lo, [
1846
+ (v(!0), d(E, null, V(fe.value, (a) => (v(), d("section", {
1702
1847
  key: a.key,
1703
1848
  class: x(["pptxv-material-card", { "is-active": me.value === a.key }])
1704
1849
  }, [
1705
- s("div", no, [
1706
- s("div", oo, [
1707
- s("strong", null, b(a.name || a.type), 1),
1708
- s("span", null, b(a.type), 1)
1850
+ s("div", ro, [
1851
+ s("div", uo, [
1852
+ s("strong", null, g(a.name || a.type), 1),
1853
+ s("span", null, g(a.type), 1)
1709
1854
  ]),
1710
- Et(a).length ? (d(), v("div", lo, [
1711
- (d(!0), v($, null, V(Et(a), (o) => (d(), v("span", {
1712
- key: o.label,
1855
+ At(a).length ? (v(), d("div", co, [
1856
+ (v(!0), d(E, null, V(At(a), (l) => (v(), d("span", {
1857
+ key: l.label,
1713
1858
  class: "pptxv-material-swatch",
1714
- title: `${o.label}: ${o.color}`,
1715
- style: Ue({ backgroundColor: o.color })
1716
- }, null, 12, io))), 128))
1859
+ title: `${l.label}: ${l.color}`,
1860
+ style: We({ backgroundColor: l.color })
1861
+ }, null, 12, vo))), 128))
1717
1862
  ])) : w("", !0)
1718
1863
  ]),
1719
- s("div", ro, [
1864
+ s("div", po, [
1720
1865
  s("button", {
1721
1866
  type: "button",
1722
1867
  class: "pptxv-button pptxv-material-action",
1723
- onClick: (o) => kt(a.key)
1724
- }, b(Ba(a)), 9, uo)
1868
+ onClick: (l) => kt(a.key)
1869
+ }, g(Ga(a)), 9, ho)
1725
1870
  ]),
1726
- s("dl", co, [
1727
- (d(!0), v($, null, V(Na(a), (o) => (d(), v("div", {
1728
- key: o.label,
1871
+ s("dl", fo, [
1872
+ (v(!0), d(E, null, V(Va(a), (l) => (v(), d("div", {
1873
+ key: l.label,
1729
1874
  class: "pptxv-material-detail-row"
1730
1875
  }, [
1731
- s("dt", null, b(o.label), 1),
1732
- s("dd", null, b(o.value), 1)
1876
+ s("dt", null, g(l.label), 1),
1877
+ s("dd", null, g(l.value), 1)
1733
1878
  ]))), 128))
1734
1879
  ])
1735
1880
  ], 2))), 128))
1736
1881
  ])) : w("", !0),
1737
- se.value ? (d(), v("div", vo, "Measurement")) : w("", !0),
1738
- N.value ? (d(), v("div", po, "Display")) : w("", !0),
1739
- N.value ? (d(), v("dl", ho, [
1740
- s("div", fo, [
1882
+ se.value ? (v(), d("div", mo, "Measurement")) : w("", !0),
1883
+ N.value ? (v(), d("div", bo, "Display")) : w("", !0),
1884
+ N.value ? (v(), d("dl", go, [
1885
+ s("div", yo, [
1741
1886
  t[45] || (t[45] = s("dt", null, "Mode", -1)),
1742
- s("dd", null, b(Fa(j.value)), 1)
1887
+ s("dd", null, g(Ba(U.value)), 1)
1743
1888
  ]),
1744
- s("div", mo, [
1889
+ s("div", xo, [
1745
1890
  t[46] || (t[46] = s("dt", null, "Snapshot bg", -1)),
1746
- s("dd", null, b(At(X.value)), 1)
1891
+ s("dd", null, g($t(X.value)), 1)
1747
1892
  ])
1748
1893
  ])) : w("", !0),
1749
- ye.value ? (d(), v("div", bo, [
1750
- s("div", go, [
1894
+ ye.value ? (v(), d("div", wo, [
1895
+ s("div", ko, [
1751
1896
  t[47] || (t[47] = s("span", { class: "pptxv-measurement-label" }, "Snapshot", -1)),
1752
- s("div", yo, [
1897
+ s("div", So, [
1753
1898
  s("button", {
1754
1899
  type: "button",
1755
1900
  class: x(["pptxv-button", { "is-active": X.value === "scene" }]),
@@ -1768,10 +1913,10 @@ const Qs = ["aria-label"], Js = {
1768
1913
  ])
1769
1914
  ])
1770
1915
  ])) : w("", !0),
1771
- se.value ? (d(), v("div", xo, [
1772
- s("div", wo, [
1916
+ se.value ? (v(), d("div", Co, [
1917
+ s("div", Mo, [
1773
1918
  t[48] || (t[48] = s("span", { class: "pptxv-measurement-label" }, "Snap", -1)),
1774
- s("div", ko, [
1919
+ s("div", _o, [
1775
1920
  s("button", {
1776
1921
  type: "button",
1777
1922
  class: x(["pptxv-button", { "is-active": ot.value === "surface" }]),
@@ -1784,9 +1929,9 @@ const Qs = ["aria-label"], Js = {
1784
1929
  }, " Vertex ", 2)
1785
1930
  ])
1786
1931
  ]),
1787
- s("div", So, [
1932
+ s("div", Do, [
1788
1933
  t[49] || (t[49] = s("span", { class: "pptxv-measurement-label" }, "Axis", -1)),
1789
- s("div", Co, [
1934
+ s("div", Ro, [
1790
1935
  s("button", {
1791
1936
  type: "button",
1792
1937
  class: x(["pptxv-button", { "is-active": be.value === "free" }]),
@@ -1810,20 +1955,20 @@ const Qs = ["aria-label"], Js = {
1810
1955
  ])
1811
1956
  ])
1812
1957
  ])) : w("", !0),
1813
- se.value ? (d(), v("dl", Mo, [
1814
- (d(!0), v($, null, V(da.value, (a) => (d(), v("div", {
1958
+ se.value ? (v(), d("dl", Po, [
1959
+ (v(!0), d(E, null, V(fa.value, (a) => (v(), d("div", {
1815
1960
  key: a.label,
1816
1961
  class: "pptxv-meta-row"
1817
1962
  }, [
1818
- s("dt", null, b(a.label), 1),
1819
- s("dd", null, b(a.value), 1)
1963
+ s("dt", null, g(a.label), 1),
1964
+ s("dd", null, g(a.value), 1)
1820
1965
  ]))), 128))
1821
1966
  ])) : w("", !0),
1822
- ne.value ? (d(), v("div", _o, "Section")) : w("", !0),
1823
- ne.value ? (d(), v("div", Do, [
1824
- s("div", Ro, [
1967
+ ne.value ? (v(), d("div", To, "Section")) : w("", !0),
1968
+ ne.value ? (v(), d("div", Lo, [
1969
+ s("div", Eo, [
1825
1970
  t[50] || (t[50] = s("span", { class: "pptxv-measurement-label" }, "Mode", -1)),
1826
- s("div", Po, [
1971
+ s("div", $o, [
1827
1972
  s("button", {
1828
1973
  type: "button",
1829
1974
  class: x(["pptxv-button", { "is-active": Te.value === "single" }]),
@@ -1836,52 +1981,52 @@ const Qs = ["aria-label"], Js = {
1836
1981
  }, " Box ", 2)
1837
1982
  ])
1838
1983
  ]),
1839
- s("div", To, [
1984
+ s("div", Ao, [
1840
1985
  t[51] || (t[51] = s("span", { class: "pptxv-measurement-label" }, "Axis", -1)),
1841
- s("div", $o, [
1986
+ s("div", Io, [
1842
1987
  s("button", {
1843
1988
  type: "button",
1844
- class: x(["pptxv-button", { "is-active": $e.value === "x" }]),
1845
- onClick: t[34] || (t[34] = (a) => ze("x"))
1989
+ class: x(["pptxv-button", { "is-active": Le.value === "x" }]),
1990
+ onClick: t[34] || (t[34] = (a) => Be("x"))
1846
1991
  }, " X ", 2),
1847
1992
  s("button", {
1848
1993
  type: "button",
1849
- class: x(["pptxv-button", { "is-active": $e.value === "y" }]),
1850
- onClick: t[35] || (t[35] = (a) => ze("y"))
1994
+ class: x(["pptxv-button", { "is-active": Le.value === "y" }]),
1995
+ onClick: t[35] || (t[35] = (a) => Be("y"))
1851
1996
  }, " Y ", 2),
1852
1997
  s("button", {
1853
1998
  type: "button",
1854
- class: x(["pptxv-button", { "is-active": $e.value === "z" }]),
1855
- onClick: t[36] || (t[36] = (a) => ze("z"))
1999
+ class: x(["pptxv-button", { "is-active": Le.value === "z" }]),
2000
+ onClick: t[36] || (t[36] = (a) => Be("z"))
1856
2001
  }, " Z ", 2)
1857
2002
  ])
1858
2003
  ]),
1859
- Te.value === "single" ? (d(), v("div", Lo, [
1860
- s("div", Ao, [
2004
+ Te.value === "single" ? (v(), d("div", Fo, [
2005
+ s("div", No, [
1861
2006
  t[52] || (t[52] = s("span", { class: "pptxv-measurement-label" }, "Offset", -1)),
1862
- s("strong", Eo, b(M(Ee.value)), 1)
2007
+ s("strong", zo, g(D(Ae.value)), 1)
1863
2008
  ]),
1864
2009
  s("input", {
1865
2010
  type: "range",
1866
2011
  class: "pptxv-section-slider",
1867
- min: Le.value,
1868
- max: Ae.value,
1869
- step: pa.value,
1870
- value: Ee.value,
1871
- onInput: t[37] || (t[37] = (a) => $a(a))
1872
- }, null, 40, Io),
1873
- s("div", Fo, [
1874
- s("span", null, b(M(Le.value)), 1),
1875
- s("span", null, b(M(Ae.value)), 1)
2012
+ min: Ee.value,
2013
+ max: $e.value,
2014
+ step: ma.value,
2015
+ value: Ae.value,
2016
+ onInput: t[37] || (t[37] = (a) => Aa(a))
2017
+ }, null, 40, Bo),
2018
+ s("div", Vo, [
2019
+ s("span", null, g(D(Ee.value)), 1),
2020
+ s("span", null, g(D($e.value)), 1)
1876
2021
  ])
1877
- ])) : (d(), v("div", No, [
1878
- (d(), v($, null, V(["x", "y", "z"], (a) => s("div", {
2022
+ ])) : (v(), d("div", Go, [
2023
+ (v(), d(E, null, V(["x", "y", "z"], (a) => s("div", {
1879
2024
  key: a,
1880
2025
  class: "pptxv-measurement-group"
1881
2026
  }, [
1882
- s("div", Bo, [
1883
- s("span", zo, "Box " + b(a.toUpperCase()), 1),
1884
- s("strong", Vo, b(ke(Q.value[a])), 1)
2027
+ s("div", Oo, [
2028
+ s("span", Uo, "Box " + g(a.toUpperCase()), 1),
2029
+ s("strong", Wo, g(ke(Q.value[a])), 1)
1885
2030
  ]),
1886
2031
  s("input", {
1887
2032
  type: "range",
@@ -1890,8 +2035,8 @@ const Qs = ["aria-label"], Js = {
1890
2035
  max: F.value[a][1],
1891
2036
  step: Math.max((F.value[a][1] - F.value[a][0]) / 200, 1e-3),
1892
2037
  value: Q.value[a][0],
1893
- onInput: (o) => Pt(a, "min", o)
1894
- }, null, 40, Go),
2038
+ onInput: (l) => Pt(a, "min", l)
2039
+ }, null, 40, jo),
1895
2040
  s("input", {
1896
2041
  type: "range",
1897
2042
  class: "pptxv-section-slider",
@@ -1899,47 +2044,47 @@ const Qs = ["aria-label"], Js = {
1899
2044
  max: F.value[a][1],
1900
2045
  step: Math.max((F.value[a][1] - F.value[a][0]) / 200, 1e-3),
1901
2046
  value: Q.value[a][1],
1902
- onInput: (o) => Pt(a, "max", o)
1903
- }, null, 40, Oo),
1904
- s("div", jo, [
1905
- s("span", null, b(M(F.value[a][0])), 1),
1906
- s("span", null, b(M(F.value[a][1])), 1)
2047
+ onInput: (l) => Pt(a, "max", l)
2048
+ }, null, 40, Ho),
2049
+ s("div", Ko, [
2050
+ s("span", null, g(D(F.value[a][0])), 1),
2051
+ s("span", null, g(D(F.value[a][1])), 1)
1907
2052
  ])
1908
2053
  ])), 64))
1909
2054
  ]))
1910
2055
  ])) : w("", !0),
1911
- ne.value ? (d(), v("dl", Uo, [
1912
- (d(!0), v($, null, V(ha.value, (a) => (d(), v("div", {
2056
+ ne.value ? (v(), d("dl", Yo, [
2057
+ (v(!0), d(E, null, V(ba.value, (a) => (v(), d("div", {
1913
2058
  key: a.label,
1914
2059
  class: "pptxv-meta-row"
1915
2060
  }, [
1916
- s("dt", null, b(a.label), 1),
1917
- s("dd", null, b(a.value), 1)
2061
+ s("dt", null, g(a.label), 1),
2062
+ s("dd", null, g(a.value), 1)
1918
2063
  ]))), 128))
1919
2064
  ])) : w("", !0)
1920
2065
  ])
1921
2066
  ])
1922
2067
  ], 512)), [
1923
- [Ka, D.value]
2068
+ [Xa, P.value]
1924
2069
  ]) : w("", !0),
1925
- s("div", Wo, [
1926
- s("div", Ko, [
2070
+ s("div", Xo, [
2071
+ s("div", qo, [
1927
2072
  s("div", {
1928
2073
  ref_key: "viewerHost",
1929
- ref: y,
2074
+ ref: f,
1930
2075
  class: "pptxv-main-view"
1931
2076
  }, null, 512),
1932
- i.value.family === "model3d" ? (d(), v("button", {
2077
+ r.value.family === "model3d" ? (v(), d("button", {
1933
2078
  key: 0,
1934
2079
  type: "button",
1935
2080
  class: "pptxv-button pptxv-model-tools-toggle",
1936
- "aria-label": D.value ? "Hide model tools" : "Show model tools",
1937
- title: D.value ? "Hide model tools" : "Show model tools",
1938
- "aria-expanded": D.value,
1939
- "aria-controls": K,
1940
- onClick: t[38] || (t[38] = (a) => D.value = !D.value)
2081
+ "aria-label": P.value ? "Hide model tools" : "Show model tools",
2082
+ title: P.value ? "Hide model tools" : "Show model tools",
2083
+ "aria-expanded": P.value,
2084
+ "aria-controls": H,
2085
+ onClick: t[38] || (t[38] = (a) => P.value = !P.value)
1941
2086
  }, [
1942
- (d(), v("svg", Yo, [
2087
+ (v(), d("svg", Qo, [
1943
2088
  t[54] || (t[54] = s("rect", {
1944
2089
  x: "2.5",
1945
2090
  y: "3.5",
@@ -1949,81 +2094,81 @@ const Qs = ["aria-label"], Js = {
1949
2094
  }, null, -1)),
1950
2095
  t[55] || (t[55] = s("path", { d: "M7.5 3.5v13" }, null, -1)),
1951
2096
  s("path", {
1952
- d: D.value ? "m12.5 7-3 3 3 3" : "m10.5 7 3 3-3 3"
1953
- }, null, 8, Xo)
2097
+ d: P.value ? "m12.5 7-3 3 3 3" : "m10.5 7 3 3-3 3"
2098
+ }, null, 8, Jo)
1954
2099
  ]))
1955
- ], 8, Ho)) : w("", !0),
1956
- G.value ? (d(), v("div", qo, [
2100
+ ], 8, Zo)) : w("", !0),
2101
+ G.value ? (v(), d("div", ei, [
1957
2102
  s("form", {
1958
2103
  class: "pptxv-password-form",
1959
- "aria-labelledby": _ + "-title",
1960
- onSubmit: je(Qt, ["prevent"]),
1961
- onKeydown: Ha(je(He, ["stop"]), ["esc"])
2104
+ "aria-labelledby": R + "-title",
2105
+ onSubmit: Ue(ta, ["prevent"]),
2106
+ onKeydown: qa(Ue(Ke, ["stop"]), ["esc"])
1962
2107
  }, [
1963
2108
  s("h2", {
1964
- id: _ + "-title"
1965
- }, "此文档已加密", 8, Qo),
2109
+ id: R + "-title"
2110
+ }, "此文档已加密", 8, ai),
1966
2111
  t[56] || (t[56] = s("p", null, "请输入密码以打开文档。", -1)),
1967
- G.value.reason === "password_invalid" ? (d(), v("p", {
2112
+ G.value.reason === "password_invalid" ? (v(), d("p", {
1968
2113
  key: 0,
1969
- id: _ + "-error",
2114
+ id: R + "-error",
1970
2115
  class: "pptxv-password-error",
1971
2116
  role: "alert"
1972
- }, "密码不正确,请重试。", 8, Jo)) : w("", !0),
1973
- s("label", { for: _ }, "文档密码"),
2117
+ }, "密码不正确,请重试。", 8, si)) : w("", !0),
2118
+ s("label", { for: R }, "文档密码"),
1974
2119
  Oe(s("input", {
1975
- id: _,
2120
+ id: R,
1976
2121
  ref_key: "passwordField",
1977
2122
  ref: q,
1978
- "onUpdate:modelValue": t[39] || (t[39] = (a) => A.value = a),
2123
+ "onUpdate:modelValue": t[39] || (t[39] = (a) => $.value = a),
1979
2124
  type: "password",
1980
2125
  autocomplete: "off",
1981
2126
  "aria-invalid": G.value.reason === "password_invalid",
1982
- "aria-describedby": G.value.reason === "password_invalid" ? _ + "-error" : void 0
1983
- }, null, 8, el), [
1984
- [Kt, A.value]
2127
+ "aria-describedby": G.value.reason === "password_invalid" ? R + "-error" : void 0
2128
+ }, null, 8, ni), [
2129
+ [Ht, $.value]
1985
2130
  ]),
1986
- s("div", tl, [
2131
+ s("div", oi, [
1987
2132
  s("button", {
1988
2133
  type: "button",
1989
2134
  class: "pptxv-button",
1990
- onClick: He
2135
+ onClick: Ke
1991
2136
  }, "取消"),
1992
2137
  s("button", {
1993
2138
  type: "submit",
1994
2139
  class: "pptxv-button",
1995
- disabled: !A.value.length
1996
- }, "打开文档", 8, al)
2140
+ disabled: !$.value.length
2141
+ }, "打开文档", 8, ii)
1997
2142
  ])
1998
- ], 40, Zo)
1999
- ])) : C.value ? (d(), v("div", sl, "Loading preview...")) : Ye.value ? (d(), v("div", nl, [
2000
- H.value ? (d(), v("div", ol, [
2143
+ ], 40, ti)
2144
+ ])) : _.value ? (v(), d("div", li, "Loading preview...")) : Ye.value ? (v(), d("div", ri, [
2145
+ K.value ? (v(), d("div", ui, [
2001
2146
  t[57] || (t[57] = s("p", null, "已取消打开文档。", -1)),
2002
2147
  s("button", {
2003
2148
  type: "button",
2004
2149
  class: "pptxv-button",
2005
- onClick: ie
2150
+ onClick: le
2006
2151
  }, "重新输入密码")
2007
- ])) : (d(), v($, { key: 1 }, [
2008
- Ya(b(Ye.value), 1)
2152
+ ])) : (v(), d(E, { key: 1 }, [
2153
+ Za(g(Ye.value), 1)
2009
2154
  ], 64))
2010
2155
  ])) : w("", !0)
2011
2156
  ])
2012
2157
  ])
2013
2158
  ])
2014
- ], 40, Qs));
2159
+ ], 40, an));
2015
2160
  }
2016
- }), Yt = new URL("converter-core.wasm", import.meta.url).href, Xt = new URL("converter-image.wasm", import.meta.url).href;
2017
- function xl(f, l) {
2018
- const u = qa({
2019
- ...l,
2020
- converter: l.converter ?? ks({ wasm: Yt, imageWasm: Xt }),
2021
- panoramaProcessor: l.panoramaProcessor ?? ws({ wasm: Yt, imageWasm: Xt })
2022
- }), n = Za({ render: () => Qa(ll, u) });
2023
- return n.mount(f), {
2161
+ }), Xt = new URL("converter-core.wasm", import.meta.url).href, qt = new URL("converter-image.wasm", import.meta.url).href;
2162
+ function Ci(h, o) {
2163
+ const i = Ja({
2164
+ ...o,
2165
+ converter: o.converter ?? Cs({ wasm: Xt, imageWasm: qt }),
2166
+ panoramaProcessor: o.panoramaProcessor ?? Ss({ wasm: Xt, imageWasm: qt })
2167
+ }), n = es({ render: () => ts(ci, i) });
2168
+ return n.mount(h), {
2024
2169
  /** Switch sources using the shared preview lifecycle and cancellation. */
2025
- update(m) {
2026
- Object.assign(u, m);
2170
+ update(p) {
2171
+ Object.assign(i, p);
2027
2172
  },
2028
2173
  destroy() {
2029
2174
  n.unmount();
@@ -2031,5 +2176,5 @@ function xl(f, l) {
2031
2176
  };
2032
2177
  }
2033
2178
  export {
2034
- xl as createPreview
2179
+ Ci as createPreview
2035
2180
  };