@tenancy.nz/chat-ui 0.1.60 → 0.1.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +572 -570
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -3,8 +3,8 @@ var z0 = (n) => {
|
|
|
3
3
|
throw TypeError(n);
|
|
4
4
|
};
|
|
5
5
|
var f2 = (n, e, t) => e in n ? p2(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
6
|
-
var Se = (n, e, t) => f2(n, typeof e != "symbol" ? e + "" : e, t),
|
|
7
|
-
var d = (n, e, t) => (
|
|
6
|
+
var Se = (n, e, t) => f2(n, typeof e != "symbol" ? e + "" : e, t), Qg = (n, e, t) => e.has(n) || z0("Cannot " + t);
|
|
7
|
+
var d = (n, e, t) => (Qg(n, e, "read from private field"), t ? t.call(n) : e.get(n)), S = (n, e, t) => e.has(n) ? z0("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), v = (n, e, t, r) => (Qg(n, e, "write to private field"), r ? r.call(n, t) : e.set(n, t), t), I = (n, e, t) => (Qg(n, e, "access private method"), t);
|
|
8
8
|
var Jn = (n, e, t, r) => ({
|
|
9
9
|
set _(i) {
|
|
10
10
|
v(n, e, i, t);
|
|
@@ -14,15 +14,15 @@ var Jn = (n, e, t, r) => ({
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
import * as nt from "react";
|
|
17
|
-
import xe, { useRef as Ee, useMemo as Ks, useLayoutEffect as g2, useEffect as ct, createContext as m2, useSyncExternalStore as Zp, useState as we, useCallback as lt, useId as A2, useImperativeHandle as Z1, useContext as
|
|
18
|
-
import * as
|
|
19
|
-
import Yp, { createPortal as
|
|
17
|
+
import xe, { useRef as Ee, useMemo as Ks, useLayoutEffect as g2, useEffect as ct, createContext as m2, useSyncExternalStore as Zp, useState as we, useCallback as lt, useId as A2, useImperativeHandle as Z1, useContext as wb, isValidElement as Y1, cloneElement as F0 } from "react";
|
|
18
|
+
import * as Vg from "react-dom";
|
|
19
|
+
import Yp, { createPortal as wg } from "react-dom";
|
|
20
20
|
const AH = '.thread-item:hover .thread-actions,.thread-item:focus-within .thread-actions{opacity:1;pointer-events:auto}@media (max-width: 640px){.composer-wrap{left:0;right:0;width:100%;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:calc(16px + env(safe-area-inset-bottom));z-index:2000}.composer-field{padding:0;width:100%;display:grid;grid-template-columns:1fr auto;align-items:stretch;gap:0}.composer-field textarea{min-width:0;width:100%}.composer-send{flex:0 0 auto}}:root{--bg: #f7f9fc;--panel: #ffffff;--text: #0e0044;--muted: #64748b;--accent: #1a73e8;--accent-2: #1a73e8;--danger: #e11d48;--border: #e5e7eb;--pdf-citations-width: 260px;--brand-blue: #0445b7;--brand-pink: #db2c73;--brand-green: #0cc1a3;--assistant-measure: 68ch}*{box-sizing:border-box}html,body{font-family:Montserrat,Inter,ui-sans-serif,system-ui;overflow-x:hidden;width:100%;margin:0;color:#0e0044}.app{display:grid;grid-template-rows:auto 1fr auto;min-height:100%}.app,.chat-container{overflow-x:hidden}.app-header{padding:16px 20px;border-bottom:1px solid var(--border);background:var(--panel);position:sticky;top:0}.app-header h1{margin:0;font-size:18px;letter-spacing:.2px;color:#111827}.app-header .subtitle{margin:4px 0 0;color:var(--muted);font-size:12px}.app-main{display:grid;grid-template-columns:1fr;padding:0}.app-footer{padding:10px 16px;color:var(--muted);border-top:1px solid var(--border);font-size:12px;background:var(--panel)}.chat-container{position:relative;width:100%;max-width:none;background:var(--panel);border-top:1px solid var(--border);border-bottom:1px solid var(--border);border-top-left-radius:24px;overflow:hidden;box-shadow:0 0 11.21px #0003}.chat-layout{display:grid;grid-template-columns:240px 1fr;height:calc(100vh - 65px);min-height:calc(100vh - 65px)}.sidebar{border-right:1px solid #c4c4c4;background:#fff;display:flex;flex-direction:column;position:relative;border-top-left-radius:24px;overflow:hidden;height:100%;isolation:isolate}.sidebar-header{display:flex;flex-direction:column;gap:16px;padding:16px 8px;position:relative}.sidebar-heading-row{display:flex;align-items:center;justify-content:space-between;width:100%}.sidebar-logo{height:28px;width:auto;display:block;margin-top:4px;margin-left:4px}.sidebar-new{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(180deg,#0445b7,#0cc1a3);border:0;color:#fff;width:32px;height:32px;display:inline-grid;place-items:center;border-radius:9999px;cursor:pointer;font-size:18px;font-weight:700;box-shadow:0 0 #0445b738,0 6px 14px #0445b747;transition:transform .12s ease,box-shadow .12s ease,filter .12s ease}.sidebar-new:not(.tile):hover{transform:translateY(-1px);box-shadow:0 0 0 6px #0445b71f,0 8px 16px #0445b757;filter:saturate(110%)}.sidebar-new:not(.tile):active{transform:translateY(0);box-shadow:0 4px 10px #0445b738}.sidebar-new:focus-visible{outline:2px solid #7fb3ff;outline-offset:2px}.sidebar-new.tile{width:100%;height:48px;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-radius:4px;border:1px solid transparent;background-image:linear-gradient(#fff,#fff),linear-gradient(135deg,#0cc1a3,#0445b7);background-origin:border-box;background-clip:padding-box,border-box;box-shadow:none;box-sizing:border-box;margin-top:4px;margin-bottom:8px;transition:box-shadow .12s ease}.sidebar-new-left{display:flex;align-items:center;gap:10px}.sidebar-new.tile:hover{box-shadow:0 4px 14px #0445b724;filter:none}.sidebar-new.tile:active{box-shadow:0 2px 8px #0445b71a}.sidebar-new.tile .tile-icon{width:24px;height:24px;display:inline-grid;place-items:center;border-radius:32px;background:linear-gradient(56.5deg,#0cc1a3 10.2%,#0445b7 89.8%);color:#fff;padding:4px;flex-shrink:0}.sidebar-new.tile .tile-label{font-weight:700;font-size:16px;color:#0e0044;font-family:Montserrat,sans-serif}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.thread-list{overflow-y:auto;overflow-x:hidden;display:grid;gap:0;padding:0 0 80px;box-sizing:border-box;scrollbar-gutter:stable both-edges;flex:1;min-height:0}.thread-group{display:grid;gap:2px;padding:0 8px 100px}.thread-group-title{color:#0e0044;font-size:12.8px;font-weight:600;padding:8px 0 12px 12px;text-transform:none;letter-spacing:normal;font-family:Montserrat,sans-serif}.thread-group-title-mini{display:none}.thread-empty{color:var(--muted);font-size:12px;padding:12px 8px}.sidebar-loading{padding:8px 6px;display:grid;gap:8px;margin-top:20px}.sidebar-error{padding:8px;border:1px solid #fecaca;background:#fff1f2;color:#7f1d1d;border-radius:8px;display:grid;gap:8px}.sidebar-error .sidebar-error-text{font-size:12px}.thread-item{display:flex;align-items:center;gap:0;padding:0 0 0 4px;border:none;background:#fff;color:var(--text);text-align:left;cursor:pointer;border-radius:8px;width:100%;transition:background .15s ease,box-shadow .15s ease;overflow:hidden;font-family:Montserrat,sans-serif;height:52px;box-sizing:border-box}.thread-item:hover{background:#e7f9f6}.thread-item:active{background:#cef3ed}.thread-item:not(.active):focus-within{outline:2px solid #6f2c91;outline-offset:-2px;box-shadow:0 0 6px #1f1c4f}.thread-item .thread-main:focus-visible{outline:none}.thread-item.active{background:#e7f9f6;padding-left:0;border-left:4px solid #0cc1a3;border-radius:8px}.thread-item .thread-main{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:transparent;display:flex;align-items:flex-start;gap:8px;padding:8px 12px;flex:1 1 auto;text-align:left;color:inherit;position:relative;z-index:1;overflow:hidden;height:100%;width:100%;box-sizing:border-box;cursor:pointer}.thread-avatar{width:20px;height:20px;border-radius:128px;border:1px solid transparent;background-image:linear-gradient(#fff,#fff),linear-gradient(135deg,#0cc1a3,#0445b7);background-origin:border-box;background-clip:content-box,border-box;overflow:hidden;flex-shrink:0;display:flex;align-items:center;justify-content:center;margin-top:4px}.thread-avatar img{width:144.19%;height:100%;object-fit:cover;margin-left:-28.21%}.thread-text{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.thread-title{font-size:12px;font-weight:500;color:#0e0044;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:20px;font-family:Montserrat,sans-serif}.thread-date{font-size:10px;font-weight:500;color:#6e668f;display:flex;align-items:center;gap:4px;line-height:12px;font-family:Montserrat,sans-serif}.thread-date-dot{width:2px;height:2px;border-radius:2px;background:#6e668f;flex-shrink:0;display:inline-block}.thread-item .thread-actions{margin-left:auto;display:grid;align-items:center;justify-items:center;width:28px;height:28px;z-index:2;position:relative;opacity:0;pointer-events:none;transition:opacity .12s ease;margin-right:8px}.kebab-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;width:28px;height:28px;display:inline-grid;place-items:center;border-radius:8px;cursor:pointer;color:#64748b}.kebab-btn:hover{background:#f1f5f9;outline:1px solid #e5e7eb}.kebab-btn:active{background:#e5e7eb}.kebab-btn:focus-visible{outline:2px solid #7fb3ff;outline-offset:2px}.thread-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:160px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 12px 24px #0000001f;padding:6px;z-index:50;max-width:180px}.thread-menu .menu-item{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;width:100%;text-align:left;padding:8px 10px;border-radius:8px;color:#0e0044;font-size:13px;cursor:pointer}.thread-menu .menu-item:hover{background:#f3f4f6}.thread-menu .menu-item.danger{color:#b91c1c}.thread-menu .menu-item.danger:hover{background:#fee2e2}.messages-main{display:flex;flex-direction:column;overflow-y:auto;position:relative;height:100%;background:linear-gradient(46.97deg,#0cc1a31a 10.218%,#0445b71a 89.775%);background-attachment:fixed}.messages{flex:1;overflow:visible;position:relative;display:flex;flex-direction:column;gap:26px;background:transparent;padding:28px 40px;margin:0 auto;width:100%;max-width:1900px;min-height:calc(100vh - 70px)}.messages-loading{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(2px) saturate(110%);backdrop-filter:blur(2px) saturate(110%);z-index:5;min-height:100vh}.messages-loading .loading-inner{display:inline-flex;align-items:center;gap:16px;padding:8px 16px;border-radius:32px;border:none;background:#fff;box-shadow:0 1px 4px #00000014;color:#0e0044;font-size:15px;font-family:Montserrat,sans-serif;font-weight:400}.messages-error{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#ffffffd9;-webkit-backdrop-filter:blur(2px) saturate(110%);backdrop-filter:blur(2px) saturate(110%);z-index:6}.messages-error .messages-error-card{display:grid;gap:10px;max-width:520px;width:calc(100% - 40px);padding:14px 16px;border-radius:12px;border:1px solid #fee2e2;background:#fff1f2;color:#7f1d1d;box-shadow:0 10px 24px #00000014;text-align:center}.messages-error .messages-error-text{font-size:14px}.messages-error .messages-error-actions{display:inline-flex;gap:8px;justify-content:center}.message{display:flex;align-items:flex-start;animation:messageSlideIn .3s ease-out;flex-wrap:wrap}.messages>:last-child:not(.empty-hero){padding-bottom:15px}.message.user{flex-direction:row-reverse}.message.assistant{display:grid;grid-template-columns:36px 1fr;column-gap:16px;align-items:start}.msg-content{margin-bottom:30px;background:#fff;border-radius:0 10px 10px;overflow:hidden;box-shadow:0 1px 3px #0445b70f,0 4px 16px #0445b70a}.message.assistant>.msg-content{grid-column:2;margin-left:0;width:min(100%,74ch);justify-self:start}.message.assistant>.ai-avatar{grid-column:1}@keyframes messageSlideIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 1100px) and (min-width: 641px){.message.assistant>.ai-avatar{flex:0 0 36px}.message.assistant>.bubble-plain{flex:1 1 0;min-width:0;max-width:calc(100% - 48px);overflow-wrap:anywhere;word-break:break-word}.message.user>.user-avatar,.message.user>.user-avatar-img{flex:0 0 36px}.message.user>.bubble{flex:1 1 auto;min-width:0;max-width:calc(100% - 48px)}}@media (max-width: 640px){.messages{height:calc(100dvh - 96px);padding:16px 12px 160px;scrollbar-gutter:stable both-edges;overscroll-behavior:contain}.message{gap:8px}.message.assistant{display:grid;grid-template-columns:1fr;row-gap:8px}.message.assistant>.ai-avatar{grid-column:1;grid-row:1;justify-self:start}.message.assistant>.msg-content{grid-column:1;grid-row:2;margin-left:0;width:100%;max-width:100%!important;justify-self:stretch}.message.assistant .sources-hud{margin-top:8px}.message.user>.user-avatar,.message.user>.user-avatar-img{flex:0 0 36px}.message.user>.bubble{flex:1 1 auto;min-width:0;max-width:calc(100% - 44px)!important}.message.assistant .msg-content{margin-left:0;max-width:100%}.sources-hud{margin-top:8px}}.ai-avatar{flex-shrink:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:128px;background:#fff;border:1px solid #0cc1a3;box-shadow:none;overflow:hidden}.ai-avatar svg{width:16px;height:16px}.user-avatar,.user-avatar-img{flex-shrink:0;width:36px;height:36px;border-radius:50%;background:#fff;border:1px solid #e5e7eb;box-shadow:0 1px 3px #0000000f}.user-avatar{display:grid;place-items:center;color:#0e0044;font-weight:600;font-size:13px;background:transparent}.user-avatar-img{object-fit:cover}.bubble{max-width:80%;padding:12px 14px;border-radius:12px;line-height:1.6;white-space:normal;word-wrap:break-word;font-size:14px;color:#1f2937;font-family:Montserrat,Inter,ui-sans-serif,system-ui}.message.user .bubble{background:#fff;color:#0e0044;border:none;box-shadow:none;border-radius:8px 0 8px 8px}.message.assistant .bubble{background:#fff;border:none;color:#0b1324;border-radius:0 8px 8px}.message.assistant .bubble-plain{background:transparent;border:none;border-radius:0;border-bottom:1px solid #e0e0e0;padding:16px;max-width:85ch;width:100%;font-size:14px;color:#0e0044;font-family:Montserrat,Inter,ui-sans-serif,system-ui;line-height:22px;letter-spacing:-.006em;overflow-wrap:anywhere;word-break:break-word;min-width:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.message.assistant .bubble-plain h1,.message.assistant .bubble-plain h2,.message.assistant .bubble-plain h3,.message.assistant .bubble-plain h4,.message.assistant .bubble-plain h5,.message.assistant .bubble-plain h6{color:#0e0044;font-weight:600;font-family:Montserrat,sans-serif;margin:16px 0 8px;line-height:1.35;letter-spacing:-.01em}.message.assistant .bubble-plain h1:first-child,.message.assistant .bubble-plain h2:first-child,.message.assistant .bubble-plain h3:first-child{margin-top:0}.bubble.bubble-plain>h1:first-child,.bubble.bubble-plain>h2:first-child,.bubble.bubble-plain>h3:first-child{margin-bottom:12px}.message.assistant .bubble-plain p{margin:0 0 16px;color:#0e0044}.message.assistant .bubble-plain strong{font-family:Montserrat,sans-serif;font-weight:600;color:#0e0044}.md-section{border:none;border-radius:0;border-bottom:1px solid #e0e0e0;padding:0;margin-bottom:0;background:#fff;transition:background .12s ease}.md-section:first-of-type{margin-top:16px;border-top:1px solid #e0e0e0}.md-section:hover{background:#fafafa}.md-section:active{background:#eee}.md-section:focus-within:not(:has(.md-section-copy:focus)){background:#f5f5f5;outline:1px solid #6f2c91;outline-offset:-1px;box-shadow:0 0 6px #1f1c4f}.md-section .md-section{border:none;padding:0;margin-bottom:0;background:transparent}.md-collapse-header{display:flex;align-items:center;justify-content:space-between;cursor:pointer;-webkit-user-select:none;user-select:none;gap:10px;padding:8px 0;margin-bottom:0;height:48px;box-sizing:border-box;transition:all .1s linear}.md-collapse-header:hover{padding-left:4px;padding-right:4px}.md-collapse-header h3.md-h3{margin:0!important;flex:1;font-size:14px;font-weight:600;color:#0e0044;line-height:18px}.md-section-copy{flex-shrink:0;display:flex;align-items:center;justify-content:center;background:none;border:none;padding:8px;cursor:pointer;color:#0e0044;transition:background .12s ease,color .12s ease;border-radius:4px;position:relative}.md-section-copy:hover{background:#eee}.md-section-copy:after{content:"Copy";position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%) translateY(4px);background:#0e0044;color:#fff;font-size:14px;font-weight:400;font-family:Montserrat,sans-serif;line-height:normal;padding:12px;border-radius:5px;white-space:nowrap;text-align:center;pointer-events:none;opacity:0;transition:opacity .15s ease,transform .15s ease;z-index:10000}.md-section-copy:before{content:"";position:absolute;bottom:calc(100% + 2px);left:50%;transform:translate(-50%);border:6px solid transparent;border-top-color:#0e0044;pointer-events:none;opacity:0;transition:opacity .15s ease;z-index:10001}.md-section-copy:hover:after{opacity:1;transform:translate(-50%) translateY(0)}.md-section-copy:hover:before{opacity:1}.md-section-content{padding:0 0 16px;font-size:14px;line-height:22px;color:#0e0044}.md-collapse-chevron{flex-shrink:0;color:#0e0044;transition:transform .2s ease;margin-right:12px}.md-collapse-chevron.expanded{transform:rotate(180deg)}.md-collapse-header--loading{cursor:default;opacity:.75}.md-collapse-header--loading:hover h3.md-h3{color:inherit}@keyframes md-section-spin{to{transform:rotate(360deg)}}.md-section-spinner{flex-shrink:0;display:block;width:14px;height:14px;border-radius:50%;border:2px solid rgba(12,193,163,.25);border-top-color:#0cc1a3;animation:md-section-spin .7s linear infinite}.bubble p{margin:0 0 8px}.bubble>*:first-child{margin-top:0}.bubble>*:last-child{margin-bottom:0}.bubble ul,.bubble ol{margin:8px 0 8px 18px;padding:0}.bubble li{margin:0}.bubble h1,.bubble h2,.bubble h3,.bubble h4,.bubble h5,.bubble h6{margin:10px 0 6px;line-height:1.3}.bubble pre{margin:8px 0;padding:10px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;overflow:auto}.bubble code:not(pre code){background:#f3f4f6;padding:1px 4px;border-radius:4px}.bubble table{border-collapse:collapse;margin:8px 0}.bubble th,.bubble td{border:1px solid #e5e7eb;padding:6px 8px}.message.assistant .bubble-plain a{color:var(--accent);text-decoration:none}.message.assistant .bubble-plain a:hover{text-decoration:underline;text-underline-offset:2px}.message.assistant .bubble-plain ul,.message.assistant .bubble-plain ol{margin:0 0 8px 21px;padding:0;list-style:disc}.message.assistant .bubble-plain li::marker{color:#0e0044;font-size:8px}.message.assistant .bubble-plain li+li{margin-top:4px}.message.assistant .bubble-plain ul+p{margin:0 0 8px}.message.assistant .bubble-plain blockquote{margin:16px 0;padding:16px 16px 16px 32px;border-left:4px solid #0cc1a3;background:#f5fafc;color:#0e0044;border-radius:4px;font-size:14px;line-height:22px;font-family:Montserrat,sans-serif}.message.assistant .bubble-plain blockquote p{margin:0}.message.assistant .bubble-plain blockquote strong{font-weight:600}.message.assistant .bubble-plain h1{font-size:17px}.message.assistant .bubble-plain h2{font-size:16px;margin-bottom:16px}.message.assistant .bubble-plain h3{font-size:14px;margin-bottom:8px}.message.assistant .bubble-plain h4,.message.assistant .bubble-plain h5,.message.assistant .bubble-plain h6{font-size:14px}.message.assistant .bubble-plain pre{margin:12px 0;padding:12px;background:#0b132405;border:1px solid #e5e7eb;border-radius:8px;overflow:auto;-webkit-overflow-scrolling:touch}.message.assistant .bubble-plain code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:12.5px}.message.assistant .bubble-plain table{width:100%;border-collapse:collapse;margin:12px 0}.message.assistant .bubble-plain th{background:#f3f4f6;font-weight:600}.message.assistant .bubble-plain th,.message.assistant .bubble-plain td{border:1px solid #e5e7eb;padding:6px 8px}.message.assistant .bubble-plain tr:nth-child(2n) td{background:#fafafa}.message.assistant .bubble-plain img{max-width:100%;height:auto;border-radius:6px}.message.assistant .bubble-plain hr{border:0;border-top:1px solid #e5e7eb;margin:14px 0}.avatar{width:28px;height:28px;border-radius:9999px;background:transparent;border:0;display:grid;place-items:center;color:var(--accent);font-size:14px;margin-top:3px}.avatar-star{transform:rotate(12deg)}.bubble-pending{opacity:.8;font-style:italic}.msg-toolbar{display:flex;align-items:center;gap:12px;margin-left:40px}.msg-divider{height:1px;background:#e5e7eb;flex:1}.btn-copy{background:transparent;border:1px solid var(--border);color:var(--muted);border-radius:8px;padding:4px 8px;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}.btn-copy:hover{color:#111827;border-color:#cfd8e3}.sources-hud{border:0;background:transparent;padding:0;border-radius:0;width:100%;box-shadow:none;margin-top:8px}.sources-copy{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0;padding:15px 16px;gap:8px}.message.assistant .sources-acc-list{width:100%;max-width:100%;flex-basis:100%;margin-top:10px}.btn-copy.btn-copy-inline svg{color:currentColor;display:block}.sources-actions{display:inline-flex;align-items:center;gap:24px;margin-left:auto}.sources-actions .sep{display:none}.sources-copy .link-btn,.sources-copy .btn-copy-inline{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;padding:4px 6px;margin:-4px -6px;color:#0e0044;font-family:Montserrat,Inter,ui-sans-serif,system-ui,sans-serif;font-size:12px;font-weight:700;line-height:18px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;border-radius:4px}.sources-copy .link-btn.muted{color:#475569}.sources-copy .link-btn:hover,.sources-copy .btn-copy-inline:hover{text-decoration:none;background:#0e00440d}.link-btn .icon-thumb path{stroke:currentColor;stroke-width:1.8;fill:transparent}.link-btn[aria-pressed=true] .icon-thumb path{fill:currentColor}.rating-inline{display:inline-flex;align-items:center;gap:10px;margin-left:auto;flex-wrap:wrap}.rating-modern .rating-pill{display:inline-flex;align-items:center;background:transparent;border:1px solid rgba(14,0,68,.1);-webkit-backdrop-filter:none;backdrop-filter:none;border-radius:9999px;padding:4px;box-shadow:none;gap:4px;overflow:hidden}.rating-modern .pill-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:#0e0044;display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:4px 8px;border-radius:9999px;cursor:pointer;transition:background .16s ease,color .16s ease,transform .12s ease,box-shadow .16s ease;box-shadow:0 1px 2px #0000000d}.rating-modern .pill-btn .label{color:#334155}.rating-modern .pill-btn.thumbs-up{--pill-bg: #f4fffb;--pill-border: #98f2d7;--pill-text: #0f766e}.rating-modern .pill-btn.thumbs-down{--pill-bg: #fff9f4;--pill-border: #ffd9b5;--pill-text: #a45a07}.rating-modern .pill-btn:hover{background:#0e004408;box-shadow:none;transform:none}.rating-modern .pill-btn:hover svg,.rating-modern .pill-btn:hover .label{color:#0e0044}.rating-modern .pill-btn.selected,.rating-modern .pill-btn[aria-pressed=true]{background:#0e0044}.rating-modern .pill-btn.selected svg,.rating-modern .pill-btn[aria-pressed=true] svg,.rating-modern .pill-btn.selected .label,.rating-modern .pill-btn[aria-pressed=true] .label{color:#fff;font-weight:700}.rating-modern .pill-btn:focus-visible{outline:2px solid #7fb3ff;outline-offset:2px}.rating-modern .pill-btn+.pill-btn{position:relative}.message.assistant .bubble-plain .md-ul{list-style:disc;display:grid;line-height:22px;gap:0;margin-left:21px;padding-left:0}.message.assistant .bubble-plain .md-li{display:list-item}.message.assistant .bubble-plain .md-li-bullet{display:none}.message.assistant .bubble-plain .md-li:last-child{margin-bottom:0}.message.assistant .bubble-plain .md-ul .md-ul{margin-top:4px;margin-bottom:0;gap:0;margin-left:21px;list-style:disc}.message.assistant .bubble-plain .md-li-content{font-size:14px;line-height:22px}.message.assistant .bubble-plain .md-li-content p{margin:0}.message.assistant .bubble-plain .md-link{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:500;font-family:Montserrat,sans-serif;color:#0e0044;text-decoration:none;border-radius:4px;padding:1px 8px;transition:background .16s ease,color .16s ease;background:#e7f9f6}.message.assistant .bubble-plain .md-link:hover,.message.assistant .bubble-plain .md-link:focus-visible{background:#e7f9f6b3;color:#0e0044;outline:none}.message.assistant .bubble-plain .md-link .md-link-text{line-height:1.35}.message.assistant .bubble-plain .md-link .md-link-icon{display:inline-flex;color:currentColor;opacity:.9}.message.assistant .bubble-plain .citation-link{color:#0e0044;background:#e7f9f6;border-radius:4px;padding:2px 8px;font-size:12px;font-weight:500;font-family:Montserrat,sans-serif;line-height:18px;text-decoration:none;border:1px solid transparent;transition:background .12s ease,border-color .12s ease,box-shadow .12s ease}.message.assistant .bubble-plain .citation-link:hover{background:#cef3ed}.message.assistant .bubble-plain .citation-link:active{background:#b6ece3}.message.assistant .bubble-plain .citation-link:focus-visible{background:#cef3ed;border-color:#6f2c91;box-shadow:0 0 6px #1f1c4f;outline:none}.citation-link+.citation-link{margin-left:8px}.rating-modern .pill-btn+.pill-btn:before{content:"";position:absolute;left:-2px;top:50%;transform:translateY(-50%);width:1px;height:18px;background:linear-gradient(180deg,#0e00440f,#0e00441f)}.rating-inline .rating-prompt{color:#6b7280;font-size:10px;white-space:nowrap;font-style:italic}.rating-inline .rating-actions{display:inline-flex;align-items:center;gap:8px}.rating-inline .rating-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid transparent;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(180deg,#e5e7eb,#e5e7eb) border-box;color:#0e0044;padding:6px 10px;border-radius:9999px;display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:1;cursor:pointer;transition:transform .14s ease,box-shadow .16s ease,filter .14s ease,background .16s ease;box-shadow:0 1px 2px #0000000d}.rating-inline .rating-btn:hover{background:linear-gradient(#fff,#f9fafb) padding-box,linear-gradient(180deg,#e6eefc,#e7f7f7) border-box;transform:translateY(-1px) scale(1.01);box-shadow:0 6px 18px #0e00441a}.rating-inline .rating-btn:active{transform:translateY(0);box-shadow:0 3px 10px #0e00441a}.rating-inline .rating-btn:focus-visible{outline:2px solid #7fb3ff;outline-offset:2px}.rating-inline .rating-btn:hover svg,.rating-inline .rating-btn:hover span{color:var(--brand-blue);filter:saturate(110%)}.rating-inline .rating-btn.thumbs-up{background:linear-gradient(#f4fffb,#f4fffb) padding-box,linear-gradient(180deg,#c7f9e9,#98f2d7) border-box;color:#0f766e}.rating-inline .rating-btn.thumbs-up:hover{background:linear-gradient(#f9fffd,#fff) padding-box,linear-gradient(180deg,#bdf6e3,#90ecd2) border-box}.rating-inline .rating-btn.thumbs-down{background:linear-gradient(#fff9f4,#fff9f4) padding-box,linear-gradient(180deg,#fdecc8,#ffd9b5) border-box;color:#a45a07}.rating-inline .rating-btn.thumbs-down:hover{background:linear-gradient(#fffdf8,#fff) padding-box,linear-gradient(180deg,#fde2a9,#ffcea1) border-box}.rating-inline .rating-btn svg{transition:transform .16s ease,color .16s ease,opacity .16s ease}.rating-inline .rating-btn.thumbs-up svg,.rating-inline .rating-btn.thumbs-up span{color:#0f766e}.rating-inline .rating-btn.thumbs-down svg,.rating-inline .rating-btn.thumbs-down span{color:#b45309}.rating-inline .rating-btn.thumbs-up,.rating-inline .rating-btn.thumbs-down{color:inherit;border-color:inherit}@media (max-width: 640px){.rating-inline{width:100%;margin-left:0;gap:8px}.rating-inline .rating-prompt{flex:1 1 auto;white-space:normal}}.msg-subdivider{height:1px;background:#f3f3f3;margin:8px 0}.sources-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:6px}.sources-title{font-size:11.5px;color:#0e0044;margin:0 0 8px;letter-spacing:.02em;text-transform:none;font-weight:800}.sources-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}.source-item{display:flex;align-items:center;gap:6px}.sources-footnote{font-size:10px;text-align:right;margin-top:6px;font-style:italic;color:#6b7280}.source-link{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(14,0,68,.08);background:transparent;border-radius:10px;padding:8px 12px;font-size:11px;color:#0e0044;cursor:pointer;min-width:200px;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:border-color .12s ease,background .12s ease,color .12s ease;box-shadow:none}.source-link:hover{border-color:#0e004429;background:#0e004408}.source-icon{color:#0e0044}.source-rank{font-weight:600;color:var(--accent)}.source-name{font-weight:500;color:#0e0044;overflow:hidden;text-overflow:ellipsis}.source-page{color:#0e0044}.source-score{margin-left:auto;font-variant-numeric:tabular-nums;color:#0e0044}.source-open{text-decoration:none;font-size:10px}.btn-copy-inline{border:0;background:transparent;padding:0;color:#1a73e8;display:inline-flex;align-items:center;gap:6px;font-size:12px;margin-top:4px}.btn-copy-inline:hover{text-decoration:underline}.message-divider{height:1px;background:#f3f3f3;margin:10px 0 2px 40px}.message.user{align-items:center;gap:8px}.user-bubble{background:#fff;border:none;color:#0e0044;box-shadow:none;border-radius:8px 0 8px 8px}.user-avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(#e2e8f0,#e2e8f0) padding-box,linear-gradient(180deg,#0445b7,#0cc1a3) border-box;color:#274a9a;display:grid;place-items:center;font-size:13px;font-weight:600;font-family:Montserrat,Inter,ui-sans-serif,system-ui;border:1px solid transparent;flex-shrink:0}.user-avatar-img{width:36px;height:36px;border-radius:50%;object-fit:cover;display:inline-block;flex-shrink:0}.modal{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;padding:2vh 2vw;z-index:1000;visibility:hidden;opacity:0;pointer-events:none;background:#000000e6;transition:opacity .12s ease-in-out,visibility .12s ease-in-out}.modal.modal-fullscreen{padding:0}.modal.modal-fullscreen .modal-content{transition:all .2s linear;max-height:100vh;height:100vh;max-width:100vw;width:100vw}.modal.modal-fullscreen .modal-body{transition:all .2s linear;height:100vh;max-height:100vh}.modal.open{visibility:visible;opacity:1;pointer-events:auto}.modal-content{background:#fff;width:min(92vw,800px);max-width:min(92vw,800px);max-height:680px;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 8px 24px #0000001f;overflow:hidden;display:flex;flex-direction:column}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid rgba(0,0,0,.06)}.modal-title{font-weight:600;color:#111827}.modal-close{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;color:#6b7280;border:0;font-size:20px;line-height:1;width:28px;height:28px;display:inline-grid;place-items:center;border-radius:6px;cursor:pointer}.modal-body{height:100%;overflow:hidden;position:relative;padding:0}.modal-body.panning{cursor:grabbing}.pdf-stage canvas{display:block}.pdf-viewer{position:relative;min-height:320px}.pdf-blocker{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#fff;z-index:5}.pdf-loading{display:flex;align-items:center;justify-content:center;height:320px}.spinner{width:28px;height:28px;border:3px solid #e5e7eb;border-top-color:var(--accent);border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.composer-wrap{position:sticky;bottom:0;left:0;right:0;width:100%;margin-top:auto;margin-left:auto;margin-right:auto;display:flex;flex-direction:column;gap:8px;padding-bottom:16px}.composer{background:transparent;width:100%;padding:0}.composer-field{position:relative;display:flex;align-items:flex-end;gap:0;max-width:1900px;padding:0;background:#fff;border-radius:4px;border:1px solid transparent;box-shadow:0 0 10px #0000001a;min-height:48px;transition:border-color .15s ease,box-shadow .15s ease}.composer-field:hover{border-color:#0e0044}.composer-text-area{flex:1;display:flex;align-items:flex-end;min-width:0}.composer-text-area textarea{flex:1;padding:12px 8px 12px 16px;border:none;border-radius:0;background:transparent;color:#0e0044;font-size:16px;line-height:24px;resize:none;outline:none;font-family:Montserrat,sans-serif;box-shadow:none;overflow-y:hidden}.composer-text-area textarea:focus{color:#0e0044}.composer-actions{display:flex;align-items:center;gap:48px;padding:8px;border-left:1px solid #e0e0e0;flex-shrink:0;align-self:stretch}.mode-dropdown{position:relative;display:flex;align-items:center}.mode-dropdown-trigger{display:flex;align-items:center;gap:6px;background:none;border:none;padding:4px 6px 4px 8px;cursor:pointer;color:#0e0044;font-family:Montserrat,sans-serif;font-size:15px;font-weight:600;white-space:nowrap;border-radius:6px}.mode-dropdown-trigger:hover{background:#0e00440a}.mode-dropdown-chevron{color:#0e0044;transition:transform .18s ease;flex-shrink:0}.mode-dropdown-chevron.open{transform:rotate(180deg)}@keyframes mode-dropdown-in{0%{opacity:0;transform:translateY(-6px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes mode-dropdown-in-upward{0%{opacity:0;transform:translateY(6px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}.mode-dropdown-menu{background:#fff;border-radius:8px;box-shadow:0 8px 32px #0e004429,0 2px 8px #0e004414;overflow:visible;z-index:2147483647;display:flex;flex-direction:column;padding:0;animation:mode-dropdown-in .18s cubic-bezier(.22,1,.36,1) both;transform-origin:top left}.mode-dropdown-item:first-child{border-radius:8px 8px 0 0}.mode-dropdown-item:last-child{border-radius:0 0 8px 8px}.mode-dropdown-menu--upward{animation-name:mode-dropdown-in-upward;transform-origin:bottom left}.mode-dropdown-item{position:relative;display:flex;align-items:center;gap:8px;background:none;border:none;text-align:left;padding:14px 16px;cursor:pointer;font-family:Montserrat,sans-serif;font-size:15px;font-weight:600;color:#0e0044;background:#fff!important;text-transform:none;transition:background .12s ease,color .12s ease;white-space:nowrap;border-radius:0;width:100%}.mode-dropdown-item:disabled{color:#b0b0c0;cursor:default}.mode-dropdown-item--selected{background:transparent;color:#0e0044}.mode-dropdown-check{margin-left:auto;flex-shrink:0;width:20px;height:20px;border-radius:50%;background:#0e0044;display:flex;align-items:center;justify-content:center}.mode-beta-tag{font-size:10px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;background:#0cc1a3;color:#fff;padding:2px 6px;border-radius:10px;line-height:1}.mode-dropdown-item:hover:not(:disabled):not(.mode-dropdown-item--selected){background:#0e00440d!important;color:#0e0044}.mode-dropdown-item--selected:hover:not(:disabled){background:#0e00440d!important;color:#0e0044}.mode-dropdown-item[data-tooltip]:not([data-tooltip=""]):before{content:"";position:absolute;right:calc(100% + 4px);top:50%;transform:translateY(-50%);border:6px solid transparent;border-left-color:#0e0044;pointer-events:none;opacity:0;transition:opacity .15s ease;z-index:10001}.mode-dropdown-item[data-tooltip]:not([data-tooltip=""]):after{content:attr(data-tooltip);position:absolute;right:calc(100% + 16px);top:50%;transform:translateY(-50%) translate(4px);background:#0e0044;color:#fff;font-size:14px;font-weight:400;font-family:Montserrat,sans-serif;line-height:normal;padding:12px;border-radius:5px;white-space:normal;max-width:240px;width:max-content;text-align:left;pointer-events:none;text-transform:none!important;opacity:0;transition:opacity .15s ease,transform .15s ease;z-index:10000}.mode-dropdown-item[data-tooltip]:not([data-tooltip=""]):hover:before{opacity:1}.mode-dropdown-item[data-tooltip]:not([data-tooltip=""]):hover:after{opacity:1;transform:translateY(-50%) translate(0)}@media (min-width: 900px){.composer{width:100%}}.composer-field:focus-within{border-color:#6f2c91;box-shadow:0 0 6px #1f1c4f}.composer-send{padding:4px;border:none;border-radius:4px;background:transparent;color:#0e0044;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s ease;width:32px;height:32px;flex-shrink:0}.composer-send:hover:not(:disabled){background:#0e00440f}.composer-send:disabled{opacity:.35;cursor:not-allowed}.composer-field textarea::placeholder{color:#757575}.empty-hero{display:grid;place-items:center;margin-top:0;min-height:calc(100% - 56px);width:100%;overflow-x:visible}.empty-hero-inner{display:flex;flex-direction:column;align-items:center;max-width:900px;width:100%;margin:0 auto;animation:heroIn .6s cubic-bezier(.22,.61,.36,1) both;overflow:visible}.empty-hero-logo{position:relative;overflow:hidden;z-index:0;border:1px solid #0cc1a3;border-radius:50%}.empty-hero h1,.empty-hero p,.empty-hero .chip-row{position:relative;z-index:2}.empty-hero h1{margin:0;font-family:Montserrat,Inter,ui-sans-serif;font-weight:700;color:#0e0044;font-size:36px;letter-spacing:.2px}.empty-hero p{margin:0;color:#0e0044;font-size:16px;text-align:center}.empty-hero h1.typewriter{display:block;max-width:100%;width:100%;overflow:visible;contain:layout paint}.empty-hero h1.typewriter span{display:inline-block;white-space:nowrap;overflow:hidden;width:0ch;position:relative;padding-right:0;--caret-opacity: 1;--chars: 23;box-shadow:none;animation:typing 2.6s steps(var(--chars),end) forwards,caretBlink 2.6s step-end 1 both,postType 1ms linear 2.6s forwards,shineSlide 8s ease-in-out infinite;background:linear-gradient(90deg,var(--brand-pink) 0%,var(--brand-blue) 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;background-size:300% 100%}.empty-hero h1.typewriter span:after{content:"";position:absolute;right:0;top:0;bottom:0;width:2px;background:var(--text);opacity:var(--caret-opacity);z-index:1}@keyframes typing{0%{width:0ch}to{width:calc(var(--chars) * 1ch)}}@keyframes caretBlink{0%,to{--caret-opacity: 1}50%{--caret-opacity: 0}}.empty-hero-composer{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:32px;width:100%}.composer-in-hero{width:100%;max-width:800px;background:#fff;border:1px solid transparent;box-shadow:0 0 10px #0000001a;border-radius:4px;padding:0;display:flex;flex-direction:column;transition:border-color .15s ease,box-shadow .15s ease}.composer-in-hero:hover{border-color:#0e0044}.composer-in-hero:focus-within{border-color:transparent;box-shadow:0 0 10px #0000001a}.composer-in-hero .composer-field{display:flex;align-items:flex-end;gap:0;min-height:48px}.composer-in-hero .composer-text-area{flex:1;padding:0;min-width:0;display:flex;align-items:flex-end}.composer-in-hero .composer-text-area textarea{flex:1;padding:12px 16px;border:none;background:transparent;font-size:16px;line-height:24px;color:#0e0044;font-family:Montserrat,sans-serif;resize:none;min-height:24px}.composer-in-hero .composer-text-area textarea::placeholder{color:#757575}.composer-in-hero .composer-actions{display:flex;align-items:center;gap:12px;padding:8px 12px;border-left:1px solid #e0e0e0;align-self:stretch}.composer-in-hero .composer-send{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:4px;color:#0e0044;cursor:pointer;padding:0}.composer-mode-label{text-align:center;font-size:16px;font-weight:500;color:#0e0044}@keyframes postType{to{white-space:normal;width:auto;max-width:100%;overflow:visible;--caret-opacity: 0}}@keyframes shineSlide{0%{background-position:200% 0}to{background-position:-100% 0}}@keyframes heroIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion: reduce){.empty-hero h1.typewriter span{animation:none;width:auto;border-right:0}.empty-hero-inner{animation:none}}@media (max-width: 640px){.empty-hero h1.typewriter{overflow:visible}.empty-hero h1.typewriter span{animation:shineSlide 8s ease-in-out infinite;width:auto;max-width:100%;white-space:normal;padding-right:0}.empty-hero h1.typewriter span:after{display:none}}@media (max-width: 520px){.composer-field{flex-direction:column;align-items:stretch}.composer-actions{border-left:none;border-top:1px solid #e0e0e0;align-self:stretch;justify-content:space-between;padding:8px 12px}.composer-in-hero .composer-field{flex-direction:column;align-items:stretch}.composer-in-hero .composer-actions{border-left:none;border-top:1px solid #e0e0e0;align-self:stretch;justify-content:space-between;padding:8px 12px}}.chip-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;max-width:900px;margin:0 auto}.chip{transition:transform .14s ease,box-shadow .14s ease,filter .14s ease}.chip:hover{transform:translateY(-1px);box-shadow:0 10px 24px #0445b724;filter:saturate(108%)}.chip:active{transform:translateY(0);box-shadow:0 6px 14px #0445b71f}.chip{-webkit-appearance:none;-moz-appearance:none;appearance:none;color:#0e0044;border-radius:9999px;padding:8px 14px;font-size:13px;cursor:pointer;border:1px solid transparent;box-shadow:0 1px 2px #00000005;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(180deg,#0445b7,#0cc1a3) border-box;font-family:Montserrat,Inter,ui-sans-serif,system-ui;transition:transform .15s ease,box-shadow .15s ease;animation:chipIn .5s ease-out both}.chip:hover{transform:translateY(-1px);box-shadow:0 3px 8px #0000000f}.chip:active{transform:translateY(0);box-shadow:0 1px 2px #00000008}@keyframes chipIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.chip-row .chip:nth-child(1){animation-delay:.02s}.chip-row .chip:nth-child(2){animation-delay:.06s}.chip-row .chip:nth-child(3){animation-delay:.1s}.chip-row .chip:nth-child(4){animation-delay:.14s}.chip-row .chip:nth-child(5){animation-delay:.18s}.chip:hover{background:linear-gradient(#f8fbff,#f8fbff) padding-box,linear-gradient(180deg,#0445b7,#0cc1a3) border-box}.skeleton{position:relative;overflow:hidden;background:#f3f4f6}.skeleton:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background:linear-gradient(90deg,#fff0,#fff9,#fff0);animation:shimmer 1.2s infinite}@keyframes shimmer{to{transform:translate(100%)}}.skeleton-line{height:12px;border-radius:6px;margin:8px 0}.skeleton-line.sm{height:10px}.skeleton-line.lg{height:14px}.w40{width:40%}.w60{width:60%}.w80{width:80%}.w100{width:100%}.pdf-thumbs{width:130px;min-width:110px;max-width:160px;border-left:1px solid #eef2f7;background:#fbfbfb;overflow:auto}.pdf-thumbs-list{list-style:none;margin:0;padding:8px;display:grid;gap:8px}.pdf-thumb{display:grid;gap:6px;width:100%;border:1px solid #e5e7eb;background:#fff;border-radius:8px;padding:6px;cursor:pointer}.pdf-thumb.active{outline:2px solid #1a73e8;outline-offset:0}.pdf-thumb img{display:block;width:100%;height:auto;border-radius:4px}.thumb-label{font-size:11px;color:#6b7280;justify-self:center}.thumb-skeleton{background:#f3f4f6;border-radius:6px;position:relative;overflow:hidden}.thumb-skeleton:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background:linear-gradient(90deg,#fff0,#fff9,#fff0);animation:shimmer 1.2s infinite}.pdf-citations{flex:0 0 var(--pdf-citations-width);width:var(--pdf-citations-width);border-right:1px solid #eef2f7;background:#fbfbfb;overflow-y:auto;overflow-x:hidden;padding:8px 12px 12px 8px;box-sizing:border-box}.pdf-citations *{max-width:100%;word-break:break-word}.tool-calls{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;margin-top:16px}.tool-call-pill{display:inline-flex;align-items:center;gap:10px;padding:8px 16px;background:#fff;border-radius:8px;box-shadow:0 2px 8px #0445b72e,0 1px 3px #0000001a;font-size:12px;font-family:Montserrat,sans-serif;color:#0e0044;animation:tool-call-pop .35s cubic-bezier(.34,1.4,.64,1) both}.tool-call-pill:nth-child(2){animation-delay:.07s}.tool-call-pill:nth-child(3){animation-delay:.14s}.tool-call-spinner{width:12px;height:12px;border-radius:50%;flex-shrink:0;background:linear-gradient(135deg,#0cc1a3,#0445b7);animation:toolDotBreathe 1.8s ease-in-out infinite}@keyframes toolDotBreathe{0%,to{opacity:.4;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}.tool-call-name{font-weight:400;color:#0e0044}.tool-call-input{display:none}@keyframes tool-call-pop{0%{opacity:0;transform:scale(.85) translateY(4px)}70%{opacity:1}to{transform:scale(1) translateY(0)}}.pdf-container{display:flex;width:100%;height:100%;gap:0}.pdf-content{flex:1;overflow:auto;background:#f8fafc;padding:24px 8px 24px 24px}.pdf-toolbar{display:flex;align-items:center;justify-content:center;padding:16px 24px;border-top:1px solid rgba(0,0,0,.08);background:linear-gradient(135deg,#fff,#f8fafc);gap:8px}.pdf-toolbar-left{display:flex;gap:8px}.pdf-btn{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:#fffc;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#64748b;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 20px #00000014,0 1px 3px #0000001a;position:relative;overflow:hidden}.pdf-btn:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,#0445b714,#0cc1a314);opacity:0;transition:opacity .3s ease;border-radius:12px}.pdf-btn:hover{background:#fffffff2;color:#475569;transform:translateY(-1px);box-shadow:0 8px 30px #0000001f,0 2px 8px #00000026;border-color:#0445b726}.pdf-btn:hover:before{opacity:1}.pdf-btn:active{transform:translateY(0);box-shadow:0 2px 10px #0000001a}.pdf-btn svg{width:20px;height:20px;transition:transform .2s ease,filter .2s ease;filter:drop-shadow(0 1px 2px rgba(0,0,0,.05))}.pdf-btn:hover svg{transform:scale(1.05);filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.pdf-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.pdf-page-label{font-size:14px;font-weight:600;color:#475569;white-space:nowrap;padding:10px 16px;background:#fffc;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.3);border-radius:12px;box-shadow:0 2px 12px #0000000f,0 1px 3px #00000014;transition:all .2s ease}.typing-hud{display:grid;grid-template-columns:36px 1fr;column-gap:16px;align-items:flex-start;animation:typingSlideIn .3s ease-out}.typing-hud-inner{display:inline-flex;align-items:center;gap:10px;padding:8px 16px;width:120px;border-radius:8px;border:none;background:#fff;box-shadow:0 1px 4px #00000014;color:#0e0044;font-size:12px;font-family:Montserrat,sans-serif;grid-column:2}.typing-dot{width:12px;height:12px;border-radius:50%;background:linear-gradient(135deg,#0cc1a3,#0445b7);animation:pulseDot 1.4s cubic-bezier(.1,.4,.5,1) infinite}.typing-text{color:#0e0044;font-weight:400}@keyframes typingSlideIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes pulseDot{0%,80%,to{transform:scale(.8);opacity:.5}40%{transform:scale(1.2);opacity:1}}.loading-sequence{display:grid;grid-template-columns:36px 1fr;column-gap:16px;align-items:flex-start;animation:typingSlideIn .3s ease-out}.loading-sequence-steps{display:flex;flex-direction:column;align-items:flex-start;gap:0}.loading-sequence-connector{position:relative;width:4px;height:24px;border-radius:2px;overflow:hidden;margin-left:12px;background:#0e00440f;animation:connector-track-in .2s ease-out both}.loading-sequence-connector:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:repeating-linear-gradient(180deg,transparent 0px,transparent 4px,#0cc1a3 4px,#0cc1a3 8px,transparent 8px,transparent 12px);background-size:100% 24px;animation:connector-travel .6s linear infinite;opacity:.85}.loading-sequence-tool{animation:sequence-card-pop .32s cubic-bezier(.34,1.4,.64,1) .15s both}.loading-sequence-tool:last-child .tool-call-pill{box-shadow:0 2px 8px #0445b72e,0 1px 3px #0000001a,0 0 0 2px #0cc1a340}@keyframes connector-track-in{0%{transform:scaleY(0);transform-origin:top;opacity:0}to{transform:scaleY(1);transform-origin:top;opacity:1}}@keyframes connector-travel{0%{background-position:0 0}to{background-position:0 24px}}@keyframes sequence-card-pop{0%{opacity:0;transform:scale(.88) translateY(-4px)}60%{opacity:1}to{transform:scale(1) translateY(0)}}.msg-content:has(.bubble--arriving){animation:bubble-arrive-glow .6s ease-out both}@keyframes bubble-arrive-glow{0%{box-shadow:-1px 1px 4px #0445b71a,0 0 12px #0445b70d,0 0 0 2px #0cc1a380}60%{box-shadow:-1px 1px 4px #0445b71a,0 0 12px #0445b70d,0 0 0 3px #0cc1a333}to{box-shadow:-1px 1px 4px #0445b71a,0 0 12px #0445b70d,0 0 #0cc1a300}}.tool-calls-inline{display:flex;flex-direction:column;gap:6px;margin-top:12px}.pdf-sources{width:100%}.pdf-sources-title{padding:10px 10px 6px;font-size:12px;font-weight:600;color:#374151}.pdf-sources-list{list-style:none;margin:0;padding:0 12px 12px 8px;display:flex;flex-direction:column;gap:8px;box-sizing:border-box}.pdf-source-item{display:flex;width:100%;text-align:left;gap:8px;padding:10px 12px;border-radius:8px;border:1px solid transparent;background:transparent;color:#111827;cursor:pointer}.pdf-source-item.active{background:#e7f9f6}.pdf-source-rank{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:linear-gradient(180deg,#fff,#f7f7f7);border:1px solid rgba(0,0,0,.12);font-size:12px;color:#374151}.pdf-source-text{display:inline-block;overflow:hidden}.pdf-source-filename{display:block;font-size:12px;font-weight:600;color:#111827}.pdf-source-page{display:block;font-size:11px;color:#6b7280}.pdf-source-snippet{display:block;font-size:11px;color:#6b7280;margin-top:2px;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (max-width: 1280px){.modal-content{width:95vw}}@media (max-width: 1024px){.pdf-thumbs,.pdf-citations{display:none}.modal-content{width:96vw;height:92vh}}@media (max-width: 640px){.modal-content{width:98vw;height:92vh;border-radius:10px}}@media (max-width: 900px){.chat-layout{grid-template-columns:0fr 1fr;position:relative}.sidebar{position:fixed;top:0;bottom:0;left:0;width:min(86vw,320px);max-width:92vw;transform:translate(-100%);transition:transform .2s ease-in-out;z-index:9999;box-shadow:0 10px 30px #0000002e}.chat-container.drawer-open .sidebar{transform:translate(0)}.drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000005c;-webkit-backdrop-filter:saturate(120%) blur(2px);backdrop-filter:saturate(120%) blur(2px);z-index:900}.mobile-bar{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--border);background:#fff;position:sticky;top:0;z-index:10}.sidebar-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;color:#111827;border:1px solid #e5e7eb;border-radius:8px;width:36px;height:36px;display:inline-grid;place-items:center;cursor:pointer}}@media (min-width: 901px){.mobile-bar{display:none}}.older-messages{display:flex;justify-content:center;margin:8px 0}.toasts{position:fixed;top:16px;right:16px;display:grid;gap:10px;z-index:2000}.toast{display:flex;align-items:center;gap:16px;border-radius:4px;padding:16px;font-size:16px;line-height:1.5;border:1px solid rgba(14,0,68,.1);background:#f8fafc;color:#0e0044;box-shadow:0 1px 4px #00000014;font-family:Montserrat,sans-serif}.toast-body{flex:1}.toast-close{flex-shrink:0;background:transparent;border:none;padding:0;cursor:pointer;font-size:20px;color:currentColor;opacity:.7;transition:opacity .2s}.toast-close:hover{opacity:1}.toast.info{background:#eef2ff;border-color:#c7d2fe;color:#0e0044}.toast.success{background:#e1fcef;border-color:#08522d;color:#08522d}.toast.error{background:#fef2f2;border-color:#fecaca;color:#b91c1c}.sources-accordion{margin-top:6px;border:0;background:transparent}.sources-acc-header{width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;border:0;border-radius:8px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;color:#6b7280;font-weight:400;cursor:pointer;transition:background .14s ease,color .14s ease;margin-bottom:2px}.sources-acc-header:hover{background:#f3f4f6}.sources-acc-title{font-size:14px;line-height:1.25rem;font-weight:300;font-family:Montserrat,Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:.00938em;top:0;color:#757575;margin:8px 0 4px}.sources-acc-chevron{display:inline-flex;transition:transform .16s ease,color .14s ease;color:#6b7280}.sources-acc-chevron.open{transform:rotate(180deg)}.sources-acc-list{list-style:none;margin:0;padding:0;background:#fff;border-top:1px solid var(--border);border-bottom-left-radius:10px;border-bottom-right-radius:10px}.sources-acc-item+.sources-acc-item{border-top:1px solid #eef2f7}.sources-acc-link{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;width:100%;text-align:left;padding:5px 0;display:flex;align-items:baseline;gap:4px;color:#564d7c;cursor:pointer}.sources-acc-link:hover{opacity:.8}.sources-acc-num{flex-shrink:0;font-size:12px;font-weight:400;font-family:Montserrat,sans-serif;color:#564d7c;line-height:20px}.sources-acc-name{flex:1;font-size:12px;font-weight:400;font-family:Montserrat,sans-serif;font-style:italic;color:#564d7c;line-height:20px;margin-right:8px}.sources-acc-page{flex-shrink:0;font-size:12px;font-weight:400;font-family:Montserrat,sans-serif;font-style:normal;color:#564d7c;line-height:20px;white-space:nowrap}.sources-hud{display:none}.disclaimer-modal{width:min(92vw,595px);max-width:min(92vw,595px);border-radius:5px;box-shadow:0 5px 5px #00000040;padding:32px}.disclaimer-header{display:flex;align-items:flex-start;gap:8px;width:100%;margin-bottom:40px}.disclaimer-header-text{flex:1;display:flex;flex-direction:column;gap:10px}.disclaimer-title{margin:0;color:#0e0044;font-family:Montserrat,Inter,ui-sans-serif,system-ui,sans-serif;font-weight:600;font-size:24px;line-height:normal}.disclaimer-body-text{margin:0;color:#0e0044;font-family:Montserrat,Inter,ui-sans-serif,system-ui,sans-serif;font-weight:400;font-size:15px;line-height:normal}.disclaimer-close{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:#0e0044;cursor:pointer;padding:6px;border-radius:4px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.disclaimer-close:hover{background:#0e00440f}.disclaimer-link{color:#0e0044;font-weight:600;text-decoration:underline}.disclaimer-actions{display:flex;justify-content:flex-end;gap:16px}.btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:4px;padding:12px 24px;height:42px;min-width:140px;font-family:Montserrat,Inter,ui-sans-serif,system-ui,sans-serif;font-size:14px;font-weight:700;line-height:18px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}.btn-outline{background:#fff;color:#0e0044;border:1px solid #0e0044}.btn-outline:hover{background:#0e00440a}.btn-solid{background:#0e0044;color:#fff;border:1px solid #0e0044}.btn-solid:hover{filter:brightness(.92)}.feedback-modal{width:min(92vw,595px);max-width:min(92vw,595px);border-radius:5px;box-shadow:0 5px 5px #00000040;padding:32px}.feedback-subtitle-text{color:#0e0044!important}.feedback-form{margin-bottom:40px}.feedback-textarea{width:100%;resize:vertical;border-radius:4px;border:1px solid #d5d9e3;outline:none;padding:14px;font-family:Montserrat,Inter,ui-sans-serif,system-ui,sans-serif;font-size:14px;color:#0e0044;background:#fff;box-sizing:border-box}.feedback-textarea::placeholder{color:#9aa3b2}.feedback-textarea:focus{border-color:#0e0044;box-shadow:0 0 0 2px #0e00441a}.pipeline-hud .stage.active{background:#0e0044;color:#fff;border-color:#0e0044;box-shadow:0 4px 12px #0e004459;transform:translateY(-1px)}.stages{display:flex;align-items:center;gap:8px;font-size:12px;color:#475569;font-weight:600}.stages.small{font-size:11px}.stage.active{color:#0f172a}.stage.pulse{position:relative}.stage.pulse:after{content:"";position:absolute;left:-4px;right:-4px;bottom:-2px;height:2px;background:#0e004440;animation:pulseLine 1.2s ease-in-out infinite}.pipeline-hud .stage.active.pulse:after{content:"";position:absolute;left:-4px;right:-4px;bottom:-4px;height:2px;background:#fff9;animation:pulseLine 1.2s ease-in-out infinite;border-radius:1px}.pipeline-hud .arrow{color:#6b7280;font-weight:300;opacity:.7;font-size:14px}.arrow{opacity:.5}@keyframes pulseLine{0%{transform:scaleX(0);opacity:.6}50%{transform:scaleX(1);opacity:1}to{transform:scaleX(0);opacity:.6}}.pipeline-inline{margin-bottom:8px;display:flex;align-items:center;gap:16px;justify-content:space-between;padding:12px 16px;background:linear-gradient(135deg,#fffffff2,#f8fafcf2);border:1px solid rgba(4,69,183,.2);border-radius:12px;box-shadow:0 4px 12px #0445b714,0 2px 4px #0445b70f;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);position:relative;overflow:hidden}.pipeline-inline:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(4,69,183,.08),transparent);animation:shimmer 2s infinite}.pipeline-inline .stages{display:flex;align-items:center;gap:12px;font-size:13px;color:#374151;font-weight:500;z-index:1;position:relative}.pipeline-inline .stage{position:relative;padding:4px 8px;border-radius:8px;transition:all .3s ease;background:#fffc;border:1px solid rgba(0,0,0,.05)}.pipeline-inline .stage.active{color:#fff;background:linear-gradient(135deg,#0e0044,#0445b7);box-shadow:0 2px 8px #0445b766,0 0 0 1px #0445b733;transform:scale(1.02);border:1px solid rgba(4,69,183,.3)}.pipeline-inline .stage.active.pulse:after{background:#fff9;animation:pulseLine 1.2s ease-in-out infinite}.pipeline-inline .arrow{color:#6b7280;font-weight:300;opacity:.7;font-size:14px}.pipeline-inline .epic-loader{z-index:1;position:relative;width:40px;height:40px}.professional-loader{width:100%;max-width:none;position:relative;display:flex;align-items:center;justify-content:center;overflow:visible;margin:0 auto}.loader-content{display:flex;align-items:center;justify-content:space-between;gap:32px;width:100%;padding:12px 0}.loader-text-section{display:flex;flex-direction:column;align-items:center;gap:12px}.pipeline-section,.pipeline-section .stages{display:flex;align-items:center;gap:8px}.pipeline-section .stage{position:relative;padding:8px 12px;border-radius:999px;transition:all .3s ease;background:#fffc;border:1px solid rgba(2,6,23,.12);font-size:13px;font-weight:600;color:#374151;white-space:nowrap}.pipeline-section .stage.active{background:#0e0044;color:#fff;border-color:#0e0044;box-shadow:0 4px 12px #0e004459;transform:translateY(-1px)}.pipeline-section .stage.active.pulse:after{content:"";position:absolute;left:-4px;right:-4px;bottom:-4px;height:2px;background:#fff9;animation:pulseLine 1.2s ease-in-out infinite;border-radius:1px}.pipeline-section .arrow{color:#6b7280;font-weight:300;opacity:.7;font-size:14px}.loader-icon{animation:iconPulse 2s ease-in-out infinite}.loader-icon svg{filter:drop-shadow(0 2px 8px rgba(4,69,183,.2))}.loader-icon path{stroke-dasharray:28;stroke-dashoffset:28;animation:drawClock 2s ease-in-out infinite}.loader-text{font-size:15px;font-weight:500;color:#374151;text-align:center;letter-spacing:-.005em;line-height:1.4;max-width:none}.loader-progress{width:100%;max-width:120px}.progress-bar{width:100%;height:3px;background:#0445b71a;border-radius:2px;overflow:hidden;position:relative}.progress-fill{height:100%;background:linear-gradient(90deg,#0cc1a3cc,#0445b7e6,#0cc1a3cc);border-radius:2px;animation:progressFlow 2.5s ease-in-out infinite;position:relative}.progress-fill:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);animation:progressShine 2.5s ease-in-out infinite}@keyframes iconPulse{0%,to{transform:scale(1);opacity:.8}50%{transform:scale(1.05);opacity:1}}@keyframes drawClock{0%{stroke-dashoffset:28;opacity:.3}50%{stroke-dashoffset:14;opacity:.8}to{stroke-dashoffset:0;opacity:.3}}@keyframes textFade{0%,to{opacity:.7}50%{opacity:1}}@keyframes progressFlow{0%{width:0%}60%{width:100%}to{width:100%}}@keyframes progressShine{0%{left:-100%}60%{left:100%}to{left:100%}}.sidebar-toggle-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;border-radius:6px;background:transparent;color:#0e0044;cursor:pointer;transition:background .15s ease;flex-shrink:0}.sidebar-toggle-btn:hover{background:#0e00440d}.sidebar-toggle-btn:active{background:#0e00441a}.sidebar-toggle-tooltip{position:fixed;z-index:10000;pointer-events:none;white-space:nowrap;display:flex;flex-direction:column;align-items:center}.sidebar-toggle-tooltip-box{background:#0e0044;color:#fff;font-family:Montserrat,sans-serif;font-size:14px;font-weight:400;padding:12px;border-radius:5px}.sidebar-toggle-tooltip-caret{width:0;height:0;border:6px solid transparent;border-bottom-color:#0e0044;margin-bottom:-1px;order:-1}.sidebar-toggle-tooltip--above .sidebar-toggle-tooltip-caret{border-bottom-color:transparent;border-top-color:#0e0044;margin-bottom:0;margin-top:-1px;order:2}.sidebar-toggle-tooltip--above .sidebar-toggle-tooltip-box{order:1}.sidebar-reopen-btn{position:absolute;top:16px;left:16px;z-index:100;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:none;border-radius:8px;background:#ffffffe6;color:#374151;cursor:pointer;transition:all .2s ease;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 2px 8px #0000001a}.sidebar-reopen-btn:hover{background:#fffffff2;color:#1f2937;transform:scale(1.05)}@media (min-width: 901px){.chat-container.desktop-sidebar-hidden{grid-template-columns:64px 1fr}.chat-container.desktop-sidebar-hidden .sidebar{width:64px;min-width:64px;padding:16px 8px;align-items:center;overflow:hidden}.chat-container.desktop-sidebar-hidden .sidebar-header{width:100%;align-items:center;gap:16px}.chat-container.desktop-sidebar-hidden .sidebar-logo{display:none}.chat-container.desktop-sidebar-hidden .sidebar-heading-row{justify-content:center}.chat-container.desktop-sidebar-hidden .sidebar-toggle-btn svg{transform:rotate(180deg)}.chat-container.desktop-sidebar-hidden .sidebar-new.tile{width:auto;height:auto;padding:8px;justify-content:center;margin-top:4px;margin-bottom:8px}.chat-container.desktop-sidebar-hidden .sidebar-new.tile .tile-label{display:none}.chat-container.desktop-sidebar-hidden .thread-list{overflow-y:auto;overflow-x:visible;min-height:0;flex:1;scrollbar-width:none}.chat-container.desktop-sidebar-hidden .thread-list::-webkit-scrollbar{display:none}.chat-container.desktop-sidebar-hidden .thread-group{padding:0;gap:8px;justify-items:center}.chat-container.desktop-sidebar-hidden .thread-group-title{font-size:11px;text-align:center;padding:8px 0 4px}.chat-container.desktop-sidebar-hidden .thread-group-title-full{display:none}.chat-container.desktop-sidebar-hidden .thread-group-title-mini{display:inline}.chat-container.desktop-sidebar-hidden .thread-item{width:40px;height:40px;border-radius:50%;justify-content:center;padding-left:0;position:relative;background:transparent}.chat-container.desktop-sidebar-hidden .thread-item.active{background:#e7f9f6;border-left:none;border-radius:8px}.chat-container.desktop-sidebar-hidden .thread-item:hover{background:#e7f9f6;border-radius:8px}.chat-container.desktop-sidebar-hidden .thread-item:active{background:#cef3ed}.chat-container.desktop-sidebar-hidden .thread-item .thread-main{padding:4px;justify-content:center;gap:0}.chat-container.desktop-sidebar-hidden .thread-avatar{width:32px;height:32px;margin-top:0}.chat-container.desktop-sidebar-hidden .thread-text,.chat-container.desktop-sidebar-hidden .thread-item .thread-actions,.chat-container.desktop-sidebar-hidden .sidebar-reopen-btn{display:none}}.thread-tooltip{position:fixed;background:#0e0044;color:#fff;font-size:14px;font-family:Montserrat,sans-serif;font-weight:400;padding:12px;border-radius:5px;white-space:nowrap;pointer-events:none;z-index:10000;opacity:0;transition:opacity .15s ease}.thread-tooltip:before{content:"";position:absolute;top:50%;left:-6px;transform:translateY(-50%);width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:6px solid #0e0044}.thread-tooltip.visible{opacity:1}@media (min-width: 901px){.chat-layout.pdf-open.desktop-sidebar-hidden{grid-template-columns:64px 1fr}.chat-layout.pdf-open.desktop-sidebar-hidden .sidebar{width:64px;min-width:64px;padding:16px 8px;align-items:center;overflow:hidden}.chat-layout.pdf-open.desktop-sidebar-hidden .sidebar-logo{display:none}.chat-layout.pdf-open.desktop-sidebar-hidden .sidebar-heading-row{justify-content:center}.chat-layout.pdf-open.desktop-sidebar-hidden .sidebar-toggle-btn svg{transform:rotate(180deg)}.chat-layout.pdf-open.desktop-sidebar-hidden .sidebar-new.tile{width:auto;height:auto;padding:8px;justify-content:center;margin-top:4px;margin-bottom:8px}.chat-layout.pdf-open.desktop-sidebar-hidden .sidebar-new.tile .tile-label{display:none}.chat-layout.pdf-open.desktop-sidebar-hidden .thread-list{overflow-y:auto;scrollbar-width:none}.chat-layout.pdf-open.desktop-sidebar-hidden .thread-list::-webkit-scrollbar{display:none}.chat-layout.pdf-open.desktop-sidebar-hidden .thread-group{padding:0;gap:8px;justify-items:center}.chat-layout.pdf-open.desktop-sidebar-hidden .thread-group-title{font-size:11px;text-align:center;padding:8px 0 4px}.chat-layout.pdf-open.desktop-sidebar-hidden .thread-group-title-full{display:none}.chat-layout.pdf-open.desktop-sidebar-hidden .thread-group-title-mini{display:inline}.chat-layout.pdf-open.desktop-sidebar-hidden .thread-item{width:40px;height:40px;border-radius:50%;justify-content:center;padding-left:0;background:transparent}.chat-layout.pdf-open.desktop-sidebar-hidden .thread-item.active{background:#e7f9f6;border-left:none;border-radius:8px}.chat-layout.pdf-open.desktop-sidebar-hidden .thread-item:hover{background:#e7f9f6;border-radius:8px}.chat-layout.pdf-open.desktop-sidebar-hidden .thread-item:active{background:#cef3ed}.chat-layout.pdf-open.desktop-sidebar-hidden .thread-item .thread-main{padding:4px;justify-content:center;gap:0}.chat-layout.pdf-open.desktop-sidebar-hidden .thread-avatar{width:32px;height:32px;margin-top:0}.chat-layout.pdf-open.desktop-sidebar-hidden .thread-text,.chat-layout.pdf-open.desktop-sidebar-hidden .thread-item .thread-actions{display:none}.chat-layout.pdf-open .resizable-panels{grid-column:2 / -1}}@media (max-width: 900px){.chat-layout.pdf-open .sidebar{display:none}.chat-layout.pdf-open .resizable-panels{grid-column:1 / -1}}.chat-container.pdf-fullscreen .messages-main{display:none}.chat-container.pdf-fullscreen .pdf-viewer-aside{grid-column:2 / -1}.chat-container.pdf-fullscreen.desktop-sidebar-hidden .pdf-viewer-aside{grid-column:1 / -1}.chat-layout.no-sidebar{grid-template-columns:1fr}.chat-layout.no-sidebar .sidebar{display:none}.chat-layout.no-sidebar .messages-panel{border-left:none}.chat-layout.no-sidebar .messages-main{grid-column:1 / -1}.citations-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000e6;z-index:10000;display:flex;align-items:center;justify-content:center;padding:20px}.citations-modal{background:#fff;border-radius:5px;box-shadow:0 5px 5px #00000040;max-width:500px;width:100%;max-height:80vh;overflow:hidden;display:flex;flex-direction:column}.citations-modal-header{display:flex;align-items:flex-start;gap:8px;padding:32px 32px 0}.citations-modal-header h3{flex:1;margin:0;font-family:Montserrat,Inter,ui-sans-serif,system-ui,sans-serif;font-size:24px;font-weight:600;color:#0e0044;line-height:normal}.citations-modal-close{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:#0e0044;cursor:pointer;padding:6px;border-radius:4px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.citations-modal-close:hover{background:#0e00440f}.citations-modal-body{padding:16px 32px 32px;overflow-y:auto}.pdf-viewer-aside{height:100%;overflow:hidden}.pdf-aside{position:relative;z-index:1;display:flex;flex-direction:column;height:100%;overflow:hidden}.modal-body--html{flex:1;height:0!important;min-height:0;overflow:auto!important}.modal-body--html *{padding:0 30px}.html-viewer-highlight{position:relative;background-color:#e7f9f6;padding:10px 45px!important}.html-viewer-highlight p.text:first-child{background:transparent!important}.pdf-aside-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid #e0e0e0;background:#fff;flex-shrink:0}.pdf-aside-header-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.pdf-aside-subtitle{font-family:Montserrat,Inter,ui-sans-serif,system-ui,sans-serif;font-size:12.8px;font-weight:600;color:#0e0044;line-height:normal}.pdf-aside-title{font-family:Montserrat,Inter,ui-sans-serif,system-ui,sans-serif;font-size:20px;font-weight:700;color:#0e0044;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:normal}.pdf-aside-controls{display:flex;align-items:center;gap:16px;margin-left:16px;flex-shrink:0}.pdf-icon-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;background:transparent;border:none;border-radius:4px;color:#0e0044;cursor:pointer;padding:6px;transition:background .15s ease;position:relative}.pdf-icon-btn:hover{background:#0e00440f}.pdf-icon-btn:after,.pdf-close-btn-new:after{content:attr(title);position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%) translateY(-4px);background:#0e0044;color:#fff;font-size:14px;font-weight:400;font-family:Montserrat,sans-serif;line-height:normal;padding:12px;border-radius:5px;white-space:nowrap;text-align:center;pointer-events:none;opacity:0;transition:opacity .15s ease,transform .15s ease;z-index:10000}.pdf-icon-btn:before,.pdf-close-btn-new:before{content:"";position:absolute;top:calc(100% + 2px);left:50%;transform:translate(-50%);border:6px solid transparent;border-bottom-color:#0e0044;pointer-events:none;opacity:0;transition:opacity .15s ease;z-index:10001}.pdf-icon-btn:hover:after,.pdf-close-btn-new:hover:after{opacity:1;transform:translate(-50%) translateY(0)}.pdf-icon-btn:hover:before,.pdf-close-btn-new:hover:before{opacity:1}.pdf-close-btn-new{display:flex;align-items:center;justify-content:center;width:36px;height:36px;background:#fff;border:1px solid #0e0044;border-radius:4px;color:#0e0044;cursor:pointer;padding:6px;transition:background .15s ease;position:relative}.pdf-close-btn-new:hover{background:#0e00440a}.pdf-close-btn{background:#ef44441a;color:#dc2626;border:1px solid rgba(239,68,68,.2);display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:4px;cursor:pointer;padding:6px}.pdf-close-btn:hover{background:#ef444426;color:#b91c1c}.viewer-footer{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-top:1px solid #e0e0e0;background:#fff;box-shadow:0 0 16px #4343431f;flex-shrink:0}.viewer-footer-left{display:flex;align-items:center;min-width:105px}.viewer-footer-center{display:flex;align-items:center;gap:0}.viewer-footer-right{display:flex;align-items:center;justify-content:flex-end;min-width:105px}.viewer-citations-btn{display:inline-flex;align-items:center;gap:8px;background:transparent;border:none;border-radius:4px;padding:12px;height:32px;font-family:Montserrat,Inter,ui-sans-serif,system-ui,sans-serif;font-size:12px;font-weight:700;color:#0e0044;cursor:pointer;white-space:nowrap;transition:background .12s ease}.viewer-citations-btn:hover{background:#0e00440d}.viewer-citations-btn:active{background:#0e004414}.viewer-citations-btn--open svg{transform:rotate(180deg)}.citations-dropdown{background:#fff;padding:16px 24px;flex-shrink:0}.citations-dropdown-scroll{display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#e0e0e0 transparent;padding-bottom:8px}.citations-dropdown-scroll::-webkit-scrollbar{height:8px}.citations-dropdown-scroll::-webkit-scrollbar-track{background:transparent}.citations-dropdown-scroll::-webkit-scrollbar-thumb{background:#e0e0e0;border-radius:6px}.citation-card{display:flex;align-items:flex-start;gap:8px;min-width:200px;flex-shrink:0;padding:8px 12px;border-radius:8px;background:#fff;border:1px solid transparent;cursor:pointer;text-align:left;transition:background .12s ease;font-family:Montserrat,sans-serif}.citation-card:hover{background:#e7f9f6}.citation-card--active{background:#e7f9f6;border:1px solid #0cc1a3;border-left:4px solid #0cc1a3}.citation-card-rank{display:flex;align-items:center;justify-content:center;width:20px;height:20px;min-width:20px;border:1px solid #0e0044;border-radius:4px;background:#fff;font-family:Montserrat,sans-serif;font-size:14px;font-weight:600;color:#0e0044;line-height:18px;flex-shrink:0}.citation-card-text{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.citation-card-name{font-size:12px;font-weight:500;color:#0e0044;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.citation-card-meta{display:flex;align-items:center;gap:4px;font-size:10px;font-weight:500;color:#6e668f;line-height:12px;white-space:nowrap}.citation-card-dot{width:2px;height:2px;border-radius:2px;background:#6e668f;flex-shrink:0}.viewer-nav-btn{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:transparent;border:none;border-radius:4px;color:#0e0044;cursor:pointer;padding:12px;transition:background .15s ease}.viewer-nav-btn:hover:not(:disabled){background:#0e00440f}.viewer-nav-btn:disabled{opacity:.35;cursor:not-allowed}.viewer-page-info{display:flex;align-items:center;gap:10px;padding:0 8px}.viewer-page-current{display:inline-block;background:#f5f5f5;border:1px solid #f5f5f5;border-radius:4px;padding:12px;font-family:Montserrat,Inter,ui-sans-serif,system-ui,sans-serif;font-size:16px;font-weight:500;color:#0e0044;text-align:center;min-width:44px;line-height:24px;cursor:pointer}.viewer-page-sep,.viewer-page-total{font-family:Montserrat,Inter,ui-sans-serif,system-ui,sans-serif;font-size:16px;font-weight:500;color:#0e0044}.viewer-page-input{background:#f5f5f5;border:1px solid #f5f5f5;border-radius:4px;padding:12px;font-family:Montserrat,Inter,ui-sans-serif,system-ui,sans-serif;font-size:16px;font-weight:500;color:#0e0044;text-align:center;width:60px;outline:none}.viewer-page-input:focus{border-color:#0e0044}.pdf-body{flex:1;overflow:hidden;display:flex;flex-direction:column}.pdf-container{flex:1;display:flex;flex-direction:column;overflow:hidden}.pdf-toolbar-left,.pdf-toolbar-right{display:flex;align-items:center;gap:12px}.pdf-toolbar button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:none;border-radius:10px;background:#fffc;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#64748b;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 12px #0000000f,0 1px 3px #00000014;border:1px solid rgba(255,255,255,.3);position:relative;overflow:hidden}.pdf-toolbar button:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,#0445b70f,#0cc1a30f);opacity:0;transition:opacity .3s ease;border-radius:10px}.pdf-toolbar button:hover{background:#fffffff2;color:#475569;transform:translateY(-1px);box-shadow:0 6px 24px #0000001a,0 2px 8px #0000001f;border-color:#0445b733}.pdf-toolbar button:hover:before{opacity:1}.pdf-toolbar button:active{transform:translateY(0);box-shadow:0 2px 8px #00000014}.pdf-toolbar button:disabled{opacity:.5;cursor:not-allowed;transform:none}.pdf-toolbar button svg{width:18px;height:18px;transition:transform .2s ease,filter .2s ease;filter:drop-shadow(0 1px 2px rgba(0,0,0,.03))}.pdf-toolbar button:hover svg{transform:scale(1.05);filter:drop-shadow(0 1px 3px rgba(0,0,0,.08))}.resizable-panels,.chat-container.desktop-sidebar-hidden .resizable-panels{grid-column:2 / -1}.panel-separator{background:#f5f5f5;width:24px;cursor:col-resize;border:none;border-radius:0;transition:background .15s ease;position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:-5.4px 0 5.4px #0000001a}.panel-separator:hover{background:#ebebeb}.panel-separator:before{content:"";position:absolute;top:50%;left:50%;width:3px;height:3px;border-radius:50%;background:#0e0044;transform:translate(calc(-50% - 3.5px),-50%);box-shadow:0 -8px #0e0044,0 8px #0e0044,7px 0 #0e0044,7px -8px #0e0044,7px 8px #0e0044}.thread-menu{background:#fff;border:1px solid rgba(2,6,23,.12);border-radius:8px;box-shadow:0 8px 24px #0206171f;min-width:160px;padding:4px 0}.thread-menu-item{display:block;width:100%;padding:10px 16px;background:none;border:none;text-align:left;font-size:13px;color:#0f172a;cursor:pointer}.thread-menu-item:hover{background:#0206170a}.thread-menu-item.danger{color:#dc2626}.thread-menu-item.danger:hover{background:#dc26260f}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes widget-panel-in{0%{opacity:0;transform:scale(.88) translateY(24px);transform-origin:bottom right}60%{opacity:1}to{opacity:1;transform:scale(1) translateY(0);transform-origin:bottom right}}@keyframes widget-body-in{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.widget-portal{position:fixed;bottom:24px;right:24px;width:min(740px,calc(100vw - 48px));height:min(800px,calc(100vh - 48px));z-index:9999;display:flex;flex-direction:column;box-shadow:0 0 10px 1px #d9d8d8}@media (max-width: 520px){.widget-portal{top:0;left:0;width:100%;height:100%;bottom:0;right:0}}.widget-root{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;height:auto;width:auto;margin-right:24px}.widget-panel{display:flex;flex-direction:column;flex:1;height:100%;border-radius:8px;overflow:hidden;box-shadow:0 0 100px 10px #f3f3f3;background:#fff;transition:box-shadow .3s ease,border-radius .3s ease}@media (max-width: 520px){.widget-panel{border-radius:0}}.widget-panel--open{animation:widget-panel-in .42s cubic-bezier(.22,1,.36,1) both}.widget-panel--minimized{height:auto;align-self:flex-end;border-radius:12px;box-shadow:0 8px 32px #0445b733,0 2px 8px #0000001a;cursor:pointer}.widget-panel--minimized .widget-header{border-bottom:none;border-radius:40px;padding:8px 16px}.widget-panel--minimized:hover{box-shadow:0 12px 40px #0445b747,0 4px 12px #0000001f;transform:translateY(-2px);transition:box-shadow .2s ease,transform .2s ease}.widget-header{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;border-bottom:1px solid #e0e0e0;background:#fff;flex-shrink:0}.widget-header-agent{display:flex;align-items:center;gap:16px;flex:1;min-width:0}.widget-header-avatar-wrap{position:relative;flex-shrink:0}.widget-header-avatar{width:32px;height:32px;border-radius:50%;border:1px solid #0cc1a3;overflow:hidden}.widget-header-avatar img{width:100%;height:100%;object-fit:cover}.widget-header-text{display:flex;flex-direction:column;justify-content:center;min-width:0}.widget-header-name{font-size:14px;font-weight:700;color:#0e0044;line-height:1.2}.widget-header-role{font-size:10px;font-weight:400;color:#0e0044;line-height:1.2}.widget-header-actions{display:flex;align-items:center;flex-shrink:0;margin-left:12px}.widget-open-icon{display:flex;align-items:center;flex-shrink:0}.widget-icon-btn{display:flex;align-items:center;justify-content:center;padding:6px;background:none;border:none;border-radius:4px;cursor:pointer;color:#0e0044}.widget-icon-btn:hover{background:#0000000f}.widget-body{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;animation:widget-body-in .25s cubic-bezier(.22,1,.36,1) both}.widget-body .chat-container{flex:1;min-height:0;height:100%;border:none;border-radius:0;box-shadow:none;overflow:hidden}.widget-body .resizable-panels{flex:1!important;min-height:0!important;overflow:hidden!important}.widget-body .messages-panel{overflow:hidden!important;border-left:none}.widget-body .messages-main{height:100%;min-height:0;overflow-y:auto}.widget-body .messages{min-height:0;padding:16px 20px}.widget-body .messages-loading{min-height:0}.widget-body .mobile-bar{display:none!important}.widget-online-dot{position:absolute;bottom:0;right:0;width:9px;height:9px;border-radius:50%;background:#0cc1a3;border:2px solid #fff;animation:widget-dot-pulse 2.4s ease-in-out infinite}@keyframes widget-dot-pulse{0%,to{box-shadow:0 0 #0cc1a380}50%{box-shadow:0 0 0 4px #0cc1a300}}.ts-modal{max-width:760px;max-height:90vh;display:flex;flex-direction:column;padding:0;border-radius:12px;overflow:hidden}.ts-header-badge{display:inline-block;padding:3px 10px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;border-radius:100px;background:#0e004412;color:#5a5278;margin-bottom:8px}.ts-header-meta{margin:6px 0 0;font-size:13px;color:#5a5278;font-weight:400}.ts-scroll-body{flex:1;overflow-y:auto;padding:24px 32px 32px}.ts-card{border-radius:10px;margin-bottom:20px}.ts-summary-card{padding:20px;background:#0e004408;border:1px solid rgba(14,0,68,.06)}.ts-summary-text{margin:0;font-size:15px;line-height:1.7;color:#1a1145}.ts-confidence-card{padding:16px 20px;background:#fefce8;border:1px solid #fde68a}.ts-confidence-row{display:flex;align-items:flex-start;gap:12px}.ts-confidence-desc{font-size:13px;line-height:1.5;color:#78350f}.ts-confidence-flags{display:flex;flex-direction:column;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(253,230,138,.8)}.ts-flag-card{display:flex;gap:8px;align-items:flex-start}.ts-flag-icon{flex-shrink:0;color:#b45309;margin-top:2px}.ts-flag-text{font-size:13px;line-height:1.5;color:#78350f}.ts-flag-text strong{font-weight:600;color:#92400e}.ts-section{padding:20px 0;border-bottom:1px solid rgba(14,0,68,.06)}.ts-section:last-child{border-bottom:none;padding-bottom:0}.ts-heading{margin:0 0 14px;font-family:Montserrat,Inter,ui-sans-serif,system-ui,sans-serif;font-size:11px;font-weight:700;color:#8a83a3;text-transform:uppercase;letter-spacing:.1em}.ts-parties{display:flex;align-items:stretch;gap:0}.ts-party-card{flex:1;padding:16px;border-radius:8px;background:#0e004408;border:1px solid rgba(14,0,68,.06)}.ts-party-role{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#8a83a3;margin-bottom:6px}.ts-party-name{font-size:15px;font-weight:600;color:#0e0044;line-height:1.3}.ts-party-detail{font-size:13px;color:#5a5278;margin-top:2px}.ts-vs{display:flex;align-items:center;padding:0 14px;font-size:12px;font-weight:600;color:#8a83a3;text-transform:uppercase;letter-spacing:.05em}.ts-details-grid{display:flex;flex-direction:column;gap:0}.ts-info-row{display:flex;align-items:baseline;padding:7px 0;border-bottom:1px solid rgba(14,0,68,.04)}.ts-info-row:last-child{border-bottom:none}.ts-info-icon{margin-right:8px;font-size:14px}.ts-info-label{font-size:13px;color:#8a83a3;min-width:160px;flex-shrink:0}.ts-info-value{font-size:14px;color:#1a1145;font-weight:500}.ts-tags{display:flex;flex-wrap:wrap;gap:6px}.ts-tag{display:inline-block;padding:4px 12px;font-size:12px;font-weight:500;border-radius:6px;background:#0e00440d;color:#2d2554}.ts-tag-legal{background:#0445b714;color:#0445b7;font-weight:600;font-family:Montserrat,Inter,ui-sans-serif,system-ui,sans-serif}.ts-pill{display:inline-block;padding:3px 12px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;border-radius:100px;white-space:nowrap}.pill-success{background:#dcfce7;color:#15803d}.pill-warning{background:#fef3c7;color:#a16207}.pill-danger{background:#fee2e2;color:#b91c1c}.pill-neutral{background:#0e00440f;color:#5a5278}.ts-orders-list{display:flex;flex-direction:column;gap:8px}.ts-order-card{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-radius:8px;background:#0e004405;border:1px solid rgba(14,0,68,.06);transition:background .15s,border-color .15s}.ts-order-card.ts-clickable{cursor:pointer}.ts-order-card.ts-clickable:hover{background:#0e00440d;border-color:#0e00441f}.ts-order-badge{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#0e0044;color:#fff;font-size:12px;font-weight:700;flex-shrink:0}.ts-order-text{font-size:14px;line-height:1.6;color:#1a1145;padding-top:2px}.ts-claims-list{display:flex;flex-direction:column;gap:10px}.ts-claim-card{padding:16px;border-radius:8px;background:#0e004405;border:1px solid rgba(14,0,68,.06)}.ts-claim-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.ts-claim-type{font-size:14px;font-weight:600;color:#0e0044;text-transform:capitalize}.ts-claim-amounts{display:flex;gap:24px;margin-top:10px}.ts-claim-amount{display:flex;flex-direction:column;gap:1px}.ts-claim-amount-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#8a83a3}.ts-claim-amount-value{font-size:15px;font-weight:500;color:#2d2554}.ts-claim-amount-awarded{font-weight:700;color:#0e0044}.ts-claim-reason{margin:10px 0 0;font-size:13px;line-height:1.6;color:#5a5278}.ts-awards-bar{display:flex;gap:0;margin-top:14px;border-radius:8px;overflow:hidden;border:1px solid rgba(14,0,68,.08)}.ts-awards-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 16px;background:#0e004405;border-right:1px solid rgba(14,0,68,.06)}.ts-awards-item:last-child{border-right:none}.ts-awards-highlight{background:#0e0044}.ts-awards-item-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#8a83a3}.ts-awards-highlight .ts-awards-item-label{color:#ffffffb3}.ts-awards-item-value{font-size:16px;font-weight:700;color:#0e0044}.ts-awards-highlight .ts-awards-item-value{color:#fff}.ts-bond-table{margin-top:12px;border-radius:8px;border:1px solid rgba(14,0,68,.06);overflow:hidden}.ts-bond-row{display:flex;justify-content:space-between;font-size:14px;color:#2d2554;padding:10px 16px;border-bottom:1px solid rgba(14,0,68,.04)}.ts-bond-row:last-child{border-bottom:none}.ts-value-bold{font-weight:600;color:#0e0044}.ts-table-wrap{overflow-x:auto;border-radius:8px;border:1px solid rgba(14,0,68,.08)}.ts-table{width:100%;border-collapse:collapse;font-size:13px}.ts-table th{text-align:left;padding:10px 14px;font-weight:600;color:#0e0044;background:#0e00440a;border-bottom:2px solid rgba(14,0,68,.08)}.ts-table td{padding:8px 14px;color:#2d2554;border-bottom:1px solid rgba(14,0,68,.04)}.ts-table tr:last-child td{border-bottom:none}.ts-reason-block{margin-bottom:20px}.ts-reason-block:last-child{margin-bottom:0}.ts-reason-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.ts-reason-title{margin:0;font-family:Montserrat,Inter,ui-sans-serif,system-ui,sans-serif;font-size:15px;font-weight:600;color:#0e0044}.ts-page-chip{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#0e00440f;border:none;border-radius:100px;padding:4px 12px;font-size:11px;font-weight:600;color:#5a5278;cursor:pointer;transition:background .15s,color .15s;white-space:nowrap;flex-shrink:0}.ts-page-chip:hover{background:#0e0044;color:#fff}.ts-paragraphs{display:flex;flex-direction:column;gap:4px}.ts-para{display:flex;align-items:flex-start;gap:12px;padding:8px 12px;border-radius:8px;transition:background .15s}.ts-para.ts-clickable{cursor:pointer}.ts-para.ts-clickable:hover{background:#0e00440a}.ts-para-badge{display:flex;align-items:center;justify-content:center;min-width:28px;height:24px;border-radius:6px;background:#0e00440f;color:#5a5278;font-size:12px;font-weight:700;flex-shrink:0;margin-top:2px}.ts-clickable:hover .ts-para-badge,.ts-clickable:hover .ts-order-badge{background:#0e0044;color:#fff}.ts-para-body{flex:1;min-width:0}.ts-para-body p{margin:0;font-size:14px;line-height:1.7;color:#2d2554}.ts-sub-items{margin:6px 0 0 16px;padding:0;list-style:disc;font-size:13px;color:#5a5278}.ts-sub-items li{margin-bottom:3px;line-height:1.5}.ts-footnotes{margin-top:12px;padding:10px 14px;border-radius:8px;background:#0e004405}.ts-footnote{font-size:12px;color:#5a5278;margin-bottom:4px;line-height:1.5}.ts-footnote:last-child{margin-bottom:0}.ts-footnote sup{font-weight:700;color:#0e0044;margin-right:4px}.ts-ref-group{margin-bottom:14px}.ts-ref-group:last-child{margin-bottom:0}.ts-ref-label{display:block;margin-bottom:8px;font-size:12px;font-weight:600;color:#5a5278}.ts-findings-grid{display:flex;flex-wrap:wrap;gap:8px}.ts-finding-card{display:flex;flex-direction:column;gap:2px;padding:12px 16px;border-radius:8px;background:#0e004408;border:1px solid rgba(14,0,68,.05);min-width:140px;flex:1}.ts-finding-alert{background:#fef2f2;border-color:#fecaca}.ts-finding-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#8a83a3}.ts-finding-alert .ts-finding-label{color:#b91c1c}.ts-finding-value{font-size:15px;font-weight:600;color:#0e0044;text-transform:capitalize}.ts-finding-alert .ts-finding-value{color:#b91c1c}.ts-clickable{cursor:pointer}.sidebar-loading-more{display:flex;justify-content:center;padding:12px 0}.messages-loading-more{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 0;font-size:13px;color:#64748b}.scroll-to-bottom-btn{position:sticky;bottom:80px;left:50%;transform:translate(-50%);z-index:10;display:flex;align-items:center;justify-content:center;width:32px;min-width:32px;max-width:32px;height:32px;border-radius:50%;border:1px solid #c4c4c4;background:#fff;color:#0e0044;cursor:pointer;box-shadow:0 0 2px #0003;transition:background .15s,box-shadow .15s;margin:0 auto;flex-shrink:0}.scroll-to-bottom-btn:hover{background:#f3f4f6;box-shadow:0 0 4px #00000040}';
|
|
21
21
|
var Ad = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
22
22
|
function eo(n) {
|
|
23
23
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var jm = { exports: {} }, Tu = {};
|
|
26
26
|
/**
|
|
27
27
|
* @license React
|
|
28
28
|
* react-jsx-runtime.production.min.js
|
|
@@ -646,8 +646,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
646
646
|
ju.Fragment = r, ju.jsx = Ep, ju.jsxs = Np;
|
|
647
647
|
}()), ju;
|
|
648
648
|
}
|
|
649
|
-
process.env.NODE_ENV === "production" ?
|
|
650
|
-
var b =
|
|
649
|
+
process.env.NODE_ENV === "production" ? jm.exports = b2() : jm.exports = x2();
|
|
650
|
+
var b = jm.exports;
|
|
651
651
|
function y2(n, e) {
|
|
652
652
|
const t = getComputedStyle(n), r = parseFloat(t.fontSize);
|
|
653
653
|
return e * r;
|
|
@@ -716,7 +716,7 @@ function cu({
|
|
|
716
716
|
const { orientation: e, panels: t } = n;
|
|
717
717
|
return t.reduce((r, i) => (r += e === "horizontal" ? i.element.offsetWidth : i.element.offsetHeight, r), 0);
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function Om(n) {
|
|
720
720
|
const { panels: e } = n, t = cu({ group: n });
|
|
721
721
|
return t === 0 ? e.map((r) => ({
|
|
722
722
|
collapsedSize: 0,
|
|
@@ -779,7 +779,7 @@ function xt(n, e = "Assertion error") {
|
|
|
779
779
|
if (!n)
|
|
780
780
|
throw Error(e);
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function Lm(n, e) {
|
|
783
783
|
return Array.from(e).sort(
|
|
784
784
|
n === "horizontal" ? S2 : I2
|
|
785
785
|
);
|
|
@@ -828,7 +828,7 @@ function N2() {
|
|
|
828
828
|
return Op === void 0 && (typeof matchMedia == "function" ? Op = !!matchMedia("(pointer:coarse)").matches : Op = !1), Op;
|
|
829
829
|
}
|
|
830
830
|
function K1(n) {
|
|
831
|
-
const { element: e, orientation: t, panels: r, separators: i } = n, s =
|
|
831
|
+
const { element: e, orientation: t, panels: r, separators: i } = n, s = Lm(
|
|
832
832
|
t,
|
|
833
833
|
Array.from(e.children).filter(X1).map((g) => ({ element: g }))
|
|
834
834
|
).map(({ element: g }) => g), a = [];
|
|
@@ -1696,7 +1696,7 @@ function V0(n) {
|
|
|
1696
1696
|
}
|
|
1697
1697
|
}), t.length && n.preventDefault();
|
|
1698
1698
|
}
|
|
1699
|
-
const H2 = (n) => n,
|
|
1699
|
+
const H2 = (n) => n, qg = () => {
|
|
1700
1700
|
}, nw = 1, rw = 2, iw = 4, sw = 8, q0 = 3, Z0 = 12;
|
|
1701
1701
|
let Lp;
|
|
1702
1702
|
function Y0() {
|
|
@@ -1986,7 +1986,7 @@ function Q2(n) {
|
|
|
1986
1986
|
or((w) => {
|
|
1987
1987
|
const y = w.mountedGroups.get(n);
|
|
1988
1988
|
if (y) {
|
|
1989
|
-
const E =
|
|
1989
|
+
const E = Om(n), C = y.defaultLayoutDeferred ? ex(E) : y.layout, N = kl({
|
|
1990
1990
|
layout: C,
|
|
1991
1991
|
panelConstraints: E
|
|
1992
1992
|
});
|
|
@@ -2015,7 +2015,7 @@ function Q2(n) {
|
|
|
2015
2015
|
`Panel ids must be unique; id "${g.id}" was used more than once`
|
|
2016
2016
|
), r.add(g.id), g.onResize && s.observe(g.element);
|
|
2017
2017
|
});
|
|
2018
|
-
const a = cu({ group: n }), o =
|
|
2018
|
+
const a = cu({ group: n }), o = Om(n), l = n.panels.map(({ id: g }) => g).join(",");
|
|
2019
2019
|
let c = n.defaultLayout;
|
|
2020
2020
|
c && (G2(n.panels, c) || (c = void 0));
|
|
2021
2021
|
const u = n.inMemoryLayouts[l] ?? c ?? ex(o), h = kl({
|
|
@@ -2193,7 +2193,7 @@ function lw({
|
|
|
2193
2193
|
orientation: u,
|
|
2194
2194
|
registerPanel: (D) => {
|
|
2195
2195
|
const G = C.current;
|
|
2196
|
-
return G.panels =
|
|
2196
|
+
return G.panels = Lm(u, [
|
|
2197
2197
|
...G.panels,
|
|
2198
2198
|
D
|
|
2199
2199
|
]), E(), () => {
|
|
@@ -2204,7 +2204,7 @@ function lw({
|
|
|
2204
2204
|
},
|
|
2205
2205
|
registerSeparator: (D) => {
|
|
2206
2206
|
const G = C.current;
|
|
2207
|
-
return G.separators =
|
|
2207
|
+
return G.separators = Lm(u, [
|
|
2208
2208
|
...G.separators,
|
|
2209
2209
|
D
|
|
2210
2210
|
]), E(), () => {
|
|
@@ -2222,7 +2222,7 @@ function lw({
|
|
|
2222
2222
|
for (const q of F.keys())
|
|
2223
2223
|
if (q.id === A) {
|
|
2224
2224
|
const R = F.get(q);
|
|
2225
|
-
R && (R.derivedPanelConstraints =
|
|
2225
|
+
R && (R.derivedPanelConstraints = Om(q));
|
|
2226
2226
|
}
|
|
2227
2227
|
},
|
|
2228
2228
|
toggleSeparatorDisabled: (D, G) => {
|
|
@@ -2329,7 +2329,7 @@ function lw({
|
|
|
2329
2329
|
}
|
|
2330
2330
|
lw.displayName = "Group";
|
|
2331
2331
|
function Eb() {
|
|
2332
|
-
const n =
|
|
2332
|
+
const n = wb(ow);
|
|
2333
2333
|
return xt(
|
|
2334
2334
|
n,
|
|
2335
2335
|
"Group Context not found; did you render a Panel or Separator outside of a Group?"
|
|
@@ -2337,14 +2337,14 @@ function Eb() {
|
|
|
2337
2337
|
}
|
|
2338
2338
|
function Z2(n, e) {
|
|
2339
2339
|
const { id: t } = Eb(), r = Ee({
|
|
2340
|
-
collapse:
|
|
2341
|
-
expand:
|
|
2340
|
+
collapse: qg,
|
|
2341
|
+
expand: qg,
|
|
2342
2342
|
getSize: () => ({
|
|
2343
2343
|
asPercentage: 0,
|
|
2344
2344
|
inPixels: 0
|
|
2345
2345
|
}),
|
|
2346
2346
|
isCollapsed: () => !1,
|
|
2347
|
-
resize:
|
|
2347
|
+
resize: qg
|
|
2348
2348
|
});
|
|
2349
2349
|
Z1(e, () => r.current, []), jl(() => {
|
|
2350
2350
|
Object.assign(
|
|
@@ -2353,7 +2353,7 @@ function Z2(n, e) {
|
|
|
2353
2353
|
);
|
|
2354
2354
|
});
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2356
|
+
function Mm({
|
|
2357
2357
|
children: n,
|
|
2358
2358
|
className: e,
|
|
2359
2359
|
collapsedSize: t = "0%",
|
|
@@ -2468,7 +2468,7 @@ function Lm({
|
|
|
2468
2468
|
}
|
|
2469
2469
|
);
|
|
2470
2470
|
}
|
|
2471
|
-
|
|
2471
|
+
Mm.displayName = "Panel";
|
|
2472
2472
|
const Y2 = {
|
|
2473
2473
|
minHeight: 0,
|
|
2474
2474
|
maxHeight: "100%",
|
|
@@ -2836,7 +2836,7 @@ Error message: ${hw(e)}`,
|
|
|
2836
2836
|
static isInstance(n) {
|
|
2837
2837
|
return ps.hasMarker(n, mw);
|
|
2838
2838
|
}
|
|
2839
|
-
}, Aw = "AI_TypeValidationError", bw = `vercel.ai.error.${Aw}`, iI = Symbol.for(bw), cx, ux, uu = class
|
|
2839
|
+
}, Aw = "AI_TypeValidationError", bw = `vercel.ai.error.${Aw}`, iI = Symbol.for(bw), cx, ux, uu = class Pm extends (ux = ps, cx = iI, ux) {
|
|
2840
2840
|
constructor({
|
|
2841
2841
|
value: e,
|
|
2842
2842
|
cause: t,
|
|
@@ -2875,7 +2875,7 @@ Error message: ${hw(t)}`,
|
|
|
2875
2875
|
context: r
|
|
2876
2876
|
}) {
|
|
2877
2877
|
var i, s, a;
|
|
2878
|
-
return
|
|
2878
|
+
return Pm.isInstance(t) && t.value === e && ((i = t.context) == null ? void 0 : i.field) === (r == null ? void 0 : r.field) && ((s = t.context) == null ? void 0 : s.entityName) === (r == null ? void 0 : r.entityName) && ((a = t.context) == null ? void 0 : a.entityId) === (r == null ? void 0 : r.entityId) ? t : new Pm({ value: e, cause: t, context: r });
|
|
2879
2879
|
}
|
|
2880
2880
|
};
|
|
2881
2881
|
function _(n, e, t) {
|
|
@@ -2962,7 +2962,7 @@ function gt(n, e, t) {
|
|
|
2962
2962
|
configurable: !0
|
|
2963
2963
|
});
|
|
2964
2964
|
}
|
|
2965
|
-
function
|
|
2965
|
+
function vg(n, e, t) {
|
|
2966
2966
|
Object.defineProperty(n, e, {
|
|
2967
2967
|
value: t,
|
|
2968
2968
|
writable: !0,
|
|
@@ -3062,7 +3062,7 @@ function pI(n, e) {
|
|
|
3062
3062
|
...n._zod.def,
|
|
3063
3063
|
get shape() {
|
|
3064
3064
|
const r = { ...n._zod.def.shape, ...e };
|
|
3065
|
-
return
|
|
3065
|
+
return vg(this, "shape", r), r;
|
|
3066
3066
|
},
|
|
3067
3067
|
checks: []
|
|
3068
3068
|
// delete existing checks
|
|
@@ -3074,7 +3074,7 @@ function fI(n, e) {
|
|
|
3074
3074
|
...n._zod.def,
|
|
3075
3075
|
get shape() {
|
|
3076
3076
|
const t = { ...n._zod.def.shape, ...e._zod.def.shape };
|
|
3077
|
-
return
|
|
3077
|
+
return vg(this, "shape", t), t;
|
|
3078
3078
|
},
|
|
3079
3079
|
catchall: e._zod.def.catchall,
|
|
3080
3080
|
checks: []
|
|
@@ -3448,7 +3448,7 @@ const QI = (n) => {
|
|
|
3448
3448
|
continue: !e.abort
|
|
3449
3449
|
});
|
|
3450
3450
|
};
|
|
3451
|
-
}),
|
|
3451
|
+
}), kg = /* @__PURE__ */ _("$ZodCheckStringFormat", (n, e) => {
|
|
3452
3452
|
var t, r;
|
|
3453
3453
|
Sr.init(n, e), n._zod.onattach.push((i) => {
|
|
3454
3454
|
const s = i._zod.bag;
|
|
@@ -3466,7 +3466,7 @@ const QI = (n) => {
|
|
|
3466
3466
|
}) : (r = n._zod).check ?? (r.check = () => {
|
|
3467
3467
|
});
|
|
3468
3468
|
}), nE = /* @__PURE__ */ _("$ZodCheckRegex", (n, e) => {
|
|
3469
|
-
|
|
3469
|
+
kg.init(n, e), n._zod.check = (t) => {
|
|
3470
3470
|
e.pattern.lastIndex = 0, !e.pattern.test(t.value) && t.issues.push({
|
|
3471
3471
|
origin: "string",
|
|
3472
3472
|
code: "invalid_format",
|
|
@@ -3478,9 +3478,9 @@ const QI = (n) => {
|
|
|
3478
3478
|
});
|
|
3479
3479
|
};
|
|
3480
3480
|
}), rE = /* @__PURE__ */ _("$ZodCheckLowerCase", (n, e) => {
|
|
3481
|
-
e.pattern ?? (e.pattern = XI),
|
|
3481
|
+
e.pattern ?? (e.pattern = XI), kg.init(n, e);
|
|
3482
3482
|
}), iE = /* @__PURE__ */ _("$ZodCheckUpperCase", (n, e) => {
|
|
3483
|
-
e.pattern ?? (e.pattern = JI),
|
|
3483
|
+
e.pattern ?? (e.pattern = JI), kg.init(n, e);
|
|
3484
3484
|
}), sE = /* @__PURE__ */ _("$ZodCheckIncludes", (n, e) => {
|
|
3485
3485
|
Sr.init(n, e);
|
|
3486
3486
|
const t = ap(e.includes), r = new RegExp(typeof e.position == "number" ? `^.{${e.position}}${t}` : t);
|
|
@@ -3643,7 +3643,7 @@ const uE = {
|
|
|
3643
3643
|
}), r;
|
|
3644
3644
|
};
|
|
3645
3645
|
}), Gt = /* @__PURE__ */ _("$ZodStringFormat", (n, e) => {
|
|
3646
|
-
|
|
3646
|
+
kg.init(n, e), Lb.init(n, e);
|
|
3647
3647
|
}), dE = /* @__PURE__ */ _("$ZodGUID", (n, e) => {
|
|
3648
3648
|
e.pattern ?? (e.pattern = jI), Gt.init(n, e);
|
|
3649
3649
|
}), hE = /* @__PURE__ */ _("$ZodUUID", (n, e) => {
|
|
@@ -4138,7 +4138,7 @@ const Rw = /* @__PURE__ */ _("$ZodUnion", (n, e) => {
|
|
|
4138
4138
|
return s instanceof Promise || a instanceof Promise ? Promise.all([s, a]).then(([l, c]) => gx(t, l, c)) : gx(t, s, a);
|
|
4139
4139
|
};
|
|
4140
4140
|
});
|
|
4141
|
-
function
|
|
4141
|
+
function Rm(n, e) {
|
|
4142
4142
|
if (n === e)
|
|
4143
4143
|
return { valid: !0, data: n };
|
|
4144
4144
|
if (n instanceof Date && e instanceof Date && +n == +e)
|
|
@@ -4146,7 +4146,7 @@ function Pm(n, e) {
|
|
|
4146
4146
|
if (Ff(n) && Ff(e)) {
|
|
4147
4147
|
const t = Object.keys(e), r = Object.keys(n).filter((s) => t.indexOf(s) !== -1), i = { ...n, ...e };
|
|
4148
4148
|
for (const s of r) {
|
|
4149
|
-
const a =
|
|
4149
|
+
const a = Rm(n[s], e[s]);
|
|
4150
4150
|
if (!a.valid)
|
|
4151
4151
|
return {
|
|
4152
4152
|
valid: !1,
|
|
@@ -4161,7 +4161,7 @@ function Pm(n, e) {
|
|
|
4161
4161
|
return { valid: !1, mergeErrorPath: [] };
|
|
4162
4162
|
const t = [];
|
|
4163
4163
|
for (let r = 0; r < n.length; r++) {
|
|
4164
|
-
const i = n[r], s = e[r], a =
|
|
4164
|
+
const i = n[r], s = e[r], a = Rm(i, s);
|
|
4165
4165
|
if (!a.valid)
|
|
4166
4166
|
return {
|
|
4167
4167
|
valid: !1,
|
|
@@ -4176,7 +4176,7 @@ function Pm(n, e) {
|
|
|
4176
4176
|
function gx(n, e, t) {
|
|
4177
4177
|
if (e.issues.length && n.issues.push(...e.issues), t.issues.length && n.issues.push(...t.issues), dd(n))
|
|
4178
4178
|
return n;
|
|
4179
|
-
const r =
|
|
4179
|
+
const r = Rm(e.value, t.value);
|
|
4180
4180
|
if (!r.valid)
|
|
4181
4181
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
|
|
4182
4182
|
return n.value = r.data, n;
|
|
@@ -4695,7 +4695,7 @@ function vx(n, e) {
|
|
|
4695
4695
|
inclusive: !1
|
|
4696
4696
|
});
|
|
4697
4697
|
}
|
|
4698
|
-
function
|
|
4698
|
+
function Zg(n, e) {
|
|
4699
4699
|
return new Ow({
|
|
4700
4700
|
check: "less_than",
|
|
4701
4701
|
...ke(e),
|
|
@@ -4711,7 +4711,7 @@ function kx(n, e) {
|
|
|
4711
4711
|
inclusive: !1
|
|
4712
4712
|
});
|
|
4713
4713
|
}
|
|
4714
|
-
function
|
|
4714
|
+
function Yg(n, e) {
|
|
4715
4715
|
return new Lw({
|
|
4716
4716
|
check: "greater_than",
|
|
4717
4717
|
...ke(e),
|
|
@@ -5398,9 +5398,9 @@ const aN = (n, e) => {
|
|
|
5398
5398
|
// enumerable: false,
|
|
5399
5399
|
}
|
|
5400
5400
|
});
|
|
5401
|
-
},
|
|
5401
|
+
}, Cg = _("ZodError", aN, {
|
|
5402
5402
|
Parent: Error
|
|
5403
|
-
}), oN = /* @__PURE__ */ xI(
|
|
5403
|
+
}), oN = /* @__PURE__ */ xI(Cg), lN = /* @__PURE__ */ yI(Cg), cN = /* @__PURE__ */ Sw(Cg), Hw = /* @__PURE__ */ Iw(Cg), Qt = /* @__PURE__ */ _("ZodType", (n, e) => (jt.init(n, e), n.def = e, Object.defineProperty(n, "_def", { value: e }), n.check = (...t) => n.clone(
|
|
5404
5404
|
{
|
|
5405
5405
|
...e,
|
|
5406
5406
|
checks: [
|
|
@@ -5474,7 +5474,7 @@ const Jt = /* @__PURE__ */ _("ZodStringFormat", (n, e) => {
|
|
|
5474
5474
|
}), EN = /* @__PURE__ */ _("ZodJWT", (n, e) => {
|
|
5475
5475
|
RE.init(n, e), Jt.init(n, e);
|
|
5476
5476
|
}), Uw = /* @__PURE__ */ _("ZodNumber", (n, e) => {
|
|
5477
|
-
Pw.init(n, e), Qt.init(n, e), n.gt = (r, i) => n.check(kx(r, i)), n.gte = (r, i) => n.check(
|
|
5477
|
+
Pw.init(n, e), Qt.init(n, e), n.gt = (r, i) => n.check(kx(r, i)), n.gte = (r, i) => n.check(Yg(r, i)), n.min = (r, i) => n.check(Yg(r, i)), n.lt = (r, i) => n.check(vx(r, i)), n.lte = (r, i) => n.check(Zg(r, i)), n.max = (r, i) => n.check(Zg(r, i)), n.int = (r) => n.check(Ex(r)), n.safe = (r) => n.check(Ex(r)), n.positive = (r) => n.check(kx(0, r)), n.nonnegative = (r) => n.check(Yg(0, r)), n.negative = (r) => n.check(vx(0, r)), n.nonpositive = (r) => n.check(Zg(0, r)), n.multipleOf = (r, i) => n.check(Cx(r, i)), n.step = (r, i) => n.check(Cx(r, i)), n.finite = () => n;
|
|
5478
5478
|
const t = n._zod.bag;
|
|
5479
5479
|
n.minValue = Math.max(t.minimum ?? Number.NEGATIVE_INFINITY, t.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, n.maxValue = Math.min(t.maximum ?? Number.POSITIVE_INFINITY, t.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, n.isInt = (t.format ?? "").includes("int") || Number.isSafeInteger(t.multipleOf ?? 0.5), n.isFinite = !0, n.format = t.format ?? null;
|
|
5480
5480
|
});
|
|
@@ -5524,7 +5524,7 @@ function Ct(n, e) {
|
|
|
5524
5524
|
const t = {
|
|
5525
5525
|
type: "object",
|
|
5526
5526
|
get shape() {
|
|
5527
|
-
return
|
|
5527
|
+
return vg(this, "shape", { ...n }), this.shape;
|
|
5528
5528
|
},
|
|
5529
5529
|
...ke(e)
|
|
5530
5530
|
};
|
|
@@ -5534,7 +5534,7 @@ function Pt(n, e) {
|
|
|
5534
5534
|
return new Gw({
|
|
5535
5535
|
type: "object",
|
|
5536
5536
|
get shape() {
|
|
5537
|
-
return
|
|
5537
|
+
return vg(this, "shape", { ...n }), this.shape;
|
|
5538
5538
|
},
|
|
5539
5539
|
catchall: Ww(),
|
|
5540
5540
|
...ke(e)
|
|
@@ -5582,7 +5582,7 @@ function vd(n, e, t) {
|
|
|
5582
5582
|
...ke(t)
|
|
5583
5583
|
});
|
|
5584
5584
|
}
|
|
5585
|
-
const
|
|
5585
|
+
const zm = /* @__PURE__ */ _("ZodEnum", (n, e) => {
|
|
5586
5586
|
qE.init(n, e), Qt.init(n, e), n.enum = e.entries, n.options = Object.values(e.entries);
|
|
5587
5587
|
const t = new Set(Object.keys(e.entries));
|
|
5588
5588
|
n.extract = (r, i) => {
|
|
@@ -5592,7 +5592,7 @@ const Rm = /* @__PURE__ */ _("ZodEnum", (n, e) => {
|
|
|
5592
5592
|
s[a] = e.entries[a];
|
|
5593
5593
|
else
|
|
5594
5594
|
throw new Error(`Key ${a} not found in enum`);
|
|
5595
|
-
return new
|
|
5595
|
+
return new zm({
|
|
5596
5596
|
...e,
|
|
5597
5597
|
checks: [],
|
|
5598
5598
|
...ke(i),
|
|
@@ -5605,7 +5605,7 @@ const Rm = /* @__PURE__ */ _("ZodEnum", (n, e) => {
|
|
|
5605
5605
|
delete s[a];
|
|
5606
5606
|
else
|
|
5607
5607
|
throw new Error(`Key ${a} not found in enum`);
|
|
5608
|
-
return new
|
|
5608
|
+
return new zm({
|
|
5609
5609
|
...e,
|
|
5610
5610
|
checks: [],
|
|
5611
5611
|
...ke(i),
|
|
@@ -5615,7 +5615,7 @@ const Rm = /* @__PURE__ */ _("ZodEnum", (n, e) => {
|
|
|
5615
5615
|
});
|
|
5616
5616
|
function Vw(n, e) {
|
|
5617
5617
|
const t = Array.isArray(n) ? Object.fromEntries(n.map((r) => [r, r])) : n;
|
|
5618
|
-
return new
|
|
5618
|
+
return new zm({
|
|
5619
5619
|
type: "enum",
|
|
5620
5620
|
entries: t,
|
|
5621
5621
|
...ke(e)
|
|
@@ -5796,14 +5796,14 @@ class Ox extends Error {
|
|
|
5796
5796
|
super(e), this.name = "ParseError", this.type = t.type, this.field = t.field, this.value = t.value, this.line = t.line;
|
|
5797
5797
|
}
|
|
5798
5798
|
}
|
|
5799
|
-
function
|
|
5799
|
+
function Xg(n) {
|
|
5800
5800
|
}
|
|
5801
5801
|
function aT(n) {
|
|
5802
5802
|
if (typeof n == "function")
|
|
5803
5803
|
throw new TypeError(
|
|
5804
5804
|
"`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?"
|
|
5805
5805
|
);
|
|
5806
|
-
const { onEvent: e =
|
|
5806
|
+
const { onEvent: e = Xg, onError: t = Xg, onRetry: r = Xg, onComment: i } = n;
|
|
5807
5807
|
let s = "", a = !0, o, l = "", c = "";
|
|
5808
5808
|
function u(m) {
|
|
5809
5809
|
const x = a ? m.replace(/^\xEF\xBB\xBF/, "") : m, [A, w] = oT(`${s}${x}`);
|
|
@@ -6171,7 +6171,7 @@ function IT(n) {
|
|
|
6171
6171
|
const: n.value
|
|
6172
6172
|
};
|
|
6173
6173
|
}
|
|
6174
|
-
var
|
|
6174
|
+
var Jg = void 0, fi = {
|
|
6175
6175
|
/**
|
|
6176
6176
|
* `c` was changed to `[cC]` to replicate /i flag
|
|
6177
6177
|
*/
|
|
@@ -6193,10 +6193,10 @@ var Xg = void 0, fi = {
|
|
|
6193
6193
|
* Fix in Zod:
|
|
6194
6194
|
* https://github.com/colinhacks/zod/commit/9340fd51e48576a75adc919bff65dbc4a5d4c99b
|
|
6195
6195
|
*/
|
|
6196
|
-
emoji: () => (
|
|
6196
|
+
emoji: () => (Jg === void 0 && (Jg = RegExp(
|
|
6197
6197
|
"^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",
|
|
6198
6198
|
"u"
|
|
6199
|
-
)),
|
|
6199
|
+
)), Jg),
|
|
6200
6200
|
/**
|
|
6201
6201
|
* Unused
|
|
6202
6202
|
*/
|
|
@@ -6260,7 +6260,7 @@ function Kw(n, e) {
|
|
|
6260
6260
|
case "startsWith":
|
|
6261
6261
|
Kn(
|
|
6262
6262
|
t,
|
|
6263
|
-
RegExp(`^${
|
|
6263
|
+
RegExp(`^${Kg(r.value, e)}`),
|
|
6264
6264
|
r.message,
|
|
6265
6265
|
e
|
|
6266
6266
|
);
|
|
@@ -6268,7 +6268,7 @@ function Kw(n, e) {
|
|
|
6268
6268
|
case "endsWith":
|
|
6269
6269
|
Kn(
|
|
6270
6270
|
t,
|
|
6271
|
-
RegExp(`${
|
|
6271
|
+
RegExp(`${Kg(r.value, e)}$`),
|
|
6272
6272
|
r.message,
|
|
6273
6273
|
e
|
|
6274
6274
|
);
|
|
@@ -6291,7 +6291,7 @@ function Kw(n, e) {
|
|
|
6291
6291
|
case "includes": {
|
|
6292
6292
|
Kn(
|
|
6293
6293
|
t,
|
|
6294
|
-
RegExp(
|
|
6294
|
+
RegExp(Kg(r.value, e)),
|
|
6295
6295
|
r.message,
|
|
6296
6296
|
e
|
|
6297
6297
|
);
|
|
@@ -6340,7 +6340,7 @@ function Kw(n, e) {
|
|
|
6340
6340
|
}
|
|
6341
6341
|
return t;
|
|
6342
6342
|
}
|
|
6343
|
-
function
|
|
6343
|
+
function Kg(n, e) {
|
|
6344
6344
|
return e.patternStrategy === "escape" ? NT(n) : n;
|
|
6345
6345
|
}
|
|
6346
6346
|
var ET = new Set(
|
|
@@ -6503,7 +6503,7 @@ function LT() {
|
|
|
6503
6503
|
type: "null"
|
|
6504
6504
|
};
|
|
6505
6505
|
}
|
|
6506
|
-
var
|
|
6506
|
+
var Fm = {
|
|
6507
6507
|
ZodString: "string",
|
|
6508
6508
|
ZodNumber: "number",
|
|
6509
6509
|
ZodBigInt: "integer",
|
|
@@ -6513,10 +6513,10 @@ var zm = {
|
|
|
6513
6513
|
function MT(n, e) {
|
|
6514
6514
|
const t = n.options instanceof Map ? Array.from(n.options.values()) : n.options;
|
|
6515
6515
|
if (t.every(
|
|
6516
|
-
(r) => r._def.typeName in
|
|
6516
|
+
(r) => r._def.typeName in Fm && (!r._def.checks || !r._def.checks.length)
|
|
6517
6517
|
)) {
|
|
6518
6518
|
const r = t.reduce((i, s) => {
|
|
6519
|
-
const a =
|
|
6519
|
+
const a = Fm[s._def.typeName];
|
|
6520
6520
|
return a && !i.includes(a) ? [...i, a] : i;
|
|
6521
6521
|
}, []);
|
|
6522
6522
|
return {
|
|
@@ -6584,7 +6584,7 @@ function RT(n, e) {
|
|
|
6584
6584
|
) && (!n.innerType._def.checks || !n.innerType._def.checks.length))
|
|
6585
6585
|
return {
|
|
6586
6586
|
type: [
|
|
6587
|
-
|
|
6587
|
+
Fm[n.innerType._def.typeName],
|
|
6588
6588
|
"null"
|
|
6589
6589
|
]
|
|
6590
6590
|
};
|
|
@@ -6921,16 +6921,16 @@ var JT = (n, e) => {
|
|
|
6921
6921
|
}
|
|
6922
6922
|
};
|
|
6923
6923
|
return l.$schema = "http://json-schema.org/draft-07/schema#", l;
|
|
6924
|
-
},
|
|
6924
|
+
}, Dm = Symbol.for("vercel.ai.schema");
|
|
6925
6925
|
function ej(n) {
|
|
6926
6926
|
let e;
|
|
6927
6927
|
return () => (e == null && (e = n()), e);
|
|
6928
6928
|
}
|
|
6929
|
-
function
|
|
6929
|
+
function Sg(n, {
|
|
6930
6930
|
validate: e
|
|
6931
6931
|
} = {}) {
|
|
6932
6932
|
return {
|
|
6933
|
-
[
|
|
6933
|
+
[Dm]: !0,
|
|
6934
6934
|
_type: void 0,
|
|
6935
6935
|
// should never be used directly
|
|
6936
6936
|
get jsonSchema() {
|
|
@@ -6940,13 +6940,13 @@ function Cg(n, {
|
|
|
6940
6940
|
};
|
|
6941
6941
|
}
|
|
6942
6942
|
function tj(n) {
|
|
6943
|
-
return typeof n == "object" && n !== null &&
|
|
6943
|
+
return typeof n == "object" && n !== null && Dm in n && n[Dm] === !0 && "jsonSchema" in n && "validate" in n;
|
|
6944
6944
|
}
|
|
6945
6945
|
function Rb(n) {
|
|
6946
|
-
return n == null ?
|
|
6946
|
+
return n == null ? Sg({ properties: {}, additionalProperties: !1 }) : tj(n) ? n : "~standard" in n ? n["~standard"].vendor === "zod" ? $w(n) : nj(n) : n();
|
|
6947
6947
|
}
|
|
6948
6948
|
function nj(n) {
|
|
6949
|
-
return
|
|
6949
|
+
return Sg(
|
|
6950
6950
|
() => Pb(
|
|
6951
6951
|
n["~standard"].jsonSchema.input({
|
|
6952
6952
|
target: "draft-07"
|
|
@@ -6969,7 +6969,7 @@ function nj(n) {
|
|
|
6969
6969
|
function rj(n, e) {
|
|
6970
6970
|
var t;
|
|
6971
6971
|
const r = (t = void 0) != null ? t : !1;
|
|
6972
|
-
return
|
|
6972
|
+
return Sg(
|
|
6973
6973
|
// defer json schema creation to avoid unnecessary computation when only validation is needed
|
|
6974
6974
|
() => $T(n, {
|
|
6975
6975
|
$refStrategy: r ? "root" : "none"
|
|
@@ -6985,7 +6985,7 @@ function rj(n, e) {
|
|
|
6985
6985
|
function ij(n, e) {
|
|
6986
6986
|
var t;
|
|
6987
6987
|
const r = (t = void 0) != null ? t : !1;
|
|
6988
|
-
return
|
|
6988
|
+
return Sg(
|
|
6989
6989
|
// defer json schema creation to avoid unnecessary computation when only validation is needed
|
|
6990
6990
|
() => Pb(
|
|
6991
6991
|
K4(n, {
|
|
@@ -8032,14 +8032,14 @@ var Nj = ej(
|
|
|
8032
8032
|
function Tj(n) {
|
|
8033
8033
|
return n.type.startsWith("data-");
|
|
8034
8034
|
}
|
|
8035
|
-
function
|
|
8035
|
+
function Hm(n) {
|
|
8036
8036
|
return n.type.startsWith("tool-");
|
|
8037
8037
|
}
|
|
8038
8038
|
function jj(n) {
|
|
8039
8039
|
return n.type === "dynamic-tool";
|
|
8040
8040
|
}
|
|
8041
8041
|
function Sd(n) {
|
|
8042
|
-
return
|
|
8042
|
+
return Hm(n) || jj(n);
|
|
8043
8043
|
}
|
|
8044
8044
|
function Hx(n) {
|
|
8045
8045
|
return n.type.split("-").slice(1).join("-");
|
|
@@ -8089,7 +8089,7 @@ function Lj({
|
|
|
8089
8089
|
function x(y) {
|
|
8090
8090
|
var E;
|
|
8091
8091
|
const C = c.message.parts.find(
|
|
8092
|
-
(H) =>
|
|
8092
|
+
(H) => Hm(H) && H.toolCallId === y.toolCallId
|
|
8093
8093
|
), N = y, j = C;
|
|
8094
8094
|
C != null ? (C.state = y.state, j.input = N.input, j.output = N.output, j.errorText = N.errorText, j.rawInput = N.rawInput, j.preliminary = N.preliminary, y.title !== void 0 && (j.title = y.title), j.providerExecuted = (E = N.providerExecuted) != null ? E : C.providerExecuted, N.providerMetadata != null && (C.callProviderMetadata = N.providerMetadata)) : c.message.parts.push({
|
|
8095
8095
|
type: `tool-${y.toolName}`,
|
|
@@ -8232,7 +8232,7 @@ function Lj({
|
|
|
8232
8232
|
break;
|
|
8233
8233
|
}
|
|
8234
8234
|
case "tool-input-start": {
|
|
8235
|
-
const y = c.message.parts.filter(
|
|
8235
|
+
const y = c.message.parts.filter(Hm);
|
|
8236
8236
|
c.partialToolCalls[o.toolCallId] = {
|
|
8237
8237
|
text: "",
|
|
8238
8238
|
toolName: o.toolName,
|
|
@@ -8920,7 +8920,7 @@ var hv = (n, e, t) => {
|
|
|
8920
8920
|
function Wj(n, e) {
|
|
8921
8921
|
return e != null ? Uj(n, e) : n;
|
|
8922
8922
|
}
|
|
8923
|
-
var Kr, Kp, _p, Vu, qu, Zu, Wl,
|
|
8923
|
+
var Kr, Kp, _p, Vu, qu, Zu, Wl, Bm, Um, Gj = class {
|
|
8924
8924
|
constructor(n = []) {
|
|
8925
8925
|
Ui(this, Kr, void 0), Ui(this, Kp, "ready"), Ui(this, _p, void 0), Ui(this, Vu, /* @__PURE__ */ new Set()), Ui(this, qu, /* @__PURE__ */ new Set()), Ui(this, Zu, /* @__PURE__ */ new Set()), this.pushMessage = (e) => {
|
|
8926
8926
|
ca(this, Kr, Rt(this, Kr).concat(e)), Rt(this, Wl).call(this);
|
|
@@ -8944,9 +8944,9 @@ var Kr, Kp, _p, Vu, qu, Zu, Wl, Hm, Bm, Gj = class {
|
|
|
8944
8944
|
Rt(this, Zu).delete(e);
|
|
8945
8945
|
}), Ui(this, Wl, () => {
|
|
8946
8946
|
Rt(this, Vu).forEach((e) => e());
|
|
8947
|
-
}), Ui(this, Hm, () => {
|
|
8948
|
-
Rt(this, qu).forEach((e) => e());
|
|
8949
8947
|
}), Ui(this, Bm, () => {
|
|
8948
|
+
Rt(this, qu).forEach((e) => e());
|
|
8949
|
+
}), Ui(this, Um, () => {
|
|
8950
8950
|
Rt(this, Zu).forEach((e) => e());
|
|
8951
8951
|
}), ca(this, Kr, n);
|
|
8952
8952
|
}
|
|
@@ -8954,13 +8954,13 @@ var Kr, Kp, _p, Vu, qu, Zu, Wl, Hm, Bm, Gj = class {
|
|
|
8954
8954
|
return Rt(this, Kp);
|
|
8955
8955
|
}
|
|
8956
8956
|
set status(n) {
|
|
8957
|
-
ca(this, Kp, n), Rt(this,
|
|
8957
|
+
ca(this, Kp, n), Rt(this, Bm).call(this);
|
|
8958
8958
|
}
|
|
8959
8959
|
get error() {
|
|
8960
8960
|
return Rt(this, _p);
|
|
8961
8961
|
}
|
|
8962
8962
|
set error(n) {
|
|
8963
|
-
ca(this, _p, n), Rt(this,
|
|
8963
|
+
ca(this, _p, n), Rt(this, Um).call(this);
|
|
8964
8964
|
}
|
|
8965
8965
|
get messages() {
|
|
8966
8966
|
return Rt(this, Kr);
|
|
@@ -8976,8 +8976,8 @@ Vu = /* @__PURE__ */ new WeakMap();
|
|
|
8976
8976
|
qu = /* @__PURE__ */ new WeakMap();
|
|
8977
8977
|
Zu = /* @__PURE__ */ new WeakMap();
|
|
8978
8978
|
Wl = /* @__PURE__ */ new WeakMap();
|
|
8979
|
-
Hm = /* @__PURE__ */ new WeakMap();
|
|
8980
8979
|
Bm = /* @__PURE__ */ new WeakMap();
|
|
8980
|
+
Um = /* @__PURE__ */ new WeakMap();
|
|
8981
8981
|
var Gl, Bx = class extends Fj {
|
|
8982
8982
|
constructor({ messages: e, ...t }) {
|
|
8983
8983
|
const r = new Gj(e);
|
|
@@ -9276,7 +9276,7 @@ var r3 = [
|
|
|
9276
9276
|
"symbol",
|
|
9277
9277
|
"undefined"
|
|
9278
9278
|
];
|
|
9279
|
-
function
|
|
9279
|
+
function Ig(n) {
|
|
9280
9280
|
const e = Object.prototype.toString.call(n).slice(8, -1);
|
|
9281
9281
|
if (/HTML\w+Element/.test(e))
|
|
9282
9282
|
return "HTMLElement";
|
|
@@ -9284,7 +9284,7 @@ function Sg(n) {
|
|
|
9284
9284
|
return e;
|
|
9285
9285
|
}
|
|
9286
9286
|
function Fi(n) {
|
|
9287
|
-
return (e) =>
|
|
9287
|
+
return (e) => Ig(e) === n;
|
|
9288
9288
|
}
|
|
9289
9289
|
function s3(n) {
|
|
9290
9290
|
return r3.includes(n);
|
|
@@ -9323,12 +9323,12 @@ function pe(n) {
|
|
|
9323
9323
|
return "Array";
|
|
9324
9324
|
if (pe.plainFunction(n))
|
|
9325
9325
|
return "Function";
|
|
9326
|
-
const e =
|
|
9326
|
+
const e = Ig(n);
|
|
9327
9327
|
return e || "Object";
|
|
9328
9328
|
}
|
|
9329
9329
|
pe.array = Array.isArray;
|
|
9330
9330
|
pe.arrayOf = (n, e) => !pe.array(n) && !pe.function(e) ? !1 : n.every((t) => e(t));
|
|
9331
|
-
pe.asyncGeneratorFunction = (n) =>
|
|
9331
|
+
pe.asyncGeneratorFunction = (n) => Ig(n) === "AsyncGeneratorFunction";
|
|
9332
9332
|
pe.asyncFunction = Fi("AsyncFunction");
|
|
9333
9333
|
pe.bigint = bu("bigint");
|
|
9334
9334
|
pe.boolean = (n) => n === !0 || n === !1;
|
|
@@ -9352,7 +9352,7 @@ pe.object = (n) => !pe.nullOrUndefined(n) && (pe.function(n) || typeof n == "obj
|
|
|
9352
9352
|
pe.oneOf = (n, e) => pe.array(n) ? n.indexOf(e) > -1 : !1;
|
|
9353
9353
|
pe.plainFunction = Fi("Function");
|
|
9354
9354
|
pe.plainObject = (n) => {
|
|
9355
|
-
if (
|
|
9355
|
+
if (Ig(n) !== "Object")
|
|
9356
9356
|
return !1;
|
|
9357
9357
|
const e = Object.getPrototypeOf(n);
|
|
9358
9358
|
return e === null || e === Object.getPrototypeOf({});
|
|
@@ -9626,7 +9626,7 @@ du.all = function(e, t) {
|
|
|
9626
9626
|
};
|
|
9627
9627
|
var P3 = du, R3 = P3;
|
|
9628
9628
|
const Li = /* @__PURE__ */ eo(R3);
|
|
9629
|
-
var
|
|
9629
|
+
var Wm = { exports: {} }, zp = { exports: {} }, ht = {};
|
|
9630
9630
|
/** @license React v16.13.1
|
|
9631
9631
|
* react-is.production.min.js
|
|
9632
9632
|
*
|
|
@@ -9802,9 +9802,9 @@ object-assign
|
|
|
9802
9802
|
(c) Sindre Sorhus
|
|
9803
9803
|
@license MIT
|
|
9804
9804
|
*/
|
|
9805
|
-
var
|
|
9805
|
+
var _g, ty;
|
|
9806
9806
|
function D3() {
|
|
9807
|
-
if (ty) return
|
|
9807
|
+
if (ty) return _g;
|
|
9808
9808
|
ty = 1;
|
|
9809
9809
|
var n = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
9810
9810
|
function r(s) {
|
|
@@ -9834,7 +9834,7 @@ function D3() {
|
|
|
9834
9834
|
return !1;
|
|
9835
9835
|
}
|
|
9836
9836
|
}
|
|
9837
|
-
return
|
|
9837
|
+
return _g = i() ? Object.assign : function(s, a) {
|
|
9838
9838
|
for (var o, l = r(s), c, u = 1; u < arguments.length; u++) {
|
|
9839
9839
|
o = Object(arguments[u]);
|
|
9840
9840
|
for (var h in o)
|
|
@@ -9846,22 +9846,22 @@ function D3() {
|
|
|
9846
9846
|
}
|
|
9847
9847
|
}
|
|
9848
9848
|
return l;
|
|
9849
|
-
},
|
|
9849
|
+
}, _g;
|
|
9850
9850
|
}
|
|
9851
|
-
var
|
|
9851
|
+
var $g, ny;
|
|
9852
9852
|
function Fb() {
|
|
9853
|
-
if (ny) return
|
|
9853
|
+
if (ny) return $g;
|
|
9854
9854
|
ny = 1;
|
|
9855
9855
|
var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
9856
|
-
return
|
|
9856
|
+
return $g = n, $g;
|
|
9857
9857
|
}
|
|
9858
|
-
var
|
|
9858
|
+
var em, ry;
|
|
9859
9859
|
function xv() {
|
|
9860
|
-
return ry || (ry = 1,
|
|
9860
|
+
return ry || (ry = 1, em = Function.call.bind(Object.prototype.hasOwnProperty)), em;
|
|
9861
9861
|
}
|
|
9862
|
-
var
|
|
9862
|
+
var tm, iy;
|
|
9863
9863
|
function H3() {
|
|
9864
|
-
if (iy) return
|
|
9864
|
+
if (iy) return tm;
|
|
9865
9865
|
iy = 1;
|
|
9866
9866
|
var n = function() {
|
|
9867
9867
|
};
|
|
@@ -9906,11 +9906,11 @@ function H3() {
|
|
|
9906
9906
|
}
|
|
9907
9907
|
return i.resetWarningCache = function() {
|
|
9908
9908
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
9909
|
-
},
|
|
9909
|
+
}, tm = i, tm;
|
|
9910
9910
|
}
|
|
9911
|
-
var
|
|
9911
|
+
var nm, sy;
|
|
9912
9912
|
function B3() {
|
|
9913
|
-
if (sy) return
|
|
9913
|
+
if (sy) return nm;
|
|
9914
9914
|
sy = 1;
|
|
9915
9915
|
var n = bv(), e = D3(), t = Fb(), r = xv(), i = H3(), s = function() {
|
|
9916
9916
|
};
|
|
@@ -9925,7 +9925,7 @@ function B3() {
|
|
|
9925
9925
|
function a() {
|
|
9926
9926
|
return null;
|
|
9927
9927
|
}
|
|
9928
|
-
return
|
|
9928
|
+
return nm = function(o, l) {
|
|
9929
9929
|
var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
9930
9930
|
function h(k) {
|
|
9931
9931
|
var M = k && (c && k[c] || k[u]);
|
|
@@ -10227,18 +10227,18 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
10227
10227
|
return !k.constructor || !k.constructor.name ? p : k.constructor.name;
|
|
10228
10228
|
}
|
|
10229
10229
|
return f.checkPropTypes = i, f.resetWarningCache = i.resetWarningCache, f.PropTypes = f, f;
|
|
10230
|
-
},
|
|
10230
|
+
}, nm;
|
|
10231
10231
|
}
|
|
10232
|
-
var
|
|
10232
|
+
var rm, ay;
|
|
10233
10233
|
function U3() {
|
|
10234
|
-
if (ay) return
|
|
10234
|
+
if (ay) return rm;
|
|
10235
10235
|
ay = 1;
|
|
10236
10236
|
var n = Fb();
|
|
10237
10237
|
function e() {
|
|
10238
10238
|
}
|
|
10239
10239
|
function t() {
|
|
10240
10240
|
}
|
|
10241
|
-
return t.resetWarningCache = e,
|
|
10241
|
+
return t.resetWarningCache = e, rm = function() {
|
|
10242
10242
|
function r(a, o, l, c, u, h) {
|
|
10243
10243
|
if (h !== n) {
|
|
10244
10244
|
var p = new Error(
|
|
@@ -10275,14 +10275,14 @@ function U3() {
|
|
|
10275
10275
|
resetWarningCache: e
|
|
10276
10276
|
};
|
|
10277
10277
|
return s.PropTypes = s, s;
|
|
10278
|
-
},
|
|
10278
|
+
}, rm;
|
|
10279
10279
|
}
|
|
10280
10280
|
if (process.env.NODE_ENV !== "production") {
|
|
10281
10281
|
var W3 = bv(), G3 = !0;
|
|
10282
|
-
|
|
10282
|
+
Wm.exports = B3()(W3.isElement, G3);
|
|
10283
10283
|
} else
|
|
10284
|
-
|
|
10285
|
-
var Q3 =
|
|
10284
|
+
Wm.exports = U3()();
|
|
10285
|
+
var Q3 = Wm.exports;
|
|
10286
10286
|
const ae = /* @__PURE__ */ eo(Q3);
|
|
10287
10287
|
/**!
|
|
10288
10288
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
@@ -10376,8 +10376,8 @@ function J3(n) {
|
|
|
10376
10376
|
var e = n.nodeName;
|
|
10377
10377
|
return e === "BODY" ? !1 : e === "HTML" || hu(n.firstElementChild) === n;
|
|
10378
10378
|
}
|
|
10379
|
-
function
|
|
10380
|
-
return n.parentNode !== null ?
|
|
10379
|
+
function Gm(n) {
|
|
10380
|
+
return n.parentNode !== null ? Gm(n.parentNode) : n;
|
|
10381
10381
|
}
|
|
10382
10382
|
function Uf(n, e) {
|
|
10383
10383
|
if (!n || !n.nodeType || !e || !e.nodeType)
|
|
@@ -10387,8 +10387,8 @@ function Uf(n, e) {
|
|
|
10387
10387
|
var a = s.commonAncestorContainer;
|
|
10388
10388
|
if (n !== a && e !== a || r.contains(i))
|
|
10389
10389
|
return J3(a) ? a : hu(a);
|
|
10390
|
-
var o =
|
|
10391
|
-
return o.host ? Uf(o.host, e) : Uf(n,
|
|
10390
|
+
var o = Gm(n);
|
|
10391
|
+
return o.host ? Uf(o.host, e) : Uf(n, Gm(e).host);
|
|
10392
10392
|
}
|
|
10393
10393
|
function pu(n) {
|
|
10394
10394
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "top", t = e === "top" ? "scrollTop" : "scrollLeft", r = n.nodeName;
|
|
@@ -10450,7 +10450,7 @@ function Xa(n) {
|
|
|
10450
10450
|
bottom: n.top + n.height
|
|
10451
10451
|
});
|
|
10452
10452
|
}
|
|
10453
|
-
function
|
|
10453
|
+
function Qm(n) {
|
|
10454
10454
|
var e = {};
|
|
10455
10455
|
try {
|
|
10456
10456
|
if (xu(10)) {
|
|
@@ -10474,7 +10474,7 @@ function Gm(n) {
|
|
|
10474
10474
|
return Xa(i);
|
|
10475
10475
|
}
|
|
10476
10476
|
function Hb(n, e) {
|
|
10477
|
-
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, r = xu(10), i = e.nodeName === "HTML", s =
|
|
10477
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, r = xu(10), i = e.nodeName === "HTML", s = Qm(n), a = Qm(e), o = dp(n), l = Ll(e), c = parseFloat(l.borderTopWidth), u = parseFloat(l.borderLeftWidth);
|
|
10478
10478
|
t && i && (a.top = Math.max(a.top, 0), a.left = Math.max(a.left, 0));
|
|
10479
10479
|
var h = Xa({
|
|
10480
10480
|
top: s.top - a.top - c,
|
|
@@ -10673,7 +10673,7 @@ function lO() {
|
|
|
10673
10673
|
function Wb(n) {
|
|
10674
10674
|
return n !== "" && !isNaN(parseFloat(n)) && isFinite(n);
|
|
10675
10675
|
}
|
|
10676
|
-
function
|
|
10676
|
+
function Vm(n, e) {
|
|
10677
10677
|
Object.keys(e).forEach(function(t) {
|
|
10678
10678
|
var r = "";
|
|
10679
10679
|
["width", "height", "top", "right", "bottom", "left"].indexOf(t) !== -1 && Wb(e[t]) && (r = "px"), n.style[t] = e[t] + r;
|
|
@@ -10686,11 +10686,11 @@ function cO(n, e) {
|
|
|
10686
10686
|
});
|
|
10687
10687
|
}
|
|
10688
10688
|
function uO(n) {
|
|
10689
|
-
return
|
|
10689
|
+
return Vm(n.instance.popper, n.styles), cO(n.instance.popper, n.attributes), n.arrowElement && Object.keys(n.arrowStyles).length && Vm(n.arrowElement, n.arrowStyles), n;
|
|
10690
10690
|
}
|
|
10691
10691
|
function dO(n, e, t, r, i) {
|
|
10692
10692
|
var s = Iv(i, e, n, t.positionFixed), a = Sv(t.placement, s, e, n, t.modifiers.flip.boundariesElement, t.modifiers.flip.padding);
|
|
10693
|
-
return e.setAttribute("x-placement", a),
|
|
10693
|
+
return e.setAttribute("x-placement", a), Vm(e, { position: t.positionFixed ? "fixed" : "absolute" }), t;
|
|
10694
10694
|
}
|
|
10695
10695
|
function hO(n, e) {
|
|
10696
10696
|
var t = n.offsets, r = t.popper, i = t.reference, s = Math.round, a = Math.floor, o = function(A) {
|
|
@@ -10709,7 +10709,7 @@ function fO(n, e) {
|
|
|
10709
10709
|
return y.name === "applyStyle";
|
|
10710
10710
|
}).gpuAcceleration;
|
|
10711
10711
|
s !== void 0 && console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");
|
|
10712
|
-
var a = s !== void 0 ? s : e.gpuAcceleration, o = hu(n.instance.popper), l =
|
|
10712
|
+
var a = s !== void 0 ? s : e.gpuAcceleration, o = hu(n.instance.popper), l = Qm(o), c = {
|
|
10713
10713
|
position: i.position
|
|
10714
10714
|
}, u = hO(n, window.devicePixelRatio < 2 || !pO), h = t === "bottom" ? "top" : "bottom", p = r === "right" ? "left" : "right", f = Ub("transform"), g = void 0, m = void 0;
|
|
10715
10715
|
if (h === "bottom" ? o.nodeName === "HTML" ? m = -o.clientHeight + u.bottom : m = -l.height + u.bottom : m = u.top, p === "right" ? o.nodeName === "HTML" ? g = -o.clientWidth + u.right : g = -l.width + u.right : g = u.left, a && f)
|
|
@@ -10754,12 +10754,12 @@ function gO(n, e) {
|
|
|
10754
10754
|
function mO(n) {
|
|
10755
10755
|
return n === "end" ? "start" : n === "start" ? "end" : n;
|
|
10756
10756
|
}
|
|
10757
|
-
var Pv = ["auto-start", "auto", "auto-end", "top-start", "top", "top-end", "right-start", "right", "right-end", "bottom-end", "bottom", "bottom-start", "left-end", "left", "left-start"],
|
|
10757
|
+
var Pv = ["auto-start", "auto", "auto-end", "top-start", "top", "top-end", "right-start", "right", "right-end", "bottom-end", "bottom", "bottom-start", "left-end", "left", "left-start"], im = Pv.slice(3);
|
|
10758
10758
|
function dy(n) {
|
|
10759
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t =
|
|
10759
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = im.indexOf(n), r = im.slice(t + 1).concat(im.slice(0, t));
|
|
10760
10760
|
return e ? r.reverse() : r;
|
|
10761
10761
|
}
|
|
10762
|
-
var
|
|
10762
|
+
var sm = {
|
|
10763
10763
|
FLIP: "flip",
|
|
10764
10764
|
CLOCKWISE: "clockwise",
|
|
10765
10765
|
COUNTERCLOCKWISE: "counterclockwise"
|
|
@@ -10769,13 +10769,13 @@ function AO(n, e) {
|
|
|
10769
10769
|
return n;
|
|
10770
10770
|
var t = Bb(n.instance.popper, n.instance.reference, e.padding, e.boundariesElement, n.positionFixed), r = n.placement.split("-")[0], i = Wf(r), s = n.placement.split("-")[1] || "", a = [];
|
|
10771
10771
|
switch (e.behavior) {
|
|
10772
|
-
case
|
|
10772
|
+
case sm.FLIP:
|
|
10773
10773
|
a = [r, i];
|
|
10774
10774
|
break;
|
|
10775
|
-
case
|
|
10775
|
+
case sm.CLOCKWISE:
|
|
10776
10776
|
a = dy(r);
|
|
10777
10777
|
break;
|
|
10778
|
-
case
|
|
10778
|
+
case sm.COUNTERCLOCKWISE:
|
|
10779
10779
|
a = dy(r, !0);
|
|
10780
10780
|
break;
|
|
10781
10781
|
default:
|
|
@@ -11352,7 +11352,7 @@ var NO = [
|
|
|
11352
11352
|
"symbol",
|
|
11353
11353
|
"undefined"
|
|
11354
11354
|
];
|
|
11355
|
-
function
|
|
11355
|
+
function Eg(n) {
|
|
11356
11356
|
var e = Object.prototype.toString.call(n).slice(8, -1);
|
|
11357
11357
|
if (/HTML\w+Element/.test(e))
|
|
11358
11358
|
return "HTMLElement";
|
|
@@ -11361,7 +11361,7 @@ function Ig(n) {
|
|
|
11361
11361
|
}
|
|
11362
11362
|
function Di(n) {
|
|
11363
11363
|
return function(e) {
|
|
11364
|
-
return
|
|
11364
|
+
return Eg(e) === n;
|
|
11365
11365
|
};
|
|
11366
11366
|
}
|
|
11367
11367
|
function OO(n) {
|
|
@@ -11396,7 +11396,7 @@ function Y(n) {
|
|
|
11396
11396
|
return "Array";
|
|
11397
11397
|
if (Y.plainFunction(n))
|
|
11398
11398
|
return "Function";
|
|
11399
|
-
var e =
|
|
11399
|
+
var e = Eg(n);
|
|
11400
11400
|
return e || "Object";
|
|
11401
11401
|
}
|
|
11402
11402
|
Y.array = Array.isArray;
|
|
@@ -11406,7 +11406,7 @@ Y.arrayOf = function(n, e) {
|
|
|
11406
11406
|
});
|
|
11407
11407
|
};
|
|
11408
11408
|
Y.asyncGeneratorFunction = function(n) {
|
|
11409
|
-
return
|
|
11409
|
+
return Eg(n) === "AsyncGeneratorFunction";
|
|
11410
11410
|
};
|
|
11411
11411
|
Y.asyncFunction = Di("AsyncFunction");
|
|
11412
11412
|
Y.bigint = yu("bigint");
|
|
@@ -11461,7 +11461,7 @@ Y.oneOf = function(n, e) {
|
|
|
11461
11461
|
};
|
|
11462
11462
|
Y.plainFunction = Di("Function");
|
|
11463
11463
|
Y.plainObject = function(n) {
|
|
11464
|
-
if (
|
|
11464
|
+
if (Eg(n) !== "Object")
|
|
11465
11465
|
return !1;
|
|
11466
11466
|
var e = Object.getPrototypeOf(n);
|
|
11467
11467
|
return e === null || e === Object.getPrototypeOf({});
|
|
@@ -11494,7 +11494,7 @@ var MO = Rv("function"), PO = function(n) {
|
|
|
11494
11494
|
return Object.prototype.toString.call(n).slice(8, -1) === "RegExp";
|
|
11495
11495
|
}, py = function(n) {
|
|
11496
11496
|
return !RO(n) && !PO(n) && (MO(n) || typeof n == "object");
|
|
11497
|
-
}, RO = Rv("undefined"),
|
|
11497
|
+
}, RO = Rv("undefined"), qm = function(n) {
|
|
11498
11498
|
var e = typeof Symbol == "function" && Symbol.iterator, t = e && n[e], r = 0;
|
|
11499
11499
|
if (t) return t.call(n);
|
|
11500
11500
|
if (n && typeof n.length == "number") return {
|
|
@@ -11526,7 +11526,7 @@ function DO(n, e) {
|
|
|
11526
11526
|
if (n.size !== e.size)
|
|
11527
11527
|
return !1;
|
|
11528
11528
|
try {
|
|
11529
|
-
for (var a =
|
|
11529
|
+
for (var a = qm(n.entries()), o = a.next(); !o.done; o = a.next()) {
|
|
11530
11530
|
var l = o.value;
|
|
11531
11531
|
if (!e.has(l[0]))
|
|
11532
11532
|
return !1;
|
|
@@ -11541,7 +11541,7 @@ function DO(n, e) {
|
|
|
11541
11541
|
}
|
|
11542
11542
|
}
|
|
11543
11543
|
try {
|
|
11544
|
-
for (var c =
|
|
11544
|
+
for (var c = qm(n.entries()), u = c.next(); !u.done; u = c.next()) {
|
|
11545
11545
|
var l = u.value;
|
|
11546
11546
|
if (!Cr(l[1], e.get(l[0])))
|
|
11547
11547
|
return !1;
|
|
@@ -11562,7 +11562,7 @@ function HO(n, e) {
|
|
|
11562
11562
|
if (n.size !== e.size)
|
|
11563
11563
|
return !1;
|
|
11564
11564
|
try {
|
|
11565
|
-
for (var i =
|
|
11565
|
+
for (var i = qm(n.entries()), s = i.next(); !s.done; s = i.next()) {
|
|
11566
11566
|
var a = s.value;
|
|
11567
11567
|
if (!e.has(a[0]))
|
|
11568
11568
|
return !1;
|
|
@@ -11827,17 +11827,17 @@ function gp(n, e) {
|
|
|
11827
11827
|
}
|
|
11828
11828
|
}), Object.defineProperty(n, "prototype", {
|
|
11829
11829
|
writable: !1
|
|
11830
|
-
}), e &&
|
|
11830
|
+
}), e && Zm(n, e);
|
|
11831
11831
|
}
|
|
11832
11832
|
function Gf(n) {
|
|
11833
11833
|
return Gf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
11834
11834
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
11835
11835
|
}, Gf(n);
|
|
11836
11836
|
}
|
|
11837
|
-
function
|
|
11838
|
-
return
|
|
11837
|
+
function Zm(n, e) {
|
|
11838
|
+
return Zm = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
11839
11839
|
return r.__proto__ = i, r;
|
|
11840
|
-
},
|
|
11840
|
+
}, Zm(n, e);
|
|
11841
11841
|
}
|
|
11842
11842
|
function VO() {
|
|
11843
11843
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
@@ -11931,7 +11931,7 @@ var tt = { INIT: "init", IDLE: "idle", OPENING: "opening", OPEN: "open", CLOSING
|
|
|
11931
11931
|
function cs() {
|
|
11932
11932
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
11933
11933
|
}
|
|
11934
|
-
function
|
|
11934
|
+
function am() {
|
|
11935
11935
|
return "ontouchstart" in window && /Mobi/.test(navigator.userAgent);
|
|
11936
11936
|
}
|
|
11937
11937
|
function Fp(n) {
|
|
@@ -12081,13 +12081,13 @@ var lL = ["arrow", "flip", "offset"], cL = ["position", "top", "right", "bottom"
|
|
|
12081
12081
|
}
|
|
12082
12082
|
}), Gn(xs(i), "handleMouseEnter", function() {
|
|
12083
12083
|
var s = i.props, a = s.event, o = s.open;
|
|
12084
|
-
if (!(Y.boolean(o) ||
|
|
12084
|
+
if (!(Y.boolean(o) || am())) {
|
|
12085
12085
|
var l = i.state.status;
|
|
12086
12086
|
i.event === "hover" && l === tt.IDLE && (Fp({ title: "mouseEnter", data: [{ key: "originalEvent", value: a }], debug: i.debug }), clearTimeout(i.eventDelayTimeout), i.toggle());
|
|
12087
12087
|
}
|
|
12088
12088
|
}), Gn(xs(i), "handleMouseLeave", function() {
|
|
12089
12089
|
var s = i.props, a = s.event, o = s.eventDelay, l = s.open;
|
|
12090
|
-
if (!(Y.boolean(l) ||
|
|
12090
|
+
if (!(Y.boolean(l) || am())) {
|
|
12091
12091
|
var c = i.state, u = c.status, h = c.positionWrapper;
|
|
12092
12092
|
i.event === "hover" && (Fp({ title: "mouseLeave", data: [{ key: "originalEvent", value: a }], debug: i.debug }), o ? [tt.OPENING, tt.OPEN].indexOf(u) !== -1 && !h && !i.eventDelayTimeout && (i.eventDelayTimeout = setTimeout(function() {
|
|
12093
12093
|
delete i.eventDelayTimeout, i.toggle();
|
|
@@ -12159,7 +12159,7 @@ var lL = ["arrow", "flip", "offset"], cL = ["position", "top", "right", "bottom"
|
|
|
12159
12159
|
return i || cs() && "ReactFloaterDebug" in window && !!window.ReactFloaterDebug;
|
|
12160
12160
|
} }, { key: "event", get: function() {
|
|
12161
12161
|
var i = this.props, s = i.disableHoverToClick, a = i.event;
|
|
12162
|
-
return a === "hover" &&
|
|
12162
|
+
return a === "hover" && am() && !s ? "click" : a;
|
|
12163
12163
|
} }, { key: "options", get: function() {
|
|
12164
12164
|
var i = this.props.options;
|
|
12165
12165
|
return Li(XO, i || {});
|
|
@@ -12341,7 +12341,7 @@ function bL(n, e) {
|
|
|
12341
12341
|
A3.top(r, n, { duration: o < 100 ? 50 : t }, (l) => l && l.message !== "Element already at target scroll position" ? s(l) : i());
|
|
12342
12342
|
});
|
|
12343
12343
|
}
|
|
12344
|
-
var Ru =
|
|
12344
|
+
var Ru = wg !== void 0;
|
|
12345
12345
|
function qv(n = navigator.userAgent) {
|
|
12346
12346
|
let e = n;
|
|
12347
12347
|
return typeof window > "u" ? e = "node" : document.documentMode ? e = "ie" : /Edge/.test(n) ? e = "edge" : window.opera || n.includes(" OPR/") ? e = "opera" : typeof window.InstallTrigger < "u" ? e = "firefox" : window.chrome ? e = "chrome" : /(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(n) && (e = "safari"), e;
|
|
@@ -12404,7 +12404,7 @@ function vL(n, ...e) {
|
|
|
12404
12404
|
({}).hasOwnProperty.call(n, r) && e.includes(r) && (t[r] = n[r]);
|
|
12405
12405
|
return t;
|
|
12406
12406
|
}
|
|
12407
|
-
function
|
|
12407
|
+
function Ym(n, e, t) {
|
|
12408
12408
|
const r = (s) => s.replace("{step}", String(e)).replace("{steps}", String(t));
|
|
12409
12409
|
if ($p(n) === "string")
|
|
12410
12410
|
return r(n);
|
|
@@ -12417,11 +12417,11 @@ function Zm(n, e, t) {
|
|
|
12417
12417
|
});
|
|
12418
12418
|
if (Array.isArray(i))
|
|
12419
12419
|
return F0(n, {
|
|
12420
|
-
children: i.map((s) => typeof s == "string" ? r(s) :
|
|
12420
|
+
children: i.map((s) => typeof s == "string" ? r(s) : Ym(s, e, t))
|
|
12421
12421
|
});
|
|
12422
12422
|
if ($p(n.type) === "function" && !Object.values(n.props).length) {
|
|
12423
12423
|
const s = n.type({});
|
|
12424
|
-
return
|
|
12424
|
+
return Ym(s, e, t);
|
|
12425
12425
|
}
|
|
12426
12426
|
return n;
|
|
12427
12427
|
}
|
|
@@ -13016,19 +13016,19 @@ var ML = LL, PL = class extends nt.Component {
|
|
|
13016
13016
|
ha() && (Ru || this.renderReact15());
|
|
13017
13017
|
}
|
|
13018
13018
|
componentWillUnmount() {
|
|
13019
|
-
!ha() || !this.node || (Ru ||
|
|
13019
|
+
!ha() || !this.node || (Ru || Vg.unmountComponentAtNode(this.node), this.node.parentNode === document.body && (document.body.removeChild(this.node), this.node = null));
|
|
13020
13020
|
}
|
|
13021
13021
|
renderReact15() {
|
|
13022
13022
|
if (!ha())
|
|
13023
13023
|
return;
|
|
13024
13024
|
const { children: n } = this.props;
|
|
13025
|
-
this.node &&
|
|
13025
|
+
this.node && Vg.unstable_renderSubtreeIntoContainer(this, n, this.node);
|
|
13026
13026
|
}
|
|
13027
13027
|
renderReact16() {
|
|
13028
13028
|
if (!ha() || !Ru)
|
|
13029
13029
|
return null;
|
|
13030
13030
|
const { children: n } = this.props;
|
|
13031
|
-
return this.node ?
|
|
13031
|
+
return this.node ? Vg.createPortal(n, this.node) : null;
|
|
13032
13032
|
}
|
|
13033
13033
|
render() {
|
|
13034
13034
|
return Ru ? this.renderReact16() : null;
|
|
@@ -13259,7 +13259,7 @@ var UL = BL, WL = class extends nt.Component {
|
|
|
13259
13259
|
step: e + 1,
|
|
13260
13260
|
steps: i
|
|
13261
13261
|
});
|
|
13262
|
-
A =
|
|
13262
|
+
A = Ym(u, e + 1, i), w = y;
|
|
13263
13263
|
}
|
|
13264
13264
|
t && (A = l, w = g);
|
|
13265
13265
|
}
|
|
@@ -13895,7 +13895,7 @@ function $v(n, e) {
|
|
|
13895
13895
|
Object.assign(t, i.property), Object.assign(r, i.normal);
|
|
13896
13896
|
return new bp(t, r, e);
|
|
13897
13897
|
}
|
|
13898
|
-
function
|
|
13898
|
+
function Xm(n) {
|
|
13899
13899
|
return n.toLowerCase();
|
|
13900
13900
|
}
|
|
13901
13901
|
class Ir {
|
|
@@ -13924,22 +13924,22 @@ Ir.prototype.property = "";
|
|
|
13924
13924
|
Ir.prototype.spaceSeparated = !1;
|
|
13925
13925
|
Ir.prototype.space = void 0;
|
|
13926
13926
|
let eM = 0;
|
|
13927
|
-
const Be = Ml(), ln = Ml(),
|
|
13927
|
+
const Be = Ml(), ln = Ml(), Jm = Ml(), re = Ml(), Tt = Ml(), tc = Ml(), jr = Ml();
|
|
13928
13928
|
function Ml() {
|
|
13929
13929
|
return 2 ** ++eM;
|
|
13930
13930
|
}
|
|
13931
|
-
const
|
|
13931
|
+
const Km = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13932
13932
|
__proto__: null,
|
|
13933
13933
|
boolean: Be,
|
|
13934
13934
|
booleanish: ln,
|
|
13935
13935
|
commaOrSpaceSeparated: jr,
|
|
13936
13936
|
commaSeparated: tc,
|
|
13937
13937
|
number: re,
|
|
13938
|
-
overloadedBoolean:
|
|
13938
|
+
overloadedBoolean: Jm,
|
|
13939
13939
|
spaceSeparated: Tt
|
|
13940
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
13940
|
+
}, Symbol.toStringTag, { value: "Module" })), om = (
|
|
13941
13941
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
13942
|
-
Object.keys(
|
|
13942
|
+
Object.keys(Km)
|
|
13943
13943
|
);
|
|
13944
13944
|
class Vb extends Ir {
|
|
13945
13945
|
/**
|
|
@@ -13958,9 +13958,9 @@ class Vb extends Ir {
|
|
|
13958
13958
|
constructor(e, t, r, i) {
|
|
13959
13959
|
let s = -1;
|
|
13960
13960
|
if (super(e, t), Ty(this, "space", i), typeof r == "number")
|
|
13961
|
-
for (; ++s <
|
|
13962
|
-
const a =
|
|
13963
|
-
Ty(this,
|
|
13961
|
+
for (; ++s < om.length; ) {
|
|
13962
|
+
const a = om[s];
|
|
13963
|
+
Ty(this, om[s], (r & Km[a]) === Km[a]);
|
|
13964
13964
|
}
|
|
13965
13965
|
}
|
|
13966
13966
|
}
|
|
@@ -13977,7 +13977,7 @@ function wu(n) {
|
|
|
13977
13977
|
i,
|
|
13978
13978
|
n.space
|
|
13979
13979
|
);
|
|
13980
|
-
n.mustUseProperty && n.mustUseProperty.includes(r) && (s.mustUseProperty = !0), e[r] = s, t[
|
|
13980
|
+
n.mustUseProperty && n.mustUseProperty.includes(r) && (s.mustUseProperty = !0), e[r] = s, t[Xm(r)] = r, t[Xm(s.attribute)] = r;
|
|
13981
13981
|
}
|
|
13982
13982
|
return new bp(e, t, n.space);
|
|
13983
13983
|
}
|
|
@@ -14091,7 +14091,7 @@ const tM = wu({
|
|
|
14091
14091
|
dir: null,
|
|
14092
14092
|
dirName: null,
|
|
14093
14093
|
disabled: Be,
|
|
14094
|
-
download:
|
|
14094
|
+
download: Jm,
|
|
14095
14095
|
draggable: ln,
|
|
14096
14096
|
encType: null,
|
|
14097
14097
|
enterKeyHint: null,
|
|
@@ -14104,7 +14104,7 @@ const tM = wu({
|
|
|
14104
14104
|
formTarget: null,
|
|
14105
14105
|
headers: Tt,
|
|
14106
14106
|
height: re,
|
|
14107
|
-
hidden:
|
|
14107
|
+
hidden: Jm,
|
|
14108
14108
|
high: re,
|
|
14109
14109
|
href: null,
|
|
14110
14110
|
hrefLang: null,
|
|
@@ -15008,7 +15008,7 @@ const tM = wu({
|
|
|
15008
15008
|
xmlnsXLink: "xmlnsXlink"
|
|
15009
15009
|
}, iM = /[A-Z]/g, jy = /-[a-z]/g, sM = /^data[-\w.:]+$/i;
|
|
15010
15010
|
function aM(n, e) {
|
|
15011
|
-
const t =
|
|
15011
|
+
const t = Xm(e);
|
|
15012
15012
|
let r = e, i = Ir;
|
|
15013
15013
|
if (t in n.normal)
|
|
15014
15014
|
return n.property[n.normal[t]];
|
|
@@ -15138,9 +15138,9 @@ function CM(n, e) {
|
|
|
15138
15138
|
}
|
|
15139
15139
|
}), t;
|
|
15140
15140
|
}
|
|
15141
|
-
var
|
|
15142
|
-
Object.defineProperty(
|
|
15143
|
-
|
|
15141
|
+
var Ng = {};
|
|
15142
|
+
Object.defineProperty(Ng, "__esModule", { value: !0 });
|
|
15143
|
+
Ng.camelCase = void 0;
|
|
15144
15144
|
var SM = /^--[a-zA-Z0-9_-]+$/, IM = /-([a-z])/g, EM = /^[^-]+$/, NM = /^-(webkit|moz|ms|o|khtml)-/, TM = /^-(ms)-/, jM = function(n) {
|
|
15145
15145
|
return !n || EM.test(n) || SM.test(n);
|
|
15146
15146
|
}, OM = function(n, e) {
|
|
@@ -15150,18 +15150,18 @@ var SM = /^--[a-zA-Z0-9_-]+$/, IM = /-([a-z])/g, EM = /^[^-]+$/, NM = /^-(webkit
|
|
|
15150
15150
|
}, LM = function(n, e) {
|
|
15151
15151
|
return e === void 0 && (e = {}), jM(n) ? n : (n = n.toLowerCase(), e.reactCompat ? n = n.replace(TM, Ry) : n = n.replace(NM, Ry), n.replace(IM, OM));
|
|
15152
15152
|
};
|
|
15153
|
-
|
|
15153
|
+
Ng.camelCase = LM;
|
|
15154
15154
|
var MM = Ad && Ad.__importDefault || function(n) {
|
|
15155
15155
|
return n && n.__esModule ? n : { default: n };
|
|
15156
|
-
}, PM = MM(Zb), RM =
|
|
15157
|
-
function
|
|
15156
|
+
}, PM = MM(Zb), RM = Ng;
|
|
15157
|
+
function _m(n, e) {
|
|
15158
15158
|
var t = {};
|
|
15159
15159
|
return !n || typeof n != "string" || (0, PM.default)(n, function(r, i) {
|
|
15160
15160
|
r && i && (t[(0, RM.camelCase)(r, e)] = i);
|
|
15161
15161
|
}), t;
|
|
15162
15162
|
}
|
|
15163
|
-
|
|
15164
|
-
var zM =
|
|
15163
|
+
_m.default = _m;
|
|
15164
|
+
var zM = _m;
|
|
15165
15165
|
const FM = /* @__PURE__ */ eo(zM), ak = ok("end"), Yb = ok("start");
|
|
15166
15166
|
function ok(n) {
|
|
15167
15167
|
return e;
|
|
@@ -15181,13 +15181,13 @@ function DM(n) {
|
|
|
15181
15181
|
return { start: e, end: t };
|
|
15182
15182
|
}
|
|
15183
15183
|
function hd(n) {
|
|
15184
|
-
return !n || typeof n != "object" ? "" : "position" in n || "type" in n ? zy(n.position) : "start" in n || "end" in n ? zy(n) : "line" in n || "column" in n ?
|
|
15184
|
+
return !n || typeof n != "object" ? "" : "position" in n || "type" in n ? zy(n.position) : "start" in n || "end" in n ? zy(n) : "line" in n || "column" in n ? $m(n) : "";
|
|
15185
15185
|
}
|
|
15186
|
-
function
|
|
15186
|
+
function $m(n) {
|
|
15187
15187
|
return Fy(n && n.line) + ":" + Fy(n && n.column);
|
|
15188
15188
|
}
|
|
15189
15189
|
function zy(n) {
|
|
15190
|
-
return
|
|
15190
|
+
return $m(n && n.start) + "-" + $m(n && n.end);
|
|
15191
15191
|
}
|
|
15192
15192
|
function Fy(n) {
|
|
15193
15193
|
return n && typeof n == "number" ? n : 1;
|
|
@@ -15567,7 +15567,7 @@ function rP(n) {
|
|
|
15567
15567
|
function iP(n) {
|
|
15568
15568
|
return "-" + n.toLowerCase();
|
|
15569
15569
|
}
|
|
15570
|
-
const
|
|
15570
|
+
const lm = {
|
|
15571
15571
|
action: ["form"],
|
|
15572
15572
|
cite: ["blockquote", "del", "ins", "q"],
|
|
15573
15573
|
data: ["object"],
|
|
@@ -15694,7 +15694,7 @@ function Qf(n) {
|
|
|
15694
15694
|
n !== null && (n < 32 || n === 127)
|
|
15695
15695
|
);
|
|
15696
15696
|
}
|
|
15697
|
-
const
|
|
15697
|
+
const eA = to(/\d/), uP = to(/[\dA-Fa-f]/), dP = to(/[!-/:-@[-`{-~]/);
|
|
15698
15698
|
function Te(n) {
|
|
15699
15699
|
return n !== null && n < -2;
|
|
15700
15700
|
}
|
|
@@ -15704,7 +15704,7 @@ function It(n) {
|
|
|
15704
15704
|
function Je(n) {
|
|
15705
15705
|
return n === -2 || n === -1 || n === 32;
|
|
15706
15706
|
}
|
|
15707
|
-
const
|
|
15707
|
+
const Tg = to(new RegExp("\\p{P}|\\p{S}", "u")), Sl = to(/\s/);
|
|
15708
15708
|
function to(n) {
|
|
15709
15709
|
return e;
|
|
15710
15710
|
function e(t) {
|
|
@@ -15896,10 +15896,10 @@ function mP(n, e, t) {
|
|
|
15896
15896
|
function mu(n) {
|
|
15897
15897
|
if (n === null || It(n) || Sl(n))
|
|
15898
15898
|
return 1;
|
|
15899
|
-
if (
|
|
15899
|
+
if (Tg(n))
|
|
15900
15900
|
return 2;
|
|
15901
15901
|
}
|
|
15902
|
-
function
|
|
15902
|
+
function jg(n, e, t) {
|
|
15903
15903
|
const r = [];
|
|
15904
15904
|
let i = -1;
|
|
15905
15905
|
for (; ++i < n.length; ) {
|
|
@@ -15908,7 +15908,7 @@ function Tg(n, e, t) {
|
|
|
15908
15908
|
}
|
|
15909
15909
|
return e;
|
|
15910
15910
|
}
|
|
15911
|
-
const
|
|
15911
|
+
const tA = {
|
|
15912
15912
|
name: "attention",
|
|
15913
15913
|
resolveAll: AP,
|
|
15914
15914
|
tokenize: bP
|
|
@@ -15960,7 +15960,7 @@ function AP(n, e) {
|
|
|
15960
15960
|
...a.start
|
|
15961
15961
|
}, n[t][1].start = {
|
|
15962
15962
|
...o.end
|
|
15963
|
-
}, c = [], n[r][1].end.offset - n[r][1].start.offset && (c = si(c, [["enter", n[r][1], e], ["exit", n[r][1], e]])), c = si(c, [["enter", i, e], ["enter", a, e], ["exit", a, e], ["enter", s, e]]), c = si(c,
|
|
15963
|
+
}, c = [], n[r][1].end.offset - n[r][1].start.offset && (c = si(c, [["enter", n[r][1], e], ["exit", n[r][1], e]])), c = si(c, [["enter", i, e], ["enter", a, e], ["exit", a, e], ["enter", s, e]]), c = si(c, jg(e.parser.constructs.insideSpan.null, n.slice(r + 1, t), e)), c = si(c, [["exit", s, e], ["enter", o, e], ["exit", o, e], ["exit", i, e]]), n[t][1].end.offset - n[t][1].start.offset ? (u = 2, c = si(c, [["enter", n[t][1], e], ["exit", n[t][1], e]])) : u = 0, qr(n, r - 1, t - r + 3, c), t = r + c.length - u - 2;
|
|
15964
15964
|
break;
|
|
15965
15965
|
}
|
|
15966
15966
|
}
|
|
@@ -16102,7 +16102,7 @@ function IP(n, e, t) {
|
|
|
16102
16102
|
return h === 35 ? (n.enter("characterReferenceMarkerNumeric"), n.consume(h), n.exit("characterReferenceMarkerNumeric"), c) : (n.enter("characterReferenceValue"), s = 31, a = qn, u(h));
|
|
16103
16103
|
}
|
|
16104
16104
|
function c(h) {
|
|
16105
|
-
return h === 88 || h === 120 ? (n.enter("characterReferenceMarkerHexadecimal"), n.consume(h), n.exit("characterReferenceMarkerHexadecimal"), n.enter("characterReferenceValue"), s = 6, a = uP, u) : (n.enter("characterReferenceValue"), s = 7, a =
|
|
16105
|
+
return h === 88 || h === 120 ? (n.enter("characterReferenceMarkerHexadecimal"), n.consume(h), n.exit("characterReferenceMarkerHexadecimal"), n.enter("characterReferenceValue"), s = 6, a = uP, u) : (n.enter("characterReferenceValue"), s = 7, a = eA, u(h));
|
|
16106
16106
|
}
|
|
16107
16107
|
function u(h) {
|
|
16108
16108
|
if (h === 59 && i) {
|
|
@@ -16201,7 +16201,7 @@ function NP(n, e, t) {
|
|
|
16201
16201
|
return r.parser.lazy[r.now().line] ? t(a) : e(a);
|
|
16202
16202
|
}
|
|
16203
16203
|
}
|
|
16204
|
-
const
|
|
16204
|
+
const cm = {
|
|
16205
16205
|
name: "codeIndented",
|
|
16206
16206
|
tokenize: jP
|
|
16207
16207
|
}, TP = {
|
|
@@ -17107,7 +17107,7 @@ function hR(n, e) {
|
|
|
17107
17107
|
...n[a - 2][1].start
|
|
17108
17108
|
}
|
|
17109
17109
|
};
|
|
17110
|
-
return o = [["enter", l, e], ["enter", c, e]], o = si(o, n.slice(s + 1, s + r + 3)), o = si(o, [["enter", u, e]]), o = si(o,
|
|
17110
|
+
return o = [["enter", l, e], ["enter", c, e]], o = si(o, n.slice(s + 1, s + r + 3)), o = si(o, [["enter", u, e]]), o = si(o, jg(e.parser.constructs.insideSpan.null, n.slice(s + r + 4, a - 3), e)), o = si(o, [["exit", u, e], n[a - 2], n[a - 1], ["exit", c, e]]), o = si(o, n.slice(a + 1)), o = si(o, [["exit", l, e]]), qr(n, s, n.length, o), n;
|
|
17111
17111
|
}
|
|
17112
17112
|
function pR(n, e, t) {
|
|
17113
17113
|
const r = this;
|
|
@@ -17219,7 +17219,7 @@ function yR(n, e, t) {
|
|
|
17219
17219
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(a) : e(a);
|
|
17220
17220
|
}
|
|
17221
17221
|
}
|
|
17222
|
-
const
|
|
17222
|
+
const um = {
|
|
17223
17223
|
name: "lineEnding",
|
|
17224
17224
|
tokenize: wR
|
|
17225
17225
|
};
|
|
@@ -17269,7 +17269,7 @@ function SR(n, e, t) {
|
|
|
17269
17269
|
return o;
|
|
17270
17270
|
function o(f) {
|
|
17271
17271
|
const g = r.containerState.type || (f === 42 || f === 43 || f === 45 ? "listUnordered" : "listOrdered");
|
|
17272
|
-
if (g === "listUnordered" ? !r.containerState.marker || f === r.containerState.marker :
|
|
17272
|
+
if (g === "listUnordered" ? !r.containerState.marker || f === r.containerState.marker : eA(f)) {
|
|
17273
17273
|
if (r.containerState.type || (r.containerState.type = g, n.enter(g, {
|
|
17274
17274
|
_container: !0
|
|
17275
17275
|
})), g === "listUnordered")
|
|
@@ -17280,7 +17280,7 @@ function SR(n, e, t) {
|
|
|
17280
17280
|
return t(f);
|
|
17281
17281
|
}
|
|
17282
17282
|
function l(f) {
|
|
17283
|
-
return
|
|
17283
|
+
return eA(f) && ++a < 10 ? (n.consume(f), l) : (!r.interrupt || a < 2) && (r.containerState.marker ? f === r.containerState.marker : f === 41 || f === 46) ? (n.exit("listItemValue"), c(f)) : t(f);
|
|
17284
17284
|
}
|
|
17285
17285
|
function c(f) {
|
|
17286
17286
|
return n.enter("listItemMarker"), n.consume(f), n.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || f, n.check(
|
|
@@ -17519,9 +17519,9 @@ const DR = {
|
|
|
17519
17519
|
}, HR = {
|
|
17520
17520
|
91: GP
|
|
17521
17521
|
}, BR = {
|
|
17522
|
-
[-2]:
|
|
17523
|
-
[-1]:
|
|
17524
|
-
32:
|
|
17522
|
+
[-2]: cm,
|
|
17523
|
+
[-1]: cm,
|
|
17524
|
+
32: cm
|
|
17525
17525
|
}, UR = {
|
|
17526
17526
|
35: XP,
|
|
17527
17527
|
42: ef,
|
|
@@ -17535,20 +17535,20 @@ const DR = {
|
|
|
17535
17535
|
38: Ak,
|
|
17536
17536
|
92: mk
|
|
17537
17537
|
}, GR = {
|
|
17538
|
-
[-5]:
|
|
17539
|
-
[-4]:
|
|
17540
|
-
[-3]:
|
|
17538
|
+
[-5]: um,
|
|
17539
|
+
[-4]: um,
|
|
17540
|
+
[-3]: um,
|
|
17541
17541
|
33: AR,
|
|
17542
17542
|
38: Ak,
|
|
17543
|
-
42:
|
|
17543
|
+
42: tA,
|
|
17544
17544
|
60: [xP, aR],
|
|
17545
17545
|
91: xR,
|
|
17546
17546
|
92: [ZP, mk],
|
|
17547
17547
|
93: e0,
|
|
17548
|
-
95:
|
|
17548
|
+
95: tA,
|
|
17549
17549
|
96: LP
|
|
17550
17550
|
}, QR = {
|
|
17551
|
-
null: [
|
|
17551
|
+
null: [tA, PR]
|
|
17552
17552
|
}, VR = {
|
|
17553
17553
|
null: [42, 95]
|
|
17554
17554
|
}, qR = {
|
|
@@ -17599,7 +17599,7 @@ function YR(n, e, t) {
|
|
|
17599
17599
|
let u = e.tokenize.call(c, l);
|
|
17600
17600
|
return e.resolveAll && s.push(e), c;
|
|
17601
17601
|
function h(D) {
|
|
17602
|
-
return a = si(a, D), x(), a[a.length - 1] !== null ? [] : (H(e, 0), c.events =
|
|
17602
|
+
return a = si(a, D), x(), a[a.length - 1] !== null ? [] : (H(e, 0), c.events = jg(s, c.events, c), c.events);
|
|
17603
17603
|
}
|
|
17604
17604
|
function p(D, G) {
|
|
17605
17605
|
return JR(f(D), G);
|
|
@@ -18792,13 +18792,13 @@ const L5 = {
|
|
|
18792
18792
|
};
|
|
18793
18793
|
function Dp() {
|
|
18794
18794
|
}
|
|
18795
|
-
const Nk = -1,
|
|
18795
|
+
const Nk = -1, Og = 0, fd = 1, Vf = 2, t0 = 3, n0 = 4, r0 = 5, i0 = 6, Tk = 7, jk = 8, _y = typeof self == "object" ? self : globalThis, M5 = (n, e) => {
|
|
18796
18796
|
const t = (i, s) => (n.set(s, i), i), r = (i) => {
|
|
18797
18797
|
if (n.has(i))
|
|
18798
18798
|
return n.get(i);
|
|
18799
18799
|
const [s, a] = e[i];
|
|
18800
18800
|
switch (s) {
|
|
18801
|
-
case
|
|
18801
|
+
case Og:
|
|
18802
18802
|
case Nk:
|
|
18803
18803
|
return t(a, i);
|
|
18804
18804
|
case fd: {
|
|
@@ -18852,7 +18852,7 @@ const Nk = -1, jg = 0, fd = 1, Vf = 2, t0 = 3, n0 = 4, r0 = 5, i0 = 6, Tk = 7, j
|
|
|
18852
18852
|
}, $y = (n) => M5(/* @__PURE__ */ new Map(), n)(0), Ul = "", { toString: P5 } = {}, { keys: R5 } = Object, Du = (n) => {
|
|
18853
18853
|
const e = typeof n;
|
|
18854
18854
|
if (e !== "object" || !n)
|
|
18855
|
-
return [
|
|
18855
|
+
return [Og, e];
|
|
18856
18856
|
const t = P5.call(n).slice(8, -1);
|
|
18857
18857
|
switch (t) {
|
|
18858
18858
|
case "Array":
|
|
@@ -18871,7 +18871,7 @@ const Nk = -1, jg = 0, fd = 1, Vf = 2, t0 = 3, n0 = 4, r0 = 5, i0 = 6, Tk = 7, j
|
|
|
18871
18871
|
return [fd, t];
|
|
18872
18872
|
}
|
|
18873
18873
|
return t.includes("Array") ? [fd, t] : t.includes("Error") ? [Tk, t] : [Vf, t];
|
|
18874
|
-
}, Hp = ([n, e]) => n ===
|
|
18874
|
+
}, Hp = ([n, e]) => n === Og && (e === "function" || e === "symbol"), z5 = (n, e, t, r) => {
|
|
18875
18875
|
const i = (a, o) => {
|
|
18876
18876
|
const l = r.push(a) - 1;
|
|
18877
18877
|
return t.set(o, l), l;
|
|
@@ -18880,7 +18880,7 @@ const Nk = -1, jg = 0, fd = 1, Vf = 2, t0 = 3, n0 = 4, r0 = 5, i0 = 6, Tk = 7, j
|
|
|
18880
18880
|
return t.get(a);
|
|
18881
18881
|
let [o, l] = Du(a);
|
|
18882
18882
|
switch (o) {
|
|
18883
|
-
case
|
|
18883
|
+
case Og: {
|
|
18884
18884
|
let u = a;
|
|
18885
18885
|
switch (l) {
|
|
18886
18886
|
case "bigint":
|
|
@@ -19037,7 +19037,7 @@ function H5(n) {
|
|
|
19037
19037
|
]
|
|
19038
19038
|
};
|
|
19039
19039
|
}
|
|
19040
|
-
const
|
|
19040
|
+
const Lg = (
|
|
19041
19041
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
19042
19042
|
/**
|
|
19043
19043
|
* @type {(
|
|
@@ -19056,7 +19056,7 @@ const Og = (
|
|
|
19056
19056
|
if (n == null)
|
|
19057
19057
|
return G5;
|
|
19058
19058
|
if (typeof n == "function")
|
|
19059
|
-
return
|
|
19059
|
+
return Mg(n);
|
|
19060
19060
|
if (typeof n == "object")
|
|
19061
19061
|
return Array.isArray(n) ? B5(n) : U5(n);
|
|
19062
19062
|
if (typeof n == "string")
|
|
@@ -19068,8 +19068,8 @@ function B5(n) {
|
|
|
19068
19068
|
const e = [];
|
|
19069
19069
|
let t = -1;
|
|
19070
19070
|
for (; ++t < n.length; )
|
|
19071
|
-
e[t] =
|
|
19072
|
-
return
|
|
19071
|
+
e[t] = Lg(n[t]);
|
|
19072
|
+
return Mg(r);
|
|
19073
19073
|
function r(...i) {
|
|
19074
19074
|
let s = -1;
|
|
19075
19075
|
for (; ++s < e.length; )
|
|
@@ -19082,7 +19082,7 @@ function U5(n) {
|
|
|
19082
19082
|
/** @type {Record<string, unknown>} */
|
|
19083
19083
|
n
|
|
19084
19084
|
);
|
|
19085
|
-
return
|
|
19085
|
+
return Mg(t);
|
|
19086
19086
|
function t(r) {
|
|
19087
19087
|
const i = (
|
|
19088
19088
|
/** @type {Record<string, unknown>} */
|
|
@@ -19096,12 +19096,12 @@ function U5(n) {
|
|
|
19096
19096
|
}
|
|
19097
19097
|
}
|
|
19098
19098
|
function W5(n) {
|
|
19099
|
-
return
|
|
19099
|
+
return Mg(e);
|
|
19100
19100
|
function e(t) {
|
|
19101
19101
|
return t && t.type === n;
|
|
19102
19102
|
}
|
|
19103
19103
|
}
|
|
19104
|
-
function
|
|
19104
|
+
function Mg(n) {
|
|
19105
19105
|
return e;
|
|
19106
19106
|
function e(t, r, i) {
|
|
19107
19107
|
return !!(Q5(t) && n.call(
|
|
@@ -19118,11 +19118,11 @@ function G5() {
|
|
|
19118
19118
|
function Q5(n) {
|
|
19119
19119
|
return n !== null && typeof n == "object" && "type" in n;
|
|
19120
19120
|
}
|
|
19121
|
-
const Ok = [], V5 = !0,
|
|
19121
|
+
const Ok = [], V5 = !0, nA = !1, q5 = "skip";
|
|
19122
19122
|
function Lk(n, e, t, r) {
|
|
19123
19123
|
let i;
|
|
19124
19124
|
typeof e == "function" && typeof t != "function" ? (r = t, t = e) : i = e;
|
|
19125
|
-
const s =
|
|
19125
|
+
const s = Lg(i), a = r ? -1 : 1;
|
|
19126
19126
|
o(n, void 0, [])();
|
|
19127
19127
|
function o(l, c, u) {
|
|
19128
19128
|
const h = (
|
|
@@ -19144,7 +19144,7 @@ function Lk(n, e, t, r) {
|
|
|
19144
19144
|
return p;
|
|
19145
19145
|
function p() {
|
|
19146
19146
|
let f = Ok, g, m, x;
|
|
19147
|
-
if ((!e || s(l, c, u[u.length - 1] || void 0)) && (f = Z5(t(l, u)), f[0] ===
|
|
19147
|
+
if ((!e || s(l, c, u[u.length - 1] || void 0)) && (f = Z5(t(l, u)), f[0] === nA))
|
|
19148
19148
|
return f;
|
|
19149
19149
|
if ("children" in l && l.children) {
|
|
19150
19150
|
const A = (
|
|
@@ -19154,7 +19154,7 @@ function Lk(n, e, t, r) {
|
|
|
19154
19154
|
if (A.children && f[0] !== q5)
|
|
19155
19155
|
for (m = (r ? A.children.length : -1) + a, x = u.concat(A); m > -1 && m < A.children.length; ) {
|
|
19156
19156
|
const w = A.children[m];
|
|
19157
|
-
if (g = o(w, m, x)(), g[0] ===
|
|
19157
|
+
if (g = o(w, m, x)(), g[0] === nA)
|
|
19158
19158
|
return g;
|
|
19159
19159
|
m = typeof g[1] == "number" ? g[1] : m + a;
|
|
19160
19160
|
}
|
|
@@ -19174,7 +19174,7 @@ function s0(n, e, t, r) {
|
|
|
19174
19174
|
return a(l, h, u);
|
|
19175
19175
|
}
|
|
19176
19176
|
}
|
|
19177
|
-
const
|
|
19177
|
+
const rA = {}.hasOwnProperty, Y5 = {};
|
|
19178
19178
|
function X5(n, e) {
|
|
19179
19179
|
const t = e || Y5, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), a = { ...L5, ...t.handlers }, o = {
|
|
19180
19180
|
all: c,
|
|
@@ -19197,7 +19197,7 @@ function X5(n, e) {
|
|
|
19197
19197
|
}), o;
|
|
19198
19198
|
function l(u, h) {
|
|
19199
19199
|
const p = u.type, f = o.handlers[p];
|
|
19200
|
-
if (
|
|
19200
|
+
if (rA.call(o.handlers, p) && f)
|
|
19201
19201
|
return f(o, u, h);
|
|
19202
19202
|
if (o.options.passThrough && o.options.passThrough.includes(p)) {
|
|
19203
19203
|
if ("children" in u) {
|
|
@@ -19246,7 +19246,7 @@ function K5(n, e) {
|
|
|
19246
19246
|
return t;
|
|
19247
19247
|
}
|
|
19248
19248
|
function _5(n, e) {
|
|
19249
|
-
const t = e.data || {}, r = "value" in e && !(
|
|
19249
|
+
const t = e.data || {}, r = "value" in e && !(rA.call(t, "hProperties") || rA.call(t, "hChildren")) ? { type: "text", value: e.value } : {
|
|
19250
19250
|
type: "element",
|
|
19251
19251
|
tagName: "div",
|
|
19252
19252
|
properties: {},
|
|
@@ -19327,8 +19327,8 @@ var tf = Object.prototype.hasOwnProperty, Mk = Object.prototype.toString, i1 = O
|
|
|
19327
19327
|
r = c1(o, t), i = c1(e, t), o !== i && (u && i && (o1(i) || (s = a1(i))) ? (s ? (s = !1, a = r && a1(r) ? r : []) : a = r && o1(r) ? r : {}, l1(o, { name: t, newValue: n(u, a, i) })) : typeof i < "u" && l1(o, { name: t, newValue: i }));
|
|
19328
19328
|
return o;
|
|
19329
19329
|
};
|
|
19330
|
-
const
|
|
19331
|
-
function
|
|
19330
|
+
const dm = /* @__PURE__ */ eo(tz);
|
|
19331
|
+
function iA(n) {
|
|
19332
19332
|
if (typeof n != "object" || n === null)
|
|
19333
19333
|
return !1;
|
|
19334
19334
|
const e = Object.getPrototypeOf(n);
|
|
@@ -19503,14 +19503,14 @@ const uz = { cwd: dz };
|
|
|
19503
19503
|
function dz() {
|
|
19504
19504
|
return "/";
|
|
19505
19505
|
}
|
|
19506
|
-
function
|
|
19506
|
+
function sA(n) {
|
|
19507
19507
|
return !!(n !== null && typeof n == "object" && "href" in n && n.href && "protocol" in n && n.protocol && // @ts-expect-error: indexing is fine.
|
|
19508
19508
|
n.auth === void 0);
|
|
19509
19509
|
}
|
|
19510
19510
|
function hz(n) {
|
|
19511
19511
|
if (typeof n == "string")
|
|
19512
19512
|
n = new URL(n);
|
|
19513
|
-
else if (!
|
|
19513
|
+
else if (!sA(n)) {
|
|
19514
19514
|
const e = new TypeError(
|
|
19515
19515
|
'The "path" argument must be of type string or an instance of URL. Received `' + n + "`"
|
|
19516
19516
|
);
|
|
@@ -19543,7 +19543,7 @@ function pz(n) {
|
|
|
19543
19543
|
}
|
|
19544
19544
|
return decodeURIComponent(e);
|
|
19545
19545
|
}
|
|
19546
|
-
const
|
|
19546
|
+
const hm = (
|
|
19547
19547
|
/** @type {const} */
|
|
19548
19548
|
[
|
|
19549
19549
|
"history",
|
|
@@ -19579,15 +19579,15 @@ class Pk {
|
|
|
19579
19579
|
*/
|
|
19580
19580
|
constructor(e) {
|
|
19581
19581
|
let t;
|
|
19582
|
-
e ?
|
|
19582
|
+
e ? sA(e) ? t = { path: e } : typeof e == "string" || fz(e) ? t = { value: e } : t = e : t = {}, this.cwd = "cwd" in t ? "" : uz.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
19583
19583
|
let r = -1;
|
|
19584
|
-
for (; ++r <
|
|
19585
|
-
const s =
|
|
19584
|
+
for (; ++r < hm.length; ) {
|
|
19585
|
+
const s = hm[r];
|
|
19586
19586
|
s in t && t[s] !== void 0 && t[s] !== null && (this[s] = s === "history" ? [...t[s]] : t[s]);
|
|
19587
19587
|
}
|
|
19588
19588
|
let i;
|
|
19589
19589
|
for (i in t)
|
|
19590
|
-
|
|
19590
|
+
hm.includes(i) || (this[i] = t[i]);
|
|
19591
19591
|
}
|
|
19592
19592
|
/**
|
|
19593
19593
|
* Get the basename (including extname) (example: `'index.min.js'`).
|
|
@@ -19611,7 +19611,7 @@ class Pk {
|
|
|
19611
19611
|
* Nothing.
|
|
19612
19612
|
*/
|
|
19613
19613
|
set basename(e) {
|
|
19614
|
-
|
|
19614
|
+
fm(e, "basename"), pm(e, "basename"), this.path = Gi.join(this.dirname || "", e);
|
|
19615
19615
|
}
|
|
19616
19616
|
/**
|
|
19617
19617
|
* Get the parent path (example: `'~'`).
|
|
@@ -19657,7 +19657,7 @@ class Pk {
|
|
|
19657
19657
|
* Nothing.
|
|
19658
19658
|
*/
|
|
19659
19659
|
set extname(e) {
|
|
19660
|
-
if (
|
|
19660
|
+
if (pm(e, "extname"), u1(this.dirname, "extname"), e) {
|
|
19661
19661
|
if (e.codePointAt(0) !== 46)
|
|
19662
19662
|
throw new Error("`extname` must start with `.`");
|
|
19663
19663
|
if (e.includes(".", 1))
|
|
@@ -19687,7 +19687,7 @@ class Pk {
|
|
|
19687
19687
|
* Nothing.
|
|
19688
19688
|
*/
|
|
19689
19689
|
set path(e) {
|
|
19690
|
-
|
|
19690
|
+
sA(e) && (e = hz(e)), fm(e, "path"), this.path !== e && this.history.push(e);
|
|
19691
19691
|
}
|
|
19692
19692
|
/**
|
|
19693
19693
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -19711,7 +19711,7 @@ class Pk {
|
|
|
19711
19711
|
* Nothing.
|
|
19712
19712
|
*/
|
|
19713
19713
|
set stem(e) {
|
|
19714
|
-
|
|
19714
|
+
fm(e, "stem"), pm(e, "stem"), this.path = Gi.join(this.dirname || "", e + (this.extname || ""));
|
|
19715
19715
|
}
|
|
19716
19716
|
// Normal prototypal methods.
|
|
19717
19717
|
/**
|
|
@@ -19924,13 +19924,13 @@ class Pk {
|
|
|
19924
19924
|
return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(e || void 0).decode(this.value);
|
|
19925
19925
|
}
|
|
19926
19926
|
}
|
|
19927
|
-
function
|
|
19927
|
+
function pm(n, e) {
|
|
19928
19928
|
if (n && n.includes(Gi.sep))
|
|
19929
19929
|
throw new Error(
|
|
19930
19930
|
"`" + e + "` cannot be a path: did not expect `" + Gi.sep + "`"
|
|
19931
19931
|
);
|
|
19932
19932
|
}
|
|
19933
|
-
function
|
|
19933
|
+
function fm(n, e) {
|
|
19934
19934
|
if (!n)
|
|
19935
19935
|
throw new Error("`" + e + "` cannot be empty");
|
|
19936
19936
|
}
|
|
@@ -19991,7 +19991,7 @@ class a0 extends gz {
|
|
|
19991
19991
|
const r = this.attachers[t];
|
|
19992
19992
|
e.use(...r);
|
|
19993
19993
|
}
|
|
19994
|
-
return e.data(
|
|
19994
|
+
return e.data(dm(!0, {}, this.namespace)), e;
|
|
19995
19995
|
}
|
|
19996
19996
|
/**
|
|
19997
19997
|
* Configure the processor with info available to all plugins.
|
|
@@ -20053,7 +20053,7 @@ class a0 extends gz {
|
|
|
20053
20053
|
* the entire dataset when getting without key.
|
|
20054
20054
|
*/
|
|
20055
20055
|
data(e, t) {
|
|
20056
|
-
return typeof e == "string" ? arguments.length === 2 ? (
|
|
20056
|
+
return typeof e == "string" ? arguments.length === 2 ? (Am("data", this.frozen), this.namespace[e] = t, this) : mz.call(this.namespace, e) && this.namespace[e] || void 0 : e ? (Am("data", this.frozen), this.namespace = e, this) : this.namespace;
|
|
20057
20057
|
}
|
|
20058
20058
|
/**
|
|
20059
20059
|
* Freeze a processor.
|
|
@@ -20107,7 +20107,7 @@ class a0 extends gz {
|
|
|
20107
20107
|
parse(e) {
|
|
20108
20108
|
this.freeze();
|
|
20109
20109
|
const t = Bp(e), r = this.parser || this.Parser;
|
|
20110
|
-
return
|
|
20110
|
+
return gm("parse", r), r(String(t), t);
|
|
20111
20111
|
}
|
|
20112
20112
|
/**
|
|
20113
20113
|
* Process the given file as configured on the processor.
|
|
@@ -20153,7 +20153,7 @@ class a0 extends gz {
|
|
|
20153
20153
|
*/
|
|
20154
20154
|
process(e, t) {
|
|
20155
20155
|
const r = this;
|
|
20156
|
-
return this.freeze(),
|
|
20156
|
+
return this.freeze(), gm("process", this.parser || this.Parser), mm("process", this.compiler || this.Compiler), t ? i(void 0, t) : new Promise(i);
|
|
20157
20157
|
function i(s, a) {
|
|
20158
20158
|
const o = Bp(e), l = (
|
|
20159
20159
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
@@ -20212,7 +20212,7 @@ class a0 extends gz {
|
|
|
20212
20212
|
*/
|
|
20213
20213
|
processSync(e) {
|
|
20214
20214
|
let t = !1, r;
|
|
20215
|
-
return this.freeze(),
|
|
20215
|
+
return this.freeze(), gm("processSync", this.parser || this.Parser), mm("processSync", this.compiler || this.Compiler), this.process(e, i), h1("processSync", "process", t), r;
|
|
20216
20216
|
function i(s, a) {
|
|
20217
20217
|
t = !0, r1(s), r = a;
|
|
20218
20218
|
}
|
|
@@ -20327,7 +20327,7 @@ class a0 extends gz {
|
|
|
20327
20327
|
stringify(e, t) {
|
|
20328
20328
|
this.freeze();
|
|
20329
20329
|
const r = Bp(t), i = this.compiler || this.Compiler;
|
|
20330
|
-
return
|
|
20330
|
+
return mm("stringify", i), d1(e), i(e, r);
|
|
20331
20331
|
}
|
|
20332
20332
|
/**
|
|
20333
20333
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -20388,7 +20388,7 @@ class a0 extends gz {
|
|
|
20388
20388
|
*/
|
|
20389
20389
|
use(e, ...t) {
|
|
20390
20390
|
const r = this.attachers, i = this.namespace;
|
|
20391
|
-
if (
|
|
20391
|
+
if (Am("use", this.frozen), e != null) if (typeof e == "function")
|
|
20392
20392
|
l(e, t);
|
|
20393
20393
|
else if (typeof e == "object")
|
|
20394
20394
|
Array.isArray(e) ? o(e) : a(e);
|
|
@@ -20415,7 +20415,7 @@ class a0 extends gz {
|
|
|
20415
20415
|
throw new Error(
|
|
20416
20416
|
"Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither"
|
|
20417
20417
|
);
|
|
20418
|
-
o(c.plugins), c.settings && (i.settings =
|
|
20418
|
+
o(c.plugins), c.settings && (i.settings = dm(!0, i.settings, c.settings));
|
|
20419
20419
|
}
|
|
20420
20420
|
function o(c) {
|
|
20421
20421
|
let u = -1;
|
|
@@ -20439,28 +20439,28 @@ class a0 extends gz {
|
|
|
20439
20439
|
else if (u.length > 0) {
|
|
20440
20440
|
let [f, ...g] = u;
|
|
20441
20441
|
const m = r[p][1];
|
|
20442
|
-
|
|
20442
|
+
iA(m) && iA(f) && (f = dm(!0, m, f)), r[p] = [c, f, ...g];
|
|
20443
20443
|
}
|
|
20444
20444
|
}
|
|
20445
20445
|
}
|
|
20446
20446
|
}
|
|
20447
20447
|
const Az = new a0().freeze();
|
|
20448
|
-
function
|
|
20448
|
+
function gm(n, e) {
|
|
20449
20449
|
if (typeof e != "function")
|
|
20450
20450
|
throw new TypeError("Cannot `" + n + "` without `parser`");
|
|
20451
20451
|
}
|
|
20452
|
-
function
|
|
20452
|
+
function mm(n, e) {
|
|
20453
20453
|
if (typeof e != "function")
|
|
20454
20454
|
throw new TypeError("Cannot `" + n + "` without `compiler`");
|
|
20455
20455
|
}
|
|
20456
|
-
function
|
|
20456
|
+
function Am(n, e) {
|
|
20457
20457
|
if (e)
|
|
20458
20458
|
throw new Error(
|
|
20459
20459
|
"Cannot call `" + n + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
20460
20460
|
);
|
|
20461
20461
|
}
|
|
20462
20462
|
function d1(n) {
|
|
20463
|
-
if (!
|
|
20463
|
+
if (!iA(n) || typeof n.type != "string")
|
|
20464
20464
|
throw new TypeError("Expected node, got `" + n + "`");
|
|
20465
20465
|
}
|
|
20466
20466
|
function h1(n, e, t) {
|
|
@@ -20545,9 +20545,9 @@ function Iz(n, e) {
|
|
|
20545
20545
|
return a ? p.children.splice(h, 1) : p.children[h] = { type: "text", value: u.value }, h;
|
|
20546
20546
|
if (u.type === "element") {
|
|
20547
20547
|
let f;
|
|
20548
|
-
for (f in
|
|
20549
|
-
if (Object.hasOwn(
|
|
20550
|
-
const g = u.properties[f], m =
|
|
20548
|
+
for (f in lm)
|
|
20549
|
+
if (Object.hasOwn(lm, f) && Object.hasOwn(u.properties, f)) {
|
|
20550
|
+
const g = u.properties[f], m = lm[f];
|
|
20551
20551
|
(m === null || m.includes(u.tagName)) && (u.properties[f] = l(String(g || ""), f, u));
|
|
20552
20552
|
}
|
|
20553
20553
|
}
|
|
@@ -20582,7 +20582,7 @@ function Nz(n) {
|
|
|
20582
20582
|
return n.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
20583
20583
|
}
|
|
20584
20584
|
function Tz(n, e, t) {
|
|
20585
|
-
const i =
|
|
20585
|
+
const i = Lg((t || {}).ignore || []), s = jz(e);
|
|
20586
20586
|
let a = -1;
|
|
20587
20587
|
for (; ++a < s.length; )
|
|
20588
20588
|
Lk(n, "text", o);
|
|
@@ -20645,15 +20645,15 @@ function Lz(n) {
|
|
|
20645
20645
|
return n;
|
|
20646
20646
|
};
|
|
20647
20647
|
}
|
|
20648
|
-
const
|
|
20648
|
+
const bm = "phrasing", xm = ["autolink", "link", "image", "label"];
|
|
20649
20649
|
function Mz() {
|
|
20650
20650
|
return {
|
|
20651
20651
|
transforms: [Bz],
|
|
20652
20652
|
enter: {
|
|
20653
20653
|
literalAutolink: Rz,
|
|
20654
|
-
literalAutolinkEmail:
|
|
20655
|
-
literalAutolinkHttp:
|
|
20656
|
-
literalAutolinkWww:
|
|
20654
|
+
literalAutolinkEmail: ym,
|
|
20655
|
+
literalAutolinkHttp: ym,
|
|
20656
|
+
literalAutolinkWww: ym
|
|
20657
20657
|
},
|
|
20658
20658
|
exit: {
|
|
20659
20659
|
literalAutolink: Hz,
|
|
@@ -20670,22 +20670,22 @@ function Pz() {
|
|
|
20670
20670
|
character: "@",
|
|
20671
20671
|
before: "[+\\-.\\w]",
|
|
20672
20672
|
after: "[\\-.\\w]",
|
|
20673
|
-
inConstruct:
|
|
20674
|
-
notInConstruct:
|
|
20673
|
+
inConstruct: bm,
|
|
20674
|
+
notInConstruct: xm
|
|
20675
20675
|
},
|
|
20676
20676
|
{
|
|
20677
20677
|
character: ".",
|
|
20678
20678
|
before: "[Ww]",
|
|
20679
20679
|
after: "[\\-.\\w]",
|
|
20680
|
-
inConstruct:
|
|
20681
|
-
notInConstruct:
|
|
20680
|
+
inConstruct: bm,
|
|
20681
|
+
notInConstruct: xm
|
|
20682
20682
|
},
|
|
20683
20683
|
{
|
|
20684
20684
|
character: ":",
|
|
20685
20685
|
before: "[ps]",
|
|
20686
20686
|
after: "\\/",
|
|
20687
|
-
inConstruct:
|
|
20688
|
-
notInConstruct:
|
|
20687
|
+
inConstruct: bm,
|
|
20688
|
+
notInConstruct: xm
|
|
20689
20689
|
}
|
|
20690
20690
|
]
|
|
20691
20691
|
};
|
|
@@ -20693,7 +20693,7 @@ function Pz() {
|
|
|
20693
20693
|
function Rz(n) {
|
|
20694
20694
|
this.enter({ type: "link", title: null, url: "", children: [] }, n);
|
|
20695
20695
|
}
|
|
20696
|
-
function
|
|
20696
|
+
function ym(n) {
|
|
20697
20697
|
this.config.enter.autolinkProtocol.call(this, n);
|
|
20698
20698
|
}
|
|
20699
20699
|
function zz(n) {
|
|
@@ -20764,7 +20764,7 @@ function Qz(n) {
|
|
|
20764
20764
|
}
|
|
20765
20765
|
function Rk(n, e) {
|
|
20766
20766
|
const t = n.input.charCodeAt(n.index - 1);
|
|
20767
|
-
return (n.index === 0 || Sl(t) ||
|
|
20767
|
+
return (n.index === 0 || Sl(t) || Tg(t)) && // If it’s an email, the previous character should not be a slash.
|
|
20768
20768
|
(!e || t !== 47);
|
|
20769
20769
|
}
|
|
20770
20770
|
zk.peek = $z;
|
|
@@ -21181,7 +21181,7 @@ function kF(n, e) {
|
|
|
21181
21181
|
let t = !1;
|
|
21182
21182
|
return s0(n, function(r) {
|
|
21183
21183
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
21184
|
-
return t = !0,
|
|
21184
|
+
return t = !0, nA;
|
|
21185
21185
|
}), !!((!n.depth || n.depth < 3) && _b(n) && (e.options.setext || t));
|
|
21186
21186
|
}
|
|
21187
21187
|
function CF(n, e, t, r) {
|
|
@@ -21469,7 +21469,7 @@ function zF(n, e, t, r) {
|
|
|
21469
21469
|
}
|
|
21470
21470
|
const FF = (
|
|
21471
21471
|
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
|
21472
|
-
|
|
21472
|
+
Lg([
|
|
21473
21473
|
"break",
|
|
21474
21474
|
"delete",
|
|
21475
21475
|
"emphasis",
|
|
@@ -21581,9 +21581,9 @@ function QF() {
|
|
|
21581
21581
|
exit: {
|
|
21582
21582
|
codeText: YF,
|
|
21583
21583
|
table: qF,
|
|
21584
|
-
tableData:
|
|
21585
|
-
tableHeader:
|
|
21586
|
-
tableRow:
|
|
21584
|
+
tableData: wm,
|
|
21585
|
+
tableHeader: wm,
|
|
21586
|
+
tableRow: wm
|
|
21587
21587
|
}
|
|
21588
21588
|
};
|
|
21589
21589
|
}
|
|
@@ -21606,7 +21606,7 @@ function qF(n) {
|
|
|
21606
21606
|
function ZF(n) {
|
|
21607
21607
|
this.enter({ type: "tableRow", children: [] }, n);
|
|
21608
21608
|
}
|
|
21609
|
-
function
|
|
21609
|
+
function wm(n) {
|
|
21610
21610
|
this.exit(n);
|
|
21611
21611
|
}
|
|
21612
21612
|
function x1(n) {
|
|
@@ -21819,10 +21819,10 @@ function aD(n, e, t) {
|
|
|
21819
21819
|
let i, s;
|
|
21820
21820
|
return a;
|
|
21821
21821
|
function a(h) {
|
|
21822
|
-
return !
|
|
21822
|
+
return !aA(h) || !rC.call(r, r.previous) || c0(r.events) ? t(h) : (n.enter("literalAutolink"), n.enter("literalAutolinkEmail"), o(h));
|
|
21823
21823
|
}
|
|
21824
21824
|
function o(h) {
|
|
21825
|
-
return
|
|
21825
|
+
return aA(h) ? (n.consume(h), o) : h === 64 ? (n.consume(h), l) : t(h);
|
|
21826
21826
|
}
|
|
21827
21827
|
function l(h) {
|
|
21828
21828
|
return h === 46 ? n.check(iD, u, c)(h) : h === 45 || h === 95 || qn(h) ? (s = !0, n.consume(h), l) : u(h);
|
|
@@ -21865,7 +21865,7 @@ function lD(n, e, t) {
|
|
|
21865
21865
|
return h === 47 ? (n.consume(h), s ? c : (s = !0, l)) : t(h);
|
|
21866
21866
|
}
|
|
21867
21867
|
function c(h) {
|
|
21868
|
-
return h === null || Qf(h) || It(h) || Sl(h) ||
|
|
21868
|
+
return h === null || Qf(h) || It(h) || Sl(h) || Tg(h) ? t(h) : n.attempt(Jk, n.attempt(Kk, u), t)(h);
|
|
21869
21869
|
}
|
|
21870
21870
|
function u(h) {
|
|
21871
21871
|
return n.exit("literalAutolinkHttp"), n.exit("literalAutolink"), e(h);
|
|
@@ -21885,7 +21885,7 @@ function uD(n, e, t) {
|
|
|
21885
21885
|
let r, i, s;
|
|
21886
21886
|
return a;
|
|
21887
21887
|
function a(c) {
|
|
21888
|
-
return c === 46 || c === 95 ? n.check(_k, l, o)(c) : c === null || It(c) || Sl(c) || c !== 45 &&
|
|
21888
|
+
return c === 46 || c === 95 ? n.check(_k, l, o)(c) : c === null || It(c) || Sl(c) || c !== 45 && Tg(c) ? l(c) : (s = !0, n.consume(c), a);
|
|
21889
21889
|
}
|
|
21890
21890
|
function o(c) {
|
|
21891
21891
|
return c === 95 ? r = !0 : (i = r, r = void 0), n.consume(c), a;
|
|
@@ -21939,9 +21939,9 @@ function nC(n) {
|
|
|
21939
21939
|
return !sr(n);
|
|
21940
21940
|
}
|
|
21941
21941
|
function rC(n) {
|
|
21942
|
-
return !(n === 47 ||
|
|
21942
|
+
return !(n === 47 || aA(n));
|
|
21943
21943
|
}
|
|
21944
|
-
function
|
|
21944
|
+
function aA(n) {
|
|
21945
21945
|
return n === 43 || n === 45 || n === 46 || n === 95 || qn(n);
|
|
21946
21946
|
}
|
|
21947
21947
|
function c0(n) {
|
|
@@ -22180,7 +22180,7 @@ function kD(n) {
|
|
|
22180
22180
|
start: Object.assign({}, a[c][1].end),
|
|
22181
22181
|
end: Object.assign({}, a[l][1].start)
|
|
22182
22182
|
}, p = [["enter", u, o], ["enter", a[c][1], o], ["exit", a[c][1], o], ["enter", h, o]], f = o.parser.constructs.insideSpan.null;
|
|
22183
|
-
f && qr(p, p.length, 0,
|
|
22183
|
+
f && qr(p, p.length, 0, jg(f, a.slice(c + 1, l), o)), qr(p, p.length, 0, [["exit", h, o], ["enter", a[l][1], o], ["exit", a[l][1], o], ["exit", u, o]]), qr(a, c - 1, l - c + 3, p), l = c + p.length - 2;
|
|
22184
22184
|
break;
|
|
22185
22185
|
}
|
|
22186
22186
|
}
|
|
@@ -23304,7 +23304,7 @@ gd.d(Pe, {
|
|
|
23304
23304
|
),
|
|
23305
23305
|
AnnotationEditorLayer: () => (
|
|
23306
23306
|
/* reexport */
|
|
23307
|
-
|
|
23307
|
+
gb
|
|
23308
23308
|
),
|
|
23309
23309
|
AnnotationEditorParamsType: () => (
|
|
23310
23310
|
/* reexport */
|
|
@@ -23336,7 +23336,7 @@ gd.d(Pe, {
|
|
|
23336
23336
|
),
|
|
23337
23337
|
DrawLayer: () => (
|
|
23338
23338
|
/* reexport */
|
|
23339
|
-
|
|
23339
|
+
bb
|
|
23340
23340
|
),
|
|
23341
23341
|
FeatureTest: () => (
|
|
23342
23342
|
/* reexport */
|
|
@@ -23352,7 +23352,7 @@ gd.d(Pe, {
|
|
|
23352
23352
|
),
|
|
23353
23353
|
InvalidPDFException: () => (
|
|
23354
23354
|
/* reexport */
|
|
23355
|
-
|
|
23355
|
+
lA
|
|
23356
23356
|
),
|
|
23357
23357
|
MissingPDFException: () => (
|
|
23358
23358
|
/* reexport */
|
|
@@ -23364,7 +23364,7 @@ gd.d(Pe, {
|
|
|
23364
23364
|
),
|
|
23365
23365
|
OutputScale: () => (
|
|
23366
23366
|
/* reexport */
|
|
23367
|
-
|
|
23367
|
+
uA
|
|
23368
23368
|
),
|
|
23369
23369
|
PDFDataRangeTransport: () => (
|
|
23370
23370
|
/* reexport */
|
|
@@ -23412,7 +23412,7 @@ gd.d(Pe, {
|
|
|
23412
23412
|
),
|
|
23413
23413
|
VerbosityLevel: () => (
|
|
23414
23414
|
/* reexport */
|
|
23415
|
-
|
|
23415
|
+
Pg
|
|
23416
23416
|
),
|
|
23417
23417
|
XfaLayer: () => (
|
|
23418
23418
|
/* reexport */
|
|
@@ -23428,7 +23428,7 @@ gd.d(Pe, {
|
|
|
23428
23428
|
),
|
|
23429
23429
|
fetchData: () => (
|
|
23430
23430
|
/* reexport */
|
|
23431
|
-
|
|
23431
|
+
Dg
|
|
23432
23432
|
),
|
|
23433
23433
|
getDocument: () => (
|
|
23434
23434
|
/* reexport */
|
|
@@ -23448,7 +23448,7 @@ gd.d(Pe, {
|
|
|
23448
23448
|
),
|
|
23449
23449
|
isDataScheme: () => (
|
|
23450
23450
|
/* reexport */
|
|
23451
|
-
|
|
23451
|
+
Hg
|
|
23452
23452
|
),
|
|
23453
23453
|
isPdfFile: () => (
|
|
23454
23454
|
/* reexport */
|
|
@@ -23479,7 +23479,7 @@ gd.d(Pe, {
|
|
|
23479
23479
|
v6
|
|
23480
23480
|
)
|
|
23481
23481
|
});
|
|
23482
|
-
const Vn = typeof process == "object" && process + "" == "[object process]" && !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser"), iC = [1, 0, 0, 1, 0, 0],
|
|
23482
|
+
const Vn = typeof process == "object" && process + "" == "[object process]" && !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser"), iC = [1, 0, 0, 1, 0, 0], oA = [1e-3, 0, 0, 1e-3, 0, 0], XD = 1e7, vm = 1.35, Gr = {
|
|
23483
23483
|
ANY: 1,
|
|
23484
23484
|
DISPLAY: 2,
|
|
23485
23485
|
PRINT: 4,
|
|
@@ -23560,7 +23560,7 @@ const Vn = typeof process == "object" && process + "" == "[object process]" && !
|
|
|
23560
23560
|
BEVELED: 3,
|
|
23561
23561
|
INSET: 4,
|
|
23562
23562
|
UNDERLINE: 5
|
|
23563
|
-
},
|
|
23563
|
+
}, Pg = {
|
|
23564
23564
|
ERRORS: 0,
|
|
23565
23565
|
WARNINGS: 1,
|
|
23566
23566
|
INFOS: 5
|
|
@@ -23659,18 +23659,18 @@ const Vn = typeof process == "object" && process + "" == "[object process]" && !
|
|
|
23659
23659
|
NEED_PASSWORD: 1,
|
|
23660
23660
|
INCORRECT_PASSWORD: 2
|
|
23661
23661
|
};
|
|
23662
|
-
let
|
|
23662
|
+
let Rg = Pg.WARNINGS;
|
|
23663
23663
|
function $D(n) {
|
|
23664
|
-
Number.isInteger(n) && (
|
|
23664
|
+
Number.isInteger(n) && (Rg = n);
|
|
23665
23665
|
}
|
|
23666
23666
|
function e7() {
|
|
23667
|
-
return
|
|
23667
|
+
return Rg;
|
|
23668
23668
|
}
|
|
23669
|
-
function
|
|
23670
|
-
|
|
23669
|
+
function zg(n) {
|
|
23670
|
+
Rg >= Pg.INFOS && console.log(`Info: ${n}`);
|
|
23671
23671
|
}
|
|
23672
23672
|
function We(n) {
|
|
23673
|
-
|
|
23673
|
+
Rg >= Pg.WARNINGS && console.log(`Warning: ${n}`);
|
|
23674
23674
|
}
|
|
23675
23675
|
function St(n) {
|
|
23676
23676
|
throw new Error(n);
|
|
@@ -23731,12 +23731,12 @@ class v1 extends no {
|
|
|
23731
23731
|
super(e, "PasswordException"), this.code = t;
|
|
23732
23732
|
}
|
|
23733
23733
|
}
|
|
23734
|
-
class
|
|
23734
|
+
class km extends no {
|
|
23735
23735
|
constructor(e, t) {
|
|
23736
23736
|
super(e, "UnknownErrorException"), this.details = t;
|
|
23737
23737
|
}
|
|
23738
23738
|
}
|
|
23739
|
-
class
|
|
23739
|
+
class lA extends no {
|
|
23740
23740
|
constructor(e) {
|
|
23741
23741
|
super(e, "InvalidPDFException");
|
|
23742
23742
|
}
|
|
@@ -23773,7 +23773,7 @@ function sC(n) {
|
|
|
23773
23773
|
}
|
|
23774
23774
|
return r.join("");
|
|
23775
23775
|
}
|
|
23776
|
-
function
|
|
23776
|
+
function Fg(n) {
|
|
23777
23777
|
typeof n != "string" && St("Invalid argument for stringToBytes");
|
|
23778
23778
|
const e = n.length, t = new Uint8Array(e);
|
|
23779
23779
|
for (let r = 0; r < e; ++r)
|
|
@@ -23829,11 +23829,11 @@ class ur {
|
|
|
23829
23829
|
return Ze(this, "isCSSRoundSupported", (t = (e = globalThis.CSS) == null ? void 0 : e.supports) == null ? void 0 : t.call(e, "width: round(1.5px, 1px)"));
|
|
23830
23830
|
}
|
|
23831
23831
|
}
|
|
23832
|
-
const
|
|
23833
|
-
var ea, of,
|
|
23832
|
+
const Cm = Array.from(Array(256).keys(), (n) => n.toString(16).padStart(2, "0"));
|
|
23833
|
+
var ea, of, cA;
|
|
23834
23834
|
class Ie {
|
|
23835
23835
|
static makeHexColor(e, t, r) {
|
|
23836
|
-
return `#${
|
|
23836
|
+
return `#${Cm[e]}${Cm[t]}${Cm[r]}`;
|
|
23837
23837
|
}
|
|
23838
23838
|
static scaleMinMax(e, t) {
|
|
23839
23839
|
let r;
|
|
@@ -23874,7 +23874,7 @@ class Ie {
|
|
|
23874
23874
|
return s > a ? null : [r, s, i, a];
|
|
23875
23875
|
}
|
|
23876
23876
|
static bezierBoundingBox(e, t, r, i, s, a, o, l, c) {
|
|
23877
|
-
return c ? (c[0] = Math.min(c[0], e, o), c[1] = Math.min(c[1], t, l), c[2] = Math.max(c[2], e, o), c[3] = Math.max(c[3], t, l)) : c = [Math.min(e, o), Math.min(t, l), Math.max(e, o), Math.max(t, l)], I(this, ea,
|
|
23877
|
+
return c ? (c[0] = Math.min(c[0], e, o), c[1] = Math.min(c[1], t, l), c[2] = Math.max(c[2], e, o), c[3] = Math.max(c[3], t, l)) : c = [Math.min(e, o), Math.min(t, l), Math.max(e, o), Math.max(t, l)], I(this, ea, cA).call(this, e, r, s, o, t, i, a, l, 3 * (-e + 3 * (r - s) + o), 6 * (e - 2 * r + s), 3 * (r - e), c), I(this, ea, cA).call(this, e, r, s, o, t, i, a, l, 3 * (-t + 3 * (i - a) + l), 6 * (t - 2 * i + a), 3 * (i - t), c), c;
|
|
23878
23878
|
}
|
|
23879
23879
|
}
|
|
23880
23880
|
ea = new WeakSet(), of = function(e, t, r, i, s, a, o, l, c, u) {
|
|
@@ -23882,7 +23882,7 @@ ea = new WeakSet(), of = function(e, t, r, i, s, a, o, l, c, u) {
|
|
|
23882
23882
|
return;
|
|
23883
23883
|
const h = 1 - c, p = c * c, f = p * c, g = h * (h * (h * e + 3 * c * t) + 3 * p * r) + f * i, m = h * (h * (h * s + 3 * c * a) + 3 * p * o) + f * l;
|
|
23884
23884
|
u[0] = Math.min(u[0], g), u[1] = Math.min(u[1], m), u[2] = Math.max(u[2], g), u[3] = Math.max(u[3], m);
|
|
23885
|
-
},
|
|
23885
|
+
}, cA = function(e, t, r, i, s, a, o, l, c, u, h, p) {
|
|
23886
23886
|
if (Math.abs(c) < 1e-12) {
|
|
23887
23887
|
Math.abs(u) >= 1e-12 && I(this, ea, of).call(this, e, t, r, i, s, a, o, l, -h / u, p);
|
|
23888
23888
|
return;
|
|
@@ -23896,9 +23896,9 @@ ea = new WeakSet(), of = function(e, t, r, i, s, a, o, l, c, u) {
|
|
|
23896
23896
|
function o7(n) {
|
|
23897
23897
|
return decodeURIComponent(escape(n));
|
|
23898
23898
|
}
|
|
23899
|
-
let
|
|
23899
|
+
let Sm = null, k1 = null;
|
|
23900
23900
|
function l7(n) {
|
|
23901
|
-
return
|
|
23901
|
+
return Sm || (Sm = /([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu, k1 = /* @__PURE__ */ new Map([["ſt", "ſt"]])), n.replaceAll(Sm, (e, t, r) => t ? t.normalize("NFKC") : k1.get(r));
|
|
23902
23902
|
}
|
|
23903
23903
|
function c7() {
|
|
23904
23904
|
if (typeof crypto.randomUUID == "function")
|
|
@@ -23919,7 +23919,7 @@ const ys = "http://www.w3.org/2000/svg", fo = class fo {
|
|
|
23919
23919
|
};
|
|
23920
23920
|
Se(fo, "CSS", 96), Se(fo, "PDF", 72), Se(fo, "PDF_TO_CSS_UNITS", fo.CSS / fo.PDF);
|
|
23921
23921
|
let _a = fo;
|
|
23922
|
-
async function
|
|
23922
|
+
async function Dg(n, e = "text") {
|
|
23923
23923
|
if (Yu(n, document.baseURI)) {
|
|
23924
23924
|
const t = await fetch(n);
|
|
23925
23925
|
if (!t.ok)
|
|
@@ -24032,7 +24032,7 @@ class h0 extends no {
|
|
|
24032
24032
|
super(e, "RenderingCancelledException"), this.extraDelay = t;
|
|
24033
24033
|
}
|
|
24034
24034
|
}
|
|
24035
|
-
function
|
|
24035
|
+
function Hg(n) {
|
|
24036
24036
|
const e = n.length;
|
|
24037
24037
|
let t = 0;
|
|
24038
24038
|
for (; t < e && n[t].trim() === ""; )
|
|
@@ -24048,7 +24048,7 @@ function d7(n) {
|
|
|
24048
24048
|
function h7(n, e = "document.pdf") {
|
|
24049
24049
|
if (typeof n != "string")
|
|
24050
24050
|
return e;
|
|
24051
|
-
if (
|
|
24051
|
+
if (Hg(n))
|
|
24052
24052
|
return We('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'), e;
|
|
24053
24053
|
const t = /^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/, r = /[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i, i = t.exec(n);
|
|
24054
24054
|
let s = r.exec(i[1]) || r.exec(i[2]) || r.exec(i[3]);
|
|
@@ -24201,7 +24201,7 @@ function Il(n, e, t = !1, r = !0) {
|
|
|
24201
24201
|
}
|
|
24202
24202
|
r && n.setAttribute("data-main-rotation", e.rotation);
|
|
24203
24203
|
}
|
|
24204
|
-
class
|
|
24204
|
+
class uA {
|
|
24205
24205
|
constructor() {
|
|
24206
24206
|
const e = window.devicePixelRatio || 1;
|
|
24207
24207
|
this.sx = e, this.sy = e;
|
|
@@ -24213,7 +24213,7 @@ class cA {
|
|
|
24213
24213
|
return this.sx === this.sy;
|
|
24214
24214
|
}
|
|
24215
24215
|
}
|
|
24216
|
-
var ga, bo, bi, xo, zd, Fd, ng, aC, dr, oC, lC, lf, cC,
|
|
24216
|
+
var ga, bo, bi, xo, zd, Fd, ng, aC, dr, oC, lC, lf, cC, hA;
|
|
24217
24217
|
const ks = class ks {
|
|
24218
24218
|
constructor(e) {
|
|
24219
24219
|
S(this, dr);
|
|
@@ -24262,12 +24262,12 @@ const ks = class ks {
|
|
|
24262
24262
|
}
|
|
24263
24263
|
async addAltText(e) {
|
|
24264
24264
|
const t = await e.render();
|
|
24265
|
-
I(this, dr, lf).call(this, t), d(this, xo).prepend(t, d(this, dr,
|
|
24265
|
+
I(this, dr, lf).call(this, t), d(this, xo).prepend(t, d(this, dr, hA)), v(this, zd, e);
|
|
24266
24266
|
}
|
|
24267
24267
|
addColorPicker(e) {
|
|
24268
24268
|
v(this, bo, e);
|
|
24269
24269
|
const t = e.renderButton();
|
|
24270
|
-
I(this, dr, lf).call(this, t), d(this, xo).prepend(t, d(this, dr,
|
|
24270
|
+
I(this, dr, lf).call(this, t), d(this, xo).prepend(t, d(this, dr, hA));
|
|
24271
24271
|
}
|
|
24272
24272
|
remove() {
|
|
24273
24273
|
var e;
|
|
@@ -24301,11 +24301,11 @@ ga = new WeakMap(), bo = new WeakMap(), bi = new WeakMap(), xo = new WeakMap(),
|
|
|
24301
24301
|
}, {
|
|
24302
24302
|
signal: t._signal
|
|
24303
24303
|
}), d(this, xo).append(r);
|
|
24304
|
-
},
|
|
24304
|
+
}, hA = function() {
|
|
24305
24305
|
const e = document.createElement("div");
|
|
24306
24306
|
return e.className = "divider", e;
|
|
24307
24307
|
}, S(ks, ng), S(ks, Fd, null);
|
|
24308
|
-
let
|
|
24308
|
+
let dA = ks;
|
|
24309
24309
|
var Dd, yo, wo, $a, uC, dC, hC;
|
|
24310
24310
|
class g7 {
|
|
24311
24311
|
constructor(e) {
|
|
@@ -24474,7 +24474,7 @@ ic = new WeakMap(), Hd = new WeakMap(), Hn = new WeakMap(), sc = new WeakSet(),
|
|
|
24474
24474
|
isSvg: !1
|
|
24475
24475
|
});
|
|
24476
24476
|
let i;
|
|
24477
|
-
if (typeof t == "string" ? (r.url = t, i = await
|
|
24477
|
+
if (typeof t == "string" ? (r.url = t, i = await Dg(t, "blob")) : t instanceof File ? i = r.file = t : t instanceof Blob && (i = t), i.type === "image/svg+xml") {
|
|
24478
24478
|
const s = w0._isSVGFittingCanvas, a = new FileReader(), o = new Image(), l = new Promise((c, u) => {
|
|
24479
24479
|
o.onload = () => {
|
|
24480
24480
|
r.bitmap = o, r.isSvg = !0, c();
|
|
@@ -24492,7 +24492,7 @@ ic = new WeakMap(), Hd = new WeakMap(), Hn = new WeakMap(), sc = new WeakSet(),
|
|
|
24492
24492
|
}
|
|
24493
24493
|
return d(this, Hn).set(e, r), r && d(this, Hn).set(r.id, r), r;
|
|
24494
24494
|
};
|
|
24495
|
-
let
|
|
24495
|
+
let pA = w0;
|
|
24496
24496
|
var rn, ma, Bd, Zt;
|
|
24497
24497
|
class A7 {
|
|
24498
24498
|
constructor(e = 128) {
|
|
@@ -24633,8 +24633,8 @@ const sg = class sg {
|
|
|
24633
24633
|
}
|
|
24634
24634
|
};
|
|
24635
24635
|
Se(sg, "_colorsMapping", /* @__PURE__ */ new Map([["CanvasText", [0, 0, 0]], ["Canvas", [255, 255, 255]]]));
|
|
24636
|
-
let
|
|
24637
|
-
var ac, Or, An, jn, oc, Ss, lc, _r, Aa, vo, cc, ko, qi, xi, Co, Ud, Wd, uc, Gd, Zi, ba, dc, xa, Yi, ag, ya, Qd, wa, So, Vd, qd, wn, At, Is, Io, Zd, Yd, va, Xi, Es, Xd, $r, ue, uf,
|
|
24636
|
+
let fA = sg;
|
|
24637
|
+
var ac, Or, An, jn, oc, Ss, lc, _r, Aa, vo, cc, ko, qi, xi, Co, Ud, Wd, uc, Gd, Zi, ba, dc, xa, Yi, ag, ya, Qd, wa, So, Vd, qd, wn, At, Is, Io, Zd, Yd, va, Xi, Es, Xd, $r, ue, uf, gA, fC, gC, df, mC, AC, bC, mA, xC, AA, bA, yC, _n, ws, wC, vC, xA, kC, Xu, yA;
|
|
24638
24638
|
const $l = class $l {
|
|
24639
24639
|
constructor(e, t, r, i, s, a, o, l, c, u, h, p, f) {
|
|
24640
24640
|
S(this, ue);
|
|
@@ -24701,7 +24701,7 @@ const $l = class $l {
|
|
|
24701
24701
|
signal: g
|
|
24702
24702
|
}), i._on("switchannotationeditorparams", (m) => this.updateParams(m.type, m.value), {
|
|
24703
24703
|
signal: g
|
|
24704
|
-
}), I(this, ue, mC).call(this), I(this, ue, yC).call(this), I(this, ue,
|
|
24704
|
+
}), I(this, ue, mC).call(this), I(this, ue, yC).call(this), I(this, ue, mA).call(this), v(this, Ss, s.annotationStorage), v(this, Gd, s.filterFactory), v(this, Io, a), v(this, dc, o || null), v(this, Ud, l), v(this, Wd, c), v(this, uc, u), v(this, qd, h || null), this.viewParameters = {
|
|
24705
24705
|
realScale: _a.PDF_TO_CSS_UNITS,
|
|
24706
24706
|
rotation: 0
|
|
24707
24707
|
}, this.isShiftKeyDown = !1, this._editorUndoBar = p || null, this._supportsPinchToZoom = f !== !1;
|
|
@@ -24884,7 +24884,7 @@ const $l = class $l {
|
|
|
24884
24884
|
if (!u)
|
|
24885
24885
|
return;
|
|
24886
24886
|
t.empty();
|
|
24887
|
-
const h = I(this, ue,
|
|
24887
|
+
const h = I(this, ue, gA).call(this, c), p = d(this, wn) === Ue.NONE, f = () => {
|
|
24888
24888
|
h == null || h.createAndAddNewEditor({
|
|
24889
24889
|
x: 0,
|
|
24890
24890
|
y: 0
|
|
@@ -24931,10 +24931,10 @@ const $l = class $l {
|
|
|
24931
24931
|
}), t.focus();
|
|
24932
24932
|
}
|
|
24933
24933
|
addEditListeners() {
|
|
24934
|
-
I(this, ue,
|
|
24934
|
+
I(this, ue, mA).call(this), I(this, ue, AA).call(this);
|
|
24935
24935
|
}
|
|
24936
24936
|
removeEditListeners() {
|
|
24937
|
-
I(this, ue, xC).call(this), I(this, ue,
|
|
24937
|
+
I(this, ue, xC).call(this), I(this, ue, bA).call(this);
|
|
24938
24938
|
}
|
|
24939
24939
|
dragOver(e) {
|
|
24940
24940
|
for (const {
|
|
@@ -25002,8 +25002,8 @@ const $l = class $l {
|
|
|
25002
25002
|
}
|
|
25003
25003
|
const a = () => {
|
|
25004
25004
|
for (const l of s)
|
|
25005
|
-
I(this, ue,
|
|
25006
|
-
I(this, ue,
|
|
25005
|
+
I(this, ue, xA).call(this, l);
|
|
25006
|
+
I(this, ue, yA).call(this, s);
|
|
25007
25007
|
}, o = () => {
|
|
25008
25008
|
for (const l of s)
|
|
25009
25009
|
l.remove();
|
|
@@ -25039,13 +25039,13 @@ const $l = class $l {
|
|
|
25039
25039
|
}
|
|
25040
25040
|
}
|
|
25041
25041
|
setEditingState(e) {
|
|
25042
|
-
e ? (I(this, ue, AC).call(this), I(this, ue,
|
|
25042
|
+
e ? (I(this, ue, AC).call(this), I(this, ue, AA).call(this), I(this, ue, _n).call(this, {
|
|
25043
25043
|
isEditing: d(this, wn) !== Ue.NONE,
|
|
25044
25044
|
isEmpty: I(this, ue, Xu).call(this),
|
|
25045
25045
|
hasSomethingToUndo: d(this, _r).hasSomethingToUndo(),
|
|
25046
25046
|
hasSomethingToRedo: d(this, _r).hasSomethingToRedo(),
|
|
25047
25047
|
hasSelectedEditor: !1
|
|
25048
|
-
})) : (I(this, ue, bC).call(this), I(this, ue,
|
|
25048
|
+
})) : (I(this, ue, bC).call(this), I(this, ue, bA).call(this), I(this, ue, _n).call(this, {
|
|
25049
25049
|
isEditing: !1
|
|
25050
25050
|
}), this.disableUserSelect(!1));
|
|
25051
25051
|
}
|
|
@@ -25255,7 +25255,7 @@ const $l = class $l {
|
|
|
25255
25255
|
o.remove();
|
|
25256
25256
|
}, i = () => {
|
|
25257
25257
|
for (const a of t)
|
|
25258
|
-
I(this, ue,
|
|
25258
|
+
I(this, ue, xA).call(this, a);
|
|
25259
25259
|
};
|
|
25260
25260
|
this.addCommands({
|
|
25261
25261
|
cmd: r,
|
|
@@ -25273,7 +25273,7 @@ const $l = class $l {
|
|
|
25273
25273
|
selectAll() {
|
|
25274
25274
|
for (const e of d(this, At))
|
|
25275
25275
|
e.commit();
|
|
25276
|
-
I(this, ue,
|
|
25276
|
+
I(this, ue, yA).call(this, d(this, An).values());
|
|
25277
25277
|
}
|
|
25278
25278
|
unselectAll() {
|
|
25279
25279
|
var e;
|
|
@@ -25387,7 +25387,7 @@ const $l = class $l {
|
|
|
25387
25387
|
return d(this, wn);
|
|
25388
25388
|
}
|
|
25389
25389
|
get imageManager() {
|
|
25390
|
-
return Ze(this, "imageManager", new
|
|
25390
|
+
return Ze(this, "imageManager", new pA());
|
|
25391
25391
|
}
|
|
25392
25392
|
getSelectionBoxes(e) {
|
|
25393
25393
|
if (!e)
|
|
@@ -25476,7 +25476,7 @@ ac = new WeakMap(), Or = new WeakMap(), An = new WeakMap(), jn = new WeakMap(),
|
|
|
25476
25476
|
anchorNode: e
|
|
25477
25477
|
}) {
|
|
25478
25478
|
return e.nodeType === Node.TEXT_NODE ? e.parentElement : e;
|
|
25479
|
-
},
|
|
25479
|
+
}, gA = function(e) {
|
|
25480
25480
|
const {
|
|
25481
25481
|
currentLayer: t
|
|
25482
25482
|
} = this;
|
|
@@ -25516,7 +25516,7 @@ ac = new WeakMap(), Or = new WeakMap(), An = new WeakMap(), jn = new WeakMap(),
|
|
|
25516
25516
|
if ((o = d(this, Yi)) == null || o.hide(), v(this, Is, t), I(this, ue, _n).call(this, {
|
|
25517
25517
|
hasSelectedText: !0
|
|
25518
25518
|
}), !(d(this, wn) !== Ue.HIGHLIGHT && d(this, wn) !== Ue.NONE) && (d(this, wn) === Ue.HIGHLIGHT && this.showAllEditors("highlight", !0, !0), v(this, xa, this.isShiftKeyDown), !this.isShiftKeyDown)) {
|
|
25519
|
-
const l = d(this, wn) === Ue.HIGHLIGHT ? I(this, ue,
|
|
25519
|
+
const l = d(this, wn) === Ue.HIGHLIGHT ? I(this, ue, gA).call(this, i) : null;
|
|
25520
25520
|
l == null || l.toggleDrawing();
|
|
25521
25521
|
const c = new AbortController(), u = this.combinedSignal(c), h = (p) => {
|
|
25522
25522
|
p.type === "pointerup" && p.button !== 0 || (c.abort(), l == null || l.toggleDrawing(!0), p.type === "pointerup" && I(this, ue, df).call(this, "main_toolbar"));
|
|
@@ -25546,7 +25546,7 @@ ac = new WeakMap(), Or = new WeakMap(), An = new WeakMap(), jn = new WeakMap(),
|
|
|
25546
25546
|
}, bC = function() {
|
|
25547
25547
|
var e;
|
|
25548
25548
|
(e = d(this, ba)) == null || e.abort(), v(this, ba, null);
|
|
25549
|
-
},
|
|
25549
|
+
}, mA = function() {
|
|
25550
25550
|
if (d(this, wa))
|
|
25551
25551
|
return;
|
|
25552
25552
|
v(this, wa, new AbortController());
|
|
@@ -25559,7 +25559,7 @@ ac = new WeakMap(), Or = new WeakMap(), An = new WeakMap(), jn = new WeakMap(),
|
|
|
25559
25559
|
}, xC = function() {
|
|
25560
25560
|
var e;
|
|
25561
25561
|
(e = d(this, wa)) == null || e.abort(), v(this, wa, null);
|
|
25562
|
-
},
|
|
25562
|
+
}, AA = function() {
|
|
25563
25563
|
if (d(this, Aa))
|
|
25564
25564
|
return;
|
|
25565
25565
|
v(this, Aa, new AbortController());
|
|
@@ -25571,7 +25571,7 @@ ac = new WeakMap(), Or = new WeakMap(), An = new WeakMap(), jn = new WeakMap(),
|
|
|
25571
25571
|
}), document.addEventListener("paste", this.paste.bind(this), {
|
|
25572
25572
|
signal: e
|
|
25573
25573
|
});
|
|
25574
|
-
},
|
|
25574
|
+
}, bA = function() {
|
|
25575
25575
|
var e;
|
|
25576
25576
|
(e = d(this, Aa)) == null || e.abort(), v(this, Aa, null);
|
|
25577
25577
|
}, yC = function() {
|
|
@@ -25609,7 +25609,7 @@ ac = new WeakMap(), Or = new WeakMap(), An = new WeakMap(), jn = new WeakMap(),
|
|
|
25609
25609
|
for (const e of d(this, An).values())
|
|
25610
25610
|
e.disable();
|
|
25611
25611
|
}
|
|
25612
|
-
},
|
|
25612
|
+
}, xA = function(e) {
|
|
25613
25613
|
const t = d(this, jn).get(e.pageIndex);
|
|
25614
25614
|
t ? t.addOrRebuild(e) : (this.addEditor(e), this.addToAnnotationStorage(e));
|
|
25615
25615
|
}, kC = function() {
|
|
@@ -25624,7 +25624,7 @@ ac = new WeakMap(), Or = new WeakMap(), An = new WeakMap(), jn = new WeakMap(),
|
|
|
25624
25624
|
for (const e of d(this, An).values())
|
|
25625
25625
|
return e.isEmpty();
|
|
25626
25626
|
return !1;
|
|
25627
|
-
},
|
|
25627
|
+
}, yA = function(e) {
|
|
25628
25628
|
for (const t of d(this, At))
|
|
25629
25629
|
t.unselect();
|
|
25630
25630
|
d(this, At).clear();
|
|
@@ -25809,7 +25809,7 @@ vn = new WeakMap(), Ji = new WeakMap(), yi = new WeakMap(), hc = new WeakMap(),
|
|
|
25809
25809
|
r == null || r.setAttribute("aria-describedby", t.id);
|
|
25810
25810
|
}, S($n, ka, null), Se($n, "_l10n", null);
|
|
25811
25811
|
let Jf = $n;
|
|
25812
|
-
var Jd, No, Kd, _d, $d, eh, th, fc, Ts, To, Ca, na, CC, SC,
|
|
25812
|
+
var Jd, No, Kd, _d, $d, eh, th, fc, Ts, To, Ca, na, CC, SC, wA;
|
|
25813
25813
|
const v0 = class v0 {
|
|
25814
25814
|
constructor({
|
|
25815
25815
|
container: e,
|
|
@@ -25855,7 +25855,7 @@ Jd = new WeakMap(), No = new WeakMap(), Kd = new WeakMap(), _d = new WeakMap(),
|
|
|
25855
25855
|
signal: o,
|
|
25856
25856
|
passive: !1
|
|
25857
25857
|
};
|
|
25858
|
-
l.addEventListener("touchmove", I(this, na, SC).bind(this), c), l.addEventListener("touchend", I(this, na,
|
|
25858
|
+
l.addEventListener("touchmove", I(this, na, SC).bind(this), c), l.addEventListener("touchend", I(this, na, wA).bind(this), c), l.addEventListener("touchcancel", I(this, na, wA).bind(this), c), (s = d(this, $d)) == null || s.call(this);
|
|
25859
25859
|
}
|
|
25860
25860
|
if (Vr(e), e.touches.length !== 2 || (a = d(this, Kd)) != null && a.call(this)) {
|
|
25861
25861
|
v(this, Ts, null);
|
|
@@ -25894,12 +25894,12 @@ Jd = new WeakMap(), No = new WeakMap(), Kd = new WeakMap(), _d = new WeakMap(),
|
|
|
25894
25894
|
}
|
|
25895
25895
|
const y = [(i + a) / 2, (s + o) / 2];
|
|
25896
25896
|
(E = d(this, eh)) == null || E.call(this, y, w, A);
|
|
25897
|
-
},
|
|
25897
|
+
}, wA = function(e) {
|
|
25898
25898
|
var t;
|
|
25899
25899
|
d(this, Ca).abort(), v(this, Ca, null), (t = d(this, th)) == null || t.call(this), d(this, Ts) && (e.preventDefault(), v(this, Ts, null), v(this, No, !1));
|
|
25900
25900
|
};
|
|
25901
25901
|
let Kf = v0;
|
|
25902
|
-
var jo, wi, zt, gc, Sa, nh, Oo, On, Lo, js, Ia, rh, Mo, Mr, ih, Po, Os, es, mc, Ac, ei, Ro, sh, og, Oe,
|
|
25902
|
+
var jo, wi, zt, gc, Sa, nh, Oo, On, Lo, js, Ia, rh, Mo, Mr, ih, Po, Os, es, mc, Ac, ei, Ro, sh, og, Oe, vA, ah, kA, pf, IC, EC, CA, ff, SA, NC, TC, jC, IA, OC, EA, LC, MC, PC, NA, Ku;
|
|
25903
25903
|
const Ge = class Ge {
|
|
25904
25904
|
constructor(e) {
|
|
25905
25905
|
S(this, Oe);
|
|
@@ -26080,10 +26080,10 @@ const Ge = class Ge {
|
|
|
26080
26080
|
[r, i] = this.screenToPageTranslation(r, i), this.x = (e + r) / s, this.y = (t + i) / a, this.fixAndSetPosition();
|
|
26081
26081
|
}
|
|
26082
26082
|
translate(e, t) {
|
|
26083
|
-
I(this, Oe,
|
|
26083
|
+
I(this, Oe, vA).call(this, this.parentDimensions, e, t);
|
|
26084
26084
|
}
|
|
26085
26085
|
translateInPage(e, t) {
|
|
26086
|
-
d(this, Mr) || v(this, Mr, [this.x, this.y, this.width, this.height]), I(this, Oe,
|
|
26086
|
+
d(this, Mr) || v(this, Mr, [this.x, this.y, this.width, this.height]), I(this, Oe, vA).call(this, this.pageDimensions, e, t), this.div.scrollIntoView({
|
|
26087
26087
|
block: "nearest"
|
|
26088
26088
|
});
|
|
26089
26089
|
}
|
|
@@ -26175,11 +26175,11 @@ const Ge = class Ge {
|
|
|
26175
26175
|
}
|
|
26176
26176
|
screenToPageTranslation(e, t) {
|
|
26177
26177
|
var r;
|
|
26178
|
-
return I(r = Ge, ah,
|
|
26178
|
+
return I(r = Ge, ah, kA).call(r, e, t, this.parentRotation);
|
|
26179
26179
|
}
|
|
26180
26180
|
pageTranslationToScreen(e, t) {
|
|
26181
26181
|
var r;
|
|
26182
|
-
return I(r = Ge, ah,
|
|
26182
|
+
return I(r = Ge, ah, kA).call(r, e, t, 360 - this.parentRotation);
|
|
26183
26183
|
}
|
|
26184
26184
|
get parentScale() {
|
|
26185
26185
|
return this._uiManager.viewParameters.realScale;
|
|
@@ -26227,7 +26227,7 @@ const Ge = class Ge {
|
|
|
26227
26227
|
(e = d(this, zt)) == null || e.finish();
|
|
26228
26228
|
}
|
|
26229
26229
|
async addEditToolbar() {
|
|
26230
|
-
return this._editToolbar || d(this, Po) ? this._editToolbar : (this._editToolbar = new
|
|
26230
|
+
return this._editToolbar || d(this, Po) ? this._editToolbar : (this._editToolbar = new dA(this), this.div.append(this._editToolbar.render()), d(this, zt) && await this._editToolbar.addAltText(d(this, zt)), this._editToolbar);
|
|
26231
26231
|
}
|
|
26232
26232
|
removeEditToolbar() {
|
|
26233
26233
|
var e;
|
|
@@ -26272,7 +26272,7 @@ const Ge = class Ge {
|
|
|
26272
26272
|
}
|
|
26273
26273
|
render() {
|
|
26274
26274
|
var s;
|
|
26275
|
-
this.div = document.createElement("div"), this.div.setAttribute("data-editor-rotation", (360 - this.rotation) % 360), this.div.className = this.name, this.div.setAttribute("id", this.id), this.div.tabIndex = d(this, gc) ? -1 : 0, this._isVisible || this.div.classList.add("hidden"), this.setInForeground(), I(this, Oe,
|
|
26275
|
+
this.div = document.createElement("div"), this.div.setAttribute("data-editor-rotation", (360 - this.rotation) % 360), this.div.className = this.name, this.div.setAttribute("id", this.id), this.div.tabIndex = d(this, gc) ? -1 : 0, this._isVisible || this.div.classList.add("hidden"), this.setInForeground(), I(this, Oe, EA).call(this);
|
|
26276
26276
|
const [e, t] = this.parentDimensions;
|
|
26277
26277
|
this.parentRotation % 180 !== 0 && (this.div.style.maxWidth = `${(100 * t / e).toFixed(2)}%`, this.div.style.maxHeight = `${(100 * e / t).toFixed(2)}%`);
|
|
26278
26278
|
const [r, i] = this.getInitialTranslation();
|
|
@@ -26297,7 +26297,7 @@ const Ge = class Ge {
|
|
|
26297
26297
|
I(this, Oe, OC).call(this, e);
|
|
26298
26298
|
return;
|
|
26299
26299
|
}
|
|
26300
|
-
I(this, Oe,
|
|
26300
|
+
I(this, Oe, IA).call(this, e);
|
|
26301
26301
|
}
|
|
26302
26302
|
get isSelected() {
|
|
26303
26303
|
return this._uiManager.isSelected(this);
|
|
@@ -26378,7 +26378,7 @@ const Ge = class Ge {
|
|
|
26378
26378
|
return t < a && i > 0 && e < s && r > 0;
|
|
26379
26379
|
}
|
|
26380
26380
|
rebuild() {
|
|
26381
|
-
I(this, Oe,
|
|
26381
|
+
I(this, Oe, EA).call(this);
|
|
26382
26382
|
}
|
|
26383
26383
|
rotate(e) {
|
|
26384
26384
|
}
|
|
@@ -26472,12 +26472,12 @@ const Ge = class Ge {
|
|
|
26472
26472
|
o.setAttribute("data-l10n-id", Ge._l10nResizer[c]);
|
|
26473
26473
|
}
|
|
26474
26474
|
}
|
|
26475
|
-
I(this, Oe,
|
|
26475
|
+
I(this, Oe, NA).call(this, 0), v(this, Os, !0), d(this, On).firstChild.focus({
|
|
26476
26476
|
focusVisible: !0
|
|
26477
26477
|
}), e.preventDefault(), e.stopImmediatePropagation();
|
|
26478
26478
|
}
|
|
26479
26479
|
_resizeWithKeyboard(e, t) {
|
|
26480
|
-
d(this, Os) && I(this, Oe,
|
|
26480
|
+
d(this, Os) && I(this, Oe, SA).call(this, d(this, rh), {
|
|
26481
26481
|
deltaX: e,
|
|
26482
26482
|
deltaY: t,
|
|
26483
26483
|
fromKeyboard: !0
|
|
@@ -26590,9 +26590,9 @@ const Ge = class Ge {
|
|
|
26590
26590
|
(t == null ? void 0 : t.nodeName) === "DIV" && t.classList.contains("annotationContent") && t.remove();
|
|
26591
26591
|
}
|
|
26592
26592
|
};
|
|
26593
|
-
jo = new WeakMap(), wi = new WeakMap(), zt = new WeakMap(), gc = new WeakMap(), Sa = new WeakMap(), nh = new WeakMap(), Oo = new WeakMap(), On = new WeakMap(), Lo = new WeakMap(), js = new WeakMap(), Ia = new WeakMap(), rh = new WeakMap(), Mo = new WeakMap(), Mr = new WeakMap(), ih = new WeakMap(), Po = new WeakMap(), Os = new WeakMap(), es = new WeakMap(), mc = new WeakMap(), Ac = new WeakMap(), ei = new WeakMap(), Ro = new WeakMap(), sh = new WeakMap(), og = new WeakMap(), Oe = new WeakSet(),
|
|
26593
|
+
jo = new WeakMap(), wi = new WeakMap(), zt = new WeakMap(), gc = new WeakMap(), Sa = new WeakMap(), nh = new WeakMap(), Oo = new WeakMap(), On = new WeakMap(), Lo = new WeakMap(), js = new WeakMap(), Ia = new WeakMap(), rh = new WeakMap(), Mo = new WeakMap(), Mr = new WeakMap(), ih = new WeakMap(), Po = new WeakMap(), Os = new WeakMap(), es = new WeakMap(), mc = new WeakMap(), Ac = new WeakMap(), ei = new WeakMap(), Ro = new WeakMap(), sh = new WeakMap(), og = new WeakMap(), Oe = new WeakSet(), vA = function([e, t], r, i) {
|
|
26594
26594
|
[r, i] = this.screenToPageTranslation(r, i), this.x += r / e, this.y += i / t, this._onTranslating(this.x, this.y), this.fixAndSetPosition();
|
|
26595
|
-
}, ah = new WeakSet(),
|
|
26595
|
+
}, ah = new WeakSet(), kA = function(e, t, r) {
|
|
26596
26596
|
switch (r) {
|
|
26597
26597
|
case 90:
|
|
26598
26598
|
return [t, -e];
|
|
@@ -26644,7 +26644,7 @@ jo = new WeakMap(), wi = new WeakMap(), zt = new WeakMap(), gc = new WeakMap(),
|
|
|
26644
26644
|
const i = this._isDraggable;
|
|
26645
26645
|
this._isDraggable = !1, v(this, Lo, [t.screenX, t.screenY]);
|
|
26646
26646
|
const s = new AbortController(), a = this._uiManager.combinedSignal(s);
|
|
26647
|
-
this.parent.togglePointerEvents(!1), window.addEventListener("pointermove", I(this, Oe,
|
|
26647
|
+
this.parent.togglePointerEvents(!1), window.addEventListener("pointermove", I(this, Oe, SA).bind(this, e), {
|
|
26648
26648
|
passive: !0,
|
|
26649
26649
|
capture: !0,
|
|
26650
26650
|
signal: a
|
|
@@ -26670,7 +26670,7 @@ jo = new WeakMap(), wi = new WeakMap(), zt = new WeakMap(), gc = new WeakMap(),
|
|
|
26670
26670
|
}), window.addEventListener("blur", c, {
|
|
26671
26671
|
signal: a
|
|
26672
26672
|
});
|
|
26673
|
-
},
|
|
26673
|
+
}, CA = function(e, t, r, i) {
|
|
26674
26674
|
this.width = r, this.height = i, this.x = e, this.y = t;
|
|
26675
26675
|
const [s, a] = this.parentDimensions;
|
|
26676
26676
|
this.setDims(s * r, a * i), this.fixAndSetPosition(), this._onResized();
|
|
@@ -26686,11 +26686,11 @@ jo = new WeakMap(), wi = new WeakMap(), zt = new WeakMap(), gc = new WeakMap(),
|
|
|
26686
26686
|
v(this, js, null);
|
|
26687
26687
|
const s = this.x, a = this.y, o = this.width, l = this.height;
|
|
26688
26688
|
s === e && a === t && o === r && l === i || this.addCommands({
|
|
26689
|
-
cmd: I(this, Oe,
|
|
26690
|
-
undo: I(this, Oe,
|
|
26689
|
+
cmd: I(this, Oe, CA).bind(this, s, a, o, l),
|
|
26690
|
+
undo: I(this, Oe, CA).bind(this, e, t, r, i),
|
|
26691
26691
|
mustExec: !0
|
|
26692
26692
|
});
|
|
26693
|
-
},
|
|
26693
|
+
}, SA = function(e, t) {
|
|
26694
26694
|
const [r, i] = this.parentDimensions, s = this.x, a = this.y, o = this.width, l = this.height, c = Ge.MIN_SIZE / r, u = Ge.MIN_SIZE / i, h = I(this, Oe, pf).call(this, this.rotation), p = (R, B) => [h[0] * R + h[2] * B, h[1] * R + h[3] * B], f = I(this, Oe, pf).call(this, 360 - this.rotation), g = (R, B) => [f[0] * R + f[2] * B, f[1] * R + f[3] * B];
|
|
26695
26695
|
let m, x, A = !1, w = !1;
|
|
26696
26696
|
switch (e) {
|
|
@@ -26766,7 +26766,7 @@ jo = new WeakMap(), wi = new WeakMap(), zt = new WeakMap(), gc = new WeakMap(),
|
|
|
26766
26766
|
}, jC = function() {
|
|
26767
26767
|
var e;
|
|
26768
26768
|
(e = d(this, zt)) == null || e.toggle(!0), this.parent.togglePointerEvents(!0), I(this, Oe, ff).call(this);
|
|
26769
|
-
},
|
|
26769
|
+
}, IA = function(e) {
|
|
26770
26770
|
const {
|
|
26771
26771
|
isMac: t
|
|
26772
26772
|
} = ur.platform;
|
|
@@ -26782,7 +26782,7 @@ jo = new WeakMap(), wi = new WeakMap(), zt = new WeakMap(), gc = new WeakMap(),
|
|
|
26782
26782
|
passive: !1,
|
|
26783
26783
|
signal: s
|
|
26784
26784
|
}, o = (c) => {
|
|
26785
|
-
i.abort(), v(this, Sa, null), v(this, Mo, !1), this._uiManager.endDragSession() || I(this, Oe,
|
|
26785
|
+
i.abort(), v(this, Sa, null), v(this, Mo, !1), this._uiManager.endDragSession() || I(this, Oe, IA).call(this, c), r && this._onStopDragging();
|
|
26786
26786
|
};
|
|
26787
26787
|
t && (v(this, mc, e.clientX), v(this, Ac, e.clientY), v(this, Sa, e.pointerId), v(this, nh, e.pointerType), window.addEventListener("pointermove", (c) => {
|
|
26788
26788
|
r || (r = !0, this._onStartDragging());
|
|
@@ -26812,7 +26812,7 @@ jo = new WeakMap(), wi = new WeakMap(), zt = new WeakMap(), gc = new WeakMap(),
|
|
|
26812
26812
|
}), window.addEventListener("blur", l, {
|
|
26813
26813
|
signal: s
|
|
26814
26814
|
});
|
|
26815
|
-
},
|
|
26815
|
+
}, EA = function() {
|
|
26816
26816
|
if (d(this, Ia) || !this.div)
|
|
26817
26817
|
return;
|
|
26818
26818
|
v(this, Ia, new AbortController());
|
|
@@ -26829,13 +26829,13 @@ jo = new WeakMap(), wi = new WeakMap(), zt = new WeakMap(), gc = new WeakMap(),
|
|
|
26829
26829
|
d(this, Os) && ((t = e.relatedTarget) == null ? void 0 : t.parentNode) !== d(this, On) && I(this, Oe, Ku).call(this);
|
|
26830
26830
|
}, PC = function(e) {
|
|
26831
26831
|
v(this, rh, d(this, Os) ? e : "");
|
|
26832
|
-
},
|
|
26832
|
+
}, NA = function(e) {
|
|
26833
26833
|
if (d(this, wi))
|
|
26834
26834
|
for (const t of d(this, wi))
|
|
26835
26835
|
t.tabIndex = e;
|
|
26836
26836
|
}, Ku = function() {
|
|
26837
|
-
v(this, Os, !1), I(this, Oe,
|
|
26838
|
-
}, S(Ge, ah), Se(Ge, "_l10n", null), Se(Ge, "_l10nResizer", null), Se(Ge, "_borderLineWidth", -1), Se(Ge, "_colorManager", new
|
|
26837
|
+
v(this, Os, !1), I(this, Oe, NA).call(this, -1), I(this, Oe, ff).call(this);
|
|
26838
|
+
}, S(Ge, ah), Se(Ge, "_l10n", null), Se(Ge, "_l10nResizer", null), Se(Ge, "_borderLineWidth", -1), Se(Ge, "_colorManager", new fA()), Se(Ge, "_zIndex", 1), Se(Ge, "_telemetryTimeout", 1e3);
|
|
26839
26839
|
let Xt = Ge;
|
|
26840
26840
|
class b7 extends Xt {
|
|
26841
26841
|
constructor(e) {
|
|
@@ -26882,7 +26882,7 @@ class RC {
|
|
|
26882
26882
|
return e ^= t >>> 1, e = e * 3981806797 & Xr | e * 36045 & Bi, t = t * 4283543511 & Xr | ((t << 16 | e >>> 16) * 2950163797 & Xr) >>> 16, e ^= t >>> 1, e = e * 444984403 & Xr | e * 60499 & Bi, t = t * 3301882366 & Xr | ((t << 16 | e >>> 16) * 3120437893 & Xr) >>> 16, e ^= t >>> 1, (e >>> 0).toString(16).padStart(8, "0") + (t >>> 0).toString(16).padStart(8, "0");
|
|
26883
26883
|
}
|
|
26884
26884
|
}
|
|
26885
|
-
const
|
|
26885
|
+
const TA = Object.freeze({
|
|
26886
26886
|
map: null,
|
|
26887
26887
|
hash: "",
|
|
26888
26888
|
transfer: void 0
|
|
@@ -26942,7 +26942,7 @@ class m0 {
|
|
|
26942
26942
|
}
|
|
26943
26943
|
get serializable() {
|
|
26944
26944
|
if (d(this, kn).size === 0)
|
|
26945
|
-
return
|
|
26945
|
+
return TA;
|
|
26946
26946
|
const e = /* @__PURE__ */ new Map(), t = new RC(), r = [], i = /* @__PURE__ */ Object.create(null);
|
|
26947
26947
|
let s = !1;
|
|
26948
26948
|
for (const [a, o] of d(this, kn)) {
|
|
@@ -26956,7 +26956,7 @@ class m0 {
|
|
|
26956
26956
|
map: e,
|
|
26957
26957
|
hash: t.hexdigest(),
|
|
26958
26958
|
transfer: r
|
|
26959
|
-
} :
|
|
26959
|
+
} : TA;
|
|
26960
26960
|
}
|
|
26961
26961
|
get editorStats() {
|
|
26962
26962
|
let e = null;
|
|
@@ -27256,13 +27256,13 @@ const Wp = {
|
|
|
27256
27256
|
function I1() {
|
|
27257
27257
|
}
|
|
27258
27258
|
function br(n) {
|
|
27259
|
-
if (n instanceof Ka || n instanceof
|
|
27259
|
+
if (n instanceof Ka || n instanceof lA || n instanceof Ld || n instanceof v1 || n instanceof Yf || n instanceof km)
|
|
27260
27260
|
return n;
|
|
27261
27261
|
switch (n instanceof Error || typeof n == "object" && n !== null || St('wrapReason: Expected "reason" to be a (possibly cloned) Error.'), n.name) {
|
|
27262
27262
|
case "AbortException":
|
|
27263
27263
|
return new Ka(n.message);
|
|
27264
27264
|
case "InvalidPDFException":
|
|
27265
|
-
return new
|
|
27265
|
+
return new lA(n.message);
|
|
27266
27266
|
case "MissingPDFException":
|
|
27267
27267
|
return new Ld(n.message);
|
|
27268
27268
|
case "PasswordException":
|
|
@@ -27270,9 +27270,9 @@ function br(n) {
|
|
|
27270
27270
|
case "UnexpectedResponseException":
|
|
27271
27271
|
return new Yf(n.message, n.status);
|
|
27272
27272
|
case "UnknownErrorException":
|
|
27273
|
-
return new
|
|
27273
|
+
return new km(n.message, n.details);
|
|
27274
27274
|
}
|
|
27275
|
-
return new
|
|
27275
|
+
return new km(n.message, n.toString());
|
|
27276
27276
|
}
|
|
27277
27277
|
var xc, ci, DC, HC, BC, gf;
|
|
27278
27278
|
class _u {
|
|
@@ -27627,8 +27627,8 @@ class WC {
|
|
|
27627
27627
|
}
|
|
27628
27628
|
class GC extends WC {
|
|
27629
27629
|
async _fetch(e) {
|
|
27630
|
-
const t = await
|
|
27631
|
-
return t instanceof ArrayBuffer ? new Uint8Array(t) :
|
|
27630
|
+
const t = await Dg(e, this.isCompressed ? "arraybuffer" : "text");
|
|
27631
|
+
return t instanceof ArrayBuffer ? new Uint8Array(t) : Fg(t);
|
|
27632
27632
|
}
|
|
27633
27633
|
}
|
|
27634
27634
|
class QC {
|
|
@@ -27650,7 +27650,7 @@ class QC {
|
|
|
27650
27650
|
destroy(e = !1) {
|
|
27651
27651
|
}
|
|
27652
27652
|
}
|
|
27653
|
-
var Do, yc, Ls, Ms, Bn, Ho, Bo, he, Fn, $u, Vl, mf, ql, VC,
|
|
27653
|
+
var Do, yc, Ls, Ms, Bn, Ho, Bo, he, Fn, $u, Vl, mf, ql, VC, jA, Zl, ed, td, OA, nd;
|
|
27654
27654
|
class v7 extends QC {
|
|
27655
27655
|
constructor({
|
|
27656
27656
|
docId: t,
|
|
@@ -27702,7 +27702,7 @@ class v7 extends QC {
|
|
|
27702
27702
|
c[m] = x <= 0.03928 ? x / 12.92 : ((x + 0.055) / 1.055) ** 2.4;
|
|
27703
27703
|
}
|
|
27704
27704
|
const u = c.join(","), h = `g_${d(this, Ms)}_hcm_filter`, p = a.filter = I(this, he, Zl).call(this, h);
|
|
27705
|
-
I(this, he, td).call(this, u, u, u, p), I(this, he,
|
|
27705
|
+
I(this, he, td).call(this, u, u, u, p), I(this, he, jA).call(this, p);
|
|
27706
27706
|
const f = (m, x) => {
|
|
27707
27707
|
const A = o[m] / 255, w = l[m] / 255, y = new Array(x + 1);
|
|
27708
27708
|
for (let E = 0; E <= x; E++)
|
|
@@ -27721,7 +27721,7 @@ class v7 extends QC {
|
|
|
27721
27721
|
const a = `g_${d(this, Ms)}_alpha_map_${Jn(this, Bo)._++}`, o = I(this, he, ql).call(this, a);
|
|
27722
27722
|
d(this, he, Fn).set(t, o), d(this, he, Fn).set(s, o);
|
|
27723
27723
|
const l = I(this, he, Zl).call(this, a);
|
|
27724
|
-
return I(this, he,
|
|
27724
|
+
return I(this, he, OA).call(this, i, l), o;
|
|
27725
27725
|
}
|
|
27726
27726
|
addLuminosityFilter(t) {
|
|
27727
27727
|
let r = d(this, he, Fn).get(t || "luminosity");
|
|
@@ -27733,7 +27733,7 @@ class v7 extends QC {
|
|
|
27733
27733
|
const a = `g_${d(this, Ms)}_luminosity_map_${Jn(this, Bo)._++}`, o = I(this, he, ql).call(this, a);
|
|
27734
27734
|
d(this, he, Fn).set(t, o), d(this, he, Fn).set(s, o);
|
|
27735
27735
|
const l = I(this, he, Zl).call(this, a);
|
|
27736
|
-
return I(this, he, VC).call(this, l), t && I(this, he,
|
|
27736
|
+
return I(this, he, VC).call(this, l), t && I(this, he, OA).call(this, i, l), o;
|
|
27737
27737
|
}
|
|
27738
27738
|
addHighlightHCMFilter(t, r, i, s, a) {
|
|
27739
27739
|
var w;
|
|
@@ -27761,7 +27761,7 @@ class v7 extends QC {
|
|
|
27761
27761
|
N[D] = N[L - 1];
|
|
27762
27762
|
return N.join(",");
|
|
27763
27763
|
}, x = `g_${d(this, Ms)}_hcm_${t}_filter`, A = l.filter = I(this, he, Zl).call(this, x);
|
|
27764
|
-
return I(this, he,
|
|
27764
|
+
return I(this, he, jA).call(this, A), I(this, he, td).call(this, m(f[0], g[0], 5), m(f[1], g[1], 5), m(f[2], g[2], 5), A), l.url = I(this, he, ql).call(this, x), l.url;
|
|
27765
27765
|
}
|
|
27766
27766
|
destroy(t = !1) {
|
|
27767
27767
|
var r, i, s, a;
|
|
@@ -27798,13 +27798,13 @@ Do = new WeakMap(), yc = new WeakMap(), Ls = new WeakMap(), Ms = new WeakMap(),
|
|
|
27798
27798
|
if (d(this, Do) === void 0) {
|
|
27799
27799
|
v(this, Do, "");
|
|
27800
27800
|
const r = d(this, Bn).URL;
|
|
27801
|
-
r !== d(this, Bn).baseURI && (
|
|
27801
|
+
r !== d(this, Bn).baseURI && (Hg(r) ? We('#createUrl: ignore "data:"-URL for performance reasons.') : v(this, Do, r.split("#", 1)[0]));
|
|
27802
27802
|
}
|
|
27803
27803
|
return `url(${d(this, Do)}#${t})`;
|
|
27804
27804
|
}, VC = function(t) {
|
|
27805
27805
|
const r = d(this, Bn).createElementNS(ys, "feColorMatrix");
|
|
27806
27806
|
r.setAttribute("type", "matrix"), r.setAttribute("values", "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"), t.append(r);
|
|
27807
|
-
},
|
|
27807
|
+
}, jA = function(t) {
|
|
27808
27808
|
const r = d(this, Bn).createElementNS(ys, "feColorMatrix");
|
|
27809
27809
|
r.setAttribute("type", "matrix"), r.setAttribute("values", "0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"), t.append(r);
|
|
27810
27810
|
}, Zl = function(t) {
|
|
@@ -27816,7 +27816,7 @@ Do = new WeakMap(), yc = new WeakMap(), Ls = new WeakMap(), Ms = new WeakMap(),
|
|
|
27816
27816
|
}, td = function(t, r, i, s) {
|
|
27817
27817
|
const a = d(this, Bn).createElementNS(ys, "feComponentTransfer");
|
|
27818
27818
|
s.append(a), I(this, he, ed).call(this, a, "feFuncR", t), I(this, he, ed).call(this, a, "feFuncG", r), I(this, he, ed).call(this, a, "feFuncB", i);
|
|
27819
|
-
},
|
|
27819
|
+
}, OA = function(t, r) {
|
|
27820
27820
|
const i = d(this, Bn).createElementNS(ys, "feComponentTransfer");
|
|
27821
27821
|
r.append(i), I(this, he, ed).call(this, i, "feFuncA", t);
|
|
27822
27822
|
}, nd = function(t) {
|
|
@@ -27846,7 +27846,7 @@ class qC {
|
|
|
27846
27846
|
}
|
|
27847
27847
|
class ZC extends qC {
|
|
27848
27848
|
async _fetch(e) {
|
|
27849
|
-
const t = await
|
|
27849
|
+
const t = await Dg(e, "arraybuffer");
|
|
27850
27850
|
return new Uint8Array(t);
|
|
27851
27851
|
}
|
|
27852
27852
|
}
|
|
@@ -27877,7 +27877,7 @@ const Qn = {
|
|
|
27877
27877
|
STROKE: "Stroke",
|
|
27878
27878
|
SHADING: "Shading"
|
|
27879
27879
|
};
|
|
27880
|
-
function
|
|
27880
|
+
function LA(n, e) {
|
|
27881
27881
|
if (!e)
|
|
27882
27882
|
return;
|
|
27883
27883
|
const t = e[2] - e[0], r = e[3] - e[1], i = new Path2D();
|
|
@@ -27903,15 +27903,15 @@ class E7 extends A0 {
|
|
|
27903
27903
|
let s;
|
|
27904
27904
|
if (i === Qn.STROKE || i === Qn.FILL) {
|
|
27905
27905
|
const a = t.current.getClippedPathBoundingBox(i, Bt(e)) || [0, 0, 0, 0], o = Math.ceil(a[2] - a[0]) || 1, l = Math.ceil(a[3] - a[1]) || 1, c = t.cachedCanvases.getCanvas("pattern", o, l), u = c.context;
|
|
27906
|
-
u.clearRect(0, 0, u.canvas.width, u.canvas.height), u.beginPath(), u.rect(0, 0, u.canvas.width, u.canvas.height), u.translate(-a[0], -a[1]), r = Ie.transform(r, [1, 0, 0, 1, a[0], a[1]]), u.transform(...t.baseTransform), this.matrix && u.transform(...this.matrix),
|
|
27906
|
+
u.clearRect(0, 0, u.canvas.width, u.canvas.height), u.beginPath(), u.rect(0, 0, u.canvas.width, u.canvas.height), u.translate(-a[0], -a[1]), r = Ie.transform(r, [1, 0, 0, 1, a[0], a[1]]), u.transform(...t.baseTransform), this.matrix && u.transform(...this.matrix), LA(u, this._bbox), u.fillStyle = this._createGradient(u), u.fill(), s = e.createPattern(c.canvas, "no-repeat");
|
|
27907
27907
|
const h = new DOMMatrix(r);
|
|
27908
27908
|
s.setTransform(h);
|
|
27909
27909
|
} else
|
|
27910
|
-
|
|
27910
|
+
LA(e, this._bbox), s = this._createGradient(e);
|
|
27911
27911
|
return s;
|
|
27912
27912
|
}
|
|
27913
27913
|
}
|
|
27914
|
-
function
|
|
27914
|
+
function Im(n, e, t, r, i, s, a, o) {
|
|
27915
27915
|
const l = e.coords, c = e.colors, u = n.data, h = n.width * 4;
|
|
27916
27916
|
let p;
|
|
27917
27917
|
l[t + 1] > l[r + 1] && (p = t, t = r, r = p, p = s, s = a, a = p), l[r + 1] > l[i + 1] && (p = r, r = i, i = p, p = a, a = o, o = p), l[t + 1] > l[r + 1] && (p = t, t = r, r = p, p = s, s = a, a = p);
|
|
@@ -27945,12 +27945,12 @@ function N7(n, e, t) {
|
|
|
27945
27945
|
for (s = 0; s < l; s++) {
|
|
27946
27946
|
let u = s * o;
|
|
27947
27947
|
for (let h = 0; h < c; h++, u++)
|
|
27948
|
-
|
|
27948
|
+
Im(n, t, r[u], r[u + 1], r[u + o], i[u], i[u + 1], i[u + o]), Im(n, t, r[u + o + 1], r[u + 1], r[u + o], i[u + o + 1], i[u + 1], i[u + o]);
|
|
27949
27949
|
}
|
|
27950
27950
|
break;
|
|
27951
27951
|
case "triangles":
|
|
27952
27952
|
for (s = 0, a = r.length; s < a; s += 3)
|
|
27953
|
-
|
|
27953
|
+
Im(n, t, r[s], r[s + 1], r[s + 2], i[s], i[s + 1], i[s + 2]);
|
|
27954
27954
|
break;
|
|
27955
27955
|
default:
|
|
27956
27956
|
throw new Error("illegal figure");
|
|
@@ -27985,7 +27985,7 @@ class T7 extends A0 {
|
|
|
27985
27985
|
};
|
|
27986
27986
|
}
|
|
27987
27987
|
getPattern(e, t, r, i) {
|
|
27988
|
-
|
|
27988
|
+
LA(e, this._bbox);
|
|
27989
27989
|
let s;
|
|
27990
27990
|
if (i === Qn.SHADING)
|
|
27991
27991
|
s = Ie.singularValueDecompose2dScale(Bt(e));
|
|
@@ -28033,7 +28033,7 @@ const E1 = {
|
|
|
28033
28033
|
xstep: l,
|
|
28034
28034
|
ystep: c
|
|
28035
28035
|
} = this;
|
|
28036
|
-
l = Math.abs(l), c = Math.abs(c),
|
|
28036
|
+
l = Math.abs(l), c = Math.abs(c), zg("TilingType: " + s);
|
|
28037
28037
|
const u = t[0], h = t[1], p = t[2], f = t[3], g = p - u, m = f - h, x = Ie.singularValueDecompose2dScale(this.matrix), A = Ie.singularValueDecompose2dScale(this.baseTransform), w = x[0] * A[0], y = x[1] * A[1];
|
|
28038
28038
|
let E = g, C = m, N = !1, j = !1;
|
|
28039
28039
|
const H = Math.ceil(l * w), X = Math.ceil(c * y), L = Math.ceil(g * w), D = Math.ceil(m * y);
|
|
@@ -28100,7 +28100,7 @@ const E1 = {
|
|
|
28100
28100
|
}
|
|
28101
28101
|
};
|
|
28102
28102
|
Se(cg, "MAX_PATTERN_SIZE", 3e3);
|
|
28103
|
-
let
|
|
28103
|
+
let MA = cg;
|
|
28104
28104
|
function L7({
|
|
28105
28105
|
src: n,
|
|
28106
28106
|
srcPos: e = 0,
|
|
@@ -28257,7 +28257,7 @@ function z7(n) {
|
|
|
28257
28257
|
}
|
|
28258
28258
|
class L1 {
|
|
28259
28259
|
constructor(e, t) {
|
|
28260
|
-
this.alphaIsShape = !1, this.fontSize = 0, this.fontSizeScale = 1, this.textMatrix = iC, this.textMatrixScale = 1, this.fontMatrix =
|
|
28260
|
+
this.alphaIsShape = !1, this.fontSize = 0, this.fontSizeScale = 1, this.textMatrix = iC, this.textMatrixScale = 1, this.fontMatrix = oA, this.leading = 0, this.x = 0, this.y = 0, this.lineX = 0, this.lineY = 0, this.charSpacing = 0, this.wordSpacing = 0, this.textHScale = 1, this.textRenderingMode = zn.FILL, this.textRise = 0, this.fillColor = "#000000", this.strokeColor = "#000000", this.patternFill = !1, this.patternStroke = !1, this.fillAlpha = 1, this.strokeAlpha = 1, this.lineWidth = 1, this.activeSMask = null, this.transferMaps = "none", this.startNewPathAndClipBox([0, 0, e, t]);
|
|
28261
28261
|
}
|
|
28262
28262
|
clone() {
|
|
28263
28263
|
const e = Object.create(this);
|
|
@@ -28387,7 +28387,7 @@ function R1(n, e) {
|
|
|
28387
28387
|
return t[0] <= r && t[1] <= r;
|
|
28388
28388
|
}
|
|
28389
28389
|
const F7 = ["butt", "round", "square"], D7 = ["miter", "round", "bevel"], H7 = {}, z1 = {};
|
|
28390
|
-
var zi,
|
|
28390
|
+
var zi, PA, RA, zA;
|
|
28391
28391
|
const k0 = class k0 {
|
|
28392
28392
|
constructor(e, t, r, i, s, {
|
|
28393
28393
|
optionalContentConfig: a,
|
|
@@ -28443,13 +28443,13 @@ const k0 = class k0 {
|
|
|
28443
28443
|
}
|
|
28444
28444
|
}
|
|
28445
28445
|
endDrawing() {
|
|
28446
|
-
I(this, zi,
|
|
28446
|
+
I(this, zi, PA).call(this), this.cachedCanvases.clear(), this.cachedPatterns.clear();
|
|
28447
28447
|
for (const e of this._cachedBitmapsMap.values()) {
|
|
28448
28448
|
for (const t of e.values())
|
|
28449
28449
|
typeof HTMLCanvasElement < "u" && t instanceof HTMLCanvasElement && (t.width = t.height = 0);
|
|
28450
28450
|
e.clear();
|
|
28451
28451
|
}
|
|
28452
|
-
this._cachedBitmapsMap.clear(), I(this, zi,
|
|
28452
|
+
this._cachedBitmapsMap.clear(), I(this, zi, RA).call(this);
|
|
28453
28453
|
}
|
|
28454
28454
|
_scaleImage(e, t) {
|
|
28455
28455
|
const r = e.width ?? e.displayWidth, i = e.height ?? e.displayHeight;
|
|
@@ -28729,7 +28729,7 @@ const k0 = class k0 {
|
|
|
28729
28729
|
const r = this.commonObjs.get(e), i = this.current;
|
|
28730
28730
|
if (!r)
|
|
28731
28731
|
throw new Error(`Can't find font for ${e}`);
|
|
28732
|
-
if (i.fontMatrix = r.fontMatrix ||
|
|
28732
|
+
if (i.fontMatrix = r.fontMatrix || oA, (i.fontMatrix[0] === 0 || i.fontMatrix[3] === 0) && We("Invalid font matrix for font " + e), t < 0 ? (t = -t, i.fontDirection = -1) : i.fontDirection = 1, this.current.font = r, this.current.fontSize = t, r.isType3Font)
|
|
28733
28733
|
return;
|
|
28734
28734
|
const s = r.loadedName || "sans-serif", a = ((u = r.systemFontInfo) == null ? void 0 : u.css) || `"${s}", ${r.fallbackName}`;
|
|
28735
28735
|
let o = "normal";
|
|
@@ -28763,13 +28763,13 @@ const k0 = class k0 {
|
|
|
28763
28763
|
if (a.save(), a.translate(t, r), a.scale(u, -u), h === zn.FILL || h === zn.FILL_STROKE)
|
|
28764
28764
|
if (i) {
|
|
28765
28765
|
const x = a.getTransform();
|
|
28766
|
-
a.setTransform(...i), a.fill(I(this, zi,
|
|
28766
|
+
a.setTransform(...i), a.fill(I(this, zi, zA).call(this, m, x, i));
|
|
28767
28767
|
} else
|
|
28768
28768
|
a.fill(m);
|
|
28769
28769
|
if (h === zn.STROKE || h === zn.FILL_STROKE)
|
|
28770
28770
|
if (s) {
|
|
28771
28771
|
const x = a.getTransform();
|
|
28772
|
-
a.setTransform(...s), a.stroke(I(this, zi,
|
|
28772
|
+
a.setTransform(...s), a.stroke(I(this, zi, zA).call(this, m, x, s));
|
|
28773
28773
|
} else
|
|
28774
28774
|
a.lineWidth /= u, a.stroke(m);
|
|
28775
28775
|
a.restore();
|
|
@@ -28868,7 +28868,7 @@ const k0 = class k0 {
|
|
|
28868
28868
|
p ? t.y -= C : t.x += C * u, s.restore(), this.compose();
|
|
28869
28869
|
}
|
|
28870
28870
|
showType3Text(e) {
|
|
28871
|
-
const t = this.ctx, r = this.current, i = r.font, s = r.fontSize, a = r.fontDirection, o = i.vertical ? 1 : -1, l = r.charSpacing, c = r.wordSpacing, u = r.textHScale * a, h = r.fontMatrix ||
|
|
28871
|
+
const t = this.ctx, r = this.current, i = r.font, s = r.fontSize, a = r.fontDirection, o = i.vertical ? 1 : -1, l = r.charSpacing, c = r.wordSpacing, u = r.textHScale * a, h = r.fontMatrix || oA, p = e.length, f = r.textRenderingMode === zn.INVISIBLE;
|
|
28872
28872
|
let g, m, x, A;
|
|
28873
28873
|
if (!(f || s === 0)) {
|
|
28874
28874
|
for (this._cachedScaleForStroking[0] = -1, this._cachedGetSinglePixelWidth = null, t.save(), t.transform(...r.textMatrix), t.translate(r.x, r.y), t.scale(u, a), g = 0; g < p; ++g) {
|
|
@@ -28900,7 +28900,7 @@ const k0 = class k0 {
|
|
|
28900
28900
|
markedContentStack: this.markedContentStack
|
|
28901
28901
|
})
|
|
28902
28902
|
};
|
|
28903
|
-
t = new
|
|
28903
|
+
t = new MA(e, r, this.ctx, s, i);
|
|
28904
28904
|
} else
|
|
28905
28905
|
t = this._getPattern(e[1], e[2]);
|
|
28906
28906
|
return t;
|
|
@@ -28965,7 +28965,7 @@ const k0 = class k0 {
|
|
|
28965
28965
|
return;
|
|
28966
28966
|
this.save(), this.inSMaskMode && (this.endSMaskMode(), this.current.activeSMask = null);
|
|
28967
28967
|
const t = this.ctx;
|
|
28968
|
-
e.isolated ||
|
|
28968
|
+
e.isolated || zg("TODO: Support non-isolated groups."), e.knockout && We("Knockout groups not supported.");
|
|
28969
28969
|
const r = Bt(t);
|
|
28970
28970
|
if (e.matrix && t.transform(...e.matrix), !e.bbox)
|
|
28971
28971
|
throw new Error("Bounding box is required.");
|
|
@@ -29004,7 +29004,7 @@ const k0 = class k0 {
|
|
|
29004
29004
|
}
|
|
29005
29005
|
}
|
|
29006
29006
|
beginAnnotation(e, t, r, i, s) {
|
|
29007
|
-
if (I(this, zi,
|
|
29007
|
+
if (I(this, zi, PA).call(this), Qp(this.ctx), this.ctx.save(), this.save(), this.baseTransform && this.ctx.setTransform(...this.baseTransform), t) {
|
|
29008
29008
|
const a = t[2] - t[0], o = t[3] - t[1];
|
|
29009
29009
|
if (s && this.annotationCanvasMap) {
|
|
29010
29010
|
r = r.slice(), r[4] -= t[0], r[5] -= t[1], t = t.slice(), t[0] = t[1] = 0, t[2] = a, t[3] = o;
|
|
@@ -29023,7 +29023,7 @@ const k0 = class k0 {
|
|
|
29023
29023
|
this.current = new L1(this.ctx.canvas.width, this.ctx.canvas.height), this.transform(...r), this.transform(...i);
|
|
29024
29024
|
}
|
|
29025
29025
|
endAnnotation() {
|
|
29026
|
-
this.annotationCanvas && (this.ctx.restore(), I(this, zi,
|
|
29026
|
+
this.annotationCanvas && (this.ctx.restore(), I(this, zi, RA).call(this), this.ctx = this.annotationCanvas.savedCtx, delete this.annotationCanvas.savedCtx, delete this.annotationCanvas);
|
|
29027
29027
|
}
|
|
29028
29028
|
paintImageMaskXObject(e) {
|
|
29029
29029
|
if (!this.contentVisible)
|
|
@@ -29258,11 +29258,11 @@ const k0 = class k0 {
|
|
|
29258
29258
|
return !0;
|
|
29259
29259
|
}
|
|
29260
29260
|
};
|
|
29261
|
-
zi = new WeakSet(),
|
|
29261
|
+
zi = new WeakSet(), PA = function() {
|
|
29262
29262
|
for (; this.stateStack.length || this.inSMaskMode; )
|
|
29263
29263
|
this.restore();
|
|
29264
29264
|
this.current.activeSMask = null, this.ctx.restore(), this.transparentCanvas && (this.ctx = this.compositeCtx, this.ctx.save(), this.ctx.setTransform(1, 0, 0, 1, 0, 0), this.ctx.drawImage(this.transparentCanvas, 0, 0), this.ctx.restore(), this.transparentCanvas = null);
|
|
29265
|
-
},
|
|
29265
|
+
}, RA = function() {
|
|
29266
29266
|
if (this.pageColors) {
|
|
29267
29267
|
const e = this.filterFactory.addHCMFilter(this.pageColors.foreground, this.pageColors.background);
|
|
29268
29268
|
if (e !== "none") {
|
|
@@ -29270,7 +29270,7 @@ zi = new WeakSet(), MA = function() {
|
|
|
29270
29270
|
this.ctx.filter = e, this.ctx.drawImage(this.ctx.canvas, 0, 0), this.ctx.filter = t;
|
|
29271
29271
|
}
|
|
29272
29272
|
}
|
|
29273
|
-
},
|
|
29273
|
+
}, zA = function(e, t, r) {
|
|
29274
29274
|
const i = new Path2D();
|
|
29275
29275
|
return i.addPath(e, new DOMMatrix(r).invertSelf().multiplySelf(t)), i;
|
|
29276
29276
|
};
|
|
@@ -29352,7 +29352,7 @@ class U7 {
|
|
|
29352
29352
|
}
|
|
29353
29353
|
}
|
|
29354
29354
|
hh = new WeakMap(), ph = new WeakMap(), fh = new WeakMap(), wc = new WeakMap();
|
|
29355
|
-
var Ea, bt, vc, kc, gh,
|
|
29355
|
+
var Ea, bt, vc, kc, gh, FA;
|
|
29356
29356
|
class W7 {
|
|
29357
29357
|
constructor(e, t = Gr.DISPLAY) {
|
|
29358
29358
|
S(this, gh);
|
|
@@ -29378,12 +29378,12 @@ class W7 {
|
|
|
29378
29378
|
if (d(this, bt).size === 0)
|
|
29379
29379
|
return !0;
|
|
29380
29380
|
if (!e)
|
|
29381
|
-
return
|
|
29381
|
+
return zg("Optional content group not defined."), !0;
|
|
29382
29382
|
if (e.type === "OCG")
|
|
29383
29383
|
return d(this, bt).has(e.id) ? d(this, bt).get(e.id).visible : (We(`Optional content group not found: ${e.id}`), !0);
|
|
29384
29384
|
if (e.type === "OCMD") {
|
|
29385
29385
|
if (e.expression)
|
|
29386
|
-
return I(this, gh,
|
|
29386
|
+
return I(this, gh, FA).call(this, e.expression);
|
|
29387
29387
|
if (!e.policy || e.policy === "AnyOn") {
|
|
29388
29388
|
for (const t of e.ids) {
|
|
29389
29389
|
if (!d(this, bt).has(t))
|
|
@@ -29484,7 +29484,7 @@ class W7 {
|
|
|
29484
29484
|
return v(this, Ea, e.hexdigest());
|
|
29485
29485
|
}
|
|
29486
29486
|
}
|
|
29487
|
-
Ea = new WeakMap(), bt = new WeakMap(), vc = new WeakMap(), kc = new WeakMap(), gh = new WeakSet(),
|
|
29487
|
+
Ea = new WeakMap(), bt = new WeakMap(), vc = new WeakMap(), kc = new WeakMap(), gh = new WeakSet(), FA = function(e) {
|
|
29488
29488
|
const t = e.length;
|
|
29489
29489
|
if (t < 2)
|
|
29490
29490
|
return !0;
|
|
@@ -29493,7 +29493,7 @@ Ea = new WeakMap(), bt = new WeakMap(), vc = new WeakMap(), kc = new WeakMap(),
|
|
|
29493
29493
|
const s = e[i];
|
|
29494
29494
|
let a;
|
|
29495
29495
|
if (Array.isArray(s))
|
|
29496
|
-
a = I(this, gh,
|
|
29496
|
+
a = I(this, gh, FA).call(this, s);
|
|
29497
29497
|
else if (d(this, bt).has(s))
|
|
29498
29498
|
a = d(this, bt).get(s).visible;
|
|
29499
29499
|
else
|
|
@@ -29736,7 +29736,7 @@ function q7(n) {
|
|
|
29736
29736
|
try {
|
|
29737
29737
|
const p = new TextDecoder(u, {
|
|
29738
29738
|
fatal: !0
|
|
29739
|
-
}), f =
|
|
29739
|
+
}), f = Fg(h);
|
|
29740
29740
|
h = p.decode(f), e = !1;
|
|
29741
29741
|
} catch {
|
|
29742
29742
|
}
|
|
@@ -29809,7 +29809,7 @@ function XC(n, e) {
|
|
|
29809
29809
|
}
|
|
29810
29810
|
return t;
|
|
29811
29811
|
}
|
|
29812
|
-
function
|
|
29812
|
+
function Bg(n) {
|
|
29813
29813
|
try {
|
|
29814
29814
|
return new URL(n).origin;
|
|
29815
29815
|
} catch {
|
|
@@ -29842,7 +29842,7 @@ function KC(n) {
|
|
|
29842
29842
|
}
|
|
29843
29843
|
return null;
|
|
29844
29844
|
}
|
|
29845
|
-
function
|
|
29845
|
+
function Ug(n, e) {
|
|
29846
29846
|
return n === 404 || n === 0 && e.startsWith("file:") ? new Ld('Missing PDF "' + e + '".') : new Yf(`Unexpected server response (${n}) while retrieving PDF "${e}".`, n);
|
|
29847
29847
|
}
|
|
29848
29848
|
function _C(n) {
|
|
@@ -29893,8 +29893,8 @@ class Z7 {
|
|
|
29893
29893
|
this._withCredentials = t.withCredentials || !1, this._contentLength = t.length, this._headersCapability = Promise.withResolvers(), this._disableRange = t.disableRange || !1, this._rangeChunkSize = t.rangeChunkSize, !this._rangeChunkSize && !this._disableRange && (this._disableRange = !0), this._abortController = new AbortController(), this._isStreamingSupported = !t.disableStream, this._isRangeSupported = !t.disableRange;
|
|
29894
29894
|
const r = new Headers(e.headers), i = t.url;
|
|
29895
29895
|
fetch(i, $C(r, this._withCredentials, this._abortController)).then((s) => {
|
|
29896
|
-
if (e._responseOrigin =
|
|
29897
|
-
throw
|
|
29896
|
+
if (e._responseOrigin = Bg(s.url), !_C(s.status))
|
|
29897
|
+
throw Ug(s.status, i);
|
|
29898
29898
|
this._reader = s.body.getReader(), this._headersCapability.resolve();
|
|
29899
29899
|
const a = s.headers, {
|
|
29900
29900
|
allowRangeRequests: o,
|
|
@@ -29955,11 +29955,11 @@ class Y7 {
|
|
|
29955
29955
|
s.append("Range", `bytes=${t}-${r - 1}`);
|
|
29956
29956
|
const a = i.url;
|
|
29957
29957
|
fetch(a, $C(s, this._withCredentials, this._abortController)).then((o) => {
|
|
29958
|
-
const l =
|
|
29958
|
+
const l = Bg(o.url);
|
|
29959
29959
|
if (l !== e._responseOrigin)
|
|
29960
29960
|
throw new Error(`Expected range response-origin "${l}" to match "${e._responseOrigin}".`);
|
|
29961
29961
|
if (!_C(o.status))
|
|
29962
|
-
throw
|
|
29962
|
+
throw Ug(o.status, a);
|
|
29963
29963
|
this._readCapability.resolve(), this._reader = o.body.getReader();
|
|
29964
29964
|
}).catch(this._readCapability.reject), this.onProgress = null;
|
|
29965
29965
|
}
|
|
@@ -29988,10 +29988,10 @@ class Y7 {
|
|
|
29988
29988
|
(t = this._reader) == null || t.cancel(e), this._abortController.abort();
|
|
29989
29989
|
}
|
|
29990
29990
|
}
|
|
29991
|
-
const
|
|
29991
|
+
const Em = 200, Nm = 206;
|
|
29992
29992
|
function X7(n) {
|
|
29993
29993
|
const e = n.response;
|
|
29994
|
-
return typeof e != "string" ? e :
|
|
29994
|
+
return typeof e != "string" ? e : Fg(e).buffer;
|
|
29995
29995
|
}
|
|
29996
29996
|
class J7 {
|
|
29997
29997
|
constructor({
|
|
@@ -30009,7 +30009,7 @@ class J7 {
|
|
|
30009
30009
|
t.open("GET", this.url), t.withCredentials = this.withCredentials;
|
|
30010
30010
|
for (const [s, a] of this.headers)
|
|
30011
30011
|
t.setRequestHeader(s, a);
|
|
30012
|
-
return this.isHttp && "begin" in e && "end" in e ? (t.setRequestHeader("Range", `bytes=${e.begin}-${e.end - 1}`), i.expectedStatus =
|
|
30012
|
+
return this.isHttp && "begin" in e && "end" in e ? (t.setRequestHeader("Range", `bytes=${e.begin}-${e.end - 1}`), i.expectedStatus = Nm) : i.expectedStatus = Em, t.responseType = "arraybuffer", cn(e.onError, "Expected `onError` callback to be provided."), t.onerror = () => {
|
|
30013
30013
|
e.onError(t.status);
|
|
30014
30014
|
}, t.onreadystatechange = this.onStateChange.bind(this, r), t.onprogress = this.onProgress.bind(this, r), i.onHeadersReceived = e.onHeadersReceived, i.onDone = e.onDone, i.onError = e.onError, i.onProgress = e.onProgress, t.send(null), r;
|
|
30015
30015
|
}
|
|
@@ -30029,13 +30029,13 @@ class J7 {
|
|
|
30029
30029
|
r.onError(i.status);
|
|
30030
30030
|
return;
|
|
30031
30031
|
}
|
|
30032
|
-
const s = i.status ||
|
|
30033
|
-
if (!(s ===
|
|
30032
|
+
const s = i.status || Em;
|
|
30033
|
+
if (!(s === Em && r.expectedStatus === Nm) && s !== r.expectedStatus) {
|
|
30034
30034
|
r.onError(i.status);
|
|
30035
30035
|
return;
|
|
30036
30036
|
}
|
|
30037
30037
|
const o = X7(i);
|
|
30038
|
-
if (s ===
|
|
30038
|
+
if (s === Nm) {
|
|
30039
30039
|
const l = i.getResponseHeader("Content-Range"), c = /bytes (\d+)-(\d+)\/(\d+)/.exec(l);
|
|
30040
30040
|
c ? r.onDone({
|
|
30041
30041
|
begin: parseInt(c[1], 10),
|
|
@@ -30090,7 +30090,7 @@ class _7 {
|
|
|
30090
30090
|
}
|
|
30091
30091
|
_onHeadersReceived() {
|
|
30092
30092
|
const e = this._fullRequestId, t = this._manager.getRequestXhr(e);
|
|
30093
|
-
this._manager._responseOrigin =
|
|
30093
|
+
this._manager._responseOrigin = Bg(t.responseURL);
|
|
30094
30094
|
const r = t.getAllResponseHeaders(), i = new Headers(r ? r.trimStart().replace(/[^\S ]+$/, "").split(/[\r\n]+/).map((o) => {
|
|
30095
30095
|
const [l, ...c] = o.split(": ");
|
|
30096
30096
|
return [l, c.join(": ")];
|
|
@@ -30119,7 +30119,7 @@ class _7 {
|
|
|
30119
30119
|
}
|
|
30120
30120
|
}
|
|
30121
30121
|
_onError(e) {
|
|
30122
|
-
this._storedError =
|
|
30122
|
+
this._storedError = Ug(e, this._url), this._headersCapability.reject(this._storedError);
|
|
30123
30123
|
for (const t of this._requests)
|
|
30124
30124
|
t.reject(this._storedError);
|
|
30125
30125
|
this._requests.length = 0, this._cachedChunks.length = 0;
|
|
@@ -30185,7 +30185,7 @@ class $7 {
|
|
|
30185
30185
|
}
|
|
30186
30186
|
_onHeadersReceived() {
|
|
30187
30187
|
var t;
|
|
30188
|
-
const e =
|
|
30188
|
+
const e = Bg((t = this._manager.getRequestXhr(this._requestId)) == null ? void 0 : t.responseURL);
|
|
30189
30189
|
e !== this._manager._responseOrigin && (this._storedError = new Error(`Expected range response-origin "${e}" to match "${this._manager._responseOrigin}".`), this._onError(0));
|
|
30190
30190
|
}
|
|
30191
30191
|
_close() {
|
|
@@ -30206,7 +30206,7 @@ class $7 {
|
|
|
30206
30206
|
this._requests.length = 0, this._close();
|
|
30207
30207
|
}
|
|
30208
30208
|
_onError(e) {
|
|
30209
|
-
this._storedError ?? (this._storedError =
|
|
30209
|
+
this._storedError ?? (this._storedError = Ug(e, this._url));
|
|
30210
30210
|
for (const t of this._requests)
|
|
30211
30211
|
t.reject(this._storedError);
|
|
30212
30212
|
this._requests.length = 0, this._queuedChunk = null;
|
|
@@ -30396,7 +30396,7 @@ class i6 {
|
|
|
30396
30396
|
}
|
|
30397
30397
|
}
|
|
30398
30398
|
const s6 = 1e5, mr = 30, a6 = 0.8;
|
|
30399
|
-
var q1, Na, wr, mh, Ah, Wo, Ps, bh, xh, Go, Cc, Sc, Ta, Ic, yh, Ec, Qo, wh, vh, Vo, qo, kh, ja, Nc, ra, tS, nS,
|
|
30399
|
+
var q1, Na, wr, mh, Ah, Wo, Ps, bh, xh, Go, Cc, Sc, Ta, Ic, yh, Ec, Qo, wh, vh, Vo, qo, kh, ja, Nc, ra, tS, nS, DA, Zr, Af, HA, rS, iS;
|
|
30400
30400
|
const mn = class mn {
|
|
30401
30401
|
constructor({
|
|
30402
30402
|
textContentSource: e,
|
|
@@ -30487,7 +30487,7 @@ const mn = class mn {
|
|
|
30487
30487
|
ctx: I(s = mn, Zr, Af).call(s, d(this, Wo))
|
|
30488
30488
|
};
|
|
30489
30489
|
for (const o of d(this, Qo))
|
|
30490
|
-
a.properties = d(this, wh).get(o), a.div = o, I(this, ra,
|
|
30490
|
+
a.properties = d(this, wh).get(o), a.div = o, I(this, ra, DA).call(this, a);
|
|
30491
30491
|
}
|
|
30492
30492
|
}
|
|
30493
30493
|
cancel() {
|
|
@@ -30561,11 +30561,11 @@ Na = new WeakMap(), wr = new WeakMap(), mh = new WeakMap(), Ah = new WeakMap(),
|
|
|
30561
30561
|
const x = Math.abs(e.transform[0]), A = Math.abs(e.transform[3]);
|
|
30562
30562
|
x !== A && Math.max(x, A) / Math.min(x, A) > 1.5 && (g = !0);
|
|
30563
30563
|
}
|
|
30564
|
-
if (g && (r.canvasWidth = a.vertical ? e.height : e.width), d(this, wh).set(t, r), d(this, Ps).div = t, d(this, Ps).properties = r, I(this, ra,
|
|
30564
|
+
if (g && (r.canvasWidth = a.vertical ? e.height : e.width), d(this, wh).set(t, r), d(this, Ps).div = t, d(this, Ps).properties = r, I(this, ra, DA).call(this, d(this, Ps)), r.hasText && d(this, wr).append(t), r.hasEOL) {
|
|
30565
30565
|
const x = document.createElement("br");
|
|
30566
30566
|
x.setAttribute("role", "presentation"), d(this, wr).append(x);
|
|
30567
30567
|
}
|
|
30568
|
-
},
|
|
30568
|
+
}, DA = function(e) {
|
|
30569
30569
|
var o;
|
|
30570
30570
|
const {
|
|
30571
30571
|
div: t,
|
|
@@ -30582,7 +30582,7 @@ Na = new WeakMap(), wr = new WeakMap(), mh = new WeakMap(), Ah = new WeakMap(),
|
|
|
30582
30582
|
canvasWidth: c,
|
|
30583
30583
|
fontSize: u
|
|
30584
30584
|
} = r;
|
|
30585
|
-
I(o = mn, Zr,
|
|
30585
|
+
I(o = mn, Zr, HA).call(o, i, u * d(this, Ta), l);
|
|
30586
30586
|
const {
|
|
30587
30587
|
width: h
|
|
30588
30588
|
} = i.measureText(t.textContent);
|
|
@@ -30602,7 +30602,7 @@ Na = new WeakMap(), wr = new WeakMap(), mh = new WeakMap(), Ah = new WeakMap(),
|
|
|
30602
30602
|
});
|
|
30603
30603
|
}
|
|
30604
30604
|
return t;
|
|
30605
|
-
},
|
|
30605
|
+
}, HA = function(e, t, r) {
|
|
30606
30606
|
const i = d(this, kh).get(e);
|
|
30607
30607
|
t === i.size && r === i.family || (e.font = `${t}px ${r}`, i.size = t, i.family = r);
|
|
30608
30608
|
}, rS = function() {
|
|
@@ -30615,7 +30615,7 @@ Na = new WeakMap(), wr = new WeakMap(), mh = new WeakMap(), Ah = new WeakMap(),
|
|
|
30615
30615
|
if (r)
|
|
30616
30616
|
return r;
|
|
30617
30617
|
const i = I(this, Zr, Af).call(this, t);
|
|
30618
|
-
i.canvas.width = i.canvas.height = mr, I(this, Zr,
|
|
30618
|
+
i.canvas.width = i.canvas.height = mr, I(this, Zr, HA).call(this, i, mr, e);
|
|
30619
30619
|
const s = i.measureText("");
|
|
30620
30620
|
let a = s.fontBoundingBoxAscent, o = Math.abs(s.fontBoundingBoxDescent);
|
|
30621
30621
|
if (a) {
|
|
@@ -30677,11 +30677,11 @@ function f6(n = {}) {
|
|
|
30677
30677
|
} : (n instanceof ArrayBuffer || ArrayBuffer.isView(n)) && (n = {
|
|
30678
30678
|
data: n
|
|
30679
30679
|
});
|
|
30680
|
-
const e = new
|
|
30680
|
+
const e = new BA(), {
|
|
30681
30681
|
docId: t
|
|
30682
30682
|
} = e, r = n.url ? g6(n.url) : null, i = n.data ? m6(n.data) : null, s = n.httpHeaders || null, a = n.withCredentials === !0, o = n.password ?? null, l = n.range instanceof sS ? n.range : null, c = Number.isInteger(n.rangeChunkSize) && n.rangeChunkSize > 0 ? n.rangeChunkSize : o6;
|
|
30683
30683
|
let u = n.worker instanceof rc ? n.worker : null;
|
|
30684
|
-
const h = n.verbosity, p = typeof n.docBaseUrl == "string" && !
|
|
30684
|
+
const h = n.verbosity, p = typeof n.docBaseUrl == "string" && !Hg(n.docBaseUrl) ? n.docBaseUrl : null, f = typeof n.cMapUrl == "string" ? n.cMapUrl : null, g = n.cMapPacked !== !1, m = n.CMapReaderFactory || d6, x = typeof n.standardFontDataUrl == "string" ? n.standardFontDataUrl : null, A = n.StandardFontDataFactory || p6, w = n.stopAtErrors !== !0, y = Number.isInteger(n.maxImageSize) && n.maxImageSize > -1 ? n.maxImageSize : -1, E = n.isEvalSupported !== !1, C = typeof n.isOffscreenCanvasSupported == "boolean" ? n.isOffscreenCanvasSupported : !Vn, N = typeof n.isImageDecoderSupported == "boolean" ? n.isImageDecoderSupported : !Vn && (ur.platform.isFirefox || !globalThis.chrome), j = Number.isInteger(n.canvasMaxAreaInBytes) ? n.canvasMaxAreaInBytes : -1, H = typeof n.disableFontFace == "boolean" ? n.disableFontFace : Vn, X = n.fontExtraProperties === !0, L = n.enableXfa === !0, D = n.ownerDocument || globalThis.document, G = n.disableRange === !0, z = n.disableStream === !0, F = n.disableAutoFetch === !0, q = n.pdfBug === !0, R = n.CanvasFactory || u6, B = n.FilterFactory || h6, ee = n.enableHWA === !0, U = l ? l.length : n.length ?? NaN, k = typeof n.useSystemFonts == "boolean" ? n.useSystemFonts : !Vn && !H, M = typeof n.useWorkerFetch == "boolean" ? n.useWorkerFetch : m === GC && A === ZC && f && x && Yu(f, document.baseURI) && Yu(x, document.baseURI), Q = null;
|
|
30685
30685
|
$D(h);
|
|
30686
30686
|
const T = {
|
|
30687
30687
|
canvasFactory: new R({
|
|
@@ -30803,7 +30803,7 @@ function m6(n) {
|
|
|
30803
30803
|
if (n instanceof Uint8Array && n.byteLength === n.buffer.byteLength)
|
|
30804
30804
|
return n;
|
|
30805
30805
|
if (typeof n == "string")
|
|
30806
|
-
return
|
|
30806
|
+
return Fg(n);
|
|
30807
30807
|
if (n instanceof ArrayBuffer || ArrayBuffer.isView(n) || typeof n == "object" && !isNaN(n == null ? void 0 : n.length))
|
|
30808
30808
|
return new Uint8Array(n);
|
|
30809
30809
|
throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.");
|
|
@@ -30831,7 +30831,7 @@ const dg = class dg {
|
|
|
30831
30831
|
}
|
|
30832
30832
|
};
|
|
30833
30833
|
ug = new WeakMap(), S(dg, ug, 0);
|
|
30834
|
-
let
|
|
30834
|
+
let BA = dg;
|
|
30835
30835
|
class sS {
|
|
30836
30836
|
constructor(e, t, r = !1, i = null) {
|
|
30837
30837
|
this.length = e, this.initialData = t, this.progressiveDone = r, this.contentDispositionFilename = i, this._rangeListeners = [], this._progressListeners = [], this._progressiveReadListeners = [], this._progressiveDoneListeners = [], this._readyCapability = Promise.withResolvers();
|
|
@@ -31087,7 +31087,7 @@ class b6 {
|
|
|
31087
31087
|
intentState: m,
|
|
31088
31088
|
reason: N instanceof Error ? N : new Error(N)
|
|
31089
31089
|
})) : w.capability.resolve(), this._stats && (this._stats.timeEnd("Rendering"), this._stats.timeEnd("Overall"), (j = globalThis.Stats) != null && j.enabled && globalThis.Stats.add(this.pageNumber, this._stats));
|
|
31090
|
-
}, w = new
|
|
31090
|
+
}, w = new WA({
|
|
31091
31091
|
callback: A,
|
|
31092
31092
|
params: {
|
|
31093
31093
|
canvasContext: e,
|
|
@@ -31432,7 +31432,7 @@ const Ht = class Ht {
|
|
|
31432
31432
|
a();
|
|
31433
31433
|
return;
|
|
31434
31434
|
} catch {
|
|
31435
|
-
|
|
31435
|
+
zg("The worker has been disabled.");
|
|
31436
31436
|
}
|
|
31437
31437
|
this._setupFakeWorker();
|
|
31438
31438
|
}
|
|
@@ -31524,7 +31524,7 @@ class y6 {
|
|
|
31524
31524
|
return Ze(this, "annotationStorage", new m0());
|
|
31525
31525
|
}
|
|
31526
31526
|
getRenderingIntent(e, t = pa.ENABLE, r = null, i = !1, s = !1) {
|
|
31527
|
-
let a = Gr.DISPLAY, o =
|
|
31527
|
+
let a = Gr.DISPLAY, o = TA;
|
|
31528
31528
|
switch (e) {
|
|
31529
31529
|
case "any":
|
|
31530
31530
|
a = Gr.ANY;
|
|
@@ -31920,7 +31920,7 @@ Fs = new WeakMap(), ts = new WeakMap(), Oc = new WeakMap(), Lc = new WeakMap(),
|
|
|
31920
31920
|
return d(this, Fs).set(e, i), i;
|
|
31921
31921
|
};
|
|
31922
31922
|
const Uu = Symbol("INITIAL_DATA");
|
|
31923
|
-
var Pr, Ch,
|
|
31923
|
+
var Pr, Ch, UA;
|
|
31924
31924
|
class aS {
|
|
31925
31925
|
constructor() {
|
|
31926
31926
|
S(this, Ch);
|
|
@@ -31928,7 +31928,7 @@ class aS {
|
|
|
31928
31928
|
}
|
|
31929
31929
|
get(e, t = null) {
|
|
31930
31930
|
if (t) {
|
|
31931
|
-
const i = I(this, Ch,
|
|
31931
|
+
const i = I(this, Ch, UA).call(this, e);
|
|
31932
31932
|
return i.promise.then(() => t(i.data)), null;
|
|
31933
31933
|
}
|
|
31934
31934
|
const r = d(this, Pr)[e];
|
|
@@ -31945,7 +31945,7 @@ class aS {
|
|
|
31945
31945
|
return !t || t.data === Uu ? !1 : (delete d(this, Pr)[e], !0);
|
|
31946
31946
|
}
|
|
31947
31947
|
resolve(e, t = null) {
|
|
31948
|
-
const r = I(this, Ch,
|
|
31948
|
+
const r = I(this, Ch, UA).call(this, e);
|
|
31949
31949
|
r.data = t, r.resolve();
|
|
31950
31950
|
}
|
|
31951
31951
|
clear() {
|
|
@@ -31967,7 +31967,7 @@ class aS {
|
|
|
31967
31967
|
}
|
|
31968
31968
|
}
|
|
31969
31969
|
}
|
|
31970
|
-
Pr = new WeakMap(), Ch = new WeakSet(),
|
|
31970
|
+
Pr = new WeakMap(), Ch = new WeakSet(), UA = function(e) {
|
|
31971
31971
|
var t;
|
|
31972
31972
|
return (t = d(this, Pr))[e] || (t[e] = {
|
|
31973
31973
|
...Promise.withResolvers(),
|
|
@@ -32075,7 +32075,7 @@ const go = class go {
|
|
|
32075
32075
|
}
|
|
32076
32076
|
};
|
|
32077
32077
|
Ma = new WeakMap(), Jo = new WeakMap(), S(go, Jo, /* @__PURE__ */ new WeakSet());
|
|
32078
|
-
let
|
|
32078
|
+
let WA = go;
|
|
32079
32079
|
const v6 = "4.10.38", k6 = "f9bea397f";
|
|
32080
32080
|
function H1(n) {
|
|
32081
32081
|
return Math.floor(Math.max(0, Math.min(1, n)) * 255).toString(16).padStart(2, "0");
|
|
@@ -32328,7 +32328,7 @@ class I6 {
|
|
|
32328
32328
|
}
|
|
32329
32329
|
return new Pl(e);
|
|
32330
32330
|
case gn.POPUP:
|
|
32331
|
-
return new
|
|
32331
|
+
return new QA(e);
|
|
32332
32332
|
case gn.FREETEXT:
|
|
32333
32333
|
return new mS(e);
|
|
32334
32334
|
case gn.LINE:
|
|
@@ -32362,7 +32362,7 @@ class I6 {
|
|
|
32362
32362
|
}
|
|
32363
32363
|
}
|
|
32364
32364
|
}
|
|
32365
|
-
var Ko, Mc, Pc, Sh,
|
|
32365
|
+
var Ko, Mc, Pc, Sh, GA;
|
|
32366
32366
|
const C0 = class C0 {
|
|
32367
32367
|
constructor(e, {
|
|
32368
32368
|
isRenderable: t = !1,
|
|
@@ -32398,11 +32398,11 @@ const C0 = class C0 {
|
|
|
32398
32398
|
const {
|
|
32399
32399
|
rect: t
|
|
32400
32400
|
} = e;
|
|
32401
|
-
t && I(this, Sh,
|
|
32401
|
+
t && I(this, Sh, GA).call(this, t), (r = d(this, Pc)) == null || r.popup.updateEdited(e);
|
|
32402
32402
|
}
|
|
32403
32403
|
resetEdited() {
|
|
32404
32404
|
var e;
|
|
32405
|
-
d(this, Ko) && (I(this, Sh,
|
|
32405
|
+
d(this, Ko) && (I(this, Sh, GA).call(this, d(this, Ko).rect), (e = d(this, Pc)) == null || e.popup.resetEdited(), v(this, Ko, null));
|
|
32406
32406
|
}
|
|
32407
32407
|
_createContainer(e) {
|
|
32408
32408
|
const {
|
|
@@ -32416,7 +32416,7 @@ const C0 = class C0 {
|
|
|
32416
32416
|
const {
|
|
32417
32417
|
style: a
|
|
32418
32418
|
} = s;
|
|
32419
|
-
if (a.zIndex = this.parent.zIndex++, t.alternativeText && (s.title = t.alternativeText), t.noRotate && s.classList.add("norotate"), !t.rect || this instanceof
|
|
32419
|
+
if (a.zIndex = this.parent.zIndex++, t.alternativeText && (s.title = t.alternativeText), t.noRotate && s.classList.add("norotate"), !t.rect || this instanceof QA) {
|
|
32420
32420
|
const {
|
|
32421
32421
|
rotation: m
|
|
32422
32422
|
} = t;
|
|
@@ -32621,7 +32621,7 @@ const C0 = class C0 {
|
|
|
32621
32621
|
_createPopup() {
|
|
32622
32622
|
const {
|
|
32623
32623
|
data: e
|
|
32624
|
-
} = this, t = v(this, Pc, new
|
|
32624
|
+
} = this, t = v(this, Pc, new QA({
|
|
32625
32625
|
data: {
|
|
32626
32626
|
color: e.color,
|
|
32627
32627
|
titleObj: e.titleObj,
|
|
@@ -32716,7 +32716,7 @@ const C0 = class C0 {
|
|
|
32716
32716
|
});
|
|
32717
32717
|
}
|
|
32718
32718
|
};
|
|
32719
|
-
Ko = new WeakMap(), Mc = new WeakMap(), Pc = new WeakMap(), Sh = new WeakSet(),
|
|
32719
|
+
Ko = new WeakMap(), Mc = new WeakMap(), Pc = new WeakMap(), Sh = new WeakSet(), GA = function(e) {
|
|
32720
32720
|
const {
|
|
32721
32721
|
container: {
|
|
32722
32722
|
style: t
|
|
@@ -32956,11 +32956,11 @@ class Pl extends an {
|
|
|
32956
32956
|
let a;
|
|
32957
32957
|
const o = 2, l = (c) => Math.round(10 * c) / 10;
|
|
32958
32958
|
if (this.data.multiLine) {
|
|
32959
|
-
const c = Math.abs(this.data.rect[3] - this.data.rect[1] - o), u = Math.round(c / (
|
|
32960
|
-
a = Math.min(i, l(h /
|
|
32959
|
+
const c = Math.abs(this.data.rect[3] - this.data.rect[1] - o), u = Math.round(c / (vm * i)) || 1, h = c / u;
|
|
32960
|
+
a = Math.min(i, l(h / vm));
|
|
32961
32961
|
} else {
|
|
32962
32962
|
const c = Math.abs(this.data.rect[3] - this.data.rect[1] - o);
|
|
32963
|
-
a = Math.min(i, l(c /
|
|
32963
|
+
a = Math.min(i, l(c / vm));
|
|
32964
32964
|
}
|
|
32965
32965
|
s.fontSize = `calc(${a}px * var(--scale-factor))`, s.color = Ie.makeHexColor(r[0], r[1], r[2]), this.data.textAlignment !== null && (s.textAlign = t[this.data.textAlignment]);
|
|
32966
32966
|
}
|
|
@@ -33435,7 +33435,7 @@ class L6 extends Pl {
|
|
|
33435
33435
|
}), this.data.combo && this._setTextStyle(i), this._setBackgroundColor(i), this._setDefaultPropertiesFromJS(i), this.container.append(i), this.container;
|
|
33436
33436
|
}
|
|
33437
33437
|
}
|
|
33438
|
-
class
|
|
33438
|
+
class QA extends an {
|
|
33439
33439
|
constructor(e) {
|
|
33440
33440
|
const {
|
|
33441
33441
|
data: t,
|
|
@@ -33465,7 +33465,7 @@ class GA extends an {
|
|
|
33465
33465
|
return this.container.setAttribute("aria-controls", t.map((r) => `${d0}${r}`).join(",")), this.container;
|
|
33466
33466
|
}
|
|
33467
33467
|
}
|
|
33468
|
-
var Rc, fg, gg, zc, _o, en, Hs, Fc, Ih, Eh, Dc, Bs, vi, Us, Nh, Ws, Th, $o, el, vt, wf,
|
|
33468
|
+
var Rc, fg, gg, zc, _o, en, Hs, Fc, Ih, Eh, Dc, Bs, vi, Us, Nh, Ws, Th, $o, el, vt, wf, VA, hS, pS, fS, gS, vf, kf, qA;
|
|
33469
33469
|
class M6 {
|
|
33470
33470
|
constructor({
|
|
33471
33471
|
container: e,
|
|
@@ -33482,7 +33482,7 @@ class M6 {
|
|
|
33482
33482
|
}) {
|
|
33483
33483
|
S(this, vt);
|
|
33484
33484
|
S(this, Rc, I(this, vt, fS).bind(this));
|
|
33485
|
-
S(this, fg, I(this, vt,
|
|
33485
|
+
S(this, fg, I(this, vt, qA).bind(this));
|
|
33486
33486
|
S(this, gg, I(this, vt, kf).bind(this));
|
|
33487
33487
|
S(this, zc, I(this, vt, vf).bind(this));
|
|
33488
33488
|
S(this, _o, null);
|
|
@@ -33584,7 +33584,7 @@ class M6 {
|
|
|
33584
33584
|
Rc = new WeakMap(), fg = new WeakMap(), gg = new WeakMap(), zc = new WeakMap(), _o = new WeakMap(), en = new WeakMap(), Hs = new WeakMap(), Fc = new WeakMap(), Ih = new WeakMap(), Eh = new WeakMap(), Dc = new WeakMap(), Bs = new WeakMap(), vi = new WeakMap(), Us = new WeakMap(), Nh = new WeakMap(), Ws = new WeakMap(), Th = new WeakMap(), $o = new WeakMap(), el = new WeakMap(), vt = new WeakSet(), wf = function() {
|
|
33585
33585
|
const e = d(this, Ws), t = d(this, Hs);
|
|
33586
33586
|
return e != null && e.str && (!(t != null && t.str) || t.str === e.str) && d(this, Ws).html || null;
|
|
33587
|
-
},
|
|
33587
|
+
}, VA = function() {
|
|
33588
33588
|
var e, t, r;
|
|
33589
33589
|
return ((r = (t = (e = d(this, vt, wf)) == null ? void 0 : e.attributes) == null ? void 0 : t.style) == null ? void 0 : r.fontSize) || 0;
|
|
33590
33590
|
}, hS = function() {
|
|
@@ -33606,7 +33606,7 @@ Rc = new WeakMap(), fg = new WeakMap(), gg = new WeakMap(), zc = new WeakMap(),
|
|
|
33606
33606
|
}, i = {
|
|
33607
33607
|
style: {
|
|
33608
33608
|
color: d(this, vt, hS),
|
|
33609
|
-
fontSize: d(this, vt,
|
|
33609
|
+
fontSize: d(this, vt, VA) ? `calc(${d(this, vt, VA)}px * var(--scale-factor))` : ""
|
|
33610
33610
|
}
|
|
33611
33611
|
};
|
|
33612
33612
|
for (const s of e.split(`
|
|
@@ -33648,10 +33648,10 @@ Rc = new WeakMap(), fg = new WeakMap(), gg = new WeakMap(), zc = new WeakMap(),
|
|
|
33648
33648
|
} = d(this, en);
|
|
33649
33649
|
f.left = `${d(this, Us)[0]}%`, f.top = `${d(this, Us)[1]}%`;
|
|
33650
33650
|
}, vf = function() {
|
|
33651
|
-
v(this, Bs, !d(this, Bs)), d(this, Bs) ? (I(this, vt, kf).call(this), d(this, en).addEventListener("click", d(this, zc)), d(this, en).addEventListener("keydown", d(this, Rc))) : (I(this, vt,
|
|
33651
|
+
v(this, Bs, !d(this, Bs)), d(this, Bs) ? (I(this, vt, kf).call(this), d(this, en).addEventListener("click", d(this, zc)), d(this, en).addEventListener("keydown", d(this, Rc))) : (I(this, vt, qA).call(this), d(this, en).removeEventListener("click", d(this, zc)), d(this, en).removeEventListener("keydown", d(this, Rc)));
|
|
33652
33652
|
}, kf = function() {
|
|
33653
33653
|
d(this, vi) || this.render(), this.isVisible ? d(this, Bs) && d(this, en).classList.add("focused") : (I(this, vt, gS).call(this), d(this, en).hidden = !1, d(this, en).style.zIndex = parseInt(d(this, en).style.zIndex) + 1e3);
|
|
33654
|
-
},
|
|
33654
|
+
}, qA = function() {
|
|
33655
33655
|
d(this, en).classList.remove("focused"), !(d(this, Bs) || !this.isVisible) && (d(this, en).hidden = !0, d(this, en).style.zIndex = parseInt(d(this, en).style.zIndex) - 1e3);
|
|
33656
33656
|
};
|
|
33657
33657
|
class mS extends an {
|
|
@@ -33808,7 +33808,7 @@ class D6 extends an {
|
|
|
33808
33808
|
return this.container.classList.add("caretAnnotation"), !this.data.popupRef && this.hasPopupData && this._createPopup(), this.container;
|
|
33809
33809
|
}
|
|
33810
33810
|
}
|
|
33811
|
-
var Ph, tl, Rh,
|
|
33811
|
+
var Ph, tl, Rh, ZA;
|
|
33812
33812
|
class x0 extends an {
|
|
33813
33813
|
constructor(t) {
|
|
33814
33814
|
super(t, {
|
|
@@ -33834,7 +33834,7 @@ class x0 extends an {
|
|
|
33834
33834
|
transform: o,
|
|
33835
33835
|
width: l,
|
|
33836
33836
|
height: c
|
|
33837
|
-
} = I(this, Rh,
|
|
33837
|
+
} = I(this, Rh, ZA).call(this, r, t), u = this.svgFactory.create(l, c, !0), h = v(this, Ph, this.svgFactory.createElement("svg:g"));
|
|
33838
33838
|
u.append(h), h.setAttribute("stroke-width", s.width || 1), h.setAttribute("stroke-linecap", "round"), h.setAttribute("stroke-linejoin", "round"), h.setAttribute("stroke-miterlimit", 10), h.setAttribute("stroke", "transparent"), h.setAttribute("fill", "transparent"), h.setAttribute("transform", o);
|
|
33839
33839
|
for (let p = 0, f = i.length; p < f; p++) {
|
|
33840
33840
|
const g = this.svgFactory.createElement(this.svgElementName);
|
|
@@ -33857,7 +33857,7 @@ class x0 extends an {
|
|
|
33857
33857
|
transform: o,
|
|
33858
33858
|
width: l,
|
|
33859
33859
|
height: c
|
|
33860
|
-
} = I(this, Rh,
|
|
33860
|
+
} = I(this, Rh, ZA).call(this, this.data.rotation, s);
|
|
33861
33861
|
a.parentElement.setAttribute("viewBox", `0 0 ${l} ${c}`), a.setAttribute("transform", o);
|
|
33862
33862
|
}
|
|
33863
33863
|
}
|
|
@@ -33868,7 +33868,7 @@ class x0 extends an {
|
|
|
33868
33868
|
this.container.classList.add("highlightArea");
|
|
33869
33869
|
}
|
|
33870
33870
|
}
|
|
33871
|
-
Ph = new WeakMap(), tl = new WeakMap(), Rh = new WeakSet(),
|
|
33871
|
+
Ph = new WeakMap(), tl = new WeakMap(), Rh = new WeakSet(), ZA = function(t, r) {
|
|
33872
33872
|
switch (t) {
|
|
33873
33873
|
case 90:
|
|
33874
33874
|
return {
|
|
@@ -33955,7 +33955,7 @@ class xS extends an {
|
|
|
33955
33955
|
return this.container.classList.add("stampAnnotation"), this.container.setAttribute("role", "img"), !this.data.popupRef && this.hasPopupData && this._createPopup(), this._editOnDoubleClick(), this.container;
|
|
33956
33956
|
}
|
|
33957
33957
|
}
|
|
33958
|
-
var zh, Fh,
|
|
33958
|
+
var zh, Fh, YA;
|
|
33959
33959
|
class W6 extends an {
|
|
33960
33960
|
constructor(t) {
|
|
33961
33961
|
var i;
|
|
@@ -33979,12 +33979,12 @@ class W6 extends an {
|
|
|
33979
33979
|
data: r
|
|
33980
33980
|
} = this;
|
|
33981
33981
|
let i;
|
|
33982
|
-
r.hasAppearance || r.fillAlpha === 0 ? i = document.createElement("div") : (i = document.createElement("img"), i.src = `${this.imageResourcesPath}annotation-${/paperclip/i.test(r.name) ? "paperclip" : "pushpin"}.svg`, r.fillAlpha && r.fillAlpha < 1 && (i.style = `filter: opacity(${Math.round(r.fillAlpha * 100)}%);`)), i.addEventListener("dblclick", I(this, Fh,
|
|
33982
|
+
r.hasAppearance || r.fillAlpha === 0 ? i = document.createElement("div") : (i = document.createElement("img"), i.src = `${this.imageResourcesPath}annotation-${/paperclip/i.test(r.name) ? "paperclip" : "pushpin"}.svg`, r.fillAlpha && r.fillAlpha < 1 && (i.style = `filter: opacity(${Math.round(r.fillAlpha * 100)}%);`)), i.addEventListener("dblclick", I(this, Fh, YA).bind(this)), v(this, zh, i);
|
|
33983
33983
|
const {
|
|
33984
33984
|
isMac: s
|
|
33985
33985
|
} = ur.platform;
|
|
33986
33986
|
return t.addEventListener("keydown", (a) => {
|
|
33987
|
-
a.key === "Enter" && (s ? a.metaKey : a.ctrlKey) && I(this, Fh,
|
|
33987
|
+
a.key === "Enter" && (s ? a.metaKey : a.ctrlKey) && I(this, Fh, YA).call(this);
|
|
33988
33988
|
}), !r.popupRef && this.hasPopupData ? this._createPopup() : i.classList.add("popupTriggerArea"), t.append(i), t;
|
|
33989
33989
|
}
|
|
33990
33990
|
getElementsToTriggerPopup() {
|
|
@@ -33994,11 +33994,11 @@ class W6 extends an {
|
|
|
33994
33994
|
this.container.classList.add("highlightArea");
|
|
33995
33995
|
}
|
|
33996
33996
|
}
|
|
33997
|
-
zh = new WeakMap(), Fh = new WeakSet(),
|
|
33997
|
+
zh = new WeakMap(), Fh = new WeakSet(), YA = function() {
|
|
33998
33998
|
var t;
|
|
33999
33999
|
(t = this.downloadManager) == null || t.openOrDownloadData(this.content, this.filename);
|
|
34000
34000
|
};
|
|
34001
|
-
var Dh, nl, rl, Hh, Tl, yS,
|
|
34001
|
+
var Dh, nl, rl, Hh, Tl, yS, XA;
|
|
34002
34002
|
class G6 {
|
|
34003
34003
|
constructor({
|
|
34004
34004
|
div: e,
|
|
@@ -34068,7 +34068,7 @@ class G6 {
|
|
|
34068
34068
|
const u = c.render();
|
|
34069
34069
|
o.hidden && (u.style.visibility = "hidden"), await I(this, Tl, yS).call(this, u, o.id), c._isEditable && (d(this, rl).set(c.data.id, c), (a = this._annotationEditorUIManager) == null || a.renderAnnotationElement(c));
|
|
34070
34070
|
}
|
|
34071
|
-
I(this, Tl,
|
|
34071
|
+
I(this, Tl, XA).call(this);
|
|
34072
34072
|
}
|
|
34073
34073
|
update({
|
|
34074
34074
|
viewport: e
|
|
@@ -34076,7 +34076,7 @@ class G6 {
|
|
|
34076
34076
|
const t = this.div;
|
|
34077
34077
|
this.viewport = e, Il(t, {
|
|
34078
34078
|
rotation: e.rotation
|
|
34079
|
-
}), I(this, Tl,
|
|
34079
|
+
}), I(this, Tl, XA).call(this), t.hidden = !1;
|
|
34080
34080
|
}
|
|
34081
34081
|
getEditableAnnotations() {
|
|
34082
34082
|
return Array.from(d(this, rl).values());
|
|
@@ -34092,7 +34092,7 @@ Dh = new WeakMap(), nl = new WeakMap(), rl = new WeakMap(), Hh = new WeakMap(),
|
|
|
34092
34092
|
for (const [l, c] of s)
|
|
34093
34093
|
r.setAttribute(l, c);
|
|
34094
34094
|
this.div.append(e), (o = d(this, Dh)) == null || o.moveElementInDOM(this.div, e, r, !1);
|
|
34095
|
-
},
|
|
34095
|
+
}, XA = function() {
|
|
34096
34096
|
if (!d(this, nl))
|
|
34097
34097
|
return;
|
|
34098
34098
|
const e = this.div;
|
|
@@ -34109,7 +34109,7 @@ Dh = new WeakMap(), nl = new WeakMap(), rl = new WeakMap(), Hh = new WeakMap(),
|
|
|
34109
34109
|
d(this, nl).clear();
|
|
34110
34110
|
};
|
|
34111
34111
|
const Vp = /\r\n?|\n/g;
|
|
34112
|
-
var ki, Rr, Bh, il, zr, un, wS, vS, kS, Cf, ta, Sf, If, CS,
|
|
34112
|
+
var ki, Rr, Bh, il, zr, un, wS, vS, kS, Cf, ta, Sf, If, CS, KA, SS;
|
|
34113
34113
|
const Nt = class Nt extends Xt {
|
|
34114
34114
|
constructor(t) {
|
|
34115
34115
|
super({
|
|
@@ -34333,7 +34333,7 @@ const Nt = class Nt extends Xt {
|
|
|
34333
34333
|
if (i.length === 1 && i[0] === "text/plain")
|
|
34334
34334
|
return;
|
|
34335
34335
|
t.preventDefault();
|
|
34336
|
-
const s = I(g = Nt, ta,
|
|
34336
|
+
const s = I(g = Nt, ta, KA).call(g, r.getData("text") || "").replaceAll(Vp, `
|
|
34337
34337
|
`);
|
|
34338
34338
|
if (!s)
|
|
34339
34339
|
return;
|
|
@@ -34431,7 +34431,7 @@ const Nt = class Nt extends Xt {
|
|
|
34431
34431
|
};
|
|
34432
34432
|
}
|
|
34433
34433
|
const a = await super.deserialize(t, r, i);
|
|
34434
|
-
return v(a, zr, t.fontSize), v(a, ki, Ie.makeHexColor(...t.color)), v(a, Rr, I(o = Nt, ta,
|
|
34434
|
+
return v(a, zr, t.fontSize), v(a, ki, Ie.makeHexColor(...t.color)), v(a, Rr, I(o = Nt, ta, KA).call(o, t.value)), a.annotationElementId = t.id || null, a._initialData = s, a;
|
|
34435
34435
|
}
|
|
34436
34436
|
serialize(t = !1) {
|
|
34437
34437
|
if (this.isEmpty())
|
|
@@ -34532,7 +34532,7 @@ ki = new WeakMap(), Rr = new WeakMap(), Bh = new WeakMap(), il = new WeakMap(),
|
|
|
34532
34532
|
}
|
|
34533
34533
|
}, CS = function() {
|
|
34534
34534
|
return d(this, Rr).replaceAll(" ", " ");
|
|
34535
|
-
},
|
|
34535
|
+
}, KA = function(t) {
|
|
34536
34536
|
return t.replaceAll(" ", " ");
|
|
34537
34537
|
}, SS = function(t) {
|
|
34538
34538
|
const {
|
|
@@ -34543,7 +34543,7 @@ ki = new WeakMap(), Rr = new WeakMap(), Bh = new WeakMap(), il = new WeakMap(),
|
|
|
34543
34543
|
} = this._initialData;
|
|
34544
34544
|
return this._hasBeenMoved || t.value !== r || t.fontSize !== i || t.color.some((o, l) => o !== s[l]) || t.pageIndex !== a;
|
|
34545
34545
|
}, S(Nt, ta), Se(Nt, "_freeTextDefaultContent", ""), Se(Nt, "_internalPadding", 0), Se(Nt, "_defaultColor", null), Se(Nt, "_defaultFontSize", 10), Se(Nt, "_type", "freetext"), Se(Nt, "_editorType", Ue.FREETEXT);
|
|
34546
|
-
let
|
|
34546
|
+
let JA = Nt;
|
|
34547
34547
|
class fe {
|
|
34548
34548
|
toSVGPath() {
|
|
34549
34549
|
St("Abstract method `toSVGPath` must be implemented.");
|
|
@@ -34802,8 +34802,8 @@ Gc = new WeakMap(), ol = new WeakMap(), Gs = new WeakMap(), Qh = new WeakMap(),
|
|
|
34802
34802
|
const f = d(this, ol);
|
|
34803
34803
|
f[0] = a - d(this, Gs), f[1] = o - d(this, Gs), f[2] = l - a + 2 * d(this, Gs), f[3] = c - o + 2 * d(this, Gs), this.lastPoint = [u, h];
|
|
34804
34804
|
};
|
|
34805
|
-
var qh, Zh, Ra, Si, hr, PS, Ef, RS, zS,
|
|
34806
|
-
class
|
|
34805
|
+
var qh, Zh, Ra, Si, hr, PS, Ef, RS, zS, $A;
|
|
34806
|
+
class _A {
|
|
34807
34807
|
constructor(e, t = 0, r = 0, i = !0) {
|
|
34808
34808
|
S(this, hr);
|
|
34809
34809
|
S(this, qh);
|
|
@@ -34832,7 +34832,7 @@ class KA {
|
|
|
34832
34832
|
d(this, Ra).sort((t, r) => t[0] - r[0] || t[1] - r[1] || t[2] - r[2]);
|
|
34833
34833
|
const e = [];
|
|
34834
34834
|
for (const t of d(this, Ra))
|
|
34835
|
-
t[3] ? (e.push(...I(this, hr,
|
|
34835
|
+
t[3] ? (e.push(...I(this, hr, $A).call(this, t)), I(this, hr, RS).call(this, t)) : (I(this, hr, zS).call(this, t), e.push(...I(this, hr, $A).call(this, t)));
|
|
34836
34836
|
return I(this, hr, PS).call(this, e);
|
|
34837
34837
|
}
|
|
34838
34838
|
}
|
|
@@ -34900,7 +34900,7 @@ qh = new WeakMap(), Zh = new WeakMap(), Ra = new WeakMap(), Si = new WeakMap(),
|
|
|
34900
34900
|
return;
|
|
34901
34901
|
}
|
|
34902
34902
|
}
|
|
34903
|
-
},
|
|
34903
|
+
}, $A = function(e) {
|
|
34904
34904
|
const [t, r, i] = e, s = [[t, r, i]], a = I(this, hr, Ef).call(this, i);
|
|
34905
34905
|
for (let o = 0; o < a; o++) {
|
|
34906
34906
|
const [l, c] = d(this, Si)[o];
|
|
@@ -34962,17 +34962,17 @@ class Q6 extends fe {
|
|
|
34962
34962
|
}
|
|
34963
34963
|
}
|
|
34964
34964
|
Yh = new WeakMap(), Qc = new WeakMap();
|
|
34965
|
-
class
|
|
34965
|
+
class eb extends _f {
|
|
34966
34966
|
newFreeDrawOutline(e, t, r, i, s, a) {
|
|
34967
34967
|
return new V6(e, t, r, i, s, a);
|
|
34968
34968
|
}
|
|
34969
34969
|
}
|
|
34970
34970
|
class V6 extends LS {
|
|
34971
34971
|
newOutliner(e, t, r, i, s, a = 0) {
|
|
34972
|
-
return new
|
|
34972
|
+
return new eb(e, t, r, i, s, a);
|
|
34973
34973
|
}
|
|
34974
34974
|
}
|
|
34975
|
-
var Ii, ll, Vc, bn, Xh, qc, Jh, Kh, za, Ei, Zc, _h, wt,
|
|
34975
|
+
var Ii, ll, Vc, bn, Xh, qc, Jh, Kh, za, Ei, Zc, _h, wt, tb, nb, rb, uo, FS, ua;
|
|
34976
34976
|
const xr = class xr {
|
|
34977
34977
|
constructor({
|
|
34978
34978
|
editor: e = null,
|
|
@@ -35008,14 +35008,14 @@ const xr = class xr {
|
|
|
35008
35008
|
const t = d(this, Ei)._signal;
|
|
35009
35009
|
e.addEventListener("click", I(this, wt, uo).bind(this), {
|
|
35010
35010
|
signal: t
|
|
35011
|
-
}), e.addEventListener("keydown", I(this, wt,
|
|
35011
|
+
}), e.addEventListener("keydown", I(this, wt, rb).bind(this), {
|
|
35012
35012
|
signal: t
|
|
35013
35013
|
});
|
|
35014
35014
|
const r = v(this, ll, document.createElement("span"));
|
|
35015
35015
|
return r.className = "swatch", r.setAttribute("aria-hidden", !0), r.style.backgroundColor = d(this, Vc), e.append(r), e;
|
|
35016
35016
|
}
|
|
35017
35017
|
renderMainDropdown() {
|
|
35018
|
-
const e = v(this, bn, I(this, wt,
|
|
35018
|
+
const e = v(this, bn, I(this, wt, tb).call(this));
|
|
35019
35019
|
return e.setAttribute("aria-orientation", "horizontal"), e.setAttribute("aria-labelledby", "highlightColorPickerLabel"), e;
|
|
35020
35020
|
}
|
|
35021
35021
|
_colorSelectFromKeyboard(e) {
|
|
@@ -35024,7 +35024,7 @@ const xr = class xr {
|
|
|
35024
35024
|
return;
|
|
35025
35025
|
}
|
|
35026
35026
|
const t = e.target.getAttribute("data-color");
|
|
35027
|
-
t && I(this, wt,
|
|
35027
|
+
t && I(this, wt, nb).call(this, t, e);
|
|
35028
35028
|
}
|
|
35029
35029
|
_moveToNext(e) {
|
|
35030
35030
|
var t, r;
|
|
@@ -35091,7 +35091,7 @@ const xr = class xr {
|
|
|
35091
35091
|
(e = d(this, Ii)) == null || e.remove(), v(this, Ii, null), v(this, ll, null), (t = d(this, bn)) == null || t.remove(), v(this, bn, null);
|
|
35092
35092
|
}
|
|
35093
35093
|
};
|
|
35094
|
-
Ii = new WeakMap(), ll = new WeakMap(), Vc = new WeakMap(), bn = new WeakMap(), Xh = new WeakMap(), qc = new WeakMap(), Jh = new WeakMap(), Kh = new WeakMap(), za = new WeakMap(), Ei = new WeakMap(), Zc = new WeakMap(), _h = new WeakMap(), wt = new WeakSet(),
|
|
35094
|
+
Ii = new WeakMap(), ll = new WeakMap(), Vc = new WeakMap(), bn = new WeakMap(), Xh = new WeakMap(), qc = new WeakMap(), Jh = new WeakMap(), Kh = new WeakMap(), za = new WeakMap(), Ei = new WeakMap(), Zc = new WeakMap(), _h = new WeakMap(), wt = new WeakSet(), tb = function() {
|
|
35095
35095
|
const e = document.createElement("div"), t = d(this, Ei)._signal;
|
|
35096
35096
|
e.addEventListener("contextmenu", Ri, {
|
|
35097
35097
|
signal: t
|
|
@@ -35100,20 +35100,20 @@ Ii = new WeakMap(), ll = new WeakMap(), Vc = new WeakMap(), bn = new WeakMap(),
|
|
|
35100
35100
|
const s = document.createElement("button");
|
|
35101
35101
|
s.tabIndex = "0", s.role = "option", s.setAttribute("data-color", i), s.title = r, s.setAttribute("data-l10n-id", d(xr, _h)[r]);
|
|
35102
35102
|
const a = document.createElement("span");
|
|
35103
|
-
s.append(a), a.className = "swatch", a.style.backgroundColor = i, s.setAttribute("aria-selected", i === d(this, Vc)), s.addEventListener("click", I(this, wt,
|
|
35103
|
+
s.append(a), a.className = "swatch", a.style.backgroundColor = i, s.setAttribute("aria-selected", i === d(this, Vc)), s.addEventListener("click", I(this, wt, nb).bind(this, i), {
|
|
35104
35104
|
signal: t
|
|
35105
35105
|
}), e.append(s);
|
|
35106
35106
|
}
|
|
35107
|
-
return e.addEventListener("keydown", I(this, wt,
|
|
35107
|
+
return e.addEventListener("keydown", I(this, wt, rb).bind(this), {
|
|
35108
35108
|
signal: t
|
|
35109
35109
|
}), e;
|
|
35110
|
-
},
|
|
35110
|
+
}, nb = function(e, t) {
|
|
35111
35111
|
t.stopPropagation(), d(this, Kh).dispatch("switchannotationeditorparams", {
|
|
35112
35112
|
source: this,
|
|
35113
35113
|
type: d(this, Zc),
|
|
35114
35114
|
value: e
|
|
35115
35115
|
});
|
|
35116
|
-
},
|
|
35116
|
+
}, rb = function(e) {
|
|
35117
35117
|
xr._keyboardManager.exec(this, e);
|
|
35118
35118
|
}, uo = function(e) {
|
|
35119
35119
|
if (d(this, wt, ua)) {
|
|
@@ -35126,7 +35126,7 @@ Ii = new WeakMap(), ll = new WeakMap(), Vc = new WeakMap(), bn = new WeakMap(),
|
|
|
35126
35126
|
d(this, bn).classList.remove("hidden");
|
|
35127
35127
|
return;
|
|
35128
35128
|
}
|
|
35129
|
-
const t = v(this, bn, I(this, wt,
|
|
35129
|
+
const t = v(this, bn, I(this, wt, tb).call(this));
|
|
35130
35130
|
d(this, Ii).append(t);
|
|
35131
35131
|
}, FS = function(e) {
|
|
35132
35132
|
var t;
|
|
@@ -35135,7 +35135,7 @@ Ii = new WeakMap(), ll = new WeakMap(), Vc = new WeakMap(), bn = new WeakMap(),
|
|
|
35135
35135
|
return d(this, bn) && !d(this, bn).classList.contains("hidden");
|
|
35136
35136
|
}, S(xr, _h, null);
|
|
35137
35137
|
let $f = xr;
|
|
35138
|
-
var Yc, $h, Qs, cl, Xc, vr, ep, tp, ul, ti, Hr, Ln, Jc, Vs, Un, Kc, ni, np, De,
|
|
35138
|
+
var Yc, $h, Qs, cl, Xc, vr, ep, tp, ul, ti, Hr, Ln, Jc, Vs, Un, Kc, ni, np, De, ib, Nf, DS, HS, BS, sb, ho, oi, Jl, US, Tf, sd, WS, GS, QS, VS, qS;
|
|
35139
35139
|
const ot = class ot extends Xt {
|
|
35140
35140
|
constructor(t) {
|
|
35141
35141
|
super({
|
|
@@ -35161,7 +35161,7 @@ const ot = class ot extends Xt {
|
|
|
35161
35161
|
S(this, Kc, "");
|
|
35162
35162
|
S(this, ni);
|
|
35163
35163
|
S(this, np, "");
|
|
35164
|
-
this.color = t.color || ot._defaultColor, v(this, ni, t.thickness || ot._defaultThickness), v(this, Vs, t.opacity || ot._defaultOpacity), v(this, Qs, t.boxes || null), v(this, np, t.methodOfCreation || ""), v(this, Kc, t.text || ""), this._isDraggable = !1, t.highlightId > -1 ? (v(this, Ln, !0), I(this, De, Nf).call(this, t), I(this, De, ho).call(this)) : d(this, Qs) && (v(this, Yc, t.anchorNode), v(this, $h, t.anchorOffset), v(this, ep, t.focusNode), v(this, tp, t.focusOffset), I(this, De,
|
|
35164
|
+
this.color = t.color || ot._defaultColor, v(this, ni, t.thickness || ot._defaultThickness), v(this, Vs, t.opacity || ot._defaultOpacity), v(this, Qs, t.boxes || null), v(this, np, t.methodOfCreation || ""), v(this, Kc, t.text || ""), this._isDraggable = !1, t.highlightId > -1 ? (v(this, Ln, !0), I(this, De, Nf).call(this, t), I(this, De, ho).call(this)) : d(this, Qs) && (v(this, Yc, t.anchorNode), v(this, $h, t.anchorOffset), v(this, ep, t.focusNode), v(this, tp, t.focusOffset), I(this, De, ib).call(this), I(this, De, ho).call(this), this.rotate(this.rotation));
|
|
35165
35165
|
}
|
|
35166
35166
|
static get _keyboardManager() {
|
|
35167
35167
|
const t = ot.prototype;
|
|
@@ -35255,7 +35255,7 @@ const ot = class ot extends Xt {
|
|
|
35255
35255
|
this.annotationElementId || this.parent.addUndoableEditor(this), t && this.div.focus();
|
|
35256
35256
|
}
|
|
35257
35257
|
remove() {
|
|
35258
|
-
I(this, De,
|
|
35258
|
+
I(this, De, sb).call(this), this._reportTelemetry({
|
|
35259
35259
|
action: "deleted"
|
|
35260
35260
|
}), super.remove();
|
|
35261
35261
|
}
|
|
@@ -35265,7 +35265,7 @@ const ot = class ot extends Xt {
|
|
|
35265
35265
|
setParent(t) {
|
|
35266
35266
|
var i;
|
|
35267
35267
|
let r = !1;
|
|
35268
|
-
this.parent && !t ? I(this, De,
|
|
35268
|
+
this.parent && !t ? I(this, De, sb).call(this) : t && (I(this, De, ho).call(this, t), r = !this.parent && ((i = this.div) == null ? void 0 : i.classList.contains("selectedEditor"))), super.setParent(t), this.show(this._isVisible), r && this.select();
|
|
35269
35269
|
}
|
|
35270
35270
|
rotate(t) {
|
|
35271
35271
|
var s, a, o;
|
|
@@ -35381,7 +35381,7 @@ const ot = class ot extends Xt {
|
|
|
35381
35381
|
signal: p
|
|
35382
35382
|
}), i.addEventListener("pointermove", I(this, oi, QS).bind(this, t), {
|
|
35383
35383
|
signal: p
|
|
35384
|
-
}), this._freeHighlight = new
|
|
35384
|
+
}), this._freeHighlight = new eb({
|
|
35385
35385
|
x: s,
|
|
35386
35386
|
y: a
|
|
35387
35387
|
}, [o, l, c, u], t.scale, this._defaultThickness / 2, r, 1e-3), {
|
|
@@ -35486,13 +35486,13 @@ const ot = class ot extends Xt {
|
|
|
35486
35486
|
width: (o[E + 2] - o[E]) / h,
|
|
35487
35487
|
height: (o[E + 1] - o[E + 5]) / p
|
|
35488
35488
|
});
|
|
35489
|
-
I(m = u, De,
|
|
35489
|
+
I(m = u, De, ib).call(m), I(x = u, De, ho).call(x), u.rotate(u.rotation);
|
|
35490
35490
|
} else if (l) {
|
|
35491
35491
|
v(u, Ln, !0);
|
|
35492
35492
|
const y = l[0], E = {
|
|
35493
35493
|
x: y[0] - f,
|
|
35494
35494
|
y: p - (y[1] - g)
|
|
35495
|
-
}, C = new
|
|
35495
|
+
}, C = new eb(E, [0, 0, h, p], 1, d(u, ni) / 2, !0, 1e-3);
|
|
35496
35496
|
for (let H = 0, X = y.length; H < X; H += 2)
|
|
35497
35497
|
E.x = y[H] - f, E.y = p - (y[H + 1] - g), C.add(E);
|
|
35498
35498
|
const {
|
|
@@ -35549,10 +35549,10 @@ const ot = class ot extends Xt {
|
|
|
35549
35549
|
return !1;
|
|
35550
35550
|
}
|
|
35551
35551
|
};
|
|
35552
|
-
Yc = new WeakMap(), $h = new WeakMap(), Qs = new WeakMap(), cl = new WeakMap(), Xc = new WeakMap(), vr = new WeakMap(), ep = new WeakMap(), tp = new WeakMap(), ul = new WeakMap(), ti = new WeakMap(), Hr = new WeakMap(), Ln = new WeakMap(), Jc = new WeakMap(), Vs = new WeakMap(), Un = new WeakMap(), Kc = new WeakMap(), ni = new WeakMap(), np = new WeakMap(), De = new WeakSet(),
|
|
35553
|
-
const t = new
|
|
35552
|
+
Yc = new WeakMap(), $h = new WeakMap(), Qs = new WeakMap(), cl = new WeakMap(), Xc = new WeakMap(), vr = new WeakMap(), ep = new WeakMap(), tp = new WeakMap(), ul = new WeakMap(), ti = new WeakMap(), Hr = new WeakMap(), Ln = new WeakMap(), Jc = new WeakMap(), Vs = new WeakMap(), Un = new WeakMap(), Kc = new WeakMap(), ni = new WeakMap(), np = new WeakMap(), De = new WeakSet(), ib = function() {
|
|
35553
|
+
const t = new _A(d(this, Qs), 1e-3);
|
|
35554
35554
|
v(this, ti, t.getOutlines()), [this.x, this.y, this.width, this.height] = d(this, ti).box;
|
|
35555
|
-
const r = new
|
|
35555
|
+
const r = new _A(d(this, Qs), 25e-4, 1e-3, this._uiManager.direction === "ltr");
|
|
35556
35556
|
v(this, vr, r.getOutlines());
|
|
35557
35557
|
const {
|
|
35558
35558
|
lastPoint: i
|
|
@@ -35663,7 +35663,7 @@ Yc = new WeakMap(), $h = new WeakMap(), Qs = new WeakMap(), cl = new WeakMap(),
|
|
|
35663
35663
|
}), this.fixAndSetPosition();
|
|
35664
35664
|
const [r, i] = this.parentDimensions;
|
|
35665
35665
|
this.setDims(this.width * r, this.height * i);
|
|
35666
|
-
},
|
|
35666
|
+
}, sb = function() {
|
|
35667
35667
|
d(this, Hr) === null || !this.parent || (this.parent.drawLayer.remove(d(this, Hr)), v(this, Hr, null), this.parent.drawLayer.remove(d(this, Un)), v(this, Un, null));
|
|
35668
35668
|
}, ho = function(t = this.parent) {
|
|
35669
35669
|
d(this, Hr) === null && ({
|
|
@@ -35782,7 +35782,7 @@ class q6 {
|
|
|
35782
35782
|
}
|
|
35783
35783
|
}
|
|
35784
35784
|
dl = new WeakMap();
|
|
35785
|
-
var Br, _c, Cn, hl, pl, Fa, Da, Ha, fl, st,
|
|
35785
|
+
var Br, _c, Cn, hl, pl, Fa, Da, Ha, fl, st, ob, lb, cb, ad, ZS, jf, od, Kl;
|
|
35786
35786
|
const ge = class ge extends Xt {
|
|
35787
35787
|
constructor(t) {
|
|
35788
35788
|
super(t);
|
|
@@ -35790,7 +35790,7 @@ const ge = class ge extends Xt {
|
|
|
35790
35790
|
S(this, Br, null);
|
|
35791
35791
|
S(this, _c);
|
|
35792
35792
|
Se(this, "_drawId", null);
|
|
35793
|
-
v(this, _c, t.mustBeCommitted || !1), t.drawOutlines && (I(this, st,
|
|
35793
|
+
v(this, _c, t.mustBeCommitted || !1), t.drawOutlines && (I(this, st, ob).call(this, t), I(this, st, ad).call(this));
|
|
35794
35794
|
}
|
|
35795
35795
|
static _mergeSVGProperties(t, r) {
|
|
35796
35796
|
const i = new Set(Object.keys(t));
|
|
@@ -35908,7 +35908,7 @@ const ge = class ge extends Xt {
|
|
|
35908
35908
|
this.annotationElementId || this.parent.addUndoableEditor(this), this._isDraggable = !0, d(this, _c) && (v(this, _c, !1), this.commit(), this.parent.setSelected(this), t && this.isOnScreen && this.div.focus());
|
|
35909
35909
|
}
|
|
35910
35910
|
remove() {
|
|
35911
|
-
I(this, st,
|
|
35911
|
+
I(this, st, cb).call(this), super.remove();
|
|
35912
35912
|
}
|
|
35913
35913
|
rebuild() {
|
|
35914
35914
|
this.parent && (super.rebuild(), this.div !== null && (I(this, st, ad).call(this), I(this, st, od).call(this, d(this, Br).box), this.isAttachedToDOM || this.parent.add(this)));
|
|
@@ -35916,7 +35916,7 @@ const ge = class ge extends Xt {
|
|
|
35916
35916
|
setParent(t) {
|
|
35917
35917
|
var i;
|
|
35918
35918
|
let r = !1;
|
|
35919
|
-
this.parent && !t ? (this._uiManager.removeShouldRescale(this), I(this, st,
|
|
35919
|
+
this.parent && !t ? (this._uiManager.removeShouldRescale(this), I(this, st, cb).call(this)) : t && (this._uiManager.addShouldRescale(this), I(this, st, ad).call(this, t), r = !this.parent && ((i = this.div) == null ? void 0 : i.classList.contains("selectedEditor"))), super.setParent(t), r && this.select();
|
|
35920
35920
|
}
|
|
35921
35921
|
rotate() {
|
|
35922
35922
|
this.parent && this.parent.drawLayer.updateProperties(this._drawId, ge._mergeSVGProperties({
|
|
@@ -36068,7 +36068,7 @@ const ge = class ge extends Xt {
|
|
|
36068
36068
|
pageY: l
|
|
36069
36069
|
}
|
|
36070
36070
|
} = r.viewport, c = this.deserializeDraw(o, l, s, a, this._INNER_MARGIN, t), u = await super.deserialize(t, r, i);
|
|
36071
|
-
return u.createDrawingOptions(t), I(h = u, st,
|
|
36071
|
+
return u.createDrawingOptions(t), I(h = u, st, ob).call(h, {
|
|
36072
36072
|
drawOutlines: c
|
|
36073
36073
|
}), I(p = u, st, ad).call(p), u.onScaleChanging(), u.rotate(), u;
|
|
36074
36074
|
}
|
|
@@ -36085,18 +36085,18 @@ const ge = class ge extends Xt {
|
|
|
36085
36085
|
return !1;
|
|
36086
36086
|
}
|
|
36087
36087
|
};
|
|
36088
|
-
Br = new WeakMap(), _c = new WeakMap(), Cn = new WeakMap(), hl = new WeakMap(), pl = new WeakMap(), Fa = new WeakMap(), Da = new WeakMap(), Ha = new WeakMap(), fl = new WeakMap(), st = new WeakSet(),
|
|
36088
|
+
Br = new WeakMap(), _c = new WeakMap(), Cn = new WeakMap(), hl = new WeakMap(), pl = new WeakMap(), Fa = new WeakMap(), Da = new WeakMap(), Ha = new WeakMap(), fl = new WeakMap(), st = new WeakSet(), ob = function({
|
|
36089
36089
|
drawOutlines: t,
|
|
36090
36090
|
drawId: r,
|
|
36091
36091
|
drawingOptions: i
|
|
36092
36092
|
}) {
|
|
36093
|
-
v(this, Br, t), this._drawingOptions || (this._drawingOptions = i), r >= 0 ? (this._drawId = r, this.parent.drawLayer.finalizeDraw(r, t.defaultProperties)) : this._drawId = I(this, st,
|
|
36094
|
-
},
|
|
36093
|
+
v(this, Br, t), this._drawingOptions || (this._drawingOptions = i), r >= 0 ? (this._drawId = r, this.parent.drawLayer.finalizeDraw(r, t.defaultProperties)) : this._drawId = I(this, st, lb).call(this, t, this.parent), I(this, st, od).call(this, t.box);
|
|
36094
|
+
}, lb = function(t, r) {
|
|
36095
36095
|
const {
|
|
36096
36096
|
id: i
|
|
36097
36097
|
} = r.drawLayer.draw(ge._mergeSVGProperties(this._drawingOptions.toSVGProperties(), t.defaultSVGProperties), !1, !1);
|
|
36098
36098
|
return i;
|
|
36099
|
-
},
|
|
36099
|
+
}, cb = function() {
|
|
36100
36100
|
this._drawId === null || !this.parent || (this.parent.drawLayer.remove(this._drawId), this._drawId = null, this._drawingOptions.reset());
|
|
36101
36101
|
}, ad = function(t = this.parent) {
|
|
36102
36102
|
if (!(this._drawId !== null && this.parent === t)) {
|
|
@@ -36104,7 +36104,7 @@ Br = new WeakMap(), _c = new WeakMap(), Cn = new WeakMap(), hl = new WeakMap(),
|
|
|
36104
36104
|
this.parent.drawLayer.updateParent(this._drawId, t.drawLayer);
|
|
36105
36105
|
return;
|
|
36106
36106
|
}
|
|
36107
|
-
this._drawingOptions.updateAll(), this._drawId = I(this, st,
|
|
36107
|
+
this._drawingOptions.updateAll(), this._drawId = I(this, st, lb).call(this, d(this, Br), t);
|
|
36108
36108
|
}
|
|
36109
36109
|
}, ZS = function([t, r, i, s]) {
|
|
36110
36110
|
const {
|
|
@@ -36192,7 +36192,7 @@ Br = new WeakMap(), _c = new WeakMap(), Cn = new WeakMap(), hl = new WeakMap(),
|
|
|
36192
36192
|
return [t, r, i, s];
|
|
36193
36193
|
}
|
|
36194
36194
|
}, Se(ge, "_currentDrawId", -1), Se(ge, "_currentParent", null), S(ge, Cn, null), S(ge, hl, null), S(ge, pl, null), S(ge, Fa, NaN), S(ge, Da, null), S(ge, Ha, null), S(ge, fl, NaN), Se(ge, "_INNER_MARGIN", 3);
|
|
36195
|
-
let
|
|
36195
|
+
let ab = ge;
|
|
36196
36196
|
var rs, Sn, In, gl, $c, tr, Mn, ri, ml, Al, bl, eu, Of;
|
|
36197
36197
|
class Z6 {
|
|
36198
36198
|
constructor(e, t, r, i, s, a) {
|
|
@@ -36666,9 +36666,9 @@ const I0 = class I0 extends q6 {
|
|
|
36666
36666
|
}
|
|
36667
36667
|
};
|
|
36668
36668
|
iu = new WeakMap();
|
|
36669
|
-
let
|
|
36669
|
+
let ub = I0;
|
|
36670
36670
|
var xg, KS;
|
|
36671
|
-
const ec = class ec extends
|
|
36671
|
+
const ec = class ec extends ab {
|
|
36672
36672
|
constructor(t) {
|
|
36673
36673
|
super({
|
|
36674
36674
|
...t,
|
|
@@ -36678,7 +36678,7 @@ const ec = class ec extends sb {
|
|
|
36678
36678
|
this._willKeepAspectRatio = !0;
|
|
36679
36679
|
}
|
|
36680
36680
|
static initialize(t, r) {
|
|
36681
|
-
Xt.initialize(t, r), this._defaultDrawingOptions = new
|
|
36681
|
+
Xt.initialize(t, r), this._defaultDrawingOptions = new ub(r.viewParameters);
|
|
36682
36682
|
}
|
|
36683
36683
|
static getDefaultDrawingOptions(t) {
|
|
36684
36684
|
const r = this._defaultDrawingOptions.clone();
|
|
@@ -36816,8 +36816,8 @@ xg = new WeakSet(), KS = function(t) {
|
|
|
36816
36816
|
} = this._initialData;
|
|
36817
36817
|
return this._hasBeenMoved || this._hasBeenResized || t.color.some((o, l) => o !== r[l]) || t.thickness !== i || t.opacity !== s || t.pageIndex !== a;
|
|
36818
36818
|
}, Se(ec, "_type", "ink"), Se(ec, "_editorType", Ue.INK), Se(ec, "_defaultDrawingOptions", null);
|
|
36819
|
-
let
|
|
36820
|
-
var Yt, Pn, Ba, qs, Ua, su, as, os, Wr, au, at, ld, cd, Lf,
|
|
36819
|
+
let db = ec;
|
|
36820
|
+
var Yt, Pn, Ba, qs, Ua, su, as, os, Wr, au, at, ld, cd, Lf, pb, Mf, fb, Pf, _S;
|
|
36821
36821
|
const md = class md extends Xt {
|
|
36822
36822
|
constructor(t) {
|
|
36823
36823
|
super({
|
|
@@ -36932,7 +36932,7 @@ const md = class md extends Xt {
|
|
|
36932
36932
|
if (this.div)
|
|
36933
36933
|
return this.div;
|
|
36934
36934
|
let t, r;
|
|
36935
|
-
if (this.width && (t = this.x, r = this.y), super.render(), this.div.hidden = !0, this.div.setAttribute("role", "figure"), this.addAltTextButton(), d(this, Yt) ? I(this, at,
|
|
36935
|
+
if (this.width && (t = this.x, r = this.y), super.render(), this.div.hidden = !0, this.div.setAttribute("role", "figure"), this.addAltTextButton(), d(this, Yt) ? I(this, at, pb).call(this) : I(this, at, Lf).call(this), this.width && !this.annotationElementId) {
|
|
36936
36936
|
const [i, s] = this.parentDimensions;
|
|
36937
36937
|
this.setAt(t * i, r * s, this.width * i, this.height * s);
|
|
36938
36938
|
}
|
|
@@ -36945,7 +36945,7 @@ const md = class md extends Xt {
|
|
|
36945
36945
|
if (!this.parent)
|
|
36946
36946
|
return;
|
|
36947
36947
|
d(this, os) !== null && clearTimeout(d(this, os)), v(this, os, setTimeout(() => {
|
|
36948
|
-
v(this, os, null), I(this, at,
|
|
36948
|
+
v(this, os, null), I(this, at, fb).call(this);
|
|
36949
36949
|
}, 200));
|
|
36950
36950
|
}
|
|
36951
36951
|
copyCanvas(t, r, i = !1) {
|
|
@@ -36954,7 +36954,7 @@ const md = class md extends Xt {
|
|
|
36954
36954
|
const {
|
|
36955
36955
|
width: s,
|
|
36956
36956
|
height: a
|
|
36957
|
-
} = d(this, Yt), o = new
|
|
36957
|
+
} = d(this, Yt), o = new uA();
|
|
36958
36958
|
let l = d(this, Yt), c = s, u = a, h = null;
|
|
36959
36959
|
if (r) {
|
|
36960
36960
|
if (s > r || a > r) {
|
|
@@ -37105,7 +37105,7 @@ Yt = new WeakMap(), Pn = new WeakMap(), Ba = new WeakMap(), qs = new WeakMap(),
|
|
|
37105
37105
|
this.remove();
|
|
37106
37106
|
return;
|
|
37107
37107
|
}
|
|
37108
|
-
v(this, Yt, t.bitmap), r || (v(this, Pn, t.id), v(this, Wr, t.isSvg)), t.file && v(this, su, t.file.name), I(this, at,
|
|
37108
|
+
v(this, Yt, t.bitmap), r || (v(this, Pn, t.id), v(this, Wr, t.isSvg)), t.file && v(this, su, t.file.name), I(this, at, pb).call(this);
|
|
37109
37109
|
}, cd = function() {
|
|
37110
37110
|
if (v(this, Ba, null), this._uiManager.enableWaiting(!1), !!d(this, as)) {
|
|
37111
37111
|
if (this._uiManager.useNewAltTextWhenAddingImage && this._uiManager.useNewAltTextFlow && d(this, Yt)) {
|
|
@@ -37168,7 +37168,7 @@ Yt = new WeakMap(), Pn = new WeakMap(), Ba = new WeakMap(), qs = new WeakMap(),
|
|
|
37168
37168
|
signal: r
|
|
37169
37169
|
});
|
|
37170
37170
|
}).finally(() => I(this, at, cd).call(this))), t.click();
|
|
37171
|
-
},
|
|
37171
|
+
}, pb = function() {
|
|
37172
37172
|
var h;
|
|
37173
37173
|
const {
|
|
37174
37174
|
div: t
|
|
@@ -37187,7 +37187,7 @@ Yt = new WeakMap(), Pn = new WeakMap(), Ba = new WeakMap(), qs = new WeakMap(),
|
|
|
37187
37187
|
const [l, c] = this.parentDimensions;
|
|
37188
37188
|
this.setDims(r * l / s, i * c / a), this._uiManager.enableWaiting(!1);
|
|
37189
37189
|
const u = v(this, as, document.createElement("canvas"));
|
|
37190
|
-
u.setAttribute("role", "img"), this.addContainer(u), this.width = r / s, this.height = i / a, (h = this._initialOptions) != null && h.isCentered ? this.center() : this.fixAndSetPosition(), this._initialOptions = null, (!this._uiManager.useNewAltTextWhenAddingImage || !this._uiManager.useNewAltTextFlow || this.annotationElementId) && (t.hidden = !1), I(this, at,
|
|
37190
|
+
u.setAttribute("role", "img"), this.addContainer(u), this.width = r / s, this.height = i / a, (h = this._initialOptions) != null && h.isCentered ? this.center() : this.fixAndSetPosition(), this._initialOptions = null, (!this._uiManager.useNewAltTextWhenAddingImage || !this._uiManager.useNewAltTextFlow || this.annotationElementId) && (t.hidden = !1), I(this, at, fb).call(this), d(this, au) || (this.parent.addUndoableEditor(this), v(this, au, !0)), this._reportTelemetry({
|
|
37191
37191
|
action: "inserted_image"
|
|
37192
37192
|
}), d(this, su) && u.setAttribute("aria-label", d(this, su));
|
|
37193
37193
|
}, Mf = function(t, r) {
|
|
@@ -37203,11 +37203,11 @@ Yt = new WeakMap(), Pn = new WeakMap(), Ba = new WeakMap(), qs = new WeakMap(),
|
|
|
37203
37203
|
h.getContext("2d").drawImage(l, 0, 0, c, u, 0, 0, a, o), l = h.transferToImageBitmap();
|
|
37204
37204
|
}
|
|
37205
37205
|
return l;
|
|
37206
|
-
},
|
|
37206
|
+
}, fb = function() {
|
|
37207
37207
|
const [t, r] = this.parentDimensions, {
|
|
37208
37208
|
width: i,
|
|
37209
37209
|
height: s
|
|
37210
|
-
} = this, a = new
|
|
37210
|
+
} = this, a = new uA(), o = Math.ceil(i * t * a.sx), l = Math.ceil(s * r * a.sy), c = d(this, as);
|
|
37211
37211
|
if (!c || c.width === o && c.height === l)
|
|
37212
37212
|
return;
|
|
37213
37213
|
c.width = o, c.height = l;
|
|
@@ -37244,8 +37244,8 @@ Yt = new WeakMap(), Pn = new WeakMap(), Ba = new WeakMap(), qs = new WeakMap(),
|
|
|
37244
37244
|
isSameAltText: a
|
|
37245
37245
|
};
|
|
37246
37246
|
}, Se(md, "_type", "stamp"), Se(md, "_editorType", Ue.STAMP);
|
|
37247
|
-
let
|
|
37248
|
-
var xl, ou, ls, Wa, Zs, ii, Ga, lu, yl, Ni, Ys, Wn, Xs, Ce, Qa, Wt, $S, Wi,
|
|
37247
|
+
let hb = md;
|
|
37248
|
+
var xl, ou, ls, Wa, Zs, ii, Ga, lu, yl, Ni, Ys, Wn, Xs, Ce, Qa, Wt, $S, Wi, mb, Ab, Rf;
|
|
37249
37249
|
const mi = class mi {
|
|
37250
37250
|
constructor({
|
|
37251
37251
|
uiManager: e,
|
|
@@ -37502,7 +37502,7 @@ const mi = class mi {
|
|
|
37502
37502
|
const {
|
|
37503
37503
|
offsetX: r,
|
|
37504
37504
|
offsetY: i
|
|
37505
|
-
} = I(this, Wt,
|
|
37505
|
+
} = I(this, Wt, Ab).call(this), s = this.getNextId(), a = I(this, Wt, mb).call(this, {
|
|
37506
37506
|
parent: this,
|
|
37507
37507
|
id: s,
|
|
37508
37508
|
x: r,
|
|
@@ -37518,7 +37518,7 @@ const mi = class mi {
|
|
|
37518
37518
|
return await ((t = d(mi, Qa).get(e.annotationType ?? e.annotationEditorType)) == null ? void 0 : t.deserialize(e, this, d(this, Ce))) || null;
|
|
37519
37519
|
}
|
|
37520
37520
|
createAndAddNewEditor(e, t, r = {}) {
|
|
37521
|
-
const i = this.getNextId(), s = I(this, Wt,
|
|
37521
|
+
const i = this.getNextId(), s = I(this, Wt, mb).call(this, {
|
|
37522
37522
|
parent: this,
|
|
37523
37523
|
id: i,
|
|
37524
37524
|
x: e.offsetX,
|
|
@@ -37530,7 +37530,7 @@ const mi = class mi {
|
|
|
37530
37530
|
return s && this.add(s), s;
|
|
37531
37531
|
}
|
|
37532
37532
|
addNewEditor() {
|
|
37533
|
-
this.createAndAddNewEditor(I(this, Wt,
|
|
37533
|
+
this.createAndAddNewEditor(I(this, Wt, Ab).call(this), !0);
|
|
37534
37534
|
}
|
|
37535
37535
|
setSelected(e) {
|
|
37536
37536
|
d(this, Ce).setSelected(e);
|
|
@@ -37678,10 +37678,10 @@ xl = new WeakMap(), ou = new WeakMap(), ls = new WeakMap(), Wa = new WeakMap(),
|
|
|
37678
37678
|
}
|
|
37679
37679
|
}, Wi = function() {
|
|
37680
37680
|
return d(mi, Qa).get(d(this, Ce).getMode());
|
|
37681
|
-
},
|
|
37681
|
+
}, mb = function(e) {
|
|
37682
37682
|
const t = d(this, Wt, Wi);
|
|
37683
37683
|
return t ? new t.prototype.constructor(e) : null;
|
|
37684
|
-
},
|
|
37684
|
+
}, Ab = function() {
|
|
37685
37685
|
const {
|
|
37686
37686
|
x: e,
|
|
37687
37687
|
y: t,
|
|
@@ -37695,9 +37695,9 @@ xl = new WeakMap(), ou = new WeakMap(), ls = new WeakMap(), Wa = new WeakMap(),
|
|
|
37695
37695
|
}, Rf = function() {
|
|
37696
37696
|
for (const e of d(this, ii).values())
|
|
37697
37697
|
e.isEmpty() && e.remove();
|
|
37698
|
-
}, Se(mi, "_initialized", !1), S(mi, Qa, new Map([
|
|
37699
|
-
let
|
|
37700
|
-
var Ti, sp, rr, wl, yg, e2, fs,
|
|
37698
|
+
}, Se(mi, "_initialized", !1), S(mi, Qa, new Map([JA, db, hb, eg].map((e) => [e._editorType, e])));
|
|
37699
|
+
let gb = mi;
|
|
37700
|
+
var Ti, sp, rr, wl, yg, e2, fs, xb, t2, yb;
|
|
37701
37701
|
const Dn = class Dn {
|
|
37702
37702
|
constructor({
|
|
37703
37703
|
pageIndex: e
|
|
@@ -37725,7 +37725,7 @@ const Dn = class Dn {
|
|
|
37725
37725
|
return Ze(this, "_svgFactory", new b0());
|
|
37726
37726
|
}
|
|
37727
37727
|
draw(e, t = !1, r = !1) {
|
|
37728
|
-
const i = Jn(this, sp)._++, s = I(this, fs,
|
|
37728
|
+
const i = Jn(this, sp)._++, s = I(this, fs, xb).call(this), a = Dn._svgFactory.createElement("defs");
|
|
37729
37729
|
s.append(a);
|
|
37730
37730
|
const o = Dn._svgFactory.createElement("path");
|
|
37731
37731
|
a.append(o);
|
|
@@ -37738,7 +37738,7 @@ const Dn = class Dn {
|
|
|
37738
37738
|
};
|
|
37739
37739
|
}
|
|
37740
37740
|
drawOutline(e, t) {
|
|
37741
|
-
const r = Jn(this, sp)._++, i = I(this, fs,
|
|
37741
|
+
const r = Jn(this, sp)._++, i = I(this, fs, xb).call(this), s = Dn._svgFactory.createElement("defs");
|
|
37742
37742
|
i.append(s);
|
|
37743
37743
|
const a = Dn._svgFactory.createElement("path");
|
|
37744
37744
|
s.append(a);
|
|
@@ -37772,7 +37772,7 @@ const Dn = class Dn {
|
|
|
37772
37772
|
path: a
|
|
37773
37773
|
} = t, o = typeof e == "number" ? d(this, rr).get(e) : e;
|
|
37774
37774
|
if (o) {
|
|
37775
|
-
if (r && I(this, fs,
|
|
37775
|
+
if (r && I(this, fs, yb).call(this, o, r), i && I(l = Dn, yg, e2).call(l, o, i), s) {
|
|
37776
37776
|
const {
|
|
37777
37777
|
classList: c
|
|
37778
37778
|
} = o;
|
|
@@ -37781,7 +37781,7 @@ const Dn = class Dn {
|
|
|
37781
37781
|
}
|
|
37782
37782
|
if (a) {
|
|
37783
37783
|
const u = o.firstChild.firstChild;
|
|
37784
|
-
I(this, fs,
|
|
37784
|
+
I(this, fs, yb).call(this, u, a);
|
|
37785
37785
|
}
|
|
37786
37786
|
}
|
|
37787
37787
|
}
|
|
@@ -37806,7 +37806,7 @@ Ti = new WeakMap(), sp = new WeakMap(), rr = new WeakMap(), wl = new WeakMap(),
|
|
|
37806
37806
|
style: a
|
|
37807
37807
|
} = e;
|
|
37808
37808
|
a.top = `${100 * r}%`, a.left = `${100 * t}%`, a.width = `${100 * i}%`, a.height = `${100 * s}%`;
|
|
37809
|
-
}, fs = new WeakSet(),
|
|
37809
|
+
}, fs = new WeakSet(), xb = function() {
|
|
37810
37810
|
const e = Dn._svgFactory.create(1, 1, !0);
|
|
37811
37811
|
return d(this, Ti).append(e), e.setAttribute("aria-hidden", !0), e;
|
|
37812
37812
|
}, t2 = function(e, t) {
|
|
@@ -37816,13 +37816,13 @@ Ti = new WeakMap(), sp = new WeakMap(), rr = new WeakMap(), wl = new WeakMap(),
|
|
|
37816
37816
|
r.setAttribute("id", i), r.setAttribute("clipPathUnits", "objectBoundingBox");
|
|
37817
37817
|
const s = Dn._svgFactory.createElement("use");
|
|
37818
37818
|
return r.append(s), s.setAttribute("href", `#${t}`), s.classList.add("clip"), i;
|
|
37819
|
-
},
|
|
37819
|
+
}, yb = function(e, t) {
|
|
37820
37820
|
for (const [r, i] of Object.entries(t))
|
|
37821
37821
|
i === null ? e.removeAttribute(r) : e.setAttribute(r, i);
|
|
37822
37822
|
}, S(Dn, yg);
|
|
37823
|
-
let
|
|
37823
|
+
let bb = Dn;
|
|
37824
37824
|
globalThis.pdfjsTestingUtils = {
|
|
37825
|
-
HighlightOutliner:
|
|
37825
|
+
HighlightOutliner: _A
|
|
37826
37826
|
};
|
|
37827
37827
|
Pe.AbortException;
|
|
37828
37828
|
Pe.AnnotationEditorLayer;
|
|
@@ -39178,13 +39178,12 @@ function cH({
|
|
|
39178
39178
|
}
|
|
39179
39179
|
) });
|
|
39180
39180
|
}
|
|
39181
|
-
const uH = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20895.08%20234.35'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20url(%23linear-gradient);%20}%20.cls-2%20{%20fill:%20%230e0044;%20}%20%3c/style%3e%3clinearGradient%20id='linear-gradient'%20x1='.94'%20y1='175.77'%20x2='203.9'%20y2='58.59'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%230cc1a3'/%3e%3cstop%20offset='.29'%20stop-color='%230bbea3'/%3e%3cstop%20offset='.46'%20stop-color='%230bb6a4'/%3e%3cstop%20offset='.6'%20stop-color='%230aa7a7'/%3e%3cstop%20offset='.72'%20stop-color='%230993aa'/%3e%3cstop%20offset='.84'%20stop-color='%230779ae'/%3e%3cstop%20offset='.94'%20stop-color='%230559b3'/%3e%3cstop%20offset='1'%20stop-color='%230445b7'/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%3e%3cpath%20class='cls-1'%20d='M93.06,81.64v15.5l-50.83-26.84c-3.44-1.82-7.69-.5-9.51,2.94-1.81,3.44-.5,7.69,2.94,9.51l49.37,26.07-36.58,19.31c-3.44,1.81-4.75,6.07-2.94,9.51,1.26,2.39,3.7,3.75,6.23,3.75,1.11,0,2.23-.26,3.28-.82l38.04-20.08v59.14c0,3.89,3.15,7.04,7.04,7.04s7.04-3.15,7.04-7.04v-59.14l38.04,20.08c1.05.55,2.17.82,3.28.82,2.53,0,4.97-1.36,6.23-3.75,1.81-3.44.5-7.69-2.94-9.51l-36.58-19.31,49.37-26.07c3.44-1.81,4.75-6.07,2.94-9.51-1.81-3.44-6.07-4.75-9.51-2.94l-50.83,26.84v-15.5c0-3.89-3.15-7.04-7.04-7.04s-7.04,3.15-7.04,7.04ZM201.33,56.01L105.94.94c-2.18-1.26-4.86-1.26-7.04,0L3.52,56.01c-2.18,1.26-3.52,3.58-3.52,6.09v110.14c0,2.51,1.34,4.84,3.52,6.09l95.38,55.07c1.09.63,2.3.94,3.52.94s2.43-.31,3.52-.94l95.39-55.07c2.18-1.26,3.52-3.58,3.52-6.09V62.11c0-2.51-1.34-4.84-3.52-6.09ZM190.77,168.19l-88.35,51.01L14.07,168.19v-102.02L102.42,15.16l88.35,51.01v102.02Z'/%3e%3cg%3e%3cpath%20class='cls-2'%20d='M287.63,163.98h-34.27v-97.18h34.4c13.71,0,25.02,4.34,33.92,13.02,8.91,8.68,13.37,20.61,13.37,35.78s-4.48,26.91-13.43,35.5c-8.96,8.59-20.29,12.88-33.99,12.88ZM269.81,148.9h17.27c8.96,0,16.33-2.86,22.14-8.57,5.8-5.71,8.7-13.96,8.7-24.74s-2.88-19.21-8.64-25.01c-5.76-5.8-13.11-8.71-22.07-8.71h-17.41v67.03Z'/%3e%3cpath%20class='cls-2'%20d='M381.52,96.82v16.17c-1.83-.28-3.56-.41-5.21-.41-11.97,0-17.96,6.54-17.96,19.6v31.8h-15.9v-66.75h15.49v10.69c1.55-3.56,4.07-6.37,7.54-8.43,3.47-2.06,7.4-3.08,11.79-3.08,1.46,0,2.88.14,4.25.41Z'/%3e%3cpath%20class='cls-2'%20d='M385.92,145.89c0-5.67,1.85-10.21,5.55-13.64,3.7-3.43,8.57-5.6,14.6-6.51l17.13-2.6c3.29-.46,4.93-2.06,4.93-4.8,0-3.02-1.05-5.46-3.15-7.33-2.1-1.87-5.26-2.81-9.46-2.81s-7.22,1.12-9.6,3.36c-2.38,2.24-3.75,5.14-4.11,8.7l-14.53-3.29c.64-6.03,3.52-11.17,8.63-15.42,5.12-4.25,11.6-6.37,19.46-6.37,9.68,0,16.84,2.33,21.45,6.99,4.61,4.66,6.92,10.65,6.92,17.96v33.17c0,4.39.27,7.95.82,10.69h-14.8c-.46-1.37-.69-4.2-.69-8.5-4.38,7.04-11.24,10.55-20.56,10.55-6.76,0-12.22-1.99-16.38-5.96-4.16-3.97-6.24-8.7-6.24-14.19ZM411.56,153.56c4.93,0,8.93-1.35,11.99-4.04,3.06-2.69,4.59-7.1,4.59-13.23v-3.02l-17.41,2.61c-5.94,1.01-8.91,4.02-8.91,9.04,0,2.38.87,4.41,2.6,6.1,1.74,1.69,4.11,2.54,7.13,2.54Z'/%3e%3cpath%20class='cls-2'%20d='M451.99,167.68l14.67-3.84c.55,4.2,2.35,7.65,5.41,10.35,3.06,2.69,6.83,4.04,11.31,4.04,12.61,0,18.92-6.67,18.92-20.01v-6.99c-1.55,2.83-4.02,5.16-7.4,6.99-3.38,1.83-7.36,2.74-11.92,2.74-8.96,0-16.33-3.06-22.14-9.18-5.8-6.12-8.7-13.89-8.7-23.3s2.88-16.72,8.63-23.03,13.16-9.46,22.21-9.46c9.78,0,16.36,3.24,19.74,9.73v-8.5h15.35v60.45c0,9.87-2.79,18.07-8.36,24.6-5.58,6.53-14.21,9.8-25.91,9.8-8.59,0-15.81-2.33-21.66-6.99-5.85-4.66-9.23-10.46-10.14-17.41ZM485.57,147.39c5.12,0,9.25-1.71,12.41-5.14,3.15-3.43,4.73-8.02,4.73-13.78s-1.6-10.21-4.8-13.64c-3.2-3.43-7.31-5.14-12.34-5.14s-9.3,1.71-12.54,5.14c-3.24,3.43-4.87,7.97-4.87,13.64s1.6,10.35,4.8,13.78c3.2,3.43,7.4,5.14,12.61,5.14Z'/%3e%3cpath%20class='cls-2'%20d='M560,95.17c10.05,0,18.34,3.34,24.88,10.01,6.53,6.67,9.8,15.12,9.8,25.36s-3.27,18.71-9.8,25.43c-6.53,6.72-14.83,10.07-24.88,10.07s-18.21-3.36-24.74-10.07c-6.53-6.72-9.8-15.19-9.8-25.43s3.27-18.69,9.8-25.36c6.53-6.67,14.78-10.01,24.74-10.01ZM546.77,146.09c3.61,3.79,8.02,5.69,13.23,5.69s9.62-1.87,13.23-5.62c3.61-3.75,5.41-8.96,5.41-15.62s-1.81-11.72-5.41-15.42c-3.61-3.7-8.02-5.55-13.23-5.55s-9.62,1.85-13.23,5.55c-3.61,3.7-5.42,8.84-5.42,15.42s1.8,11.77,5.42,15.56Z'/%3e%3cpath%20class='cls-2'%20d='M617.98,125.46v38.52h-15.9v-66.75h15.49v8.91c2.1-3.65,4.91-6.38,8.43-8.16,3.52-1.78,7.29-2.67,11.31-2.67,7.86,0,13.84,2.47,17.96,7.4,4.11,4.94,6.17,11.29,6.17,19.05v42.22h-15.9v-39.47c0-4.48-1.1-8.06-3.29-10.76s-5.67-4.04-10.42-4.04c-4.39,0-7.79,1.49-10.21,4.46-2.42,2.97-3.63,6.74-3.63,11.31Z'/%3e%3cpath%20class='cls-2'%20d='M706.39,78.31c-2.56,0-4.84.78-6.85,2.33-2.01,1.55-3.02,4.16-3.02,7.81v8.77h28.51v-32.48h15.76v99.24h-15.76v-52.91h-28.51v52.91h-16.04v-52.91h-11.65v-13.84h11.65v-9.18c0-7.4,2.15-13.25,6.44-17.54s9.91-6.44,16.86-6.44c3.75,0,6.53.46,8.36,1.37v13.57c-1.55-.46-3.47-.68-5.76-.68Z'/%3e%3cpath%20class='cls-2'%20d='M777.66,190.98h-17l16.04-34.95-28.51-58.8h17.96l19.19,42.22,17.96-42.22h16.86l-42.49,93.75Z'/%3e%3c/g%3e%3c/g%3e%3cpath%20class='cls-2'%20d='M844.66,104.61l-17-1.17c-.29-2.64-.44-4.44-.44-5.42,0-8.6,3.05-15.95,9.16-22.06,6.11-6.11,14.34-9.16,24.7-9.16s18.27,2.88,24.33,8.65c6.06,5.77,9.09,12.85,9.09,21.25,0,12.12-6.11,21.94-18.32,29.46l-18.47,11.43c-5.38,3.22-8.6,6.84-9.67,10.85h47.05v15.54h-68.74c.19-8.5,2-15.93,5.42-22.28,3.42-6.35,9.14-12.02,17.15-17l15.68-9.82c8.11-5.08,12.17-11.04,12.17-17.88,0-4.2-1.39-7.72-4.18-10.55-2.78-2.83-6.72-4.25-11.8-4.25-5.38,0-9.48,1.64-12.31,4.91-2.84,3.28-4.25,7.5-4.25,12.68l.44,4.84Z'/%3e%3c/svg%3e",
|
|
39182
|
-
{ value: "lite", label: "Lite Mode", disabled: !1, tooltip: "Upgrade to Core Mode for accurate AI legal consulting.", beta: !1 },
|
|
39181
|
+
const uH = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20895.08%20234.35'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20url(%23linear-gradient);%20}%20.cls-2%20{%20fill:%20%230e0044;%20}%20%3c/style%3e%3clinearGradient%20id='linear-gradient'%20x1='.94'%20y1='175.77'%20x2='203.9'%20y2='58.59'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%230cc1a3'/%3e%3cstop%20offset='.29'%20stop-color='%230bbea3'/%3e%3cstop%20offset='.46'%20stop-color='%230bb6a4'/%3e%3cstop%20offset='.6'%20stop-color='%230aa7a7'/%3e%3cstop%20offset='.72'%20stop-color='%230993aa'/%3e%3cstop%20offset='.84'%20stop-color='%230779ae'/%3e%3cstop%20offset='.94'%20stop-color='%230559b3'/%3e%3cstop%20offset='1'%20stop-color='%230445b7'/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%3e%3cpath%20class='cls-1'%20d='M93.06,81.64v15.5l-50.83-26.84c-3.44-1.82-7.69-.5-9.51,2.94-1.81,3.44-.5,7.69,2.94,9.51l49.37,26.07-36.58,19.31c-3.44,1.81-4.75,6.07-2.94,9.51,1.26,2.39,3.7,3.75,6.23,3.75,1.11,0,2.23-.26,3.28-.82l38.04-20.08v59.14c0,3.89,3.15,7.04,7.04,7.04s7.04-3.15,7.04-7.04v-59.14l38.04,20.08c1.05.55,2.17.82,3.28.82,2.53,0,4.97-1.36,6.23-3.75,1.81-3.44.5-7.69-2.94-9.51l-36.58-19.31,49.37-26.07c3.44-1.81,4.75-6.07,2.94-9.51-1.81-3.44-6.07-4.75-9.51-2.94l-50.83,26.84v-15.5c0-3.89-3.15-7.04-7.04-7.04s-7.04,3.15-7.04,7.04ZM201.33,56.01L105.94.94c-2.18-1.26-4.86-1.26-7.04,0L3.52,56.01c-2.18,1.26-3.52,3.58-3.52,6.09v110.14c0,2.51,1.34,4.84,3.52,6.09l95.38,55.07c1.09.63,2.3.94,3.52.94s2.43-.31,3.52-.94l95.39-55.07c2.18-1.26,3.52-3.58,3.52-6.09V62.11c0-2.51-1.34-4.84-3.52-6.09ZM190.77,168.19l-88.35,51.01L14.07,168.19v-102.02L102.42,15.16l88.35,51.01v102.02Z'/%3e%3cg%3e%3cpath%20class='cls-2'%20d='M287.63,163.98h-34.27v-97.18h34.4c13.71,0,25.02,4.34,33.92,13.02,8.91,8.68,13.37,20.61,13.37,35.78s-4.48,26.91-13.43,35.5c-8.96,8.59-20.29,12.88-33.99,12.88ZM269.81,148.9h17.27c8.96,0,16.33-2.86,22.14-8.57,5.8-5.71,8.7-13.96,8.7-24.74s-2.88-19.21-8.64-25.01c-5.76-5.8-13.11-8.71-22.07-8.71h-17.41v67.03Z'/%3e%3cpath%20class='cls-2'%20d='M381.52,96.82v16.17c-1.83-.28-3.56-.41-5.21-.41-11.97,0-17.96,6.54-17.96,19.6v31.8h-15.9v-66.75h15.49v10.69c1.55-3.56,4.07-6.37,7.54-8.43,3.47-2.06,7.4-3.08,11.79-3.08,1.46,0,2.88.14,4.25.41Z'/%3e%3cpath%20class='cls-2'%20d='M385.92,145.89c0-5.67,1.85-10.21,5.55-13.64,3.7-3.43,8.57-5.6,14.6-6.51l17.13-2.6c3.29-.46,4.93-2.06,4.93-4.8,0-3.02-1.05-5.46-3.15-7.33-2.1-1.87-5.26-2.81-9.46-2.81s-7.22,1.12-9.6,3.36c-2.38,2.24-3.75,5.14-4.11,8.7l-14.53-3.29c.64-6.03,3.52-11.17,8.63-15.42,5.12-4.25,11.6-6.37,19.46-6.37,9.68,0,16.84,2.33,21.45,6.99,4.61,4.66,6.92,10.65,6.92,17.96v33.17c0,4.39.27,7.95.82,10.69h-14.8c-.46-1.37-.69-4.2-.69-8.5-4.38,7.04-11.24,10.55-20.56,10.55-6.76,0-12.22-1.99-16.38-5.96-4.16-3.97-6.24-8.7-6.24-14.19ZM411.56,153.56c4.93,0,8.93-1.35,11.99-4.04,3.06-2.69,4.59-7.1,4.59-13.23v-3.02l-17.41,2.61c-5.94,1.01-8.91,4.02-8.91,9.04,0,2.38.87,4.41,2.6,6.1,1.74,1.69,4.11,2.54,7.13,2.54Z'/%3e%3cpath%20class='cls-2'%20d='M451.99,167.68l14.67-3.84c.55,4.2,2.35,7.65,5.41,10.35,3.06,2.69,6.83,4.04,11.31,4.04,12.61,0,18.92-6.67,18.92-20.01v-6.99c-1.55,2.83-4.02,5.16-7.4,6.99-3.38,1.83-7.36,2.74-11.92,2.74-8.96,0-16.33-3.06-22.14-9.18-5.8-6.12-8.7-13.89-8.7-23.3s2.88-16.72,8.63-23.03,13.16-9.46,22.21-9.46c9.78,0,16.36,3.24,19.74,9.73v-8.5h15.35v60.45c0,9.87-2.79,18.07-8.36,24.6-5.58,6.53-14.21,9.8-25.91,9.8-8.59,0-15.81-2.33-21.66-6.99-5.85-4.66-9.23-10.46-10.14-17.41ZM485.57,147.39c5.12,0,9.25-1.71,12.41-5.14,3.15-3.43,4.73-8.02,4.73-13.78s-1.6-10.21-4.8-13.64c-3.2-3.43-7.31-5.14-12.34-5.14s-9.3,1.71-12.54,5.14c-3.24,3.43-4.87,7.97-4.87,13.64s1.6,10.35,4.8,13.78c3.2,3.43,7.4,5.14,12.61,5.14Z'/%3e%3cpath%20class='cls-2'%20d='M560,95.17c10.05,0,18.34,3.34,24.88,10.01,6.53,6.67,9.8,15.12,9.8,25.36s-3.27,18.71-9.8,25.43c-6.53,6.72-14.83,10.07-24.88,10.07s-18.21-3.36-24.74-10.07c-6.53-6.72-9.8-15.19-9.8-25.43s3.27-18.69,9.8-25.36c6.53-6.67,14.78-10.01,24.74-10.01ZM546.77,146.09c3.61,3.79,8.02,5.69,13.23,5.69s9.62-1.87,13.23-5.62c3.61-3.75,5.41-8.96,5.41-15.62s-1.81-11.72-5.41-15.42c-3.61-3.7-8.02-5.55-13.23-5.55s-9.62,1.85-13.23,5.55c-3.61,3.7-5.42,8.84-5.42,15.42s1.8,11.77,5.42,15.56Z'/%3e%3cpath%20class='cls-2'%20d='M617.98,125.46v38.52h-15.9v-66.75h15.49v8.91c2.1-3.65,4.91-6.38,8.43-8.16,3.52-1.78,7.29-2.67,11.31-2.67,7.86,0,13.84,2.47,17.96,7.4,4.11,4.94,6.17,11.29,6.17,19.05v42.22h-15.9v-39.47c0-4.48-1.1-8.06-3.29-10.76s-5.67-4.04-10.42-4.04c-4.39,0-7.79,1.49-10.21,4.46-2.42,2.97-3.63,6.74-3.63,11.31Z'/%3e%3cpath%20class='cls-2'%20d='M706.39,78.31c-2.56,0-4.84.78-6.85,2.33-2.01,1.55-3.02,4.16-3.02,7.81v8.77h28.51v-32.48h15.76v99.24h-15.76v-52.91h-28.51v52.91h-16.04v-52.91h-11.65v-13.84h11.65v-9.18c0-7.4,2.15-13.25,6.44-17.54s9.91-6.44,16.86-6.44c3.75,0,6.53.46,8.36,1.37v13.57c-1.55-.46-3.47-.68-5.76-.68Z'/%3e%3cpath%20class='cls-2'%20d='M777.66,190.98h-17l16.04-34.95-28.51-58.8h17.96l19.19,42.22,17.96-42.22h16.86l-42.49,93.75Z'/%3e%3c/g%3e%3c/g%3e%3cpath%20class='cls-2'%20d='M844.66,104.61l-17-1.17c-.29-2.64-.44-4.44-.44-5.42,0-8.6,3.05-15.95,9.16-22.06,6.11-6.11,14.34-9.16,24.7-9.16s18.27,2.88,24.33,8.65c6.06,5.77,9.09,12.85,9.09,21.25,0,12.12-6.11,21.94-18.32,29.46l-18.47,11.43c-5.38,3.22-8.6,6.84-9.67,10.85h47.05v15.54h-68.74c.19-8.5,2-15.93,5.42-22.28,3.42-6.35,9.14-12.02,17.15-17l15.68-9.82c8.11-5.08,12.17-11.04,12.17-17.88,0-4.2-1.39-7.72-4.18-10.55-2.78-2.83-6.72-4.25-11.8-4.25-5.38,0-9.48,1.64-12.31,4.91-2.84,3.28-4.25,7.5-4.25,12.68l.44,4.84Z'/%3e%3c/svg%3e", Tm = {}, y0 = xe.createContext(null), xH = y0.Provider, Q1 = [
|
|
39183
39182
|
{ value: "research", label: "Advisor Mode", disabled: !1, tooltip: "Get a quick answer based on your question.", beta: !1 },
|
|
39184
39183
|
{ value: "discovery", label: "Genius Mode", disabled: !1, tooltip: "Fill in a few details so I can give a more accurate, tailored answer.", beta: !0 }
|
|
39185
39184
|
];
|
|
39186
39185
|
function V1({ value: n, onChange: e, id: t, userPackage: r }) {
|
|
39187
|
-
const [i, s] = we(!1), [a, o] = we({}), [l, c] = we(!1), u = Ee(null), h = Ee(null), p =
|
|
39186
|
+
const [i, s] = we(!1), [a, o] = we({}), [l, c] = we(!1), u = Ee(null), h = Ee(null), p = wb(y0);
|
|
39188
39187
|
ct(() => {
|
|
39189
39188
|
if (!i) return;
|
|
39190
39189
|
const x = (w) => {
|
|
@@ -39222,7 +39221,7 @@ function V1({ value: n, onChange: e, id: t, userPackage: r }) {
|
|
|
39222
39221
|
]
|
|
39223
39222
|
}
|
|
39224
39223
|
),
|
|
39225
|
-
i &&
|
|
39224
|
+
i && wg(
|
|
39226
39225
|
/* @__PURE__ */ b.jsx(
|
|
39227
39226
|
"div",
|
|
39228
39227
|
{
|
|
@@ -39281,8 +39280,8 @@ function dH({
|
|
|
39281
39280
|
onConversationChange: p
|
|
39282
39281
|
}) {
|
|
39283
39282
|
var M0, P0;
|
|
39284
|
-
const f = r || "https://fastify.tpsportal.co.nz/api/v1", g = i || "https://fastify.tpsportal.co.nz/api/v1/docs", m =
|
|
39285
|
-
|
|
39283
|
+
const f = r || "https://fastify.tpsportal.co.nz/api/v1", g = i || "https://fastify.tpsportal.co.nz/api/v1/docs", m = Tm == null ? void 0 : Tm.VITE_API_KEY;
|
|
39284
|
+
wb(y0);
|
|
39286
39285
|
const [x, A] = we(h ?? null), w = Ee(null);
|
|
39287
39286
|
ct(() => {
|
|
39288
39287
|
w.current = x;
|
|
@@ -39410,14 +39409,14 @@ function dH({
|
|
|
39410
39409
|
ct(() => {
|
|
39411
39410
|
ne.current && Eu();
|
|
39412
39411
|
}, [aa, Eu]);
|
|
39413
|
-
const
|
|
39412
|
+
const Wg = lt((P) => {
|
|
39414
39413
|
P.style.height = "auto";
|
|
39415
39414
|
const K = window.getComputedStyle(P), le = parseFloat(K.lineHeight || "20") || 20, se = parseFloat(K.paddingTop || "0") || 0, Ae = parseFloat(K.paddingBottom || "0") || 0, Ke = parseFloat(K.borderTopWidth || "0") || 0, $t = parseFloat(K.borderBottomWidth || "0") || 0, Mt = le * 9 + se + Ae + Ke + $t;
|
|
39416
39415
|
P.style.maxHeight = `${Mt}px`, P.style.height = `${Math.min(P.scrollHeight, Math.ceil(Mt))}px`, P.style.overflowY = P.scrollHeight > Mt ? "auto" : "hidden";
|
|
39417
39416
|
}, []), Fl = lt(() => {
|
|
39418
39417
|
const P = Nr.current, K = Vt.current;
|
|
39419
|
-
P && (P.offsetParent !== null ?
|
|
39420
|
-
}, [
|
|
39418
|
+
P && (P.offsetParent !== null ? Wg(P) : (P.style.height = "", P.style.maxHeight = "", P.style.overflowY = "")), K && (K.offsetParent !== null ? Wg(K) : (K.style.height = "", K.style.maxHeight = "", K.style.overflowY = ""));
|
|
39419
|
+
}, [Wg]);
|
|
39421
39420
|
ct(() => {
|
|
39422
39421
|
Fl();
|
|
39423
39422
|
}, [F, Fl]), ct(() => {
|
|
@@ -39613,11 +39612,11 @@ function dH({
|
|
|
39613
39612
|
K === "helpful" ? "success" : "info"
|
|
39614
39613
|
);
|
|
39615
39614
|
});
|
|
39616
|
-
}, [j0, G]), u2 = lt(({ numPages: P }) => ve(P), []),
|
|
39615
|
+
}, [j0, G]), u2 = lt(({ numPages: P }) => ve(P), []), Gg = Ee(null), O0 = lt(() => {
|
|
39617
39616
|
oe((P) => {
|
|
39618
39617
|
var le, se;
|
|
39619
39618
|
const K = !P.fullscreen;
|
|
39620
|
-
return K ? (le =
|
|
39619
|
+
return K ? (le = Gg.current) == null || le.collapse() : (se = Gg.current) == null || se.expand(), { ...P, fullscreen: K };
|
|
39621
39620
|
});
|
|
39622
39621
|
}, []), L0 = /* @__PURE__ */ b.jsx("div", { className: "ai-avatar", "aria-hidden": !0, children: /* @__PURE__ */ b.jsx("img", { src: sf, alt: "", style: { width: "100%", height: "100%", objectFit: "cover" } }) });
|
|
39623
39622
|
return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
@@ -39781,7 +39780,7 @@ function dH({
|
|
|
39781
39780
|
sa && /* @__PURE__ */ b.jsx("div", { className: "drawer-backdrop", onClick: () => En(!1), "aria-hidden": !0 }),
|
|
39782
39781
|
!Nn && !s && /* @__PURE__ */ b.jsx("button", { className: "sidebar-reopen-btn", type: "button", onClick: () => Z(!0), "aria-label": "Show conversations sidebar", title: "Show sidebar", children: /* @__PURE__ */ b.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ b.jsx("path", { d: "M3 6h18M3 12h18M3 18h18", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) }) }),
|
|
39783
39782
|
/* @__PURE__ */ b.jsxs(lw, { direction: "horizontal", className: "resizable-panels", children: [
|
|
39784
|
-
/* @__PURE__ */ b.jsx(
|
|
39783
|
+
/* @__PURE__ */ b.jsx(Mm, { defaultSize: s && V.open ? 0 : 50, minSize: s && V.open ? 0 : 30, collapsible: !0, collapsedSize: 0, panelRef: Gg, className: "messages-panel", onResize: (P) => {
|
|
39785
39784
|
P.asPercentage > 0 && V.fullscreen && oe((K) => ({ ...K, fullscreen: !1 }));
|
|
39786
39785
|
}, children: /* @__PURE__ */ b.jsxs("section", { className: "messages-main", ref: Re, onScroll: i2, children: [
|
|
39787
39786
|
/* @__PURE__ */ b.jsx("div", { className: "mobile-bar", children: /* @__PURE__ */ b.jsx("button", { className: "sidebar-toggle", type: "button", onClick: () => En(!0), "aria-label": "Open conversations", children: /* @__PURE__ */ b.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": !0, children: /* @__PURE__ */ b.jsx("path", { d: "M3 6h18M3 12h18M3 18h18", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) }) }) }),
|
|
@@ -39996,7 +39995,7 @@ function dH({
|
|
|
39996
39995
|
] })
|
|
39997
39996
|
] }) }),
|
|
39998
39997
|
!s && V.open && (V.mode === "html" ? !!V.htmlUrl : !!V.file) && /* @__PURE__ */ b.jsx(cw, { className: "panel-separator" }),
|
|
39999
|
-
V.open && (V.mode === "html" ? !!V.htmlUrl : !!V.file) && /* @__PURE__ */ b.jsx(
|
|
39998
|
+
V.open && (V.mode === "html" ? !!V.htmlUrl : !!V.file) && /* @__PURE__ */ b.jsx(Mm, { defaultSize: 50, minSize: 30, className: "pdf-panel", children: /* @__PURE__ */ b.jsx("aside", { className: "pdf-viewer-aside", children: V.mode === "html" ? /* @__PURE__ */ b.jsx(
|
|
40000
39999
|
rH,
|
|
40001
40000
|
{
|
|
40002
40001
|
open: V.open,
|
|
@@ -40064,21 +40063,24 @@ function dH({
|
|
|
40064
40063
|
children: Me.text
|
|
40065
40064
|
}
|
|
40066
40065
|
),
|
|
40067
|
-
Ft &&
|
|
40068
|
-
|
|
40069
|
-
|
|
40070
|
-
|
|
40071
|
-
|
|
40072
|
-
|
|
40073
|
-
|
|
40074
|
-
|
|
40075
|
-
|
|
40076
|
-
|
|
40077
|
-
|
|
40078
|
-
|
|
40079
|
-
|
|
40080
|
-
|
|
40081
|
-
|
|
40066
|
+
Ft && wg(
|
|
40067
|
+
/* @__PURE__ */ b.jsxs(
|
|
40068
|
+
"div",
|
|
40069
|
+
{
|
|
40070
|
+
className: `sidebar-toggle-tooltip${Ft.above ? " sidebar-toggle-tooltip--above" : ""}`,
|
|
40071
|
+
style: {
|
|
40072
|
+
top: Ft.above ? void 0 : Ft.top,
|
|
40073
|
+
bottom: Ft.above ? window.innerHeight - Ft.top : void 0,
|
|
40074
|
+
left: Ft.left,
|
|
40075
|
+
transform: "translateX(-50%)"
|
|
40076
|
+
},
|
|
40077
|
+
children: [
|
|
40078
|
+
/* @__PURE__ */ b.jsx("span", { className: "sidebar-toggle-tooltip-caret" }),
|
|
40079
|
+
/* @__PURE__ */ b.jsx("span", { className: "sidebar-toggle-tooltip-box", children: "Toggle sidebar" })
|
|
40080
|
+
]
|
|
40081
|
+
}
|
|
40082
|
+
),
|
|
40083
|
+
document.body
|
|
40082
40084
|
)
|
|
40083
40085
|
] })
|
|
40084
40086
|
] });
|
|
@@ -40143,7 +40145,7 @@ function pH({
|
|
|
40143
40145
|
] }) }),
|
|
40144
40146
|
a && !l && /* @__PURE__ */ b.jsx("button", { type: "button", className: "widget-icon-btn", onClick: A, title: "Close", "aria-label": "Close chat", children: /* @__PURE__ */ b.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": !0, children: /* @__PURE__ */ b.jsx("path", { d: "M18 6L6 18M6 6l12 12", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round" }) }) })
|
|
40145
40147
|
] })
|
|
40146
|
-
] }), E = a && !l ?
|
|
40148
|
+
] }), E = a && !l ? wg(
|
|
40147
40149
|
/* @__PURE__ */ b.jsx("div", { className: "widget-portal", children: /* @__PURE__ */ b.jsxs("div", { className: "widget-panel widget-panel--open", children: [
|
|
40148
40150
|
y,
|
|
40149
40151
|
/* @__PURE__ */ b.jsx("div", { className: "widget-body", children: w })
|