@tung-engineering/agent-platform-web-sdk 0.0.91 → 0.0.93
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/web-sdk.cjs +129 -130
- package/dist/web-sdk.cjs.map +1 -1
- package/dist/web-sdk.min.js +109 -110
- package/dist/web-sdk.min.js.map +1 -1
- package/dist/web-sdk.mjs +4264 -4219
- package/dist/web-sdk.mjs.map +1 -1
- package/package.json +1 -1
package/dist/web-sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var sB=Object.defineProperty,oB=Object.defineProperties;var iB=Object.getOwnPropertyDescriptors;var Cl=Object.getOwnPropertySymbols;var aB=Object.prototype.hasOwnProperty,cB=Object.prototype.propertyIsEnumerable;var me=Math.pow,$i=(A,e,t)=>e in A?sB(A,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):A[e]=t,F=(A,e)=>{for(var t in e||(e={}))aB.call(e,t)&&$i(A,t,e[t]);if(Cl)for(var t of Cl(e))cB.call(e,t)&&$i(A,t,e[t]);return A},z=(A,e)=>oB(A,iB(e));var hA=(A,e,t)=>$i(A,typeof e!="symbol"?e+"":e,t);var I=(A,e,t)=>new Promise((n,r)=>{var s=i=>{try{a(t.next(i))}catch(c){r(c)}},o=i=>{try{a(t.throw(i))}catch(c){r(c)}},a=i=>i.done?n(i.value):Promise.resolve(i.value).then(s,o);a((t=t.apply(A,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const lB=`
|
|
2
2
|
:where([data-ap-sdk][popover]) {
|
|
3
3
|
position: fixed;
|
|
4
4
|
margin: 0;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
overflow: visible;
|
|
10
10
|
inset: auto;
|
|
11
11
|
}
|
|
12
|
-
`,
|
|
12
|
+
`,uB=`
|
|
13
13
|
@keyframes ap-sdk-panel-in {
|
|
14
14
|
from { opacity: 0; transform: translateY(-50%) translateX(16px) scale(0.98); }
|
|
15
15
|
to { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); }
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
color: #991b1b;
|
|
323
323
|
border: 1px solid #fca5a5;
|
|
324
324
|
}
|
|
325
|
-
`,
|
|
325
|
+
`,dB=`
|
|
326
326
|
.ap-sdk-highlight {
|
|
327
327
|
position: fixed;
|
|
328
328
|
pointer-events: none;
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
z-index: 2147483645;
|
|
334
334
|
transition: top 60ms ease, left 60ms ease, width 60ms ease, height 60ms ease;
|
|
335
335
|
}
|
|
336
|
-
`,
|
|
336
|
+
`,pB=`
|
|
337
337
|
.ap-sdk-picker-cursor {
|
|
338
338
|
position: fixed;
|
|
339
339
|
bottom: 16px;
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
background: rgba(255, 255, 255, 0.12);
|
|
408
408
|
opacity: 1;
|
|
409
409
|
}
|
|
410
|
-
`,
|
|
410
|
+
`,hB=`
|
|
411
411
|
.ap-sdk-recorder-bar {
|
|
412
412
|
position: fixed;
|
|
413
413
|
bottom: 16px;
|
|
@@ -461,7 +461,7 @@
|
|
|
461
461
|
.ap-sdk-recorder-bar__btn--stop:hover {
|
|
462
462
|
background: oklch(95% 0.035 50);
|
|
463
463
|
}
|
|
464
|
-
`,
|
|
464
|
+
`,fB=`
|
|
465
465
|
.ap-sdk-panel__context {
|
|
466
466
|
padding: 10px 16px;
|
|
467
467
|
background: #f9fafb;
|
|
@@ -540,7 +540,7 @@
|
|
|
540
540
|
white-space: nowrap;
|
|
541
541
|
}
|
|
542
542
|
|
|
543
|
-
/* ── Screenshot preview (see screenshot.ts / panel.ts
|
|
543
|
+
/* ── Screenshot preview (see screenshot.ts / panel-screenshot.ts) ──────── */
|
|
544
544
|
|
|
545
545
|
.ap-sdk-panel__screenshot {
|
|
546
546
|
padding: 10px 16px;
|
|
@@ -746,7 +746,7 @@
|
|
|
746
746
|
font-style: italic;
|
|
747
747
|
white-space: normal;
|
|
748
748
|
}
|
|
749
|
-
`,
|
|
749
|
+
`,gB=`
|
|
750
750
|
.ap-sdk-fab {
|
|
751
751
|
position: fixed;
|
|
752
752
|
bottom: 20px;
|
|
@@ -876,7 +876,7 @@
|
|
|
876
876
|
line-height: 1;
|
|
877
877
|
pointer-events: none;
|
|
878
878
|
}
|
|
879
|
-
`,
|
|
879
|
+
`,BB=`
|
|
880
880
|
.ap-sdk-advanced {
|
|
881
881
|
border-top: 1px solid #f3f4f6;
|
|
882
882
|
padding-top: 8px;
|
|
@@ -932,7 +932,7 @@
|
|
|
932
932
|
color: #9ca3af;
|
|
933
933
|
margin-top: 2px;
|
|
934
934
|
}
|
|
935
|
-
`,
|
|
935
|
+
`,wB=`
|
|
936
936
|
.ap-sdk-list-body {
|
|
937
937
|
padding: 8px 0;
|
|
938
938
|
max-height: 320px;
|
|
@@ -1057,7 +1057,7 @@ button.ap-sdk-list-item__link {
|
|
|
1057
1057
|
.ap-sdk-status-link:hover {
|
|
1058
1058
|
color: oklch(47% 0.13 40);
|
|
1059
1059
|
}
|
|
1060
|
-
`,
|
|
1060
|
+
`,mB=`
|
|
1061
1061
|
.ap-sdk-record-review__list {
|
|
1062
1062
|
max-height: 320px;
|
|
1063
1063
|
overflow-y: auto;
|
|
@@ -1118,7 +1118,7 @@ button.ap-sdk-list-item__link {
|
|
|
1118
1118
|
color: #ef4444;
|
|
1119
1119
|
background: #fee2e2;
|
|
1120
1120
|
}
|
|
1121
|
-
`,
|
|
1121
|
+
`,CB=`
|
|
1122
1122
|
@keyframes ap-sdk-card-in {
|
|
1123
1123
|
from { opacity: 0; transform: scale(0.97); }
|
|
1124
1124
|
to { opacity: 1; transform: scale(1); }
|
|
@@ -1197,7 +1197,7 @@ button.ap-sdk-list-item__link {
|
|
|
1197
1197
|
flex: 1;
|
|
1198
1198
|
white-space: nowrap;
|
|
1199
1199
|
}
|
|
1200
|
-
`,
|
|
1200
|
+
`,bB=`
|
|
1201
1201
|
.ap-sdk-runner__approval {
|
|
1202
1202
|
margin-top: 14px;
|
|
1203
1203
|
display: flex;
|
|
@@ -1519,7 +1519,7 @@ button.ap-sdk-list-item__link {
|
|
|
1519
1519
|
font-style: italic;
|
|
1520
1520
|
padding: 4px 0;
|
|
1521
1521
|
}
|
|
1522
|
-
`,
|
|
1522
|
+
`,QB=`
|
|
1523
1523
|
.ap-sdk-resize-handle {
|
|
1524
1524
|
position: absolute;
|
|
1525
1525
|
bottom: 2px;
|
|
@@ -1541,7 +1541,7 @@ button.ap-sdk-list-item__link {
|
|
|
1541
1541
|
border-right: 2px solid #d1d5db;
|
|
1542
1542
|
border-bottom: 2px solid #d1d5db;
|
|
1543
1543
|
}
|
|
1544
|
-
`,
|
|
1544
|
+
`,yB=`
|
|
1545
1545
|
.ap-sdk-resume-banner {
|
|
1546
1546
|
position: fixed;
|
|
1547
1547
|
bottom: 84px;
|
|
@@ -1581,48 +1581,48 @@ button.ap-sdk-list-item__link {
|
|
|
1581
1581
|
display: flex;
|
|
1582
1582
|
gap: 8px;
|
|
1583
1583
|
}
|
|
1584
|
-
`,
|
|
1585
|
-
`);let
|
|
1586
|
-
`)}return n(A,0)}const
|
|
1587
|
-
`)}const dr=new Set;let sr=null,Ko=!1,Qa=!1;function xB(A){if(A.getAttribute("aria-modal")==="false")return!1;const e=getComputedStyle(A);return e.display!=="none"&&e.visibility!=="hidden"}function SB(){const A=document.querySelectorAll("dialog[open]");for(let t=0;t<A.length;t++)try{if(A[t].matches(":modal"))return!0}catch(n){}const e=document.querySelectorAll('[role="dialog"], [role="alertdialog"]');for(let t=0;t<e.length;t++){const n=e[t];if(!(dr.has(n)||n.hasAttribute("data-ap-sdk"))&&n.isConnected&&xB(n))return!0}return!1}function Od(){const A=SB(),e=A&&!Qa;Qa=A;for(const t of dr){t.hasAttribute("inert")&&t.removeAttribute("inert"),t.getAttribute("aria-hidden")==="true"&&t.removeAttribute("aria-hidden");const n=t.contains(document.activeElement);if(t.matches(":popover-open")){if(e&&!n){try{t.hidePopover()}catch(r){}try{t.showPopover()}catch(r){}}}else try{t.showPopover()}catch(r){}}}function wl(A){if(!(A instanceof Node))return!1;for(const e of dr)if(e===A||e.contains(A))return!0;return!1}function or(A){(wl(A.target)||"relatedTarget"in A&&wl(A.relatedTarget))&&A.stopPropagation()}function IB(){Ko||(window.addEventListener("focusin",or,!0),window.addEventListener("focusout",or,!0),window.addEventListener("pointerdown",or,!0),Ko=!0),!sr&&(sr=new MutationObserver(A=>{A.some(t=>t.type==="childList"||t.attributeName==="open"&&t.target.tagName==="DIALOG"||t.attributeName==="inert"||t.attributeName==="aria-hidden"||t.attributeName==="role")&&Od()}),sr.observe(document.documentElement,{attributes:!0,attributeFilter:["open","inert","aria-hidden","role"],childList:!0,subtree:!0}))}function ht(A){"showPopover"in A&&(A.setAttribute("popover","manual"),dr.add(A),IB(),Od())}function ft(A){if(dr.delete(A),dr.size===0&&(sr&&(sr.disconnect(),sr=null),Ko&&(window.removeEventListener("focusin",or,!0),window.removeEventListener("focusout",or,!0),window.removeEventListener("pointerdown",or,!0),Ko=!1),Qa=!1),"hidePopover"in A)try{A.hidePopover()}catch(e){}}function hc(A="ap-sdk-highlight"){const e=document.createElement("div");return e.className=A,e.setAttribute("data-ap-sdk","1"),e.style.display="none",document.body.appendChild(e),ht(e),{el:e,update:s=>{const o=s.getBoundingClientRect();e.style.top=`${o.top}px`,e.style.left=`${o.left}px`,e.style.width=`${o.width}px`,e.style.height=`${o.height}px`,e.style.display="block"},hide:()=>{e.style.display="none"},destroy:()=>{ft(e),e.remove()}}}const Pd=/^cc-|current-password|new-password/i,TB=/token|secret|password|apikey|auth/i,Ni="[redacted]",HB="data-ap-sdk-exclude",No=`[${HB}]`;let ya=null;function LB(A){ya=(A==null?void 0:A.trim())||null}function Md(){return ya?`${No}, ${ya}`:No}function fc(A){let e;try{if(e=Md(),A.matches(e)){A.textContent="";return}for(const t of Array.from(A.querySelectorAll(e)))t.remove()}catch(t){for(const n of Array.from(A.querySelectorAll(No)))n.remove()}}function Kd(A){if(A instanceof HTMLInputElement&&A.type==="password")return!0;const e=A.getAttribute("autocomplete");return!!e&&Pd.test(e)}function ml(A){if(Kd(A))return!0;try{return A.closest(Md())!==null}catch(e){return A.closest(No)!==null}}function Nd(A){const e=[A,...Array.from(A.querySelectorAll("*"))];for(const t of e){t instanceof HTMLInputElement&&t.type==="password"&&t.setAttribute("value",Ni);const n=t.getAttribute("autocomplete");n&&Pd.test(n)&&t.setAttribute("value",Ni);for(const r of Array.from(t.attributes))TB.test(r.name)&&t.setAttribute(r.name,Ni)}}const DB="🎯 Click any element to capture";let $t=null,zA=null,jA=null;function as(A){return A instanceof Element?A.closest("[data-ap-sdk]")!==null||A.closest(".ap-sdk-panel")!==null||A.closest(".ap-sdk-highlight")!==null||A.closest(".ap-sdk-picker-cursor")!==null:!1}function RB(){var A,e;return((e=(A=window.matchMedia)==null?void 0:A.call(window,"(pointer: coarse)").matches)!=null?e:!1)||"ontouchstart"in window}function Cl(A){$t==null||$t.update(A)}function $d(A){const e=Rd(),t=FB(A),n=vB(A);let r=A,s;try{const o=A.cloneNode(!0);Nd(o),fc(o),r=o,s=o.outerHTML.slice(0,4e3)}catch(o){}return k(k({pageUrl:window.location.href,pageTitle:document.title,elementText:Mo(r),cssSelector:Eo(A),innerTree:bB(r),outerTree:kB(A),elementOuterHtml:s,ancestry:t},n),e)}function Ua(A,e){jA&&jA();const t=RB();$t=hc(),zA=document.createElement("div"),zA.className="ap-sdk-picker-cursor",zA.setAttribute("data-ap-sdk","1"),zA.textContent=t?"Tap any element to preview":DB,document.body.appendChild(zA),ht(zA);let n=null,r=null;const s=u=>{jA==null||jA(),A($d(u),u)},o=u=>{if(r=u,Cl(u),!zA)return;zA.classList.add("ap-sdk-picker-cursor--confirm"),zA.innerHTML="";const h=document.createElement("span");h.className="ap-sdk-picker-cursor__label",h.textContent=`<${u.tagName.toLowerCase()}>`;const f=document.createElement("button");f.type="button",f.className="ap-sdk-picker-cursor__btn ap-sdk-picker-cursor__btn--cancel",f.textContent="✕ Cancel",f.setAttribute("data-ap-sdk","1"),f.setAttribute("aria-label","Cancel picking"),f.addEventListener("click",b=>{b.preventDefault(),b.stopPropagation(),jA==null||jA(),e()});const g=document.createElement("button");g.type="button",g.className="ap-sdk-picker-cursor__btn",g.textContent="⬆ Parent",g.setAttribute("data-ap-sdk","1"),g.addEventListener("click",b=>{b.preventDefault(),b.stopPropagation(),r!=null&&r.parentElement&&o(r.parentElement)});const m=document.createElement("button");m.type="button",m.className="ap-sdk-picker-cursor__btn ap-sdk-picker-cursor__btn--primary",m.textContent="✓ Select",m.setAttribute("data-ap-sdk","1"),m.addEventListener("click",b=>{b.preventDefault(),b.stopPropagation(),r&&s(r)}),zA.appendChild(h),zA.appendChild(f),zA.appendChild(g),zA.appendChild(m)},a=u=>{as(u.target)||(n=u.target,Cl(n))},i=u=>{var f;if(as(u.target))return;u.preventDefault(),u.stopImmediatePropagation();const h=(f=u.target)!=null?f:n;if(h){if(t){o(h);return}s(h)}},c=u=>{u.key==="Escape"&&(jA==null||jA(),e())};t||document.addEventListener("mouseover",a,{capture:!0}),document.addEventListener("click",i,{capture:!0}),document.addEventListener("keydown",c,{capture:!0}),jA=()=>{t||document.removeEventListener("mouseover",a,{capture:!0}),document.removeEventListener("click",i,{capture:!0}),document.removeEventListener("keydown",c,{capture:!0}),zA&&ft(zA),zA==null||zA.remove(),$t==null||$t.destroy(),$t=null,zA=null,r=null,jA=null}}function gc(){jA==null||jA()}function ir(){return jA!==null}const Vs={TASK_STATUS_UPDATED:"task:status:updated",TASK_INTERACTION_CREATED:"task:interaction:created",TASK_INTERACTION_ANSWERED:"task:interaction:answered",TASK_BROWSER_COMMAND_CREATED:"task:browser-command:created"};function x(A,e,t){var a;function n(i,c){if(i._zod||Object.defineProperty(i,"_zod",{value:{def:c,constr:o,traits:new Set},enumerable:!1}),i._zod.traits.has(A))return;i._zod.traits.add(A),e(i,c);const u=o.prototype,h=Object.keys(u);for(let f=0;f<h.length;f++){const g=h[f];g in i||(i[g]=u[g].bind(i))}}const r=(a=t==null?void 0:t.Parent)!=null?a:Object;class s extends r{}Object.defineProperty(s,"name",{value:A});function o(i){var h;var c;const u=t!=null&&t.Parent?new s:this;n(u,i),(h=(c=u._zod).deferred)!=null||(c.deferred=[]);for(const f of u._zod.deferred)f();return u}return Object.defineProperty(o,"init",{value:n}),Object.defineProperty(o,Symbol.hasInstance,{value:i=>{var c,u;return t!=null&&t.Parent&&i instanceof t.Parent?!0:(u=(c=i==null?void 0:i._zod)==null?void 0:c.traits)==null?void 0:u.has(A)}}),Object.defineProperty(o,"name",{value:A}),o}class ar extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class zd extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const Vd={};function Zt(A){return Vd}function Gd(A){const e=Object.values(A).filter(n=>typeof n=="number");return Object.entries(A).filter(([n,r])=>e.indexOf(+n)===-1).map(([n,r])=>r)}function Ea(A,e){return typeof e=="bigint"?e.toString():e}function ui(A){return{get value(){{const e=A();return Object.defineProperty(this,"value",{value:e}),e}}}}function Bc(A){return A==null}function wc(A){const e=A.startsWith("^")?1:0,t=A.endsWith("$")?A.length-1:A.length;return A.slice(e,t)}function OB(A,e){const t=(A.toString().split(".")[1]||"").length,n=e.toString();let r=(n.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(n)){const i=n.match(/\d?e-(\d?)/);i!=null&&i[1]&&(r=Number.parseInt(i[1]))}const s=t>r?t:r,o=Number.parseInt(A.toFixed(s).replace(".","")),a=Number.parseInt(e.toFixed(s).replace(".",""));return o%a/we(10,s)}const bl=Symbol("evaluating");function aA(A,e,t){let n;Object.defineProperty(A,e,{get(){if(n!==bl)return n===void 0&&(n=bl,n=t()),n},set(r){Object.defineProperty(A,e,{value:r})},configurable:!0})}function vn(A,e,t){Object.defineProperty(A,e,{value:t,writable:!0,enumerable:!0,configurable:!0})}function Jt(...A){const e={};for(const t of A){const n=Object.getOwnPropertyDescriptors(t);Object.assign(e,n)}return Object.defineProperties({},e)}function Ql(A){return JSON.stringify(A)}function PB(A){return A.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Zd="captureStackTrace"in Error?Error.captureStackTrace:(...A)=>{};function ds(A){return typeof A=="object"&&A!==null&&!Array.isArray(A)}const MB=ui(()=>{var A;if(typeof navigator!="undefined"&&((A=navigator==null?void 0:navigator.userAgent)!=null&&A.includes("Cloudflare")))return!1;try{const e=Function;return new e(""),!0}catch(e){return!1}});function pr(A){if(ds(A)===!1)return!1;const e=A.constructor;if(e===void 0||typeof e!="function")return!0;const t=e.prototype;return!(ds(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function Xd(A){return pr(A)?k({},A):Array.isArray(A)?[...A]:A}const KB=new Set(["string","number","symbol"]);function hr(A){return A.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function jt(A,e,t){const n=new A._zod.constr(e!=null?e:A._zod.def);return(!e||t!=null&&t.parent)&&(n._zod.parent=A),n}function Z(A){const e=A;if(!e)return{};if(typeof e=="string")return{error:()=>e};if((e==null?void 0:e.message)!==void 0){if((e==null?void 0:e.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?$(k({},e),{error:()=>e.error}):e}function NB(A){return Object.keys(A).filter(e=>A[e]._zod.optin==="optional"&&A[e]._zod.optout==="optional")}const $B={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function zB(A,e){const t=A._zod.def,n=t.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=Jt(A._zod.def,{get shape(){const o={};for(const a in e){if(!(a in t.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&(o[a]=t.shape[a])}return vn(this,"shape",o),o},checks:[]});return jt(A,s)}function VB(A,e){const t=A._zod.def,n=t.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=Jt(A._zod.def,{get shape(){const o=k({},A._zod.def.shape);for(const a in e){if(!(a in t.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&delete o[a]}return vn(this,"shape",o),o},checks:[]});return jt(A,s)}function GB(A,e){if(!pr(e))throw new Error("Invalid input to extend: expected a plain object");const t=A._zod.def.checks;if(t&&t.length>0){const s=A._zod.def.shape;for(const o in e)if(Object.getOwnPropertyDescriptor(s,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=Jt(A._zod.def,{get shape(){const s=k(k({},A._zod.def.shape),e);return vn(this,"shape",s),s}});return jt(A,r)}function ZB(A,e){if(!pr(e))throw new Error("Invalid input to safeExtend: expected a plain object");const t=Jt(A._zod.def,{get shape(){const n=k(k({},A._zod.def.shape),e);return vn(this,"shape",n),n}});return jt(A,t)}function XB(A,e){const t=Jt(A._zod.def,{get shape(){const n=k(k({},A._zod.def.shape),e._zod.def.shape);return vn(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:[]});return jt(A,t)}function WB(A,e,t){const r=e._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const o=Jt(e._zod.def,{get shape(){const a=e._zod.def.shape,i=k({},a);if(t)for(const c in t){if(!(c in a))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(i[c]=A?new A({type:"optional",innerType:a[c]}):a[c])}else for(const c in a)i[c]=A?new A({type:"optional",innerType:a[c]}):a[c];return vn(this,"shape",i),i},checks:[]});return jt(e,o)}function JB(A,e,t){const n=Jt(e._zod.def,{get shape(){const r=e._zod.def.shape,s=k({},r);if(t)for(const o in t){if(!(o in s))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(s[o]=new A({type:"nonoptional",innerType:r[o]}))}else for(const o in r)s[o]=new A({type:"nonoptional",innerType:r[o]});return vn(this,"shape",s),s}});return jt(e,n)}function Ar(A,e=0){var t;if(A.aborted===!0)return!0;for(let n=e;n<A.issues.length;n++)if(((t=A.issues[n])==null?void 0:t.continue)!==!0)return!0;return!1}function er(A,e){return e.map(t=>{var r;var n;return(r=(n=t).path)!=null||(n.path=[]),t.path.unshift(A),t})}function Gs(A){return typeof A=="string"?A:A==null?void 0:A.message}function Xt(A,e,t){var r,s,o,a,i,c,u,h,f,g,m;const n=$(k({},A),{path:(r=A.path)!=null?r:[]});if(!A.message){const b=(m=(g=(h=(c=Gs((a=(o=(s=A.inst)==null?void 0:s._zod.def)==null?void 0:o.error)==null?void 0:a.call(o,A)))!=null?c:Gs((i=e==null?void 0:e.error)==null?void 0:i.call(e,A)))!=null?h:Gs((u=t.customError)==null?void 0:u.call(t,A)))!=null?g:Gs((f=t.localeError)==null?void 0:f.call(t,A)))!=null?m:"Invalid input";n.message=b}return delete n.inst,delete n.continue,e!=null&&e.reportInput||delete n.input,n}function mc(A){return Array.isArray(A)?"array":typeof A=="string"?"string":"unknown"}function ps(...A){const[e,t,n]=A;return typeof e=="string"?{message:e,code:"custom",input:t,inst:n}:k({},e)}const Wd=(A,e)=>{A.name="$ZodError",Object.defineProperty(A,"_zod",{value:A._zod,enumerable:!1}),Object.defineProperty(A,"issues",{value:e,enumerable:!1}),A.message=JSON.stringify(e,Ea,2),Object.defineProperty(A,"toString",{value:()=>A.message,enumerable:!1})},Jd=x("$ZodError",Wd),jd=x("$ZodError",Wd,{Parent:Error});function jB(A,e=t=>t.message){const t={},n=[];for(const r of A.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}function YB(A,e=t=>t.message){const t={_errors:[]},n=r=>{for(const s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(o=>n({issues:o}));else if(s.code==="invalid_key")n({issues:s.issues});else if(s.code==="invalid_element")n({issues:s.issues});else if(s.path.length===0)t._errors.push(e(s));else{let o=t,a=0;for(;a<s.path.length;){const i=s.path[a];a===s.path.length-1?(o[i]=o[i]||{_errors:[]},o[i]._errors.push(e(s))):o[i]=o[i]||{_errors:[]},o=o[i],a++}}};return n(A),t}const Cc=A=>(e,t,n,r)=>{var a;const s=n?Object.assign(n,{async:!1}):{async:!1},o=e._zod.run({value:t,issues:[]},s);if(o instanceof Promise)throw new ar;if(o.issues.length){const i=new((a=r==null?void 0:r.Err)!=null?a:A)(o.issues.map(c=>Xt(c,s,Zt())));throw Zd(i,r==null?void 0:r.callee),i}return o.value},bc=A=>(e,t,n,r)=>I(null,null,function*(){var a;const s=n?Object.assign(n,{async:!0}):{async:!0};let o=e._zod.run({value:t,issues:[]},s);if(o instanceof Promise&&(o=yield o),o.issues.length){const i=new((a=r==null?void 0:r.Err)!=null?a:A)(o.issues.map(c=>Xt(c,s,Zt())));throw Zd(i,r==null?void 0:r.callee),i}return o.value}),di=A=>(e,t,n)=>{const r=n?$(k({},n),{async:!1}):{async:!1},s=e._zod.run({value:t,issues:[]},r);if(s instanceof Promise)throw new ar;return s.issues.length?{success:!1,error:new(A!=null?A:Jd)(s.issues.map(o=>Xt(o,r,Zt())))}:{success:!0,data:s.value}},qB=di(jd),pi=A=>(e,t,n)=>I(null,null,function*(){const r=n?Object.assign(n,{async:!0}):{async:!0};let s=e._zod.run({value:t,issues:[]},r);return s instanceof Promise&&(s=yield s),s.issues.length?{success:!1,error:new A(s.issues.map(o=>Xt(o,r,Zt())))}:{success:!0,data:s.value}}),Aw=pi(jd),ew=A=>(e,t,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Cc(A)(e,t,r)},tw=A=>(e,t,n)=>Cc(A)(e,t,n),nw=A=>(e,t,n)=>I(null,null,function*(){const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return bc(A)(e,t,r)}),rw=A=>(e,t,n)=>I(null,null,function*(){return bc(A)(e,t,n)}),sw=A=>(e,t,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return di(A)(e,t,r)},ow=A=>(e,t,n)=>di(A)(e,t,n),iw=A=>(e,t,n)=>I(null,null,function*(){const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return pi(A)(e,t,r)}),aw=A=>(e,t,n)=>I(null,null,function*(){return pi(A)(e,t,n)}),cw=/^[cC][^\s-]{8,}$/,lw=/^[0-9a-z]+$/,uw=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,dw=/^[0-9a-vA-V]{20}$/,pw=/^[A-Za-z0-9]{27}$/,hw=/^[a-zA-Z0-9_-]{21}$/,fw=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,gw=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,yl=A=>A?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${A}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Bw=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ww="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function mw(){return new RegExp(ww,"u")}const Cw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,bw=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Qw=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,yw=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Uw=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Yd=/^[A-Za-z0-9_-]*$/,Ew=/^\+[1-9]\d{6,14}$/,qd="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",kw=new RegExp(`^${qd}$`);function Ap(A){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof A.precision=="number"?A.precision===-1?`${e}`:A.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${A.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Fw(A){return new RegExp(`^${Ap(A)}$`)}function vw(A){const e=Ap({precision:A.precision}),t=["Z"];A.local&&t.push(""),A.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${e}(?:${t.join("|")})`;return new RegExp(`^${qd}T(?:${n})$`)}const _w=A=>{var t,n;const e=A?`[\\s\\S]{${(t=A==null?void 0:A.minimum)!=null?t:0},${(n=A==null?void 0:A.maximum)!=null?n:""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},xw=/^-?\d+$/,ep=/^-?\d+(?:\.\d+)?$/,Sw=/^(?:true|false)$/i,Iw=/^[^A-Z]*$/,Tw=/^[^a-z]*$/,Be=x("$ZodCheck",(A,e)=>{var n,r;var t;(n=A._zod)!=null||(A._zod={}),A._zod.def=e,(r=(t=A._zod).onattach)!=null||(t.onattach=[])}),tp={number:"number",bigint:"bigint",object:"date"},np=x("$ZodCheckLessThan",(A,e)=>{Be.init(A,e);const t=tp[typeof e.value];A._zod.onattach.push(n=>{var o;const r=n._zod.bag,s=(o=e.inclusive?r.maximum:r.exclusiveMaximum)!=null?o:Number.POSITIVE_INFINITY;e.value<s&&(e.inclusive?r.maximum=e.value:r.exclusiveMaximum=e.value)}),A._zod.check=n=>{(e.inclusive?n.value<=e.value:n.value<e.value)||n.issues.push({origin:t,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:A,continue:!e.abort})}}),rp=x("$ZodCheckGreaterThan",(A,e)=>{Be.init(A,e);const t=tp[typeof e.value];A._zod.onattach.push(n=>{var o;const r=n._zod.bag,s=(o=e.inclusive?r.minimum:r.exclusiveMinimum)!=null?o:Number.NEGATIVE_INFINITY;e.value>s&&(e.inclusive?r.minimum=e.value:r.exclusiveMinimum=e.value)}),A._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:t,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:A,continue:!e.abort})}}),Hw=x("$ZodCheckMultipleOf",(A,e)=>{Be.init(A,e),A._zod.onattach.push(t=>{var r;var n;(r=(n=t._zod.bag).multipleOf)!=null||(n.multipleOf=e.value)}),A._zod.check=t=>{if(typeof t.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%e.value===BigInt(0):OB(t.value,e.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:e.value,input:t.value,inst:A,continue:!e.abort})}}),Lw=x("$ZodCheckNumberFormat",(A,e)=>{var o;Be.init(A,e),e.format=e.format||"float64";const t=(o=e.format)==null?void 0:o.includes("int"),n=t?"int":"number",[r,s]=$B[e.format];A._zod.onattach.push(a=>{const i=a._zod.bag;i.format=e.format,i.minimum=r,i.maximum=s,t&&(i.pattern=xw)}),A._zod.check=a=>{const i=a.value;if(t){if(!Number.isInteger(i)){a.issues.push({expected:n,format:e.format,code:"invalid_type",continue:!1,input:i,inst:A});return}if(!Number.isSafeInteger(i)){i>0?a.issues.push({input:i,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:A,origin:n,inclusive:!0,continue:!e.abort}):a.issues.push({input:i,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:A,origin:n,inclusive:!0,continue:!e.abort});return}}i<r&&a.issues.push({origin:"number",input:i,code:"too_small",minimum:r,inclusive:!0,inst:A,continue:!e.abort}),i>s&&a.issues.push({origin:"number",input:i,code:"too_big",maximum:s,inclusive:!0,inst:A,continue:!e.abort})}}),Dw=x("$ZodCheckMaxLength",(A,e)=>{var n;var t;Be.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!Bc(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{var o;const s=(o=r._zod.bag.maximum)!=null?o:Number.POSITIVE_INFINITY;e.maximum<s&&(r._zod.bag.maximum=e.maximum)}),A._zod.check=r=>{const s=r.value;if(s.length<=e.maximum)return;const a=mc(s);r.issues.push({origin:a,code:"too_big",maximum:e.maximum,inclusive:!0,input:s,inst:A,continue:!e.abort})}}),Rw=x("$ZodCheckMinLength",(A,e)=>{var n;var t;Be.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!Bc(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{var o;const s=(o=r._zod.bag.minimum)!=null?o:Number.NEGATIVE_INFINITY;e.minimum>s&&(r._zod.bag.minimum=e.minimum)}),A._zod.check=r=>{const s=r.value;if(s.length>=e.minimum)return;const a=mc(s);r.issues.push({origin:a,code:"too_small",minimum:e.minimum,inclusive:!0,input:s,inst:A,continue:!e.abort})}}),Ow=x("$ZodCheckLengthEquals",(A,e)=>{var n;var t;Be.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!Bc(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{const s=r._zod.bag;s.minimum=e.length,s.maximum=e.length,s.length=e.length}),A._zod.check=r=>{const s=r.value,o=s.length;if(o===e.length)return;const a=mc(s),i=o>e.length;r.issues.push($(k({origin:a},i?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length}),{inclusive:!0,exact:!0,input:r.value,inst:A,continue:!e.abort}))}}),hi=x("$ZodCheckStringFormat",(A,e)=>{var r,s;var t,n;Be.init(A,e),A._zod.onattach.push(o=>{var i;const a=o._zod.bag;a.format=e.format,e.pattern&&((i=a.patterns)!=null||(a.patterns=new Set),a.patterns.add(e.pattern))}),e.pattern?(r=(t=A._zod).check)!=null||(t.check=o=>{e.pattern.lastIndex=0,!e.pattern.test(o.value)&&o.issues.push($(k({origin:"string",code:"invalid_format",format:e.format,input:o.value},e.pattern?{pattern:e.pattern.toString()}:{}),{inst:A,continue:!e.abort}))}):(s=(n=A._zod).check)!=null||(n.check=()=>{})}),Pw=x("$ZodCheckRegex",(A,e)=>{hi.init(A,e),A._zod.check=t=>{e.pattern.lastIndex=0,!e.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:e.pattern.toString(),inst:A,continue:!e.abort})}}),Mw=x("$ZodCheckLowerCase",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Iw),hi.init(A,e)}),Kw=x("$ZodCheckUpperCase",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Tw),hi.init(A,e)}),Nw=x("$ZodCheckIncludes",(A,e)=>{Be.init(A,e);const t=hr(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${t}`:t);e.pattern=n,A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(n)}),A._zod.check=r=>{r.value.includes(e.includes,e.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:r.value,inst:A,continue:!e.abort})}}),$w=x("$ZodCheckStartsWith",(A,e)=>{var n;Be.init(A,e);const t=new RegExp(`^${hr(e.prefix)}.*`);(n=e.pattern)!=null||(e.pattern=t),A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(t)}),A._zod.check=r=>{r.value.startsWith(e.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:r.value,inst:A,continue:!e.abort})}}),zw=x("$ZodCheckEndsWith",(A,e)=>{var n;Be.init(A,e);const t=new RegExp(`.*${hr(e.suffix)}$`);(n=e.pattern)!=null||(e.pattern=t),A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(t)}),A._zod.check=r=>{r.value.endsWith(e.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:r.value,inst:A,continue:!e.abort})}}),Vw=x("$ZodCheckOverwrite",(A,e)=>{Be.init(A,e),A._zod.check=t=>{t.value=e.tx(t.value)}});class Gw{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const n=e.split(`
|
|
1584
|
+
`,UB=[lB,uB,dB,pB,hB,fB,gB,BB,wB,mB,CB,bB,QB,yB].join(`
|
|
1585
|
+
`);let bl=!1;function Qs(){if(bl)return;const A=document.createElement("style");A.setAttribute("data-ap-sdk","1"),A.textContent=UB,document.head.appendChild(A),bl=!0}function Eo(A){if(A===document.body)return"body";const e=[];let t=A;for(;t&&t!==document.body;){if(t.id){e.unshift(`#${CSS.escape(t.id)}`);break}let n=t.tagName.toLowerCase();const r=t.parentElement;if(r){const s=Array.from(r.children).filter(o=>o.tagName===t.tagName);if(s.length>1){const o=s.indexOf(t)+1;n+=`:nth-of-type(${o})`}}e.unshift(n),t=t.parentElement}return e.join(" > ")||A.tagName.toLowerCase()}function No(A,e=200){var n;const t=((n=A.textContent)!=null?n:"").replace(/\s+/g," ").trim();return t.length>e?t.slice(0,e)+"…":t}const EB=["role","type","name","href","src","alt","title","for","placeholder","data-testid"];function ko(A){const e=A.tagName.toLowerCase(),t=A.id?`#${A.id}`:"",n=A.classList.length?"."+Array.from(A.classList).join("."):"",r=[],s=new Set,o=a=>{if(s.has(a)||r.length>=8)return;const i=A.getAttribute(a);if(!i)return;s.add(a);const c=i.length>80?i.slice(0,80)+"…":i;r.push(`[${a}="${c}"]`)};for(const a of Array.from(A.attributes))a.name.startsWith("aria-")&&o(a.name);for(const a of EB)o(a);return`${e}${t}${n}${r.join("")}`}function kB(A,e=80){const t=Array.from(A.childNodes).filter(n=>n.nodeType===Node.TEXT_NODE).map(n=>{var r;return((r=n.textContent)!=null?r:"").trim()}).filter(Boolean).join(" ");return t.length>e?t.slice(0,e)+"…":t}function FB(A,e=5,t=10){function n(r,s){const o=ko(r),a=" ".repeat(s),i=Array.from(r.children).slice(0,t);if(s>=e||i.length===0){const c=kB(r);return c?`${a}${o} "${c}"`:`${a}${o}`}return[`${a}${o}`,...i.map(c=>n(c,s+1))].join(`
|
|
1586
|
+
`)}return n(A,0)}const vB='section, article, aside, nav, main, header, footer, form, fieldset, dialog, [role="region"], [role="navigation"], [role="main"], [role="complementary"], [role="banner"], [role="contentinfo"], [role="form"], [role="search"], [role="dialog"]',_B={fieldset:"legend",table:"caption",figure:"figcaption",details:"summary"};function zs(A,e){const t=A.replace(/\s+/g," ").trim();return t.length>e?t.slice(0,e)+"…":t}function xB(A){var t;const e=A.querySelectorAll('h1, h2, h3, h4, h5, h6, [role="heading"]');for(const n of Array.from(e)){let r=n.parentElement;for(;r&&r!==A&&!r.matches(vB);)r=r.parentElement;if(r===A){const s=((t=n.textContent)!=null?t:"").trim();if(s)return s}}return""}function SB(A,e=80){var o,a,i;const t=_B[A.tagName.toLowerCase()];if(t){const c=(a=(o=A.querySelector(t))==null?void 0:o.textContent)==null?void 0:a.trim();if(c)return zs(c,e)}const n=xB(A);if(n)return zs(n,e);const r=(i=A.getAttribute("aria-label"))==null?void 0:i.trim();if(r)return zs(r,e);const s=A.getAttribute("aria-labelledby");if(s){const c=s.split(/\s+/).map(u=>{var h,f,g;return(g=(f=(h=document.getElementById(u))==null?void 0:h.textContent)==null?void 0:f.trim())!=null?g:""}).filter(Boolean).join(" ");if(c)return zs(c,e)}return""}function IB(A,e=6){const t=[],n=new Set;let r=A;for(;r&&r!==document.body&&t.length<e;){const s=r===A?"":SB(r),o=s&&!n.has(s)?`${ko(r)} ["${s}"]`:ko(r);s&&n.add(s),t.unshift(o),r=r.parentElement}return t.join(" > ")||ko(A)}function Nd(A,e){return A.length>e?A.slice(0,e)+"… (truncated)":A}function Tr(A){var n;const e=document.querySelector(A);return((n=e==null?void 0:e.content)==null?void 0:n.trim())||void 0}function $d(){const A=e=>{try{return e()}catch(t){return}};return{description:A(()=>Tr('meta[name="description"]')),canonicalUrl:A(()=>{var e;return((e=document.querySelector('link[rel="canonical"]'))==null?void 0:e.href)||void 0}),lang:A(()=>document.documentElement.lang||void 0),ogTitle:A(()=>Tr('meta[property="og:title"]')),ogDescription:A(()=>Tr('meta[property="og:description"]')),ogType:A(()=>Tr('meta[property="og:type"]')),ogSiteName:A(()=>Tr('meta[property="og:site_name"]')),viewportWidth:A(()=>window.innerWidth),viewportHeight:A(()=>window.innerHeight),scrollX:A(()=>Math.round(window.scrollX)),scrollY:A(()=>Math.round(window.scrollY)),selectionText:A(()=>{var t;const e=(t=window.getSelection())==null?void 0:t.toString().trim();return e?Nd(e,1e3):void 0}),capturedAt:new Date().toISOString()}}function TB(A){const e=[];let t=A;for(;t&&e.length<6;){let n=t.tagName.toLowerCase();t.id?n+=`#${t.id}`:t.classList.length&&(n+=`.${Array.from(t.classList).slice(0,2).join(".")}`),e.unshift(n),t=t.parentElement}return e.join(" > ")}function HB(A){const e=A.getAttribute("role")||void 0,t=A.getAttribute("aria-label")||void 0;let n;const r=A.closest("section, article, main, nav, aside, header, footer, [role]");if(r){const s=r.querySelector("h1, h2, h3, h4, h5, h6"),o=r.getAttribute("aria-label")||((s==null?void 0:s.textContent)||"").trim(),a=r.tagName.toLowerCase();n=o?`${a}: ${Nd(o,120)}`:a}return{elementRole:e,elementAriaLabel:t,enclosingSection:n}}function LB(A,e){const t=[A.trim(),"",`Page: ${e.pageTitle} (${e.pageUrl})`];return e.description&&t.push(`Description: ${e.description}`),e.selectionText&&t.push(`Selection: ${e.selectionText}`),e.elementText&&t.push(`Selected element: ${e.elementText}`),e.elementRole&&t.push(` Role: ${e.elementRole}`),e.elementAriaLabel&&t.push(` ARIA label: ${e.elementAriaLabel}`),e.enclosingSection&&t.push(`Section: ${e.enclosingSection}`),e.ancestry&&t.push(`Ancestry: ${e.ancestry}`),e.cssSelector&&t.push(`Selector: ${e.cssSelector}`),t.join(`
|
|
1587
|
+
`)}const pr=new Set;let or=null,$o=!1,Ea=!1;function DB(A){if(A.getAttribute("aria-modal")==="false")return!1;const e=getComputedStyle(A);return e.display!=="none"&&e.visibility!=="hidden"}function RB(){const A=document.querySelectorAll("dialog[open]");for(let t=0;t<A.length;t++)try{if(A[t].matches(":modal"))return!0}catch(n){}const e=document.querySelectorAll('[role="dialog"], [role="alertdialog"]');for(let t=0;t<e.length;t++){const n=e[t];if(!(pr.has(n)||n.hasAttribute("data-ap-sdk"))&&n.isConnected&&DB(n))return!0}return!1}function zd(){const A=RB(),e=A&&!Ea;Ea=A;for(const t of pr){t.hasAttribute("inert")&&t.removeAttribute("inert"),t.getAttribute("aria-hidden")==="true"&&t.removeAttribute("aria-hidden");const n=t.contains(document.activeElement);if(t.matches(":popover-open")){if(e&&!n){try{t.hidePopover()}catch(r){}try{t.showPopover()}catch(r){}}}else try{t.showPopover()}catch(r){}}}function Ql(A){if(!(A instanceof Node))return!1;for(const e of pr)if(e===A||e.contains(A))return!0;return!1}function ir(A){(Ql(A.target)||"relatedTarget"in A&&Ql(A.relatedTarget))&&A.stopPropagation()}function OB(){$o||(window.addEventListener("focusin",ir,!0),window.addEventListener("focusout",ir,!0),window.addEventListener("pointerdown",ir,!0),$o=!0),!or&&(or=new MutationObserver(A=>{A.some(t=>t.type==="childList"||t.attributeName==="open"&&t.target.tagName==="DIALOG"||t.attributeName==="inert"||t.attributeName==="aria-hidden"||t.attributeName==="role")&&zd()}),or.observe(document.documentElement,{attributes:!0,attributeFilter:["open","inert","aria-hidden","role"],childList:!0,subtree:!0}))}function gt(A){"showPopover"in A&&(A.setAttribute("popover","manual"),pr.add(A),OB(),zd())}function Bt(A){if(pr.delete(A),pr.size===0&&(or&&(or.disconnect(),or=null),$o&&(window.removeEventListener("focusin",ir,!0),window.removeEventListener("focusout",ir,!0),window.removeEventListener("pointerdown",ir,!0),$o=!1),Ea=!1),"hidePopover"in A)try{A.hidePopover()}catch(e){}}function Bc(A="ap-sdk-highlight"){const e=document.createElement("div");return e.className=A,e.setAttribute("data-ap-sdk","1"),e.style.display="none",document.body.appendChild(e),gt(e),{el:e,update:s=>{const o=s.getBoundingClientRect();e.style.top=`${o.top}px`,e.style.left=`${o.left}px`,e.style.width=`${o.width}px`,e.style.height=`${o.height}px`,e.style.display="block"},hide:()=>{e.style.display="none"},destroy:()=>{Bt(e),e.remove()}}}const Vd=/^cc-|current-password|new-password/i,PB=/token|secret|password|apikey|auth/i,zi="[redacted]",MB="data-ap-sdk-exclude",zo=`[${MB}]`;let ka=null;function KB(A){ka=(A==null?void 0:A.trim())||null}function Gd(){return ka?`${zo}, ${ka}`:zo}function wc(A){let e;try{if(e=Gd(),A.matches(e)){A.textContent="";return}for(const t of Array.from(A.querySelectorAll(e)))t.remove()}catch(t){for(const n of Array.from(A.querySelectorAll(zo)))n.remove()}}function Zd(A){if(A instanceof HTMLInputElement&&A.type==="password")return!0;const e=A.getAttribute("autocomplete");return!!e&&Vd.test(e)}function yl(A){if(Zd(A))return!0;try{return A.closest(Gd())!==null}catch(e){return A.closest(zo)!==null}}function Xd(A){const e=[A,...Array.from(A.querySelectorAll("*"))];for(const t of e){t instanceof HTMLInputElement&&t.type==="password"&&t.setAttribute("value",zi);const n=t.getAttribute("autocomplete");n&&Vd.test(n)&&t.setAttribute("value",zi);for(const r of Array.from(t.attributes))PB.test(r.name)&&t.setAttribute(r.name,zi)}}const NB="🎯 Click any element to capture";let Vt=null,$A=null,YA=null;function as(A){return A instanceof Element?A.closest("[data-ap-sdk]")!==null||A.closest(".ap-sdk-panel")!==null||A.closest(".ap-sdk-highlight")!==null||A.closest(".ap-sdk-picker-cursor")!==null:!1}function $B(){var A,e;return((e=(A=window.matchMedia)==null?void 0:A.call(window,"(pointer: coarse)").matches)!=null?e:!1)||"ontouchstart"in window}function Ul(A){Vt==null||Vt.update(A)}function Wd(A){const e=$d(),t=TB(A),n=HB(A);let r=A,s;try{const o=A.cloneNode(!0);Xd(o),wc(o),r=o,s=o.outerHTML.slice(0,4e3)}catch(o){}return F(F({pageUrl:window.location.href,pageTitle:document.title,elementText:No(r),cssSelector:Eo(A),innerTree:FB(r),outerTree:IB(A),elementOuterHtml:s,ancestry:t},n),e)}function Fa(A,e){YA&&YA();const t=$B();Vt=Bc(),$A=document.createElement("div"),$A.className="ap-sdk-picker-cursor",$A.setAttribute("data-ap-sdk","1"),$A.textContent=t?"Tap any element to preview":NB,document.body.appendChild($A),gt($A);let n=null,r=null;const s=u=>{YA==null||YA(),A(Wd(u),u)},o=u=>{if(r=u,Ul(u),!$A)return;$A.classList.add("ap-sdk-picker-cursor--confirm"),$A.innerHTML="";const h=document.createElement("span");h.className="ap-sdk-picker-cursor__label",h.textContent=`<${u.tagName.toLowerCase()}>`;const f=document.createElement("button");f.type="button",f.className="ap-sdk-picker-cursor__btn ap-sdk-picker-cursor__btn--cancel",f.textContent="✕ Cancel",f.setAttribute("data-ap-sdk","1"),f.setAttribute("aria-label","Cancel picking"),f.addEventListener("click",b=>{b.preventDefault(),b.stopPropagation(),YA==null||YA(),e()});const g=document.createElement("button");g.type="button",g.className="ap-sdk-picker-cursor__btn",g.textContent="⬆ Parent",g.setAttribute("data-ap-sdk","1"),g.addEventListener("click",b=>{b.preventDefault(),b.stopPropagation(),r!=null&&r.parentElement&&o(r.parentElement)});const m=document.createElement("button");m.type="button",m.className="ap-sdk-picker-cursor__btn ap-sdk-picker-cursor__btn--primary",m.textContent="✓ Select",m.setAttribute("data-ap-sdk","1"),m.addEventListener("click",b=>{b.preventDefault(),b.stopPropagation(),r&&s(r)}),$A.appendChild(h),$A.appendChild(f),$A.appendChild(g),$A.appendChild(m)},a=u=>{as(u.target)||(n=u.target,Ul(n))},i=u=>{var f;if(as(u.target))return;u.preventDefault(),u.stopImmediatePropagation();const h=(f=u.target)!=null?f:n;if(h){if(t){o(h);return}s(h)}},c=u=>{u.key==="Escape"&&(YA==null||YA(),e())};t||document.addEventListener("mouseover",a,{capture:!0}),document.addEventListener("click",i,{capture:!0}),document.addEventListener("keydown",c,{capture:!0}),YA=()=>{t||document.removeEventListener("mouseover",a,{capture:!0}),document.removeEventListener("click",i,{capture:!0}),document.removeEventListener("keydown",c,{capture:!0}),$A&&Bt($A),$A==null||$A.remove(),Vt==null||Vt.destroy(),Vt=null,$A=null,r=null,YA=null}}function mc(){YA==null||YA()}function ar(){return YA!==null}const Cc="browser_capture",Jd="browser_automate";var Fo=(A=>(A.TASK="task",A.PLANNING_SESSION="planning_session",A))(Fo||{}),vo=(A=>(A.CREATE="create",A.RETRY="retry",A.LIVE_INSTRUCTION="live_instruction",A.REJECT_RESULT="reject_result",A))(vo||{});const Vs={TASK_STATUS_UPDATED:"task:status:updated",TASK_INTERACTION_CREATED:"task:interaction:created",TASK_INTERACTION_ANSWERED:"task:interaction:answered",TASK_BROWSER_COMMAND_CREATED:"task:browser-command:created"};function _(A,e,t){var a;function n(i,c){if(i._zod||Object.defineProperty(i,"_zod",{value:{def:c,constr:o,traits:new Set},enumerable:!1}),i._zod.traits.has(A))return;i._zod.traits.add(A),e(i,c);const u=o.prototype,h=Object.keys(u);for(let f=0;f<h.length;f++){const g=h[f];g in i||(i[g]=u[g].bind(i))}}const r=(a=t==null?void 0:t.Parent)!=null?a:Object;class s extends r{}Object.defineProperty(s,"name",{value:A});function o(i){var h;var c;const u=t!=null&&t.Parent?new s:this;n(u,i),(h=(c=u._zod).deferred)!=null||(c.deferred=[]);for(const f of u._zod.deferred)f();return u}return Object.defineProperty(o,"init",{value:n}),Object.defineProperty(o,Symbol.hasInstance,{value:i=>{var c,u;return t!=null&&t.Parent&&i instanceof t.Parent?!0:(u=(c=i==null?void 0:i._zod)==null?void 0:c.traits)==null?void 0:u.has(A)}}),Object.defineProperty(o,"name",{value:A}),o}class cr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class jd extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const Yd={};function Xt(A){return Yd}function qd(A){const e=Object.values(A).filter(n=>typeof n=="number");return Object.entries(A).filter(([n,r])=>e.indexOf(+n)===-1).map(([n,r])=>r)}function va(A,e){return typeof e=="bigint"?e.toString():e}function pi(A){return{get value(){{const e=A();return Object.defineProperty(this,"value",{value:e}),e}}}}function bc(A){return A==null}function Qc(A){const e=A.startsWith("^")?1:0,t=A.endsWith("$")?A.length-1:A.length;return A.slice(e,t)}function zB(A,e){const t=(A.toString().split(".")[1]||"").length,n=e.toString();let r=(n.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(n)){const i=n.match(/\d?e-(\d?)/);i!=null&&i[1]&&(r=Number.parseInt(i[1]))}const s=t>r?t:r,o=Number.parseInt(A.toFixed(s).replace(".","")),a=Number.parseInt(e.toFixed(s).replace(".",""));return o%a/me(10,s)}const El=Symbol("evaluating");function aA(A,e,t){let n;Object.defineProperty(A,e,{get(){if(n!==El)return n===void 0&&(n=El,n=t()),n},set(r){Object.defineProperty(A,e,{value:r})},configurable:!0})}function xn(A,e,t){Object.defineProperty(A,e,{value:t,writable:!0,enumerable:!0,configurable:!0})}function jt(...A){const e={};for(const t of A){const n=Object.getOwnPropertyDescriptors(t);Object.assign(e,n)}return Object.defineProperties({},e)}function kl(A){return JSON.stringify(A)}function VB(A){return A.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Ap="captureStackTrace"in Error?Error.captureStackTrace:(...A)=>{};function ds(A){return typeof A=="object"&&A!==null&&!Array.isArray(A)}const GB=pi(()=>{var A;if(typeof navigator!="undefined"&&((A=navigator==null?void 0:navigator.userAgent)!=null&&A.includes("Cloudflare")))return!1;try{const e=Function;return new e(""),!0}catch(e){return!1}});function hr(A){if(ds(A)===!1)return!1;const e=A.constructor;if(e===void 0||typeof e!="function")return!0;const t=e.prototype;return!(ds(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function ep(A){return hr(A)?F({},A):Array.isArray(A)?[...A]:A}const ZB=new Set(["string","number","symbol"]);function fr(A){return A.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Yt(A,e,t){const n=new A._zod.constr(e!=null?e:A._zod.def);return(!e||t!=null&&t.parent)&&(n._zod.parent=A),n}function G(A){const e=A;if(!e)return{};if(typeof e=="string")return{error:()=>e};if((e==null?void 0:e.message)!==void 0){if((e==null?void 0:e.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?z(F({},e),{error:()=>e.error}):e}function XB(A){return Object.keys(A).filter(e=>A[e]._zod.optin==="optional"&&A[e]._zod.optout==="optional")}const WB={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function JB(A,e){const t=A._zod.def,n=t.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=jt(A._zod.def,{get shape(){const o={};for(const a in e){if(!(a in t.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&(o[a]=t.shape[a])}return xn(this,"shape",o),o},checks:[]});return Yt(A,s)}function jB(A,e){const t=A._zod.def,n=t.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=jt(A._zod.def,{get shape(){const o=F({},A._zod.def.shape);for(const a in e){if(!(a in t.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&delete o[a]}return xn(this,"shape",o),o},checks:[]});return Yt(A,s)}function YB(A,e){if(!hr(e))throw new Error("Invalid input to extend: expected a plain object");const t=A._zod.def.checks;if(t&&t.length>0){const s=A._zod.def.shape;for(const o in e)if(Object.getOwnPropertyDescriptor(s,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=jt(A._zod.def,{get shape(){const s=F(F({},A._zod.def.shape),e);return xn(this,"shape",s),s}});return Yt(A,r)}function qB(A,e){if(!hr(e))throw new Error("Invalid input to safeExtend: expected a plain object");const t=jt(A._zod.def,{get shape(){const n=F(F({},A._zod.def.shape),e);return xn(this,"shape",n),n}});return Yt(A,t)}function Aw(A,e){const t=jt(A._zod.def,{get shape(){const n=F(F({},A._zod.def.shape),e._zod.def.shape);return xn(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:[]});return Yt(A,t)}function ew(A,e,t){const r=e._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const o=jt(e._zod.def,{get shape(){const a=e._zod.def.shape,i=F({},a);if(t)for(const c in t){if(!(c in a))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(i[c]=A?new A({type:"optional",innerType:a[c]}):a[c])}else for(const c in a)i[c]=A?new A({type:"optional",innerType:a[c]}):a[c];return xn(this,"shape",i),i},checks:[]});return Yt(e,o)}function tw(A,e,t){const n=jt(e._zod.def,{get shape(){const r=e._zod.def.shape,s=F({},r);if(t)for(const o in t){if(!(o in s))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(s[o]=new A({type:"nonoptional",innerType:r[o]}))}else for(const o in r)s[o]=new A({type:"nonoptional",innerType:r[o]});return xn(this,"shape",s),s}});return Yt(e,n)}function er(A,e=0){var t;if(A.aborted===!0)return!0;for(let n=e;n<A.issues.length;n++)if(((t=A.issues[n])==null?void 0:t.continue)!==!0)return!0;return!1}function tr(A,e){return e.map(t=>{var r;var n;return(r=(n=t).path)!=null||(n.path=[]),t.path.unshift(A),t})}function Gs(A){return typeof A=="string"?A:A==null?void 0:A.message}function Wt(A,e,t){var r,s,o,a,i,c,u,h,f,g,m;const n=z(F({},A),{path:(r=A.path)!=null?r:[]});if(!A.message){const b=(m=(g=(h=(c=Gs((a=(o=(s=A.inst)==null?void 0:s._zod.def)==null?void 0:o.error)==null?void 0:a.call(o,A)))!=null?c:Gs((i=e==null?void 0:e.error)==null?void 0:i.call(e,A)))!=null?h:Gs((u=t.customError)==null?void 0:u.call(t,A)))!=null?g:Gs((f=t.localeError)==null?void 0:f.call(t,A)))!=null?m:"Invalid input";n.message=b}return delete n.inst,delete n.continue,e!=null&&e.reportInput||delete n.input,n}function yc(A){return Array.isArray(A)?"array":typeof A=="string"?"string":"unknown"}function ps(...A){const[e,t,n]=A;return typeof e=="string"?{message:e,code:"custom",input:t,inst:n}:F({},e)}const tp=(A,e)=>{A.name="$ZodError",Object.defineProperty(A,"_zod",{value:A._zod,enumerable:!1}),Object.defineProperty(A,"issues",{value:e,enumerable:!1}),A.message=JSON.stringify(e,va,2),Object.defineProperty(A,"toString",{value:()=>A.message,enumerable:!1})},np=_("$ZodError",tp),rp=_("$ZodError",tp,{Parent:Error});function nw(A,e=t=>t.message){const t={},n=[];for(const r of A.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}function rw(A,e=t=>t.message){const t={_errors:[]},n=r=>{for(const s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(o=>n({issues:o}));else if(s.code==="invalid_key")n({issues:s.issues});else if(s.code==="invalid_element")n({issues:s.issues});else if(s.path.length===0)t._errors.push(e(s));else{let o=t,a=0;for(;a<s.path.length;){const i=s.path[a];a===s.path.length-1?(o[i]=o[i]||{_errors:[]},o[i]._errors.push(e(s))):o[i]=o[i]||{_errors:[]},o=o[i],a++}}};return n(A),t}const Uc=A=>(e,t,n,r)=>{var a;const s=n?Object.assign(n,{async:!1}):{async:!1},o=e._zod.run({value:t,issues:[]},s);if(o instanceof Promise)throw new cr;if(o.issues.length){const i=new((a=r==null?void 0:r.Err)!=null?a:A)(o.issues.map(c=>Wt(c,s,Xt())));throw Ap(i,r==null?void 0:r.callee),i}return o.value},Ec=A=>(e,t,n,r)=>I(null,null,function*(){var a;const s=n?Object.assign(n,{async:!0}):{async:!0};let o=e._zod.run({value:t,issues:[]},s);if(o instanceof Promise&&(o=yield o),o.issues.length){const i=new((a=r==null?void 0:r.Err)!=null?a:A)(o.issues.map(c=>Wt(c,s,Xt())));throw Ap(i,r==null?void 0:r.callee),i}return o.value}),hi=A=>(e,t,n)=>{const r=n?z(F({},n),{async:!1}):{async:!1},s=e._zod.run({value:t,issues:[]},r);if(s instanceof Promise)throw new cr;return s.issues.length?{success:!1,error:new(A!=null?A:np)(s.issues.map(o=>Wt(o,r,Xt())))}:{success:!0,data:s.value}},sw=hi(rp),fi=A=>(e,t,n)=>I(null,null,function*(){const r=n?Object.assign(n,{async:!0}):{async:!0};let s=e._zod.run({value:t,issues:[]},r);return s instanceof Promise&&(s=yield s),s.issues.length?{success:!1,error:new A(s.issues.map(o=>Wt(o,r,Xt())))}:{success:!0,data:s.value}}),ow=fi(rp),iw=A=>(e,t,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Uc(A)(e,t,r)},aw=A=>(e,t,n)=>Uc(A)(e,t,n),cw=A=>(e,t,n)=>I(null,null,function*(){const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ec(A)(e,t,r)}),lw=A=>(e,t,n)=>I(null,null,function*(){return Ec(A)(e,t,n)}),uw=A=>(e,t,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return hi(A)(e,t,r)},dw=A=>(e,t,n)=>hi(A)(e,t,n),pw=A=>(e,t,n)=>I(null,null,function*(){const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return fi(A)(e,t,r)}),hw=A=>(e,t,n)=>I(null,null,function*(){return fi(A)(e,t,n)}),fw=/^[cC][^\s-]{8,}$/,gw=/^[0-9a-z]+$/,Bw=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ww=/^[0-9a-vA-V]{20}$/,mw=/^[A-Za-z0-9]{27}$/,Cw=/^[a-zA-Z0-9_-]{21}$/,bw=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Qw=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Fl=A=>A?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${A}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,yw=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Uw="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ew(){return new RegExp(Uw,"u")}const kw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Fw=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,vw=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,_w=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xw=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,sp=/^[A-Za-z0-9_-]*$/,Sw=/^\+[1-9]\d{6,14}$/,op="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Iw=new RegExp(`^${op}$`);function ip(A){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof A.precision=="number"?A.precision===-1?`${e}`:A.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${A.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Tw(A){return new RegExp(`^${ip(A)}$`)}function Hw(A){const e=ip({precision:A.precision}),t=["Z"];A.local&&t.push(""),A.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${e}(?:${t.join("|")})`;return new RegExp(`^${op}T(?:${n})$`)}const Lw=A=>{var t,n;const e=A?`[\\s\\S]{${(t=A==null?void 0:A.minimum)!=null?t:0},${(n=A==null?void 0:A.maximum)!=null?n:""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},Dw=/^-?\d+$/,ap=/^-?\d+(?:\.\d+)?$/,Rw=/^(?:true|false)$/i,Ow=/^[^A-Z]*$/,Pw=/^[^a-z]*$/,we=_("$ZodCheck",(A,e)=>{var n,r;var t;(n=A._zod)!=null||(A._zod={}),A._zod.def=e,(r=(t=A._zod).onattach)!=null||(t.onattach=[])}),cp={number:"number",bigint:"bigint",object:"date"},lp=_("$ZodCheckLessThan",(A,e)=>{we.init(A,e);const t=cp[typeof e.value];A._zod.onattach.push(n=>{var o;const r=n._zod.bag,s=(o=e.inclusive?r.maximum:r.exclusiveMaximum)!=null?o:Number.POSITIVE_INFINITY;e.value<s&&(e.inclusive?r.maximum=e.value:r.exclusiveMaximum=e.value)}),A._zod.check=n=>{(e.inclusive?n.value<=e.value:n.value<e.value)||n.issues.push({origin:t,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:A,continue:!e.abort})}}),up=_("$ZodCheckGreaterThan",(A,e)=>{we.init(A,e);const t=cp[typeof e.value];A._zod.onattach.push(n=>{var o;const r=n._zod.bag,s=(o=e.inclusive?r.minimum:r.exclusiveMinimum)!=null?o:Number.NEGATIVE_INFINITY;e.value>s&&(e.inclusive?r.minimum=e.value:r.exclusiveMinimum=e.value)}),A._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:t,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:A,continue:!e.abort})}}),Mw=_("$ZodCheckMultipleOf",(A,e)=>{we.init(A,e),A._zod.onattach.push(t=>{var r;var n;(r=(n=t._zod.bag).multipleOf)!=null||(n.multipleOf=e.value)}),A._zod.check=t=>{if(typeof t.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%e.value===BigInt(0):zB(t.value,e.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:e.value,input:t.value,inst:A,continue:!e.abort})}}),Kw=_("$ZodCheckNumberFormat",(A,e)=>{var o;we.init(A,e),e.format=e.format||"float64";const t=(o=e.format)==null?void 0:o.includes("int"),n=t?"int":"number",[r,s]=WB[e.format];A._zod.onattach.push(a=>{const i=a._zod.bag;i.format=e.format,i.minimum=r,i.maximum=s,t&&(i.pattern=Dw)}),A._zod.check=a=>{const i=a.value;if(t){if(!Number.isInteger(i)){a.issues.push({expected:n,format:e.format,code:"invalid_type",continue:!1,input:i,inst:A});return}if(!Number.isSafeInteger(i)){i>0?a.issues.push({input:i,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:A,origin:n,inclusive:!0,continue:!e.abort}):a.issues.push({input:i,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:A,origin:n,inclusive:!0,continue:!e.abort});return}}i<r&&a.issues.push({origin:"number",input:i,code:"too_small",minimum:r,inclusive:!0,inst:A,continue:!e.abort}),i>s&&a.issues.push({origin:"number",input:i,code:"too_big",maximum:s,inclusive:!0,inst:A,continue:!e.abort})}}),Nw=_("$ZodCheckMaxLength",(A,e)=>{var n;var t;we.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!bc(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{var o;const s=(o=r._zod.bag.maximum)!=null?o:Number.POSITIVE_INFINITY;e.maximum<s&&(r._zod.bag.maximum=e.maximum)}),A._zod.check=r=>{const s=r.value;if(s.length<=e.maximum)return;const a=yc(s);r.issues.push({origin:a,code:"too_big",maximum:e.maximum,inclusive:!0,input:s,inst:A,continue:!e.abort})}}),$w=_("$ZodCheckMinLength",(A,e)=>{var n;var t;we.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!bc(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{var o;const s=(o=r._zod.bag.minimum)!=null?o:Number.NEGATIVE_INFINITY;e.minimum>s&&(r._zod.bag.minimum=e.minimum)}),A._zod.check=r=>{const s=r.value;if(s.length>=e.minimum)return;const a=yc(s);r.issues.push({origin:a,code:"too_small",minimum:e.minimum,inclusive:!0,input:s,inst:A,continue:!e.abort})}}),zw=_("$ZodCheckLengthEquals",(A,e)=>{var n;var t;we.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!bc(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{const s=r._zod.bag;s.minimum=e.length,s.maximum=e.length,s.length=e.length}),A._zod.check=r=>{const s=r.value,o=s.length;if(o===e.length)return;const a=yc(s),i=o>e.length;r.issues.push(z(F({origin:a},i?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length}),{inclusive:!0,exact:!0,input:r.value,inst:A,continue:!e.abort}))}}),gi=_("$ZodCheckStringFormat",(A,e)=>{var r,s;var t,n;we.init(A,e),A._zod.onattach.push(o=>{var i;const a=o._zod.bag;a.format=e.format,e.pattern&&((i=a.patterns)!=null||(a.patterns=new Set),a.patterns.add(e.pattern))}),e.pattern?(r=(t=A._zod).check)!=null||(t.check=o=>{e.pattern.lastIndex=0,!e.pattern.test(o.value)&&o.issues.push(z(F({origin:"string",code:"invalid_format",format:e.format,input:o.value},e.pattern?{pattern:e.pattern.toString()}:{}),{inst:A,continue:!e.abort}))}):(s=(n=A._zod).check)!=null||(n.check=()=>{})}),Vw=_("$ZodCheckRegex",(A,e)=>{gi.init(A,e),A._zod.check=t=>{e.pattern.lastIndex=0,!e.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:e.pattern.toString(),inst:A,continue:!e.abort})}}),Gw=_("$ZodCheckLowerCase",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Ow),gi.init(A,e)}),Zw=_("$ZodCheckUpperCase",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Pw),gi.init(A,e)}),Xw=_("$ZodCheckIncludes",(A,e)=>{we.init(A,e);const t=fr(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${t}`:t);e.pattern=n,A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(n)}),A._zod.check=r=>{r.value.includes(e.includes,e.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:r.value,inst:A,continue:!e.abort})}}),Ww=_("$ZodCheckStartsWith",(A,e)=>{var n;we.init(A,e);const t=new RegExp(`^${fr(e.prefix)}.*`);(n=e.pattern)!=null||(e.pattern=t),A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(t)}),A._zod.check=r=>{r.value.startsWith(e.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:r.value,inst:A,continue:!e.abort})}}),Jw=_("$ZodCheckEndsWith",(A,e)=>{var n;we.init(A,e);const t=new RegExp(`.*${fr(e.suffix)}$`);(n=e.pattern)!=null||(e.pattern=t),A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(t)}),A._zod.check=r=>{r.value.endsWith(e.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:r.value,inst:A,continue:!e.abort})}}),jw=_("$ZodCheckOverwrite",(A,e)=>{we.init(A,e),A._zod.check=t=>{t.value=e.tx(t.value)}});class Yw{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const n=e.split(`
|
|
1588
1588
|
`).filter(o=>o),r=Math.min(...n.map(o=>o.length-o.trimStart().length)),s=n.map(o=>o.slice(r)).map(o=>" ".repeat(this.indent*2)+o);for(const o of s)this.content.push(o)}compile(){var s;const e=Function,t=this==null?void 0:this.args,r=[...((s=this==null?void 0:this.content)!=null?s:[""]).map(o=>` ${o}`)];return new e(...t,r.join(`
|
|
1589
|
-
`))}}const Zw={major:4,minor:3,patch:5},yA=x("$ZodType",(A,e)=>{var r,s,o;var t;A!=null||(A={}),A._zod.def=e,A._zod.bag=A._zod.bag||{},A._zod.version=Zw;const n=[...(r=A._zod.def.checks)!=null?r:[]];A._zod.traits.has("$ZodCheck")&&n.unshift(A);for(const a of n)for(const i of a._zod.onattach)i(A);if(n.length===0)(s=(t=A._zod).deferred)!=null||(t.deferred=[]),(o=A._zod.deferred)==null||o.push(()=>{A._zod.run=A._zod.parse});else{const a=(c,u,h)=>{let f=Ar(c),g;for(const m of u){if(m._zod.def.when){if(!m._zod.def.when(c))continue}else if(f)continue;const b=c.issues.length,U=m._zod.check(c);if(U instanceof Promise&&(h==null?void 0:h.async)===!1)throw new ar;if(g||U instanceof Promise)g=(g!=null?g:Promise.resolve()).then(()=>I(null,null,function*(){yield U,c.issues.length!==b&&(f||(f=Ar(c,b)))}));else{if(c.issues.length===b)continue;f||(f=Ar(c,b))}}return g?g.then(()=>c):c},i=(c,u,h)=>{if(Ar(c))return c.aborted=!0,c;const f=a(u,n,h);if(f instanceof Promise){if(h.async===!1)throw new ar;return f.then(g=>A._zod.parse(g,h))}return A._zod.parse(f,h)};A._zod.run=(c,u)=>{if(u.skipChecks)return A._zod.parse(c,u);if(u.direction==="backward"){const f=A._zod.parse({value:c.value,issues:[]},$(k({},u),{skipChecks:!0}));return f instanceof Promise?f.then(g=>i(g,c,u)):i(f,c,u)}const h=A._zod.parse(c,u);if(h instanceof Promise){if(u.async===!1)throw new ar;return h.then(f=>a(f,n,u))}return a(h,n,u)}}aA(A,"~standard",()=>({validate:a=>{var i;try{const c=qB(A,a);return c.success?{value:c.data}:{issues:(i=c.error)==null?void 0:i.issues}}catch(c){return Aw(A,a).then(u=>{var h;return u.success?{value:u.data}:{issues:(h=u.error)==null?void 0:h.issues}})}},vendor:"zod",version:1}))}),Qc=x("$ZodString",(A,e)=>{var t,n,r;yA.init(A,e),A._zod.pattern=(r=[...(n=(t=A==null?void 0:A._zod.bag)==null?void 0:t.patterns)!=null?n:[]].pop())!=null?r:_w(A._zod.bag),A._zod.parse=(s,o)=>{if(e.coerce)try{s.value=String(s.value)}catch(a){}return typeof s.value=="string"||s.issues.push({expected:"string",code:"invalid_type",input:s.value,inst:A}),s}}),UA=x("$ZodStringFormat",(A,e)=>{hi.init(A,e),Qc.init(A,e)}),Xw=x("$ZodGUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=gw),UA.init(A,e)}),Ww=x("$ZodUUID",(A,e)=>{var t,n;if(e.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(s===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);(t=e.pattern)!=null||(e.pattern=yl(s))}else(n=e.pattern)!=null||(e.pattern=yl());UA.init(A,e)}),Jw=x("$ZodEmail",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Bw),UA.init(A,e)}),jw=x("$ZodURL",(A,e)=>{UA.init(A,e),A._zod.check=t=>{try{const n=t.value.trim(),r=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(r.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:t.value,inst:A,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:t.value,inst:A,continue:!e.abort})),e.normalize?t.value=r.href:t.value=n;return}catch(n){t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:A,continue:!e.abort})}}}),Yw=x("$ZodEmoji",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=mw()),UA.init(A,e)}),qw=x("$ZodNanoID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=hw),UA.init(A,e)}),Am=x("$ZodCUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=cw),UA.init(A,e)}),em=x("$ZodCUID2",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=lw),UA.init(A,e)}),tm=x("$ZodULID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=uw),UA.init(A,e)}),nm=x("$ZodXID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=dw),UA.init(A,e)}),rm=x("$ZodKSUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=pw),UA.init(A,e)}),sm=x("$ZodISODateTime",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=vw(e)),UA.init(A,e)}),om=x("$ZodISODate",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=kw),UA.init(A,e)}),im=x("$ZodISOTime",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Fw(e)),UA.init(A,e)}),am=x("$ZodISODuration",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=fw),UA.init(A,e)}),cm=x("$ZodIPv4",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Cw),UA.init(A,e),A._zod.bag.format="ipv4"}),lm=x("$ZodIPv6",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=bw),UA.init(A,e),A._zod.bag.format="ipv6",A._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch(r){n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:A,continue:!e.abort})}}}),um=x("$ZodCIDRv4",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Qw),UA.init(A,e)}),dm=x("$ZodCIDRv6",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=yw),UA.init(A,e),A._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[s,o]=r;if(!o)throw new Error;const a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${s}]`)}catch(s){n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:A,continue:!e.abort})}}});function sp(A){if(A==="")return!0;if(A.length%4!==0)return!1;try{return atob(A),!0}catch(e){return!1}}const pm=x("$ZodBase64",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Uw),UA.init(A,e),A._zod.bag.contentEncoding="base64",A._zod.check=n=>{sp(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:A,continue:!e.abort})}});function hm(A){if(!Yd.test(A))return!1;const e=A.replace(/[-_]/g,n=>n==="-"?"+":"/"),t=e.padEnd(Math.ceil(e.length/4)*4,"=");return sp(t)}const fm=x("$ZodBase64URL",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Yd),UA.init(A,e),A._zod.bag.contentEncoding="base64url",A._zod.check=n=>{hm(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:A,continue:!e.abort})}}),gm=x("$ZodE164",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Ew),UA.init(A,e)});function Bm(A,e=null){try{const t=A.split(".");if(t.length!==3)return!1;const[n]=t;if(!n)return!1;const r=JSON.parse(atob(n));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||e&&(!("alg"in r)||r.alg!==e))}catch(t){return!1}}const wm=x("$ZodJWT",(A,e)=>{UA.init(A,e),A._zod.check=t=>{Bm(t.value,e.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:A,continue:!e.abort})}}),op=x("$ZodNumber",(A,e)=>{var t;yA.init(A,e),A._zod.pattern=(t=A._zod.bag.pattern)!=null?t:ep,A._zod.parse=(n,r)=>{if(e.coerce)try{n.value=Number(n.value)}catch(a){}const s=n.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return n;const o=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return n.issues.push(k({expected:"number",code:"invalid_type",input:s,inst:A},o?{received:o}:{})),n}}),mm=x("$ZodNumberFormat",(A,e)=>{Lw.init(A,e),op.init(A,e)}),Cm=x("$ZodBoolean",(A,e)=>{yA.init(A,e),A._zod.pattern=Sw,A._zod.parse=(t,n)=>{if(e.coerce)try{t.value=!!t.value}catch(s){}const r=t.value;return typeof r=="boolean"||t.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:A}),t}}),bm=x("$ZodAny",(A,e)=>{yA.init(A,e),A._zod.parse=t=>t}),Qm=x("$ZodUnknown",(A,e)=>{yA.init(A,e),A._zod.parse=t=>t}),ym=x("$ZodNever",(A,e)=>{yA.init(A,e),A._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:A}),t)});function Ul(A,e,t){A.issues.length&&e.issues.push(...er(t,A.issues)),e.value[t]=A.value}const Um=x("$ZodArray",(A,e)=>{yA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value;if(!Array.isArray(r))return t.issues.push({expected:"array",code:"invalid_type",input:r,inst:A}),t;t.value=Array(r.length);const s=[];for(let o=0;o<r.length;o++){const a=r[o],i=e.element._zod.run({value:a,issues:[]},n);i instanceof Promise?s.push(i.then(c=>Ul(c,t,o))):Ul(i,t,o)}return s.length?Promise.all(s).then(()=>t):t}});function $o(A,e,t,n,r){if(A.issues.length){if(r&&!(t in n))return;e.issues.push(...er(t,A.issues))}A.value===void 0?t in n&&(e.value[t]=void 0):e.value[t]=A.value}function ip(A){var n,r,s,o;const e=Object.keys(A.shape);for(const a of e)if(!((o=(s=(r=(n=A.shape)==null?void 0:n[a])==null?void 0:r._zod)==null?void 0:s.traits)!=null&&o.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const t=NB(A.shape);return $(k({},A),{keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(t)})}function ap(A,e,t,n,r,s){const o=[],a=r.keySet,i=r.catchall._zod,c=i.def.type,u=i.optout==="optional";for(const h in e){if(a.has(h))continue;if(c==="never"){o.push(h);continue}const f=i.run({value:e[h],issues:[]},n);f instanceof Promise?A.push(f.then(g=>$o(g,t,h,e,u))):$o(f,t,h,e,u)}return o.length&&t.issues.push({code:"unrecognized_keys",keys:o,input:e,inst:s}),A.length?Promise.all(A).then(()=>t):t}const Em=x("$ZodObject",(A,e)=>{yA.init(A,e);const t=Object.getOwnPropertyDescriptor(e,"shape");if(!(t!=null&&t.get)){const a=e.shape;Object.defineProperty(e,"shape",{get:()=>{const i=k({},a);return Object.defineProperty(e,"shape",{value:i}),i}})}const n=ui(()=>ip(e));aA(A._zod,"propValues",()=>{var c;const a=e.shape,i={};for(const u in a){const h=a[u]._zod;if(h.values){(c=i[u])!=null||(i[u]=new Set);for(const f of h.values)i[u].add(f)}}return i});const r=ds,s=e.catchall;let o;A._zod.parse=(a,i)=>{o!=null||(o=n.value);const c=a.value;if(!r(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:A}),a;a.value={};const u=[],h=o.shape;for(const f of o.keys){const g=h[f],m=g._zod.optout==="optional",b=g._zod.run({value:c[f],issues:[]},i);b instanceof Promise?u.push(b.then(U=>$o(U,a,f,c,m))):$o(b,a,f,c,m)}return s?ap(u,c,a,i,n.value,A):u.length?Promise.all(u).then(()=>a):a}}),km=x("$ZodObjectJIT",(A,e)=>{Em.init(A,e);const t=A._zod.parse,n=ui(()=>ip(e)),r=f=>{var F;const g=new Gw(["shape","payload","ctx"]),m=n.value,b=y=>{const _=Ql(y);return`shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`};g.write("const input = payload.value;");const U=Object.create(null);let E=0;for(const y of m.keys)U[y]=`key_${E++}`;g.write("const newResult = {};");for(const y of m.keys){const _=U[y],R=Ql(y),H=f[y],z=((F=H==null?void 0:H._zod)==null?void 0:F.optout)==="optional";g.write(`const ${_} = ${b(y)};`),z?g.write(`
|
|
1590
|
-
if (${
|
|
1591
|
-
if (${
|
|
1592
|
-
payload.issues = payload.issues.concat(${
|
|
1589
|
+
`))}}const qw={major:4,minor:3,patch:5},QA=_("$ZodType",(A,e)=>{var r,s,o;var t;A!=null||(A={}),A._zod.def=e,A._zod.bag=A._zod.bag||{},A._zod.version=qw;const n=[...(r=A._zod.def.checks)!=null?r:[]];A._zod.traits.has("$ZodCheck")&&n.unshift(A);for(const a of n)for(const i of a._zod.onattach)i(A);if(n.length===0)(s=(t=A._zod).deferred)!=null||(t.deferred=[]),(o=A._zod.deferred)==null||o.push(()=>{A._zod.run=A._zod.parse});else{const a=(c,u,h)=>{let f=er(c),g;for(const m of u){if(m._zod.def.when){if(!m._zod.def.when(c))continue}else if(f)continue;const b=c.issues.length,k=m._zod.check(c);if(k instanceof Promise&&(h==null?void 0:h.async)===!1)throw new cr;if(g||k instanceof Promise)g=(g!=null?g:Promise.resolve()).then(()=>I(null,null,function*(){yield k,c.issues.length!==b&&(f||(f=er(c,b)))}));else{if(c.issues.length===b)continue;f||(f=er(c,b))}}return g?g.then(()=>c):c},i=(c,u,h)=>{if(er(c))return c.aborted=!0,c;const f=a(u,n,h);if(f instanceof Promise){if(h.async===!1)throw new cr;return f.then(g=>A._zod.parse(g,h))}return A._zod.parse(f,h)};A._zod.run=(c,u)=>{if(u.skipChecks)return A._zod.parse(c,u);if(u.direction==="backward"){const f=A._zod.parse({value:c.value,issues:[]},z(F({},u),{skipChecks:!0}));return f instanceof Promise?f.then(g=>i(g,c,u)):i(f,c,u)}const h=A._zod.parse(c,u);if(h instanceof Promise){if(u.async===!1)throw new cr;return h.then(f=>a(f,n,u))}return a(h,n,u)}}aA(A,"~standard",()=>({validate:a=>{var i;try{const c=sw(A,a);return c.success?{value:c.data}:{issues:(i=c.error)==null?void 0:i.issues}}catch(c){return ow(A,a).then(u=>{var h;return u.success?{value:u.data}:{issues:(h=u.error)==null?void 0:h.issues}})}},vendor:"zod",version:1}))}),kc=_("$ZodString",(A,e)=>{var t,n,r;QA.init(A,e),A._zod.pattern=(r=[...(n=(t=A==null?void 0:A._zod.bag)==null?void 0:t.patterns)!=null?n:[]].pop())!=null?r:Lw(A._zod.bag),A._zod.parse=(s,o)=>{if(e.coerce)try{s.value=String(s.value)}catch(a){}return typeof s.value=="string"||s.issues.push({expected:"string",code:"invalid_type",input:s.value,inst:A}),s}}),yA=_("$ZodStringFormat",(A,e)=>{gi.init(A,e),kc.init(A,e)}),Am=_("$ZodGUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Qw),yA.init(A,e)}),em=_("$ZodUUID",(A,e)=>{var t,n;if(e.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(s===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);(t=e.pattern)!=null||(e.pattern=Fl(s))}else(n=e.pattern)!=null||(e.pattern=Fl());yA.init(A,e)}),tm=_("$ZodEmail",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=yw),yA.init(A,e)}),nm=_("$ZodURL",(A,e)=>{yA.init(A,e),A._zod.check=t=>{try{const n=t.value.trim(),r=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(r.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:t.value,inst:A,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:t.value,inst:A,continue:!e.abort})),e.normalize?t.value=r.href:t.value=n;return}catch(n){t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:A,continue:!e.abort})}}}),rm=_("$ZodEmoji",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Ew()),yA.init(A,e)}),sm=_("$ZodNanoID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Cw),yA.init(A,e)}),om=_("$ZodCUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=fw),yA.init(A,e)}),im=_("$ZodCUID2",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=gw),yA.init(A,e)}),am=_("$ZodULID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Bw),yA.init(A,e)}),cm=_("$ZodXID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=ww),yA.init(A,e)}),lm=_("$ZodKSUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=mw),yA.init(A,e)}),um=_("$ZodISODateTime",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Hw(e)),yA.init(A,e)}),dm=_("$ZodISODate",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Iw),yA.init(A,e)}),pm=_("$ZodISOTime",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Tw(e)),yA.init(A,e)}),hm=_("$ZodISODuration",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=bw),yA.init(A,e)}),fm=_("$ZodIPv4",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=kw),yA.init(A,e),A._zod.bag.format="ipv4"}),gm=_("$ZodIPv6",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Fw),yA.init(A,e),A._zod.bag.format="ipv6",A._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch(r){n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:A,continue:!e.abort})}}}),Bm=_("$ZodCIDRv4",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=vw),yA.init(A,e)}),wm=_("$ZodCIDRv6",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=_w),yA.init(A,e),A._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[s,o]=r;if(!o)throw new Error;const a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${s}]`)}catch(s){n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:A,continue:!e.abort})}}});function dp(A){if(A==="")return!0;if(A.length%4!==0)return!1;try{return atob(A),!0}catch(e){return!1}}const mm=_("$ZodBase64",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=xw),yA.init(A,e),A._zod.bag.contentEncoding="base64",A._zod.check=n=>{dp(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:A,continue:!e.abort})}});function Cm(A){if(!sp.test(A))return!1;const e=A.replace(/[-_]/g,n=>n==="-"?"+":"/"),t=e.padEnd(Math.ceil(e.length/4)*4,"=");return dp(t)}const bm=_("$ZodBase64URL",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=sp),yA.init(A,e),A._zod.bag.contentEncoding="base64url",A._zod.check=n=>{Cm(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:A,continue:!e.abort})}}),Qm=_("$ZodE164",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Sw),yA.init(A,e)});function ym(A,e=null){try{const t=A.split(".");if(t.length!==3)return!1;const[n]=t;if(!n)return!1;const r=JSON.parse(atob(n));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||e&&(!("alg"in r)||r.alg!==e))}catch(t){return!1}}const Um=_("$ZodJWT",(A,e)=>{yA.init(A,e),A._zod.check=t=>{ym(t.value,e.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:A,continue:!e.abort})}}),pp=_("$ZodNumber",(A,e)=>{var t;QA.init(A,e),A._zod.pattern=(t=A._zod.bag.pattern)!=null?t:ap,A._zod.parse=(n,r)=>{if(e.coerce)try{n.value=Number(n.value)}catch(a){}const s=n.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return n;const o=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return n.issues.push(F({expected:"number",code:"invalid_type",input:s,inst:A},o?{received:o}:{})),n}}),Em=_("$ZodNumberFormat",(A,e)=>{Kw.init(A,e),pp.init(A,e)}),km=_("$ZodBoolean",(A,e)=>{QA.init(A,e),A._zod.pattern=Rw,A._zod.parse=(t,n)=>{if(e.coerce)try{t.value=!!t.value}catch(s){}const r=t.value;return typeof r=="boolean"||t.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:A}),t}}),Fm=_("$ZodAny",(A,e)=>{QA.init(A,e),A._zod.parse=t=>t}),vm=_("$ZodUnknown",(A,e)=>{QA.init(A,e),A._zod.parse=t=>t}),_m=_("$ZodNever",(A,e)=>{QA.init(A,e),A._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:A}),t)});function vl(A,e,t){A.issues.length&&e.issues.push(...tr(t,A.issues)),e.value[t]=A.value}const xm=_("$ZodArray",(A,e)=>{QA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value;if(!Array.isArray(r))return t.issues.push({expected:"array",code:"invalid_type",input:r,inst:A}),t;t.value=Array(r.length);const s=[];for(let o=0;o<r.length;o++){const a=r[o],i=e.element._zod.run({value:a,issues:[]},n);i instanceof Promise?s.push(i.then(c=>vl(c,t,o))):vl(i,t,o)}return s.length?Promise.all(s).then(()=>t):t}});function Vo(A,e,t,n,r){if(A.issues.length){if(r&&!(t in n))return;e.issues.push(...tr(t,A.issues))}A.value===void 0?t in n&&(e.value[t]=void 0):e.value[t]=A.value}function hp(A){var n,r,s,o;const e=Object.keys(A.shape);for(const a of e)if(!((o=(s=(r=(n=A.shape)==null?void 0:n[a])==null?void 0:r._zod)==null?void 0:s.traits)!=null&&o.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const t=XB(A.shape);return z(F({},A),{keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(t)})}function fp(A,e,t,n,r,s){const o=[],a=r.keySet,i=r.catchall._zod,c=i.def.type,u=i.optout==="optional";for(const h in e){if(a.has(h))continue;if(c==="never"){o.push(h);continue}const f=i.run({value:e[h],issues:[]},n);f instanceof Promise?A.push(f.then(g=>Vo(g,t,h,e,u))):Vo(f,t,h,e,u)}return o.length&&t.issues.push({code:"unrecognized_keys",keys:o,input:e,inst:s}),A.length?Promise.all(A).then(()=>t):t}const Sm=_("$ZodObject",(A,e)=>{QA.init(A,e);const t=Object.getOwnPropertyDescriptor(e,"shape");if(!(t!=null&&t.get)){const a=e.shape;Object.defineProperty(e,"shape",{get:()=>{const i=F({},a);return Object.defineProperty(e,"shape",{value:i}),i}})}const n=pi(()=>hp(e));aA(A._zod,"propValues",()=>{var c;const a=e.shape,i={};for(const u in a){const h=a[u]._zod;if(h.values){(c=i[u])!=null||(i[u]=new Set);for(const f of h.values)i[u].add(f)}}return i});const r=ds,s=e.catchall;let o;A._zod.parse=(a,i)=>{o!=null||(o=n.value);const c=a.value;if(!r(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:A}),a;a.value={};const u=[],h=o.shape;for(const f of o.keys){const g=h[f],m=g._zod.optout==="optional",b=g._zod.run({value:c[f],issues:[]},i);b instanceof Promise?u.push(b.then(k=>Vo(k,a,f,c,m))):Vo(b,a,f,c,m)}return s?fp(u,c,a,i,n.value,A):u.length?Promise.all(u).then(()=>a):a}}),Im=_("$ZodObjectJIT",(A,e)=>{Sm.init(A,e);const t=A._zod.parse,n=pi(()=>hp(e)),r=f=>{var y;const g=new Yw(["shape","payload","ctx"]),m=n.value,b=U=>{const x=kl(U);return`shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`};g.write("const input = payload.value;");const k=Object.create(null);let E=0;for(const U of m.keys)k[U]=`key_${E++}`;g.write("const newResult = {};");for(const U of m.keys){const x=k[U],D=kl(U),H=f[U],Z=((y=H==null?void 0:H._zod)==null?void 0:y.optout)==="optional";g.write(`const ${x} = ${b(U)};`),Z?g.write(`
|
|
1590
|
+
if (${x}.issues.length) {
|
|
1591
|
+
if (${D} in input) {
|
|
1592
|
+
payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
|
|
1593
1593
|
...iss,
|
|
1594
|
-
path: iss.path ? [${
|
|
1594
|
+
path: iss.path ? [${D}, ...iss.path] : [${D}]
|
|
1595
1595
|
})));
|
|
1596
1596
|
}
|
|
1597
1597
|
}
|
|
1598
1598
|
|
|
1599
|
-
if (${
|
|
1600
|
-
if (${
|
|
1601
|
-
newResult[${
|
|
1599
|
+
if (${x}.value === undefined) {
|
|
1600
|
+
if (${D} in input) {
|
|
1601
|
+
newResult[${D}] = undefined;
|
|
1602
1602
|
}
|
|
1603
1603
|
} else {
|
|
1604
|
-
newResult[${
|
|
1604
|
+
newResult[${D}] = ${x}.value;
|
|
1605
1605
|
}
|
|
1606
1606
|
|
|
1607
1607
|
`):g.write(`
|
|
1608
|
-
if (${
|
|
1609
|
-
payload.issues = payload.issues.concat(${
|
|
1608
|
+
if (${x}.issues.length) {
|
|
1609
|
+
payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
|
|
1610
1610
|
...iss,
|
|
1611
|
-
path: iss.path ? [${
|
|
1611
|
+
path: iss.path ? [${D}, ...iss.path] : [${D}]
|
|
1612
1612
|
})));
|
|
1613
1613
|
}
|
|
1614
1614
|
|
|
1615
|
-
if (${
|
|
1616
|
-
if (${
|
|
1617
|
-
newResult[${
|
|
1615
|
+
if (${x}.value === undefined) {
|
|
1616
|
+
if (${D} in input) {
|
|
1617
|
+
newResult[${D}] = undefined;
|
|
1618
1618
|
}
|
|
1619
1619
|
} else {
|
|
1620
|
-
newResult[${
|
|
1620
|
+
newResult[${D}] = ${x}.value;
|
|
1621
1621
|
}
|
|
1622
1622
|
|
|
1623
|
-
`)}g.write("payload.value = newResult;"),g.write("return payload;");const v=g.compile();return(y,_)=>v(f,y,_)};let s;const o=ds,a=!Vd.jitless,c=a&&MB.value,u=e.catchall;let h;A._zod.parse=(f,g)=>{h!=null||(h=n.value);const m=f.value;return o(m)?a&&c&&(g==null?void 0:g.async)===!1&&g.jitless!==!0?(s||(s=r(e.shape)),f=s(f,g),u?ap([],m,f,g,h,A):f):t(f,g):(f.issues.push({expected:"object",code:"invalid_type",input:m,inst:A}),f)}});function El(A,e,t,n){for(const s of A)if(s.issues.length===0)return e.value=s.value,e;const r=A.filter(s=>!Ar(s));return r.length===1?(e.value=r[0].value,r[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:t,errors:A.map(s=>s.issues.map(o=>Xt(o,n,Zt())))}),e)}const cp=x("$ZodUnion",(A,e)=>{yA.init(A,e),aA(A._zod,"optin",()=>e.options.some(r=>r._zod.optin==="optional")?"optional":void 0),aA(A._zod,"optout",()=>e.options.some(r=>r._zod.optout==="optional")?"optional":void 0),aA(A._zod,"values",()=>{if(e.options.every(r=>r._zod.values))return new Set(e.options.flatMap(r=>Array.from(r._zod.values)))}),aA(A._zod,"pattern",()=>{if(e.options.every(r=>r._zod.pattern)){const r=e.options.map(s=>s._zod.pattern);return new RegExp(`^(${r.map(s=>wc(s.source)).join("|")})$`)}});const t=e.options.length===1,n=e.options[0]._zod.run;A._zod.parse=(r,s)=>{if(t)return n(r,s);let o=!1;const a=[];for(const i of e.options){const c=i._zod.run({value:r.value,issues:[]},s);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(i=>El(i,r,A,s)):El(a,r,A,s)}}),Fm=x("$ZodDiscriminatedUnion",(A,e)=>{e.inclusive=!1,cp.init(A,e);const t=A._zod.parse;aA(A._zod,"propValues",()=>{const r={};for(const s of e.options){const o=s._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(const[a,i]of Object.entries(o)){r[a]||(r[a]=new Set);for(const c of i)r[a].add(c)}}return r});const n=ui(()=>{var o;const r=e.options,s=new Map;for(const a of r){const i=(o=a._zod.propValues)==null?void 0:o[e.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(const c of i){if(s.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);s.set(c,a)}}return s});A._zod.parse=(r,s)=>{const o=r.value;if(!ds(o))return r.issues.push({code:"invalid_type",expected:"object",input:o,inst:A}),r;const a=n.value.get(o==null?void 0:o[e.discriminator]);return a?a._zod.run(r,s):e.unionFallback?t(r,s):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:o,path:[e.discriminator],inst:A}),r)}}),vm=x("$ZodIntersection",(A,e)=>{yA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value,s=e.left._zod.run({value:r,issues:[]},n),o=e.right._zod.run({value:r,issues:[]},n);return s instanceof Promise||o instanceof Promise?Promise.all([s,o]).then(([i,c])=>kl(t,i,c)):kl(t,s,o)}});function ka(A,e){if(A===e)return{valid:!0,data:A};if(A instanceof Date&&e instanceof Date&&+A==+e)return{valid:!0,data:A};if(pr(A)&&pr(e)){const t=Object.keys(e),n=Object.keys(A).filter(s=>t.indexOf(s)!==-1),r=k(k({},A),e);for(const s of n){const o=ka(A[s],e[s]);if(!o.valid)return{valid:!1,mergeErrorPath:[s,...o.mergeErrorPath]};r[s]=o.data}return{valid:!0,data:r}}if(Array.isArray(A)&&Array.isArray(e)){if(A.length!==e.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let n=0;n<A.length;n++){const r=A[n],s=e[n],o=ka(r,s);if(!o.valid)return{valid:!1,mergeErrorPath:[n,...o.mergeErrorPath]};t.push(o.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function kl(A,e,t){const n=new Map;let r;for(const a of e.issues)if(a.code==="unrecognized_keys"){r!=null||(r=a);for(const i of a.keys)n.has(i)||n.set(i,{}),n.get(i).l=!0}else A.issues.push(a);for(const a of t.issues)if(a.code==="unrecognized_keys")for(const i of a.keys)n.has(i)||n.set(i,{}),n.get(i).r=!0;else A.issues.push(a);const s=[...n].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(s.length&&r&&A.issues.push($(k({},r),{keys:s})),Ar(A))return A;const o=ka(e.value,t.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return A.value=o.data,A}const _m=x("$ZodRecord",(A,e)=>{yA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value;if(!pr(r))return t.issues.push({expected:"record",code:"invalid_type",input:r,inst:A}),t;const s=[],o=e.keyType._zod.values;if(o){t.value={};const a=new Set;for(const c of o)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){a.add(typeof c=="number"?c.toString():c);const u=e.valueType._zod.run({value:r[c],issues:[]},n);u instanceof Promise?s.push(u.then(h=>{h.issues.length&&t.issues.push(...er(c,h.issues)),t.value[c]=h.value})):(u.issues.length&&t.issues.push(...er(c,u.issues)),t.value[c]=u.value)}let i;for(const c in r)a.has(c)||(i=i!=null?i:[],i.push(c));i&&i.length>0&&t.issues.push({code:"unrecognized_keys",input:r,inst:A,keys:i})}else{t.value={};for(const a of Reflect.ownKeys(r)){if(a==="__proto__")continue;let i=e.keyType._zod.run({value:a,issues:[]},n);if(i instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&ep.test(a)&&i.issues.length&&i.issues.some(h=>h.code==="invalid_type"&&h.expected==="number")){const h=e.keyType._zod.run({value:Number(a),issues:[]},n);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(i=h)}if(i.issues.length){e.mode==="loose"?t.value[a]=r[a]:t.issues.push({code:"invalid_key",origin:"record",issues:i.issues.map(h=>Xt(h,n,Zt())),input:a,path:[a],inst:A});continue}const u=e.valueType._zod.run({value:r[a],issues:[]},n);u instanceof Promise?s.push(u.then(h=>{h.issues.length&&t.issues.push(...er(a,h.issues)),t.value[i.value]=h.value})):(u.issues.length&&t.issues.push(...er(a,u.issues)),t.value[i.value]=u.value)}}return s.length?Promise.all(s).then(()=>t):t}}),xm=x("$ZodEnum",(A,e)=>{yA.init(A,e);const t=Gd(e.entries),n=new Set(t);A._zod.values=n,A._zod.pattern=new RegExp(`^(${t.filter(r=>KB.has(typeof r)).map(r=>typeof r=="string"?hr(r):r.toString()).join("|")})$`),A._zod.parse=(r,s)=>{const o=r.value;return n.has(o)||r.issues.push({code:"invalid_value",values:t,input:o,inst:A}),r}}),Sm=x("$ZodLiteral",(A,e)=>{if(yA.init(A,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");const t=new Set(e.values);A._zod.values=t,A._zod.pattern=new RegExp(`^(${e.values.map(n=>typeof n=="string"?hr(n):n?hr(n.toString()):String(n)).join("|")})$`),A._zod.parse=(n,r)=>{const s=n.value;return t.has(s)||n.issues.push({code:"invalid_value",values:e.values,input:s,inst:A}),n}}),Im=x("$ZodTransform",(A,e)=>{yA.init(A,e),A._zod.parse=(t,n)=>{if(n.direction==="backward")throw new zd(A.constructor.name);const r=e.transform(t.value,t);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(o=>(t.value=o,t));if(r instanceof Promise)throw new ar;return t.value=r,t}});function Fl(A,e){return A.issues.length&&e===void 0?{issues:[],value:void 0}:A}const lp=x("$ZodOptional",(A,e)=>{yA.init(A,e),A._zod.optin="optional",A._zod.optout="optional",aA(A._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),aA(A._zod,"pattern",()=>{const t=e.innerType._zod.pattern;return t?new RegExp(`^(${wc(t.source)})?$`):void 0}),A._zod.parse=(t,n)=>{if(e.innerType._zod.optin==="optional"){const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>Fl(s,t.value)):Fl(r,t.value)}return t.value===void 0?t:e.innerType._zod.run(t,n)}}),Tm=x("$ZodExactOptional",(A,e)=>{lp.init(A,e),aA(A._zod,"values",()=>e.innerType._zod.values),aA(A._zod,"pattern",()=>e.innerType._zod.pattern),A._zod.parse=(t,n)=>e.innerType._zod.run(t,n)}),Hm=x("$ZodNullable",(A,e)=>{yA.init(A,e),aA(A._zod,"optin",()=>e.innerType._zod.optin),aA(A._zod,"optout",()=>e.innerType._zod.optout),aA(A._zod,"pattern",()=>{const t=e.innerType._zod.pattern;return t?new RegExp(`^(${wc(t.source)}|null)$`):void 0}),aA(A._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),A._zod.parse=(t,n)=>t.value===null?t:e.innerType._zod.run(t,n)}),Lm=x("$ZodDefault",(A,e)=>{yA.init(A,e),A._zod.optin="optional",aA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);if(t.value===void 0)return t.value=e.defaultValue,t;const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>vl(s,e)):vl(r,e)}});function vl(A,e){return A.value===void 0&&(A.value=e.defaultValue),A}const Dm=x("$ZodPrefault",(A,e)=>{yA.init(A,e),A._zod.optin="optional",aA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>(n.direction==="backward"||t.value===void 0&&(t.value=e.defaultValue),e.innerType._zod.run(t,n))}),Rm=x("$ZodNonOptional",(A,e)=>{yA.init(A,e),aA(A._zod,"values",()=>{const t=e.innerType._zod.values;return t?new Set([...t].filter(n=>n!==void 0)):void 0}),A._zod.parse=(t,n)=>{const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>_l(s,A)):_l(r,A)}});function _l(A,e){return!A.issues.length&&A.value===void 0&&A.issues.push({code:"invalid_type",expected:"nonoptional",input:A.value,inst:e}),A}const Om=x("$ZodCatch",(A,e)=>{yA.init(A,e),aA(A._zod,"optin",()=>e.innerType._zod.optin),aA(A._zod,"optout",()=>e.innerType._zod.optout),aA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>(t.value=s.value,s.issues.length&&(t.value=e.catchValue($(k({},t),{error:{issues:s.issues.map(o=>Xt(o,n,Zt()))},input:t.value})),t.issues=[]),t)):(t.value=r.value,r.issues.length&&(t.value=e.catchValue($(k({},t),{error:{issues:r.issues.map(s=>Xt(s,n,Zt()))},input:t.value})),t.issues=[]),t)}}),Pm=x("$ZodPipe",(A,e)=>{yA.init(A,e),aA(A._zod,"values",()=>e.in._zod.values),aA(A._zod,"optin",()=>e.in._zod.optin),aA(A._zod,"optout",()=>e.out._zod.optout),aA(A._zod,"propValues",()=>e.in._zod.propValues),A._zod.parse=(t,n)=>{if(n.direction==="backward"){const s=e.out._zod.run(t,n);return s instanceof Promise?s.then(o=>Zs(o,e.in,n)):Zs(s,e.in,n)}const r=e.in._zod.run(t,n);return r instanceof Promise?r.then(s=>Zs(s,e.out,n)):Zs(r,e.out,n)}});function Zs(A,e,t){return A.issues.length?(A.aborted=!0,A):e._zod.run({value:A.value,issues:A.issues},t)}const Mm=x("$ZodReadonly",(A,e)=>{yA.init(A,e),aA(A._zod,"propValues",()=>e.innerType._zod.propValues),aA(A._zod,"values",()=>e.innerType._zod.values),aA(A._zod,"optin",()=>{var t,n;return(n=(t=e.innerType)==null?void 0:t._zod)==null?void 0:n.optin}),aA(A._zod,"optout",()=>{var t,n;return(n=(t=e.innerType)==null?void 0:t._zod)==null?void 0:n.optout}),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(xl):xl(r)}});function xl(A){return A.value=Object.freeze(A.value),A}const Km=x("$ZodCustom",(A,e)=>{Be.init(A,e),yA.init(A,e),A._zod.parse=(t,n)=>t,A._zod.check=t=>{const n=t.value,r=e.fn(n);if(r instanceof Promise)return r.then(s=>Sl(s,t,n,A));Sl(r,t,n,A)}});function Sl(A,e,t,n){var r;if(!A){const s={code:"custom",input:t,inst:n,path:[...(r=n._zod.def.path)!=null?r:[]],continue:!n._zod.def.abort};n._zod.def.params&&(s.params=n._zod.def.params),e.issues.push(ps(s))}}var Il;class Nm{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){var n;const t=e._zod.parent;if(t){const r=k({},(n=this.get(t))!=null?n:{});delete r.id;const s=k(k({},r),this._map.get(e));return Object.keys(s).length?s:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function $m(){return new Nm}var Ld;(Ld=(Il=globalThis).__zod_globalRegistry)!=null||(Il.__zod_globalRegistry=$m());const Gr=globalThis.__zod_globalRegistry;function zm(A,e){return new A(k({type:"string"},Z(e)))}function Vm(A,e){return new A(k({type:"string",format:"email",check:"string_format",abort:!1},Z(e)))}function Tl(A,e){return new A(k({type:"string",format:"guid",check:"string_format",abort:!1},Z(e)))}function Gm(A,e){return new A(k({type:"string",format:"uuid",check:"string_format",abort:!1},Z(e)))}function Zm(A,e){return new A(k({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4"},Z(e)))}function Xm(A,e){return new A(k({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6"},Z(e)))}function Wm(A,e){return new A(k({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7"},Z(e)))}function Jm(A,e){return new A(k({type:"string",format:"url",check:"string_format",abort:!1},Z(e)))}function jm(A,e){return new A(k({type:"string",format:"emoji",check:"string_format",abort:!1},Z(e)))}function Ym(A,e){return new A(k({type:"string",format:"nanoid",check:"string_format",abort:!1},Z(e)))}function qm(A,e){return new A(k({type:"string",format:"cuid",check:"string_format",abort:!1},Z(e)))}function AC(A,e){return new A(k({type:"string",format:"cuid2",check:"string_format",abort:!1},Z(e)))}function eC(A,e){return new A(k({type:"string",format:"ulid",check:"string_format",abort:!1},Z(e)))}function tC(A,e){return new A(k({type:"string",format:"xid",check:"string_format",abort:!1},Z(e)))}function nC(A,e){return new A(k({type:"string",format:"ksuid",check:"string_format",abort:!1},Z(e)))}function rC(A,e){return new A(k({type:"string",format:"ipv4",check:"string_format",abort:!1},Z(e)))}function sC(A,e){return new A(k({type:"string",format:"ipv6",check:"string_format",abort:!1},Z(e)))}function oC(A,e){return new A(k({type:"string",format:"cidrv4",check:"string_format",abort:!1},Z(e)))}function iC(A,e){return new A(k({type:"string",format:"cidrv6",check:"string_format",abort:!1},Z(e)))}function aC(A,e){return new A(k({type:"string",format:"base64",check:"string_format",abort:!1},Z(e)))}function cC(A,e){return new A(k({type:"string",format:"base64url",check:"string_format",abort:!1},Z(e)))}function lC(A,e){return new A(k({type:"string",format:"e164",check:"string_format",abort:!1},Z(e)))}function uC(A,e){return new A(k({type:"string",format:"jwt",check:"string_format",abort:!1},Z(e)))}function dC(A,e){return new A(k({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null},Z(e)))}function pC(A,e){return new A(k({type:"string",format:"date",check:"string_format"},Z(e)))}function hC(A,e){return new A(k({type:"string",format:"time",check:"string_format",precision:null},Z(e)))}function fC(A,e){return new A(k({type:"string",format:"duration",check:"string_format"},Z(e)))}function gC(A,e){return new A(k({type:"number",checks:[]},Z(e)))}function BC(A,e){return new A(k({type:"number",check:"number_format",abort:!1,format:"safeint"},Z(e)))}function wC(A,e){return new A(k({type:"boolean"},Z(e)))}function mC(A){return new A({type:"any"})}function CC(A){return new A({type:"unknown"})}function bC(A,e){return new A(k({type:"never"},Z(e)))}function Hl(A,e){return new np($(k({check:"less_than"},Z(e)),{value:A,inclusive:!1}))}function $i(A,e){return new np($(k({check:"less_than"},Z(e)),{value:A,inclusive:!0}))}function Ll(A,e){return new rp($(k({check:"greater_than"},Z(e)),{value:A,inclusive:!1}))}function zi(A,e){return new rp($(k({check:"greater_than"},Z(e)),{value:A,inclusive:!0}))}function Dl(A,e){return new Hw($(k({check:"multiple_of"},Z(e)),{value:A}))}function up(A,e){return new Dw($(k({check:"max_length"},Z(e)),{maximum:A}))}function zo(A,e){return new Rw($(k({check:"min_length"},Z(e)),{minimum:A}))}function dp(A,e){return new Ow($(k({check:"length_equals"},Z(e)),{length:A}))}function QC(A,e){return new Pw($(k({check:"string_format",format:"regex"},Z(e)),{pattern:A}))}function yC(A){return new Mw(k({check:"string_format",format:"lowercase"},Z(A)))}function UC(A){return new Kw(k({check:"string_format",format:"uppercase"},Z(A)))}function EC(A,e){return new Nw($(k({check:"string_format",format:"includes"},Z(e)),{includes:A}))}function kC(A,e){return new $w($(k({check:"string_format",format:"starts_with"},Z(e)),{prefix:A}))}function FC(A,e){return new zw($(k({check:"string_format",format:"ends_with"},Z(e)),{suffix:A}))}function Br(A){return new Vw({check:"overwrite",tx:A})}function vC(A){return Br(e=>e.normalize(A))}function _C(){return Br(A=>A.trim())}function xC(){return Br(A=>A.toLowerCase())}function SC(){return Br(A=>A.toUpperCase())}function IC(){return Br(A=>PB(A))}function TC(A,e,t){return new A(k({type:"array",element:e},Z(t)))}function HC(A,e,t){return new A(k({type:"custom",check:"custom",fn:e},Z(t)))}function LC(A){const e=DC(t=>(t.addIssue=n=>{var r,s,o,a;if(typeof n=="string")t.issues.push(ps(n,t.value,e._zod.def));else{const i=n;i.fatal&&(i.continue=!1),(r=i.code)!=null||(i.code="custom"),(s=i.input)!=null||(i.input=t.value),(o=i.inst)!=null||(i.inst=e),(a=i.continue)!=null||(i.continue=!e._zod.def.abort),t.issues.push(ps(i))}},A(t.value,t)));return e}function DC(A,e){const t=new Be(k({check:"custom"},Z(e)));return t._zod.check=A,t}function pp(A){var t,n,r,s,o,a,i,c,u;let e=(t=A==null?void 0:A.target)!=null?t:"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:(n=A.processors)!=null?n:{},metadataRegistry:(r=A==null?void 0:A.metadata)!=null?r:Gr,target:e,unrepresentable:(s=A==null?void 0:A.unrepresentable)!=null?s:"throw",override:(o=A==null?void 0:A.override)!=null?o:(()=>{}),io:(a=A==null?void 0:A.io)!=null?a:"output",counter:0,seen:new Map,cycles:(i=A==null?void 0:A.cycles)!=null?i:"ref",reused:(c=A==null?void 0:A.reused)!=null?c:"inline",external:(u=A==null?void 0:A.external)!=null?u:void 0}}function PA(A,e,t={path:[],schemaPath:[]}){var u,h,f;var n;const r=A._zod.def,s=e.seen.get(A);if(s)return s.count++,t.schemaPath.includes(A)&&(s.cycle=t.path),s.schema;const o={schema:{},count:1,cycle:void 0,path:t.path};e.seen.set(A,o);const a=(h=(u=A._zod).toJSONSchema)==null?void 0:h.call(u);if(a)o.schema=a;else{const g=$(k({},t),{schemaPath:[...t.schemaPath,A],path:t.path});if(A._zod.processJSONSchema)A._zod.processJSONSchema(e,o.schema,g);else{const b=o.schema,U=e.processors[r.type];if(!U)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);U(A,e,b,g)}const m=A._zod.parent;m&&(o.ref||(o.ref=m),PA(m,e,g),e.seen.get(m).isParent=!0)}const i=e.metadataRegistry.get(A);return i&&Object.assign(o.schema,i),e.io==="input"&&ae(A)&&(delete o.schema.examples,delete o.schema.default),e.io==="input"&&o.schema._prefault&&((f=(n=o.schema).default)!=null||(n.default=o.schema._prefault)),delete o.schema._prefault,e.seen.get(A).schema}function hp(A,e){var o,a,i,c;const t=A.seen.get(e);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=new Map;for(const u of A.seen.entries()){const h=(o=A.metadataRegistry.get(u[0]))==null?void 0:o.id;if(h){const f=n.get(h);if(f&&f!==u[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(h,u[0])}}const r=u=>{var b,U,E,v,F;const h=A.target==="draft-2020-12"?"$defs":"definitions";if(A.external){const y=(b=A.external.registry.get(u[0]))==null?void 0:b.id,_=(U=A.external.uri)!=null?U:(H=>H);if(y)return{ref:_(y)};const R=(v=(E=u[1].defId)!=null?E:u[1].schema.id)!=null?v:`schema${A.counter++}`;return u[1].defId=R,{defId:R,ref:`${_("__shared")}#/${h}/${R}`}}if(u[1]===t)return{ref:"#"};const g=`#/${h}/`,m=(F=u[1].schema.id)!=null?F:`__schema${A.counter++}`;return{defId:m,ref:g+m}},s=u=>{if(u[1].schema.$ref)return;const h=u[1],{ref:f,defId:g}=r(u);h.def=k({},h.schema),g&&(h.defId=g);const m=h.schema;for(const b in m)delete m[b];m.$ref=f};if(A.cycles==="throw")for(const u of A.seen.entries()){const h=u[1];if(h.cycle)throw new Error(`Cycle detected: #/${(a=h.cycle)==null?void 0:a.join("/")}/<root>
|
|
1623
|
+
`)}g.write("payload.value = newResult;"),g.write("return payload;");const v=g.compile();return(U,x)=>v(f,U,x)};let s;const o=ds,a=!Yd.jitless,c=a&&GB.value,u=e.catchall;let h;A._zod.parse=(f,g)=>{h!=null||(h=n.value);const m=f.value;return o(m)?a&&c&&(g==null?void 0:g.async)===!1&&g.jitless!==!0?(s||(s=r(e.shape)),f=s(f,g),u?fp([],m,f,g,h,A):f):t(f,g):(f.issues.push({expected:"object",code:"invalid_type",input:m,inst:A}),f)}});function _l(A,e,t,n){for(const s of A)if(s.issues.length===0)return e.value=s.value,e;const r=A.filter(s=>!er(s));return r.length===1?(e.value=r[0].value,r[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:t,errors:A.map(s=>s.issues.map(o=>Wt(o,n,Xt())))}),e)}const gp=_("$ZodUnion",(A,e)=>{QA.init(A,e),aA(A._zod,"optin",()=>e.options.some(r=>r._zod.optin==="optional")?"optional":void 0),aA(A._zod,"optout",()=>e.options.some(r=>r._zod.optout==="optional")?"optional":void 0),aA(A._zod,"values",()=>{if(e.options.every(r=>r._zod.values))return new Set(e.options.flatMap(r=>Array.from(r._zod.values)))}),aA(A._zod,"pattern",()=>{if(e.options.every(r=>r._zod.pattern)){const r=e.options.map(s=>s._zod.pattern);return new RegExp(`^(${r.map(s=>Qc(s.source)).join("|")})$`)}});const t=e.options.length===1,n=e.options[0]._zod.run;A._zod.parse=(r,s)=>{if(t)return n(r,s);let o=!1;const a=[];for(const i of e.options){const c=i._zod.run({value:r.value,issues:[]},s);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(i=>_l(i,r,A,s)):_l(a,r,A,s)}}),Tm=_("$ZodDiscriminatedUnion",(A,e)=>{e.inclusive=!1,gp.init(A,e);const t=A._zod.parse;aA(A._zod,"propValues",()=>{const r={};for(const s of e.options){const o=s._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(const[a,i]of Object.entries(o)){r[a]||(r[a]=new Set);for(const c of i)r[a].add(c)}}return r});const n=pi(()=>{var o;const r=e.options,s=new Map;for(const a of r){const i=(o=a._zod.propValues)==null?void 0:o[e.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(const c of i){if(s.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);s.set(c,a)}}return s});A._zod.parse=(r,s)=>{const o=r.value;if(!ds(o))return r.issues.push({code:"invalid_type",expected:"object",input:o,inst:A}),r;const a=n.value.get(o==null?void 0:o[e.discriminator]);return a?a._zod.run(r,s):e.unionFallback?t(r,s):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:o,path:[e.discriminator],inst:A}),r)}}),Hm=_("$ZodIntersection",(A,e)=>{QA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value,s=e.left._zod.run({value:r,issues:[]},n),o=e.right._zod.run({value:r,issues:[]},n);return s instanceof Promise||o instanceof Promise?Promise.all([s,o]).then(([i,c])=>xl(t,i,c)):xl(t,s,o)}});function _a(A,e){if(A===e)return{valid:!0,data:A};if(A instanceof Date&&e instanceof Date&&+A==+e)return{valid:!0,data:A};if(hr(A)&&hr(e)){const t=Object.keys(e),n=Object.keys(A).filter(s=>t.indexOf(s)!==-1),r=F(F({},A),e);for(const s of n){const o=_a(A[s],e[s]);if(!o.valid)return{valid:!1,mergeErrorPath:[s,...o.mergeErrorPath]};r[s]=o.data}return{valid:!0,data:r}}if(Array.isArray(A)&&Array.isArray(e)){if(A.length!==e.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let n=0;n<A.length;n++){const r=A[n],s=e[n],o=_a(r,s);if(!o.valid)return{valid:!1,mergeErrorPath:[n,...o.mergeErrorPath]};t.push(o.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function xl(A,e,t){const n=new Map;let r;for(const a of e.issues)if(a.code==="unrecognized_keys"){r!=null||(r=a);for(const i of a.keys)n.has(i)||n.set(i,{}),n.get(i).l=!0}else A.issues.push(a);for(const a of t.issues)if(a.code==="unrecognized_keys")for(const i of a.keys)n.has(i)||n.set(i,{}),n.get(i).r=!0;else A.issues.push(a);const s=[...n].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(s.length&&r&&A.issues.push(z(F({},r),{keys:s})),er(A))return A;const o=_a(e.value,t.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return A.value=o.data,A}const Lm=_("$ZodRecord",(A,e)=>{QA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value;if(!hr(r))return t.issues.push({expected:"record",code:"invalid_type",input:r,inst:A}),t;const s=[],o=e.keyType._zod.values;if(o){t.value={};const a=new Set;for(const c of o)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){a.add(typeof c=="number"?c.toString():c);const u=e.valueType._zod.run({value:r[c],issues:[]},n);u instanceof Promise?s.push(u.then(h=>{h.issues.length&&t.issues.push(...tr(c,h.issues)),t.value[c]=h.value})):(u.issues.length&&t.issues.push(...tr(c,u.issues)),t.value[c]=u.value)}let i;for(const c in r)a.has(c)||(i=i!=null?i:[],i.push(c));i&&i.length>0&&t.issues.push({code:"unrecognized_keys",input:r,inst:A,keys:i})}else{t.value={};for(const a of Reflect.ownKeys(r)){if(a==="__proto__")continue;let i=e.keyType._zod.run({value:a,issues:[]},n);if(i instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&ap.test(a)&&i.issues.length&&i.issues.some(h=>h.code==="invalid_type"&&h.expected==="number")){const h=e.keyType._zod.run({value:Number(a),issues:[]},n);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(i=h)}if(i.issues.length){e.mode==="loose"?t.value[a]=r[a]:t.issues.push({code:"invalid_key",origin:"record",issues:i.issues.map(h=>Wt(h,n,Xt())),input:a,path:[a],inst:A});continue}const u=e.valueType._zod.run({value:r[a],issues:[]},n);u instanceof Promise?s.push(u.then(h=>{h.issues.length&&t.issues.push(...tr(a,h.issues)),t.value[i.value]=h.value})):(u.issues.length&&t.issues.push(...tr(a,u.issues)),t.value[i.value]=u.value)}}return s.length?Promise.all(s).then(()=>t):t}}),Dm=_("$ZodEnum",(A,e)=>{QA.init(A,e);const t=qd(e.entries),n=new Set(t);A._zod.values=n,A._zod.pattern=new RegExp(`^(${t.filter(r=>ZB.has(typeof r)).map(r=>typeof r=="string"?fr(r):r.toString()).join("|")})$`),A._zod.parse=(r,s)=>{const o=r.value;return n.has(o)||r.issues.push({code:"invalid_value",values:t,input:o,inst:A}),r}}),Rm=_("$ZodLiteral",(A,e)=>{if(QA.init(A,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");const t=new Set(e.values);A._zod.values=t,A._zod.pattern=new RegExp(`^(${e.values.map(n=>typeof n=="string"?fr(n):n?fr(n.toString()):String(n)).join("|")})$`),A._zod.parse=(n,r)=>{const s=n.value;return t.has(s)||n.issues.push({code:"invalid_value",values:e.values,input:s,inst:A}),n}}),Om=_("$ZodTransform",(A,e)=>{QA.init(A,e),A._zod.parse=(t,n)=>{if(n.direction==="backward")throw new jd(A.constructor.name);const r=e.transform(t.value,t);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(o=>(t.value=o,t));if(r instanceof Promise)throw new cr;return t.value=r,t}});function Sl(A,e){return A.issues.length&&e===void 0?{issues:[],value:void 0}:A}const Bp=_("$ZodOptional",(A,e)=>{QA.init(A,e),A._zod.optin="optional",A._zod.optout="optional",aA(A._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),aA(A._zod,"pattern",()=>{const t=e.innerType._zod.pattern;return t?new RegExp(`^(${Qc(t.source)})?$`):void 0}),A._zod.parse=(t,n)=>{if(e.innerType._zod.optin==="optional"){const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>Sl(s,t.value)):Sl(r,t.value)}return t.value===void 0?t:e.innerType._zod.run(t,n)}}),Pm=_("$ZodExactOptional",(A,e)=>{Bp.init(A,e),aA(A._zod,"values",()=>e.innerType._zod.values),aA(A._zod,"pattern",()=>e.innerType._zod.pattern),A._zod.parse=(t,n)=>e.innerType._zod.run(t,n)}),Mm=_("$ZodNullable",(A,e)=>{QA.init(A,e),aA(A._zod,"optin",()=>e.innerType._zod.optin),aA(A._zod,"optout",()=>e.innerType._zod.optout),aA(A._zod,"pattern",()=>{const t=e.innerType._zod.pattern;return t?new RegExp(`^(${Qc(t.source)}|null)$`):void 0}),aA(A._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),A._zod.parse=(t,n)=>t.value===null?t:e.innerType._zod.run(t,n)}),Km=_("$ZodDefault",(A,e)=>{QA.init(A,e),A._zod.optin="optional",aA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);if(t.value===void 0)return t.value=e.defaultValue,t;const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>Il(s,e)):Il(r,e)}});function Il(A,e){return A.value===void 0&&(A.value=e.defaultValue),A}const Nm=_("$ZodPrefault",(A,e)=>{QA.init(A,e),A._zod.optin="optional",aA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>(n.direction==="backward"||t.value===void 0&&(t.value=e.defaultValue),e.innerType._zod.run(t,n))}),$m=_("$ZodNonOptional",(A,e)=>{QA.init(A,e),aA(A._zod,"values",()=>{const t=e.innerType._zod.values;return t?new Set([...t].filter(n=>n!==void 0)):void 0}),A._zod.parse=(t,n)=>{const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>Tl(s,A)):Tl(r,A)}});function Tl(A,e){return!A.issues.length&&A.value===void 0&&A.issues.push({code:"invalid_type",expected:"nonoptional",input:A.value,inst:e}),A}const zm=_("$ZodCatch",(A,e)=>{QA.init(A,e),aA(A._zod,"optin",()=>e.innerType._zod.optin),aA(A._zod,"optout",()=>e.innerType._zod.optout),aA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>(t.value=s.value,s.issues.length&&(t.value=e.catchValue(z(F({},t),{error:{issues:s.issues.map(o=>Wt(o,n,Xt()))},input:t.value})),t.issues=[]),t)):(t.value=r.value,r.issues.length&&(t.value=e.catchValue(z(F({},t),{error:{issues:r.issues.map(s=>Wt(s,n,Xt()))},input:t.value})),t.issues=[]),t)}}),Vm=_("$ZodPipe",(A,e)=>{QA.init(A,e),aA(A._zod,"values",()=>e.in._zod.values),aA(A._zod,"optin",()=>e.in._zod.optin),aA(A._zod,"optout",()=>e.out._zod.optout),aA(A._zod,"propValues",()=>e.in._zod.propValues),A._zod.parse=(t,n)=>{if(n.direction==="backward"){const s=e.out._zod.run(t,n);return s instanceof Promise?s.then(o=>Zs(o,e.in,n)):Zs(s,e.in,n)}const r=e.in._zod.run(t,n);return r instanceof Promise?r.then(s=>Zs(s,e.out,n)):Zs(r,e.out,n)}});function Zs(A,e,t){return A.issues.length?(A.aborted=!0,A):e._zod.run({value:A.value,issues:A.issues},t)}const Gm=_("$ZodReadonly",(A,e)=>{QA.init(A,e),aA(A._zod,"propValues",()=>e.innerType._zod.propValues),aA(A._zod,"values",()=>e.innerType._zod.values),aA(A._zod,"optin",()=>{var t,n;return(n=(t=e.innerType)==null?void 0:t._zod)==null?void 0:n.optin}),aA(A._zod,"optout",()=>{var t,n;return(n=(t=e.innerType)==null?void 0:t._zod)==null?void 0:n.optout}),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(Hl):Hl(r)}});function Hl(A){return A.value=Object.freeze(A.value),A}const Zm=_("$ZodCustom",(A,e)=>{we.init(A,e),QA.init(A,e),A._zod.parse=(t,n)=>t,A._zod.check=t=>{const n=t.value,r=e.fn(n);if(r instanceof Promise)return r.then(s=>Ll(s,t,n,A));Ll(r,t,n,A)}});function Ll(A,e,t,n){var r;if(!A){const s={code:"custom",input:t,inst:n,path:[...(r=n._zod.def.path)!=null?r:[]],continue:!n._zod.def.abort};n._zod.def.params&&(s.params=n._zod.def.params),e.issues.push(ps(s))}}var Dl;class Xm{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){var n;const t=e._zod.parent;if(t){const r=F({},(n=this.get(t))!=null?n:{});delete r.id;const s=F(F({},r),this._map.get(e));return Object.keys(s).length?s:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function Wm(){return new Xm}var Kd;(Kd=(Dl=globalThis).__zod_globalRegistry)!=null||(Dl.__zod_globalRegistry=Wm());const Gr=globalThis.__zod_globalRegistry;function Jm(A,e){return new A(F({type:"string"},G(e)))}function jm(A,e){return new A(F({type:"string",format:"email",check:"string_format",abort:!1},G(e)))}function Rl(A,e){return new A(F({type:"string",format:"guid",check:"string_format",abort:!1},G(e)))}function Ym(A,e){return new A(F({type:"string",format:"uuid",check:"string_format",abort:!1},G(e)))}function qm(A,e){return new A(F({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4"},G(e)))}function AC(A,e){return new A(F({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6"},G(e)))}function eC(A,e){return new A(F({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7"},G(e)))}function tC(A,e){return new A(F({type:"string",format:"url",check:"string_format",abort:!1},G(e)))}function nC(A,e){return new A(F({type:"string",format:"emoji",check:"string_format",abort:!1},G(e)))}function rC(A,e){return new A(F({type:"string",format:"nanoid",check:"string_format",abort:!1},G(e)))}function sC(A,e){return new A(F({type:"string",format:"cuid",check:"string_format",abort:!1},G(e)))}function oC(A,e){return new A(F({type:"string",format:"cuid2",check:"string_format",abort:!1},G(e)))}function iC(A,e){return new A(F({type:"string",format:"ulid",check:"string_format",abort:!1},G(e)))}function aC(A,e){return new A(F({type:"string",format:"xid",check:"string_format",abort:!1},G(e)))}function cC(A,e){return new A(F({type:"string",format:"ksuid",check:"string_format",abort:!1},G(e)))}function lC(A,e){return new A(F({type:"string",format:"ipv4",check:"string_format",abort:!1},G(e)))}function uC(A,e){return new A(F({type:"string",format:"ipv6",check:"string_format",abort:!1},G(e)))}function dC(A,e){return new A(F({type:"string",format:"cidrv4",check:"string_format",abort:!1},G(e)))}function pC(A,e){return new A(F({type:"string",format:"cidrv6",check:"string_format",abort:!1},G(e)))}function hC(A,e){return new A(F({type:"string",format:"base64",check:"string_format",abort:!1},G(e)))}function fC(A,e){return new A(F({type:"string",format:"base64url",check:"string_format",abort:!1},G(e)))}function gC(A,e){return new A(F({type:"string",format:"e164",check:"string_format",abort:!1},G(e)))}function BC(A,e){return new A(F({type:"string",format:"jwt",check:"string_format",abort:!1},G(e)))}function wC(A,e){return new A(F({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null},G(e)))}function mC(A,e){return new A(F({type:"string",format:"date",check:"string_format"},G(e)))}function CC(A,e){return new A(F({type:"string",format:"time",check:"string_format",precision:null},G(e)))}function bC(A,e){return new A(F({type:"string",format:"duration",check:"string_format"},G(e)))}function QC(A,e){return new A(F({type:"number",checks:[]},G(e)))}function yC(A,e){return new A(F({type:"number",check:"number_format",abort:!1,format:"safeint"},G(e)))}function UC(A,e){return new A(F({type:"boolean"},G(e)))}function EC(A){return new A({type:"any"})}function kC(A){return new A({type:"unknown"})}function FC(A,e){return new A(F({type:"never"},G(e)))}function Ol(A,e){return new lp(z(F({check:"less_than"},G(e)),{value:A,inclusive:!1}))}function Vi(A,e){return new lp(z(F({check:"less_than"},G(e)),{value:A,inclusive:!0}))}function Pl(A,e){return new up(z(F({check:"greater_than"},G(e)),{value:A,inclusive:!1}))}function Gi(A,e){return new up(z(F({check:"greater_than"},G(e)),{value:A,inclusive:!0}))}function Ml(A,e){return new Mw(z(F({check:"multiple_of"},G(e)),{value:A}))}function wp(A,e){return new Nw(z(F({check:"max_length"},G(e)),{maximum:A}))}function Go(A,e){return new $w(z(F({check:"min_length"},G(e)),{minimum:A}))}function mp(A,e){return new zw(z(F({check:"length_equals"},G(e)),{length:A}))}function vC(A,e){return new Vw(z(F({check:"string_format",format:"regex"},G(e)),{pattern:A}))}function _C(A){return new Gw(F({check:"string_format",format:"lowercase"},G(A)))}function xC(A){return new Zw(F({check:"string_format",format:"uppercase"},G(A)))}function SC(A,e){return new Xw(z(F({check:"string_format",format:"includes"},G(e)),{includes:A}))}function IC(A,e){return new Ww(z(F({check:"string_format",format:"starts_with"},G(e)),{prefix:A}))}function TC(A,e){return new Jw(z(F({check:"string_format",format:"ends_with"},G(e)),{suffix:A}))}function wr(A){return new jw({check:"overwrite",tx:A})}function HC(A){return wr(e=>e.normalize(A))}function LC(){return wr(A=>A.trim())}function DC(){return wr(A=>A.toLowerCase())}function RC(){return wr(A=>A.toUpperCase())}function OC(){return wr(A=>VB(A))}function PC(A,e,t){return new A(F({type:"array",element:e},G(t)))}function MC(A,e,t){return new A(F({type:"custom",check:"custom",fn:e},G(t)))}function KC(A){const e=NC(t=>(t.addIssue=n=>{var r,s,o,a;if(typeof n=="string")t.issues.push(ps(n,t.value,e._zod.def));else{const i=n;i.fatal&&(i.continue=!1),(r=i.code)!=null||(i.code="custom"),(s=i.input)!=null||(i.input=t.value),(o=i.inst)!=null||(i.inst=e),(a=i.continue)!=null||(i.continue=!e._zod.def.abort),t.issues.push(ps(i))}},A(t.value,t)));return e}function NC(A,e){const t=new we(F({check:"custom"},G(e)));return t._zod.check=A,t}function Cp(A){var t,n,r,s,o,a,i,c,u;let e=(t=A==null?void 0:A.target)!=null?t:"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:(n=A.processors)!=null?n:{},metadataRegistry:(r=A==null?void 0:A.metadata)!=null?r:Gr,target:e,unrepresentable:(s=A==null?void 0:A.unrepresentable)!=null?s:"throw",override:(o=A==null?void 0:A.override)!=null?o:(()=>{}),io:(a=A==null?void 0:A.io)!=null?a:"output",counter:0,seen:new Map,cycles:(i=A==null?void 0:A.cycles)!=null?i:"ref",reused:(c=A==null?void 0:A.reused)!=null?c:"inline",external:(u=A==null?void 0:A.external)!=null?u:void 0}}function PA(A,e,t={path:[],schemaPath:[]}){var u,h,f;var n;const r=A._zod.def,s=e.seen.get(A);if(s)return s.count++,t.schemaPath.includes(A)&&(s.cycle=t.path),s.schema;const o={schema:{},count:1,cycle:void 0,path:t.path};e.seen.set(A,o);const a=(h=(u=A._zod).toJSONSchema)==null?void 0:h.call(u);if(a)o.schema=a;else{const g=z(F({},t),{schemaPath:[...t.schemaPath,A],path:t.path});if(A._zod.processJSONSchema)A._zod.processJSONSchema(e,o.schema,g);else{const b=o.schema,k=e.processors[r.type];if(!k)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);k(A,e,b,g)}const m=A._zod.parent;m&&(o.ref||(o.ref=m),PA(m,e,g),e.seen.get(m).isParent=!0)}const i=e.metadataRegistry.get(A);return i&&Object.assign(o.schema,i),e.io==="input"&&ce(A)&&(delete o.schema.examples,delete o.schema.default),e.io==="input"&&o.schema._prefault&&((f=(n=o.schema).default)!=null||(n.default=o.schema._prefault)),delete o.schema._prefault,e.seen.get(A).schema}function bp(A,e){var o,a,i,c;const t=A.seen.get(e);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=new Map;for(const u of A.seen.entries()){const h=(o=A.metadataRegistry.get(u[0]))==null?void 0:o.id;if(h){const f=n.get(h);if(f&&f!==u[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(h,u[0])}}const r=u=>{var b,k,E,v,y;const h=A.target==="draft-2020-12"?"$defs":"definitions";if(A.external){const U=(b=A.external.registry.get(u[0]))==null?void 0:b.id,x=(k=A.external.uri)!=null?k:(H=>H);if(U)return{ref:x(U)};const D=(v=(E=u[1].defId)!=null?E:u[1].schema.id)!=null?v:`schema${A.counter++}`;return u[1].defId=D,{defId:D,ref:`${x("__shared")}#/${h}/${D}`}}if(u[1]===t)return{ref:"#"};const g=`#/${h}/`,m=(y=u[1].schema.id)!=null?y:`__schema${A.counter++}`;return{defId:m,ref:g+m}},s=u=>{if(u[1].schema.$ref)return;const h=u[1],{ref:f,defId:g}=r(u);h.def=F({},h.schema),g&&(h.defId=g);const m=h.schema;for(const b in m)delete m[b];m.$ref=f};if(A.cycles==="throw")for(const u of A.seen.entries()){const h=u[1];if(h.cycle)throw new Error(`Cycle detected: #/${(a=h.cycle)==null?void 0:a.join("/")}/<root>
|
|
1624
1624
|
|
|
1625
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of A.seen.entries()){const h=u[1];if(e===u[0]){s(u);continue}if(A.external){const g=(i=A.external.registry.get(u[0]))==null?void 0:i.id;if(e!==u[0]&&g){s(u);continue}}if((c=A.metadataRegistry.get(u[0]))==null?void 0:c.id){s(u);continue}if(h.cycle){s(u);continue}if(h.count>1&&A.reused==="ref"){s(u);continue}}}function fp(A,e){var o,a,i,c,u;const t=A.seen.get(e);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=h=>{var E,v,F;const f=A.seen.get(h);if(f.ref===null)return;const g=(E=f.def)!=null?E:f.schema,m=k({},g),b=f.ref;if(f.ref=null,b){n(b);const y=A.seen.get(b),_=y.schema;if(_.$ref&&(A.target==="draft-07"||A.target==="draft-04"||A.target==="openapi-3.0")?(g.allOf=(v=g.allOf)!=null?v:[],g.allOf.push(_)):Object.assign(g,_),Object.assign(g,m),h._zod.parent===b)for(const H in g)H==="$ref"||H==="allOf"||H in m||delete g[H];if(_.$ref)for(const H in g)H==="$ref"||H==="allOf"||H in y.def&&JSON.stringify(g[H])===JSON.stringify(y.def[H])&&delete g[H]}const U=h._zod.parent;if(U&&U!==b){n(U);const y=A.seen.get(U);if(y!=null&&y.schema.$ref&&(g.$ref=y.schema.$ref,y.def))for(const _ in g)_==="$ref"||_==="allOf"||_ in y.def&&JSON.stringify(g[_])===JSON.stringify(y.def[_])&&delete g[_]}A.override({zodSchema:h,jsonSchema:g,path:(F=f.path)!=null?F:[]})};for(const h of[...A.seen.entries()].reverse())n(h[0]);const r={};if(A.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":A.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":A.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":A.target,(o=A.external)!=null&&o.uri){const h=(a=A.external.registry.get(e))==null?void 0:a.id;if(!h)throw new Error("Schema is missing an `id` property");r.$id=A.external.uri(h)}Object.assign(r,(i=t.def)!=null?i:t.schema);const s=(u=(c=A.external)==null?void 0:c.defs)!=null?u:{};for(const h of A.seen.entries()){const f=h[1];f.def&&f.defId&&(s[f.defId]=f.def)}A.external||Object.keys(s).length>0&&(A.target==="draft-2020-12"?r.$defs=s:r.definitions=s);try{const h=JSON.parse(JSON.stringify(r));return Object.defineProperty(h,"~standard",{value:$(k({},e["~standard"]),{jsonSchema:{input:Vo(e,"input",A.processors),output:Vo(e,"output",A.processors)}}),enumerable:!1,writable:!1}),h}catch(h){throw new Error("Error converting schema to JSON.")}}function ae(A,e){const t=e!=null?e:{seen:new Set};if(t.seen.has(A))return!1;t.seen.add(A);const n=A._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return ae(n.element,t);if(n.type==="set")return ae(n.valueType,t);if(n.type==="lazy")return ae(n.getter(),t);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return ae(n.innerType,t);if(n.type==="intersection")return ae(n.left,t)||ae(n.right,t);if(n.type==="record"||n.type==="map")return ae(n.keyType,t)||ae(n.valueType,t);if(n.type==="pipe")return ae(n.in,t)||ae(n.out,t);if(n.type==="object"){for(const r in n.shape)if(ae(n.shape[r],t))return!0;return!1}if(n.type==="union"){for(const r of n.options)if(ae(r,t))return!0;return!1}if(n.type==="tuple"){for(const r of n.items)if(ae(r,t))return!0;return!!(n.rest&&ae(n.rest,t))}return!1}const RC=(A,e={})=>t=>{const n=pp($(k({},t),{processors:e}));return PA(A,n),hp(n,A),fp(n,A)},Vo=(A,e,t={})=>n=>{const{libraryOptions:r,target:s}=n!=null?n:{},o=pp($(k({},r!=null?r:{}),{target:s,io:e,processors:t}));return PA(A,o),hp(o,A),fp(o,A)},OC={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},PC=(A,e,t,n)=>{var u;const r=t;r.type="string";const{minimum:s,maximum:o,format:a,patterns:i,contentEncoding:c}=A._zod.bag;if(typeof s=="number"&&(r.minLength=s),typeof o=="number"&&(r.maxLength=o),a&&(r.format=(u=OC[a])!=null?u:a,r.format===""&&delete r.format,a==="time"&&delete r.format),c&&(r.contentEncoding=c),i&&i.size>0){const h=[...i];h.length===1?r.pattern=h[0].source:h.length>1&&(r.allOf=[...h.map(f=>$(k({},e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{}),{pattern:f.source}))])}},MC=(A,e,t,n)=>{const r=t,{minimum:s,maximum:o,format:a,multipleOf:i,exclusiveMaximum:c,exclusiveMinimum:u}=A._zod.bag;typeof a=="string"&&a.includes("int")?r.type="integer":r.type="number",typeof u=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u),typeof s=="number"&&(r.minimum=s,typeof u=="number"&&e.target!=="draft-04"&&(u>=s?delete r.minimum:delete r.exclusiveMinimum)),typeof c=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c),typeof o=="number"&&(r.maximum=o,typeof c=="number"&&e.target!=="draft-04"&&(c<=o?delete r.maximum:delete r.exclusiveMaximum)),typeof i=="number"&&(r.multipleOf=i)},KC=(A,e,t,n)=>{t.type="boolean"},NC=(A,e,t,n)=>{t.not={}},$C=(A,e,t,n)=>{},zC=(A,e,t,n)=>{},VC=(A,e,t,n)=>{const r=A._zod.def,s=Gd(r.entries);s.every(o=>typeof o=="number")&&(t.type="number"),s.every(o=>typeof o=="string")&&(t.type="string"),t.enum=s},GC=(A,e,t,n)=>{const r=A._zod.def,s=[];for(const o of r.values)if(o===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof o=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(o))}else s.push(o);if(s.length!==0)if(s.length===1){const o=s[0];t.type=o===null?"null":typeof o,e.target==="draft-04"||e.target==="openapi-3.0"?t.enum=[o]:t.const=o}else s.every(o=>typeof o=="number")&&(t.type="number"),s.every(o=>typeof o=="string")&&(t.type="string"),s.every(o=>typeof o=="boolean")&&(t.type="boolean"),s.every(o=>o===null)&&(t.type="null"),t.enum=s},ZC=(A,e,t,n)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},XC=(A,e,t,n)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},WC=(A,e,t,n)=>{const r=t,s=A._zod.def,{minimum:o,maximum:a}=A._zod.bag;typeof o=="number"&&(r.minItems=o),typeof a=="number"&&(r.maxItems=a),r.type="array",r.items=PA(s.element,e,$(k({},n),{path:[...n.path,"items"]}))},JC=(A,e,t,n)=>{var c;const r=t,s=A._zod.def;r.type="object",r.properties={};const o=s.shape;for(const u in o)r.properties[u]=PA(o[u],e,$(k({},n),{path:[...n.path,"properties",u]}));const a=new Set(Object.keys(o)),i=new Set([...a].filter(u=>{const h=s.shape[u]._zod;return e.io==="input"?h.optin===void 0:h.optout===void 0}));i.size>0&&(r.required=Array.from(i)),((c=s.catchall)==null?void 0:c._zod.def.type)==="never"?r.additionalProperties=!1:s.catchall?s.catchall&&(r.additionalProperties=PA(s.catchall,e,$(k({},n),{path:[...n.path,"additionalProperties"]}))):e.io==="output"&&(r.additionalProperties=!1)},jC=(A,e,t,n)=>{const r=A._zod.def,s=r.inclusive===!1,o=r.options.map((a,i)=>PA(a,e,$(k({},n),{path:[...n.path,s?"oneOf":"anyOf",i]})));s?t.oneOf=o:t.anyOf=o},YC=(A,e,t,n)=>{const r=A._zod.def,s=PA(r.left,e,$(k({},n),{path:[...n.path,"allOf",0]})),o=PA(r.right,e,$(k({},n),{path:[...n.path,"allOf",1]})),a=c=>"allOf"in c&&Object.keys(c).length===1,i=[...a(s)?s.allOf:[s],...a(o)?o.allOf:[o]];t.allOf=i},qC=(A,e,t,n)=>{const r=t,s=A._zod.def;r.type="object";const o=s.keyType,a=o._zod.bag,i=a==null?void 0:a.patterns;if(s.mode==="loose"&&i&&i.size>0){const u=PA(s.valueType,e,$(k({},n),{path:[...n.path,"patternProperties","*"]}));r.patternProperties={};for(const h of i)r.patternProperties[h.source]=u}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(r.propertyNames=PA(s.keyType,e,$(k({},n),{path:[...n.path,"propertyNames"]}))),r.additionalProperties=PA(s.valueType,e,$(k({},n),{path:[...n.path,"additionalProperties"]}));const c=o._zod.values;if(c){const u=[...c].filter(h=>typeof h=="string"||typeof h=="number");u.length>0&&(r.required=u)}},Ab=(A,e,t,n)=>{const r=A._zod.def,s=PA(r.innerType,e,n),o=e.seen.get(A);e.target==="openapi-3.0"?(o.ref=r.innerType,t.nullable=!0):t.anyOf=[s,{type:"null"}]},eb=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType},tb=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,t.default=JSON.parse(JSON.stringify(r.defaultValue))},nb=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,e.io==="input"&&(t._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},rb=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType;let o;try{o=r.catchValue(void 0)}catch(a){throw new Error("Dynamic catch values are not supported in JSON Schema")}t.default=o},sb=(A,e,t,n)=>{const r=A._zod.def,s=e.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;PA(s,e,n);const o=e.seen.get(A);o.ref=s},ob=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,t.readOnly=!0},gp=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType},ib=x("ZodISODateTime",(A,e)=>{sm.init(A,e),vA.init(A,e)});function ab(A){return dC(ib,A)}const cb=x("ZodISODate",(A,e)=>{om.init(A,e),vA.init(A,e)});function lb(A){return pC(cb,A)}const ub=x("ZodISOTime",(A,e)=>{im.init(A,e),vA.init(A,e)});function db(A){return hC(ub,A)}const pb=x("ZodISODuration",(A,e)=>{am.init(A,e),vA.init(A,e)});function hb(A){return fC(pb,A)}const fb=(A,e)=>{Jd.init(A,e),A.name="ZodError",Object.defineProperties(A,{format:{value:t=>YB(A,t)},flatten:{value:t=>jB(A,t)},addIssue:{value:t=>{A.issues.push(t),A.message=JSON.stringify(A.issues,Ea,2)}},addIssues:{value:t=>{A.issues.push(...t),A.message=JSON.stringify(A.issues,Ea,2)}},isEmpty:{get(){return A.issues.length===0}}})},Re=x("ZodError",fb,{Parent:Error}),gb=Cc(Re),Bb=bc(Re),wb=di(Re),mb=pi(Re),Cb=ew(Re),bb=tw(Re),Qb=nw(Re),yb=rw(Re),Ub=sw(Re),Eb=ow(Re),kb=iw(Re),Fb=aw(Re),EA=x("ZodType",(A,e)=>(yA.init(A,e),Object.assign(A["~standard"],{jsonSchema:{input:Vo(A,"input"),output:Vo(A,"output")}}),A.toJSONSchema=RC(A,{}),A.def=e,A.type=e.type,Object.defineProperty(A,"_def",{value:e}),A.check=(...t)=>{var n;return A.clone(Jt(e,{checks:[...(n=e.checks)!=null?n:[],...t.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},A.with=A.check,A.clone=(t,n)=>jt(A,t,n),A.brand=()=>A,A.register=((t,n)=>(t.add(A,n),A)),A.parse=(t,n)=>gb(A,t,n,{callee:A.parse}),A.safeParse=(t,n)=>wb(A,t,n),A.parseAsync=(t,n)=>I(null,null,function*(){return Bb(A,t,n,{callee:A.parseAsync})}),A.safeParseAsync=(t,n)=>I(null,null,function*(){return mb(A,t,n)}),A.spa=A.safeParseAsync,A.encode=(t,n)=>Cb(A,t,n),A.decode=(t,n)=>bb(A,t,n),A.encodeAsync=(t,n)=>I(null,null,function*(){return Qb(A,t,n)}),A.decodeAsync=(t,n)=>I(null,null,function*(){return yb(A,t,n)}),A.safeEncode=(t,n)=>Ub(A,t,n),A.safeDecode=(t,n)=>Eb(A,t,n),A.safeEncodeAsync=(t,n)=>I(null,null,function*(){return kb(A,t,n)}),A.safeDecodeAsync=(t,n)=>I(null,null,function*(){return Fb(A,t,n)}),A.refine=(t,n)=>A.check(QQ(t,n)),A.superRefine=t=>A.check(yQ(t)),A.overwrite=t=>A.check(Br(t)),A.optional=()=>Ml(A),A.exactOptional=()=>cQ(A),A.nullable=()=>Kl(A),A.nullish=()=>Ml(Kl(A)),A.nonoptional=t=>fQ(A,t),A.array=()=>Ce(A),A.or=t=>AQ([A,t]),A.and=t=>nQ(A,t),A.transform=t=>Nl(A,iQ(t)),A.default=t=>dQ(A,t),A.prefault=t=>hQ(A,t),A.catch=t=>BQ(A,t),A.pipe=t=>Nl(A,t),A.readonly=()=>CQ(A),A.describe=t=>{const n=A.clone();return Gr.add(n,{description:t}),n},Object.defineProperty(A,"description",{get(){var t;return(t=Gr.get(A))==null?void 0:t.description},configurable:!0}),A.meta=(...t)=>{if(t.length===0)return Gr.get(A);const n=A.clone();return Gr.add(n,t[0]),n},A.isOptional=()=>A.safeParse(void 0).success,A.isNullable=()=>A.safeParse(null).success,A.apply=t=>t(A),A)),Bp=x("_ZodString",(A,e)=>{var n,r,s;Qc.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(o,a,i)=>PC(A,o,a);const t=A._zod.bag;A.format=(n=t.format)!=null?n:null,A.minLength=(r=t.minimum)!=null?r:null,A.maxLength=(s=t.maximum)!=null?s:null,A.regex=(...o)=>A.check(QC(...o)),A.includes=(...o)=>A.check(EC(...o)),A.startsWith=(...o)=>A.check(kC(...o)),A.endsWith=(...o)=>A.check(FC(...o)),A.min=(...o)=>A.check(zo(...o)),A.max=(...o)=>A.check(up(...o)),A.length=(...o)=>A.check(dp(...o)),A.nonempty=(...o)=>A.check(zo(1,...o)),A.lowercase=o=>A.check(yC(o)),A.uppercase=o=>A.check(UC(o)),A.trim=()=>A.check(_C()),A.normalize=(...o)=>A.check(vC(...o)),A.toLowerCase=()=>A.check(xC()),A.toUpperCase=()=>A.check(SC()),A.slugify=()=>A.check(IC())}),vb=x("ZodString",(A,e)=>{Qc.init(A,e),Bp.init(A,e),A.email=t=>A.check(Vm(_b,t)),A.url=t=>A.check(Jm(xb,t)),A.jwt=t=>A.check(uC(Vb,t)),A.emoji=t=>A.check(jm(Sb,t)),A.guid=t=>A.check(Tl(Rl,t)),A.uuid=t=>A.check(Gm(Xs,t)),A.uuidv4=t=>A.check(Zm(Xs,t)),A.uuidv6=t=>A.check(Xm(Xs,t)),A.uuidv7=t=>A.check(Wm(Xs,t)),A.nanoid=t=>A.check(Ym(Ib,t)),A.guid=t=>A.check(Tl(Rl,t)),A.cuid=t=>A.check(qm(Tb,t)),A.cuid2=t=>A.check(AC(Hb,t)),A.ulid=t=>A.check(eC(Lb,t)),A.base64=t=>A.check(aC(Nb,t)),A.base64url=t=>A.check(cC($b,t)),A.xid=t=>A.check(tC(Db,t)),A.ksuid=t=>A.check(nC(Rb,t)),A.ipv4=t=>A.check(rC(Ob,t)),A.ipv6=t=>A.check(sC(Pb,t)),A.cidrv4=t=>A.check(oC(Mb,t)),A.cidrv6=t=>A.check(iC(Kb,t)),A.e164=t=>A.check(lC(zb,t)),A.datetime=t=>A.check(ab(t)),A.date=t=>A.check(lb(t)),A.time=t=>A.check(db(t)),A.duration=t=>A.check(hb(t))});function L(A){return zm(vb,A)}const vA=x("ZodStringFormat",(A,e)=>{UA.init(A,e),Bp.init(A,e)}),_b=x("ZodEmail",(A,e)=>{Jw.init(A,e),vA.init(A,e)}),Rl=x("ZodGUID",(A,e)=>{Xw.init(A,e),vA.init(A,e)}),Xs=x("ZodUUID",(A,e)=>{Ww.init(A,e),vA.init(A,e)}),xb=x("ZodURL",(A,e)=>{jw.init(A,e),vA.init(A,e)}),Sb=x("ZodEmoji",(A,e)=>{Yw.init(A,e),vA.init(A,e)}),Ib=x("ZodNanoID",(A,e)=>{qw.init(A,e),vA.init(A,e)}),Tb=x("ZodCUID",(A,e)=>{Am.init(A,e),vA.init(A,e)}),Hb=x("ZodCUID2",(A,e)=>{em.init(A,e),vA.init(A,e)}),Lb=x("ZodULID",(A,e)=>{tm.init(A,e),vA.init(A,e)}),Db=x("ZodXID",(A,e)=>{nm.init(A,e),vA.init(A,e)}),Rb=x("ZodKSUID",(A,e)=>{rm.init(A,e),vA.init(A,e)}),Ob=x("ZodIPv4",(A,e)=>{cm.init(A,e),vA.init(A,e)}),Pb=x("ZodIPv6",(A,e)=>{lm.init(A,e),vA.init(A,e)}),Mb=x("ZodCIDRv4",(A,e)=>{um.init(A,e),vA.init(A,e)}),Kb=x("ZodCIDRv6",(A,e)=>{dm.init(A,e),vA.init(A,e)}),Nb=x("ZodBase64",(A,e)=>{pm.init(A,e),vA.init(A,e)}),$b=x("ZodBase64URL",(A,e)=>{fm.init(A,e),vA.init(A,e)}),zb=x("ZodE164",(A,e)=>{gm.init(A,e),vA.init(A,e)}),Vb=x("ZodJWT",(A,e)=>{wm.init(A,e),vA.init(A,e)}),wp=x("ZodNumber",(A,e)=>{var n,r,s,o,a,i,c,u,h;op.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(f,g,m)=>MC(A,f,g),A.gt=(f,g)=>A.check(Ll(f,g)),A.gte=(f,g)=>A.check(zi(f,g)),A.min=(f,g)=>A.check(zi(f,g)),A.lt=(f,g)=>A.check(Hl(f,g)),A.lte=(f,g)=>A.check($i(f,g)),A.max=(f,g)=>A.check($i(f,g)),A.int=f=>A.check(Ol(f)),A.safe=f=>A.check(Ol(f)),A.positive=f=>A.check(Ll(0,f)),A.nonnegative=f=>A.check(zi(0,f)),A.negative=f=>A.check(Hl(0,f)),A.nonpositive=f=>A.check($i(0,f)),A.multipleOf=(f,g)=>A.check(Dl(f,g)),A.step=(f,g)=>A.check(Dl(f,g)),A.finite=()=>A;const t=A._zod.bag;A.minValue=(s=Math.max((n=t.minimum)!=null?n:Number.NEGATIVE_INFINITY,(r=t.exclusiveMinimum)!=null?r:Number.NEGATIVE_INFINITY))!=null?s:null,A.maxValue=(i=Math.min((o=t.maximum)!=null?o:Number.POSITIVE_INFINITY,(a=t.exclusiveMaximum)!=null?a:Number.POSITIVE_INFINITY))!=null?i:null,A.isInt=((c=t.format)!=null?c:"").includes("int")||Number.isSafeInteger((u=t.multipleOf)!=null?u:.5),A.isFinite=!0,A.format=(h=t.format)!=null?h:null});function dt(A){return gC(wp,A)}const Gb=x("ZodNumberFormat",(A,e)=>{mm.init(A,e),wp.init(A,e)});function Ol(A){return BC(Gb,A)}const Zb=x("ZodBoolean",(A,e)=>{Cm.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>KC(A,t,n)});function bA(A){return wC(Zb,A)}const Xb=x("ZodAny",(A,e)=>{bm.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>$C()});function mp(){return mC(Xb)}const Wb=x("ZodUnknown",(A,e)=>{Qm.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>zC()});function Pl(){return CC(Wb)}const Jb=x("ZodNever",(A,e)=>{ym.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>NC(A,t,n)});function jb(A){return bC(Jb,A)}const Yb=x("ZodArray",(A,e)=>{Um.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>WC(A,t,n,r),A.element=e.element,A.min=(t,n)=>A.check(zo(t,n)),A.nonempty=t=>A.check(zo(1,t)),A.max=(t,n)=>A.check(up(t,n)),A.length=(t,n)=>A.check(dp(t,n)),A.unwrap=()=>A.element});function Ce(A,e){return TC(Yb,A,e)}const qb=x("ZodObject",(A,e)=>{km.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>JC(A,t,n,r),aA(A,"shape",()=>e.shape),A.keyof=()=>xe(Object.keys(A._zod.def.shape)),A.catchall=t=>A.clone($(k({},A._zod.def),{catchall:t})),A.passthrough=()=>A.clone($(k({},A._zod.def),{catchall:Pl()})),A.loose=()=>A.clone($(k({},A._zod.def),{catchall:Pl()})),A.strict=()=>A.clone($(k({},A._zod.def),{catchall:jb()})),A.strip=()=>A.clone($(k({},A._zod.def),{catchall:void 0})),A.extend=t=>GB(A,t),A.safeExtend=t=>ZB(A,t),A.merge=t=>XB(A,t),A.pick=t=>zB(A,t),A.omit=t=>VB(A,t),A.partial=(...t)=>WB(Qp,A,t[0]),A.required=(...t)=>JB(yp,A,t[0])});function mA(A,e){const t=k({type:"object",shape:A!=null?A:{}},Z(e));return new qb(t)}const Cp=x("ZodUnion",(A,e)=>{cp.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>jC(A,t,n,r),A.options=e.options});function AQ(A,e){return new Cp(k({type:"union",options:A},Z(e)))}const eQ=x("ZodDiscriminatedUnion",(A,e)=>{Cp.init(A,e),Fm.init(A,e)});function bp(A,e,t){return new eQ(k({type:"union",options:e,discriminator:A},Z(t)))}const tQ=x("ZodIntersection",(A,e)=>{vm.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>YC(A,t,n,r)});function nQ(A,e){return new tQ({type:"intersection",left:A,right:e})}const rQ=x("ZodRecord",(A,e)=>{_m.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>qC(A,t,n,r),A.keyType=e.keyType,A.valueType=e.valueType});function at(A,e,t){return new rQ(k({type:"record",keyType:A,valueType:e},Z(t)))}const Fa=x("ZodEnum",(A,e)=>{xm.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(n,r,s)=>VC(A,n,r),A.enum=e.entries,A.options=Object.values(e.entries);const t=new Set(Object.keys(e.entries));A.extract=(n,r)=>{const s={};for(const o of n)if(t.has(o))s[o]=e.entries[o];else throw new Error(`Key ${o} not found in enum`);return new Fa($(k($(k({},e),{checks:[]}),Z(r)),{entries:s}))},A.exclude=(n,r)=>{const s=k({},e.entries);for(const o of n)if(t.has(o))delete s[o];else throw new Error(`Key ${o} not found in enum`);return new Fa($(k($(k({},e),{checks:[]}),Z(r)),{entries:s}))}});function xe(A,e){const t=Array.isArray(A)?Object.fromEntries(A.map(n=>[n,n])):A;return new Fa(k({type:"enum",entries:t},Z(e)))}const sQ=x("ZodLiteral",(A,e)=>{Sm.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>GC(A,t,n),A.values=new Set(e.values),Object.defineProperty(A,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function ve(A,e){return new sQ(k({type:"literal",values:Array.isArray(A)?A:[A]},Z(e)))}const oQ=x("ZodTransform",(A,e)=>{Im.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>XC(A,t),A._zod.parse=(t,n)=>{if(n.direction==="backward")throw new zd(A.constructor.name);t.addIssue=s=>{var o,a,i;if(typeof s=="string")t.issues.push(ps(s,t.value,e));else{const c=s;c.fatal&&(c.continue=!1),(o=c.code)!=null||(c.code="custom"),(a=c.input)!=null||(c.input=t.value),(i=c.inst)!=null||(c.inst=A),t.issues.push(ps(c))}};const r=e.transform(t.value,t);return r instanceof Promise?r.then(s=>(t.value=s,t)):(t.value=r,t)}});function iQ(A){return new oQ({type:"transform",transform:A})}const Qp=x("ZodOptional",(A,e)=>{lp.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>gp(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function Ml(A){return new Qp({type:"optional",innerType:A})}const aQ=x("ZodExactOptional",(A,e)=>{Tm.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>gp(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function cQ(A){return new aQ({type:"optional",innerType:A})}const lQ=x("ZodNullable",(A,e)=>{Hm.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Ab(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function Kl(A){return new lQ({type:"nullable",innerType:A})}const uQ=x("ZodDefault",(A,e)=>{Lm.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>tb(A,t,n,r),A.unwrap=()=>A._zod.def.innerType,A.removeDefault=A.unwrap});function dQ(A,e){return new uQ({type:"default",innerType:A,get defaultValue(){return typeof e=="function"?e():Xd(e)}})}const pQ=x("ZodPrefault",(A,e)=>{Dm.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>nb(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function hQ(A,e){return new pQ({type:"prefault",innerType:A,get defaultValue(){return typeof e=="function"?e():Xd(e)}})}const yp=x("ZodNonOptional",(A,e)=>{Rm.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>eb(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function fQ(A,e){return new yp(k({type:"nonoptional",innerType:A},Z(e)))}const gQ=x("ZodCatch",(A,e)=>{Om.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>rb(A,t,n,r),A.unwrap=()=>A._zod.def.innerType,A.removeCatch=A.unwrap});function BQ(A,e){return new gQ({type:"catch",innerType:A,catchValue:typeof e=="function"?e:()=>e})}const wQ=x("ZodPipe",(A,e)=>{Pm.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>sb(A,t,n,r),A.in=e.in,A.out=e.out});function Nl(A,e){return new wQ({type:"pipe",in:A,out:e})}const mQ=x("ZodReadonly",(A,e)=>{Mm.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>ob(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function CQ(A){return new mQ({type:"readonly",innerType:A})}const bQ=x("ZodCustom",(A,e)=>{Km.init(A,e),EA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>ZC(A,t)});function QQ(A,e={}){return HC(bQ,A,e)}function yQ(A){return LC(A)}const UQ=mA({name:L().min(1).max(100).optional(),command:L().min(1).max(500),args:Ce(L()).optional(),failOnError:bA().default(!0).optional(),timeout:dt().int().min(1e3).max(3e5).default(3e4).optional(),workingDirectory:L().optional(),env:at(L(),L()).optional(),runOnBackground:bA().optional(),agentTags:Ce(L()).optional()});mA({name:L(),command:L(),success:bA(),exitCode:dt().optional(),stdout:L().optional(),stderr:L().optional(),error:L().optional(),duration:dt(),failOnError:bA()});const on=mA({path:L(),extraCommands:Ce(UQ).optional(),id:L().uuid().optional(),rotationKey:L().optional(),usageStatus:xe(["free","in_use"]).optional(),agentTags:Ce(L()).optional()}),EQ=bp("operation",[on.extend({operation:ve("create"),content:L().optional(),contentPath:L().optional(),encoding:xe(["utf-8","base64"]).optional()}),on.extend({operation:ve("merge"),data:at(L(),mp()),mergeStrategy:xe(["deep","shallow"]).optional(),arrayMergeStrategy:xe(["concat","replace"]).optional()}),on.extend({operation:ve("modify"),content:L().optional(),contentPath:L().optional(),createIfMissing:bA().optional()}),on.extend({operation:ve("delete"),ignoreIfMissing:bA().optional()}),on.extend({operation:ve("createDirectory"),contentPath:L().optional(),mode:dt().optional(),ignoreIfExists:bA().optional()}),on.extend({operation:ve("download"),url:L().url(),headers:at(L(),L()).optional(),timeout:dt().min(1e3).max(3e5).optional()}),on.extend({operation:ve("gitClone"),gitUrl:L(),gitSecretKey:L().optional(),sourceBranch:L().optional(),targetBranch:L().optional(),originalBranch:L().optional(),defaultBranch:L().optional()})]);var FA=(A=>(A.DRAFT="draft",A.PENDING="pending",A.ASSIGNED="assigned",A.IN_PROGRESS="in_progress",A.WAITING_FOR_INPUT="waiting_for_input",A.WAITING_FOR_PLAN_APPROVAL="waiting_for_plan_approval",A.PLAN_APPROVED="plan_approved",A.PLAN_REJECTED="plan_rejected",A.COMPLETED="completed",A.FAILED="failed",A.CANCELLED="cancelled",A.RESULT_REJECTED="result_rejected",A))(FA||{});const kQ=mA({type:xe(["json","file","regex"]).describe("Extraction method"),source:L().describe("Source to extract from (file path or stdout/stderr)"),schema:mA({}).passthrough().optional().describe("JSON schema for validation"),pattern:L().optional().describe("Regex pattern for extraction")}),FQ=mA({type:xe(["issue_update","bulk_issue_update","notification","webhook"]).describe("Hook type"),config:mp().describe("Hook-specific configuration")});mA({command:L().optional().describe("Legacy — unused in SDK mode"),args:Ce(L()).optional().describe("Legacy — unused in SDK mode"),env:at(L(),L()).optional().describe("Environment variables"),workingDirectory:L().optional().describe("Working directory for command execution"),fileOperations:Ce(EQ).optional().describe("File operations to perform during setup"),gitUrl:L().optional().describe("Git repository URL (populated from project)"),gitPrivateKey:L().optional().describe("Git SSH private key (populated from project)"),gitCommitMessage:L().optional().describe("Commit message for git operations"),resultExtraction:kQ.optional().describe("Schema for extracting result data"),postExecutionHooks:Ce(FQ).optional().describe("Hooks to run after task completion"),executionMode:xe(["claudeAgentSdk","openaiAgentSdk","opencodeSdk","cursorSdk","codexSdk"]).optional().default("claudeAgentSdk").describe("Execution mode (default: claudeAgentSdk)"),executionPlan:bp("executionMode",[mA({executionMode:ve("claudeAgentSdk"),promptText:L(),sdkOptions:mA({model:L(),permissionMode:xe(["plan","acceptEdits","bypassPermissions","ask"]),settingSources:Ce(L()),allowDangerouslySkipPermissions:bA(),persistSession:bA(),streamSdkEvents:bA().optional(),allowedTools:Ce(L()).optional(),settings:mA({enabledPlugins:at(L(),bA())}),env:at(L(),L()).optional()}),resume:mA({sessionId:L().optional(),continue:bA()}).optional()}),mA({executionMode:ve("opencodeSdk"),promptText:L(),sdkOptions:mA({provider:L(),model:L(),allowedTools:Ce(L()).optional(),env:at(L(),L()).optional()}),resume:mA({sessionId:L().optional(),continue:bA()}).optional()}),mA({executionMode:ve("openaiAgentSdk"),promptText:L(),sdkOptions:mA({model:L(),env:at(L(),L()).optional()}),resume:mA({sessionId:L().optional(),continue:bA()}).optional()}),mA({executionMode:ve("codexSdk"),promptText:L(),sdkOptions:mA({model:L().optional(),sandboxMode:xe(["read-only","workspace-write","danger-full-access"]).optional(),approvalPolicy:xe(["never","on-request","on-failure","untrusted"]).optional(),env:at(L(),L()).optional()}),resume:mA({sessionId:L().optional(),continue:bA()}).optional()}),mA({executionMode:ve("cursorSdk"),promptText:L(),sdkOptions:mA({model:L(),env:at(L(),L()).optional()}),resume:mA({sessionId:L().optional(),continue:bA()}).optional()})]).optional().describe("Backend-built prompt + resolved SDK options for this phase"),planEnabled:bA().optional().default(!1).describe("Enable planning phase (computed at runtime for agent)"),planContent:L().optional().describe("Final approved plan content"),planApproved:bA().optional().describe("Plan approval status"),planApprovedAt:L().optional().describe("ISO timestamp of approval"),planRejected:bA().optional().describe("Plan rejection flag"),planRejectionFeedback:L().optional().describe("User rejection feedback"),rejectedPlanContent:L().optional().describe("Previously rejected plan content"),planCompletedAt:L().optional().describe("ISO timestamp when plan was generated"),planRejectedAt:L().optional().describe("ISO timestamp when plan was rejected"),resultRejectionFeedback:L().optional().describe("User feedback when rejecting the result (most recent)"),resultRejectedAt:L().optional().describe("ISO timestamp when result was rejected (most recent)"),resultRejectionHistory:Ce(mA({feedback:L(),rejectedAt:L()})).optional().describe("All rejection messages in chronological order"),notificationChannelPlanMessageId:dt().optional(),notificationChannelPlanMessageSentAt:L().optional(),notificationChannelCompletedMessageId:dt().optional(),notificationChannelFailedMessageId:dt().optional(),streamSdkEvents:bA().optional().describe("Stream SDK messages (thinking, tool calls, etc.) as sdk_event chunks"),originalTaskSummary:L().optional().describe("Summary from the original task run (passed to retry for historical context)"),planWasApproved:bA().optional().describe("True when planApproved was cleared for rePlan=true retry — indicates the plan had been approved before"),planComments:Ce(mA({id:L(),selectedText:L(),startOffset:dt(),endOffset:dt(),commentText:L(),createdAt:L()})).optional().describe("Inline review comments attached to the plan"),hasAiConfigSecrets:bA().optional().describe("True when AI Config has secret-backed env vars; agent must fetch resolved values via /tasks/:id/resolve-secrets"),hasCredentials:bA().optional().describe("True when the task has credentials attached; agent must fetch resolved values via /tasks/:id/resolve-credentials"),mcpServersMode:xe(["all","ignoreExistingMcpServers"]).optional().describe("MCP server strategy for this run; 'ignoreExistingMcpServers' overrides the existing .mcp.json with only the template's configured servers plus the agent-platform server"),enableBrowserTools:bA().optional().describe("When true, the MCP server registers browser_interact and browser_get_context (browser_automate tasks only)")});FA.DRAFT+"",FA.CANCELLED,FA.PENDING+"",FA.CANCELLED,FA.ASSIGNED+"",FA.CANCELLED,FA.IN_PROGRESS+"",FA.CANCELLED,FA.FAILED,FA.WAITING_FOR_INPUT+"",FA.CANCELLED,FA.WAITING_FOR_PLAN_APPROVAL+"",FA.CANCELLED,FA.PLAN_APPROVED+"",FA.CANCELLED,FA.PLAN_REJECTED+"",FA.CANCELLED,FA.COMPLETED+"",FA.RESULT_REJECTED+"",FA.CANCELLED,FA.FAILED+"",FA.CANCELLED+"";const Up="browser_capture",vQ="browser_automate";function $l(A){let e=(A||"").trim().toLowerCase();const t=e.indexOf("@");return t>=0&&(e=e.slice(t+1)),e=e.split("/")[0].split(":")[0],e.startsWith("www.")&&(e=e.slice(4)),e}function _Q(A,e){const t=$l(A),n=(e||"").trim().toLowerCase();if(!t||!n)return!1;if(n.startsWith("*.")){const r=n.slice(2);return t===r||t.endsWith("."+r)}return t===$l(n)}function zl(A,e){var s;let t;try{const o=new URL(A);if(o.protocol!=="http:"&&o.protocol!=="https:")return null;t=o.hostname}catch(o){return null}let n=null,r=-1;for(const o of e)for(const a of(s=o.domains)!=null?s:[])_Q(t,a)&&a.length>r&&(r=a.length,n=o.id);return n}class Ep extends Error{}function yc(A){return I(this,null,function*(){if(!A.ok){const e=yield A.json().catch(()=>({message:`HTTP ${A.status}`})),t=e.message||e.error||`HTTP ${A.status}`;throw A.status===401?new Ep(t):new Error(t)}return A.json()})}const xQ=3e4;let kp=xQ;function SQ(A){Number.isFinite(A)&&A>0&&(kp=A)}function hs(n){return I(this,arguments,function*(A,e={},t=kp){const r=new AbortController,s=setTimeout(()=>r.abort(),t);try{return yield fetch(A,$(k({},e),{credentials:"omit",signal:r.signal}))}catch(o){throw o instanceof DOMException&&o.name==="AbortError"?new Error(`Request timed out after ${Math.round(t/1e3)}s. Please check your connection and try again.`):o}finally{clearTimeout(s)}})}function XA(A,e,t,n){return I(this,null,function*(){const s=`${A.backendUrl.replace(/\/+$/,"")}/api${t}`,o=yield hs(s,{method:e,headers:{"Content-Type":"application/json",Authorization:`Bearer ${A.token}`},body:n!==void 0?JSON.stringify(n):void 0});return yc(o)})}function IQ(A,e,t){return I(this,null,function*(){const n=A.backendUrl.replace(/\/+$/,""),r=new FormData;r.append("file",e,t);const s=yield hs(`${n}/api/files/upload`,{method:"POST",headers:{Authorization:`Bearer ${A.token}`},body:r});return yc(s)})}function TQ(A,e){return I(this,null,function*(){return XA(A,"GET",`/projects/by-key/${encodeURIComponent(e)}`)})}const HQ=["project","note","ctx"];function LQ(A){var t,n;const e=HQ.filter(r=>A[r]===void 0||A[r]===null);if(e.length>0)throw new Error(`createTask: missing required field(s): ${e.join(", ")}`);if(!((t=A.project)!=null&&t.id)&&!((n=A.project)!=null&&n.key))throw new Error("createTask: project must have an id or key")}function va(A,e){return I(this,null,function*(){var h,f,g,m,b,U;LQ(e);const{project:t,note:n,ctx:r,advancedOpts:s,titleOverride:o,titleInstruction:a,allowSubmit:i,extraFileIds:c,type:u=Up}=e;return XA(A,"POST","/tasks",$(k(k(k(k(k(k(k(k(k(k(k(k(k(k(k($(k({type:u,title:o||n.slice(0,120)||r.pageTitle||"Browser capture",titleInstruction:a!=null?a:n},t.id?{projectId:t.id}:{projectKey:t.key}),{autoAssign:!0}),s!=null&&s.claudeTemplateId?{claudeTemplateId:s.claudeTemplateId}:{}),(s==null?void 0:s.quickMode)!==void 0?{quickMode:s.quickMode}:{}),(s==null?void 0:s.modelOverride)!=null?{modelOverride:s.modelOverride}:{}),(s==null?void 0:s.claudeProfileId)!=null?{claudeProfileId:s.claudeProfileId}:{}),(s==null?void 0:s.effort)!=null?{effort:s.effort}:{}),(s==null?void 0:s.executionMode)!=null?{executionMode:s.executionMode}:{}),(h=s==null?void 0:s.selectedPluginIds)!=null&&h.length?{selectedPluginIds:s.selectedPluginIds}:{}),(f=s==null?void 0:s.selectedSkillIds)!=null&&f.length?{selectedSkillIds:s.selectedSkillIds}:{}),(g=s==null?void 0:s.selectedPluginSkillIds)!=null&&g.length?{selectedPluginSkillIds:s.selectedPluginSkillIds}:{}),(m=s==null?void 0:s.selectedMcpServerIds)!=null&&m.length?{selectedMcpServerIds:s.selectedMcpServerIds}:{}),(b=s==null?void 0:s.selectedSlashCommandIds)!=null&&b.length?{selectedSlashCommandIds:s.selectedSlashCommandIds}:{}),(U=s==null?void 0:s.selectedRemoteContextProviderIds)!=null&&U.length?{selectedRemoteContextProviderIds:s.selectedRemoteContextProviderIds}:{}),s!=null&&s.instructionTemplateId?{instructionTemplateId:s.instructionTemplateId}:{}),s!=null&&s.templateParamValues?{templateParamValues:s.templateParamValues}:{}),s!=null&&s.defaultParamValues?{defaultParamValues:s.defaultParamValues}:{}),{metadata:k(k({type:u,note:n,source:"web-sdk",pageUrl:r.pageUrl,pageTitle:r.pageTitle,elementText:r.elementText,cssSelector:r.cssSelector,elementOuterHtml:r.elementOuterHtml,ancestry:r.ancestry,elementRole:r.elementRole,elementAriaLabel:r.elementAriaLabel,enclosingSection:r.enclosingSection,description:r.description,canonicalUrl:r.canonicalUrl,lang:r.lang,ogTitle:r.ogTitle,ogDescription:r.ogDescription,ogType:r.ogType,ogSiteName:r.ogSiteName,viewportWidth:r.viewportWidth,viewportHeight:r.viewportHeight,scrollX:r.scrollX,scrollY:r.scrollY,selectionText:r.selectionText,capturedAt:r.capturedAt,interactionSteps:r.interactionSteps},i!==void 0?{allowSubmit:i}:{}),c!=null&&c.length?{extraFileIds:c}:{})}))})}function Vl(A,e){return I(this,null,function*(){return va(A,$(k({},e),{type:vQ}))})}function Gl(A,e,t,n,r){return I(this,null,function*(){var s;return XA(A,"POST","/planning-sessions",k(k(k(k(k($(k({},e.id?{projectId:e.id}:{projectKey:e.key}),{instruction:t,quickMode:(s=n==null?void 0:n.quickMode)!=null?s:!1}),n!=null&&n.claudeTemplateId?{claudeTemplateId:n.claudeTemplateId}:{}),n!=null&&n.instructionTemplateId?{instructionTemplateId:n.instructionTemplateId}:{}),n!=null&&n.templateParamValues?{templateParamValues:n.templateParamValues}:{}),n!=null&&n.defaultParamValues?{defaultParamValues:n.defaultParamValues}:{}),r!=null&&r.length?{fileIds:r}:{}))})}function DQ(A,e){return I(this,null,function*(){const t=e?`?projectId=${encodeURIComponent(e)}`:"";return XA(A,"GET",`/claude-templates${t}`)})}function RQ(A,e){return I(this,null,function*(){const t=e?`?projectId=${encodeURIComponent(e)}`:"";return XA(A,"GET",`/instruction-composer/context${t}`)})}function OQ(A,e){return I(this,null,function*(){return XA(A,"POST","/instruction-composer/preview",e)})}function Fp(A,e){return I(this,null,function*(){return XA(A,"GET",`/tasks/${e}`)})}function PQ(A,e){return I(this,null,function*(){return XA(A,"GET",`/planning-sessions/${e}`)})}function Zl(A){return I(this,null,function*(){return XA(A,"GET","/projects")})}function MQ(A){return I(this,null,function*(){return(yield XA(A,"GET","/tenants/current")).membership})}function Xl(A,e){if(!A||A.includes("tenant:*")||A.includes(e))return!0;const t=e.split(":")[0];return A.includes(`${t}:*`)}function _a(A,e,t){return I(this,null,function*(){const r=`${A.backendUrl.replace(/\/+$/,"")}/api/auth/tokens/exchange-code`,s=yield hs(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,origin:t})});return yc(s)})}function KQ(A,e){return I(this,null,function*(){return XA(A,"GET",`/tasks/${e}/browser-commands/pending`)})}function NQ(A,e,t,n,r){return I(this,null,function*(){return XA(A,"POST",`/tasks/${e}/browser-commands/${t}/result`,{status:n,message:r})})}function $Q(A,e){return I(this,null,function*(){return XA(A,"GET",`/tasks/${e}/chunks`)})}function zQ(A,e,t){return I(this,null,function*(){return XA(A,"POST",`/tasks/${e}/instructions`,{content:t})})}function VQ(A,e){return I(this,null,function*(){return XA(A,"POST",`/tasks/${e}/cancel`)})}function GQ(A,e){return I(this,null,function*(){return XA(A,"POST",`/tasks/${e}/approve-result`)})}function ZQ(A,e,t){return I(this,null,function*(){return XA(A,"POST",`/tasks/${e}/reject-result`,{feedback:t})})}function Go(A,e){return I(this,null,function*(){return XA(A,"GET",`/tasks/${e}/interactions?filter=unanswered`)})}function vp(A,e,t,n){return I(this,null,function*(){return XA(A,"POST",`/tasks/${e}/interactions/${t}/answer`,{answer:n})})}function XQ(A,e,t){const n=!!(e.backendUrl&&e.token),r=document.createElement("div");r.className="ap-sdk-advanced",r.innerHTML=`
|
|
1625
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of A.seen.entries()){const h=u[1];if(e===u[0]){s(u);continue}if(A.external){const g=(i=A.external.registry.get(u[0]))==null?void 0:i.id;if(e!==u[0]&&g){s(u);continue}}if((c=A.metadataRegistry.get(u[0]))==null?void 0:c.id){s(u);continue}if(h.cycle){s(u);continue}if(h.count>1&&A.reused==="ref"){s(u);continue}}}function Qp(A,e){var o,a,i,c,u;const t=A.seen.get(e);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=h=>{var E,v,y;const f=A.seen.get(h);if(f.ref===null)return;const g=(E=f.def)!=null?E:f.schema,m=F({},g),b=f.ref;if(f.ref=null,b){n(b);const U=A.seen.get(b),x=U.schema;if(x.$ref&&(A.target==="draft-07"||A.target==="draft-04"||A.target==="openapi-3.0")?(g.allOf=(v=g.allOf)!=null?v:[],g.allOf.push(x)):Object.assign(g,x),Object.assign(g,m),h._zod.parent===b)for(const H in g)H==="$ref"||H==="allOf"||H in m||delete g[H];if(x.$ref)for(const H in g)H==="$ref"||H==="allOf"||H in U.def&&JSON.stringify(g[H])===JSON.stringify(U.def[H])&&delete g[H]}const k=h._zod.parent;if(k&&k!==b){n(k);const U=A.seen.get(k);if(U!=null&&U.schema.$ref&&(g.$ref=U.schema.$ref,U.def))for(const x in g)x==="$ref"||x==="allOf"||x in U.def&&JSON.stringify(g[x])===JSON.stringify(U.def[x])&&delete g[x]}A.override({zodSchema:h,jsonSchema:g,path:(y=f.path)!=null?y:[]})};for(const h of[...A.seen.entries()].reverse())n(h[0]);const r={};if(A.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":A.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":A.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":A.target,(o=A.external)!=null&&o.uri){const h=(a=A.external.registry.get(e))==null?void 0:a.id;if(!h)throw new Error("Schema is missing an `id` property");r.$id=A.external.uri(h)}Object.assign(r,(i=t.def)!=null?i:t.schema);const s=(u=(c=A.external)==null?void 0:c.defs)!=null?u:{};for(const h of A.seen.entries()){const f=h[1];f.def&&f.defId&&(s[f.defId]=f.def)}A.external||Object.keys(s).length>0&&(A.target==="draft-2020-12"?r.$defs=s:r.definitions=s);try{const h=JSON.parse(JSON.stringify(r));return Object.defineProperty(h,"~standard",{value:z(F({},e["~standard"]),{jsonSchema:{input:Zo(e,"input",A.processors),output:Zo(e,"output",A.processors)}}),enumerable:!1,writable:!1}),h}catch(h){throw new Error("Error converting schema to JSON.")}}function ce(A,e){const t=e!=null?e:{seen:new Set};if(t.seen.has(A))return!1;t.seen.add(A);const n=A._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return ce(n.element,t);if(n.type==="set")return ce(n.valueType,t);if(n.type==="lazy")return ce(n.getter(),t);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return ce(n.innerType,t);if(n.type==="intersection")return ce(n.left,t)||ce(n.right,t);if(n.type==="record"||n.type==="map")return ce(n.keyType,t)||ce(n.valueType,t);if(n.type==="pipe")return ce(n.in,t)||ce(n.out,t);if(n.type==="object"){for(const r in n.shape)if(ce(n.shape[r],t))return!0;return!1}if(n.type==="union"){for(const r of n.options)if(ce(r,t))return!0;return!1}if(n.type==="tuple"){for(const r of n.items)if(ce(r,t))return!0;return!!(n.rest&&ce(n.rest,t))}return!1}const $C=(A,e={})=>t=>{const n=Cp(z(F({},t),{processors:e}));return PA(A,n),bp(n,A),Qp(n,A)},Zo=(A,e,t={})=>n=>{const{libraryOptions:r,target:s}=n!=null?n:{},o=Cp(z(F({},r!=null?r:{}),{target:s,io:e,processors:t}));return PA(A,o),bp(o,A),Qp(o,A)},zC={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},VC=(A,e,t,n)=>{var u;const r=t;r.type="string";const{minimum:s,maximum:o,format:a,patterns:i,contentEncoding:c}=A._zod.bag;if(typeof s=="number"&&(r.minLength=s),typeof o=="number"&&(r.maxLength=o),a&&(r.format=(u=zC[a])!=null?u:a,r.format===""&&delete r.format,a==="time"&&delete r.format),c&&(r.contentEncoding=c),i&&i.size>0){const h=[...i];h.length===1?r.pattern=h[0].source:h.length>1&&(r.allOf=[...h.map(f=>z(F({},e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{}),{pattern:f.source}))])}},GC=(A,e,t,n)=>{const r=t,{minimum:s,maximum:o,format:a,multipleOf:i,exclusiveMaximum:c,exclusiveMinimum:u}=A._zod.bag;typeof a=="string"&&a.includes("int")?r.type="integer":r.type="number",typeof u=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u),typeof s=="number"&&(r.minimum=s,typeof u=="number"&&e.target!=="draft-04"&&(u>=s?delete r.minimum:delete r.exclusiveMinimum)),typeof c=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c),typeof o=="number"&&(r.maximum=o,typeof c=="number"&&e.target!=="draft-04"&&(c<=o?delete r.maximum:delete r.exclusiveMaximum)),typeof i=="number"&&(r.multipleOf=i)},ZC=(A,e,t,n)=>{t.type="boolean"},XC=(A,e,t,n)=>{t.not={}},WC=(A,e,t,n)=>{},JC=(A,e,t,n)=>{},jC=(A,e,t,n)=>{const r=A._zod.def,s=qd(r.entries);s.every(o=>typeof o=="number")&&(t.type="number"),s.every(o=>typeof o=="string")&&(t.type="string"),t.enum=s},YC=(A,e,t,n)=>{const r=A._zod.def,s=[];for(const o of r.values)if(o===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof o=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(o))}else s.push(o);if(s.length!==0)if(s.length===1){const o=s[0];t.type=o===null?"null":typeof o,e.target==="draft-04"||e.target==="openapi-3.0"?t.enum=[o]:t.const=o}else s.every(o=>typeof o=="number")&&(t.type="number"),s.every(o=>typeof o=="string")&&(t.type="string"),s.every(o=>typeof o=="boolean")&&(t.type="boolean"),s.every(o=>o===null)&&(t.type="null"),t.enum=s},qC=(A,e,t,n)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Ab=(A,e,t,n)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},eb=(A,e,t,n)=>{const r=t,s=A._zod.def,{minimum:o,maximum:a}=A._zod.bag;typeof o=="number"&&(r.minItems=o),typeof a=="number"&&(r.maxItems=a),r.type="array",r.items=PA(s.element,e,z(F({},n),{path:[...n.path,"items"]}))},tb=(A,e,t,n)=>{var c;const r=t,s=A._zod.def;r.type="object",r.properties={};const o=s.shape;for(const u in o)r.properties[u]=PA(o[u],e,z(F({},n),{path:[...n.path,"properties",u]}));const a=new Set(Object.keys(o)),i=new Set([...a].filter(u=>{const h=s.shape[u]._zod;return e.io==="input"?h.optin===void 0:h.optout===void 0}));i.size>0&&(r.required=Array.from(i)),((c=s.catchall)==null?void 0:c._zod.def.type)==="never"?r.additionalProperties=!1:s.catchall?s.catchall&&(r.additionalProperties=PA(s.catchall,e,z(F({},n),{path:[...n.path,"additionalProperties"]}))):e.io==="output"&&(r.additionalProperties=!1)},nb=(A,e,t,n)=>{const r=A._zod.def,s=r.inclusive===!1,o=r.options.map((a,i)=>PA(a,e,z(F({},n),{path:[...n.path,s?"oneOf":"anyOf",i]})));s?t.oneOf=o:t.anyOf=o},rb=(A,e,t,n)=>{const r=A._zod.def,s=PA(r.left,e,z(F({},n),{path:[...n.path,"allOf",0]})),o=PA(r.right,e,z(F({},n),{path:[...n.path,"allOf",1]})),a=c=>"allOf"in c&&Object.keys(c).length===1,i=[...a(s)?s.allOf:[s],...a(o)?o.allOf:[o]];t.allOf=i},sb=(A,e,t,n)=>{const r=t,s=A._zod.def;r.type="object";const o=s.keyType,a=o._zod.bag,i=a==null?void 0:a.patterns;if(s.mode==="loose"&&i&&i.size>0){const u=PA(s.valueType,e,z(F({},n),{path:[...n.path,"patternProperties","*"]}));r.patternProperties={};for(const h of i)r.patternProperties[h.source]=u}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(r.propertyNames=PA(s.keyType,e,z(F({},n),{path:[...n.path,"propertyNames"]}))),r.additionalProperties=PA(s.valueType,e,z(F({},n),{path:[...n.path,"additionalProperties"]}));const c=o._zod.values;if(c){const u=[...c].filter(h=>typeof h=="string"||typeof h=="number");u.length>0&&(r.required=u)}},ob=(A,e,t,n)=>{const r=A._zod.def,s=PA(r.innerType,e,n),o=e.seen.get(A);e.target==="openapi-3.0"?(o.ref=r.innerType,t.nullable=!0):t.anyOf=[s,{type:"null"}]},ib=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType},ab=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,t.default=JSON.parse(JSON.stringify(r.defaultValue))},cb=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,e.io==="input"&&(t._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},lb=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType;let o;try{o=r.catchValue(void 0)}catch(a){throw new Error("Dynamic catch values are not supported in JSON Schema")}t.default=o},ub=(A,e,t,n)=>{const r=A._zod.def,s=e.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;PA(s,e,n);const o=e.seen.get(A);o.ref=s},db=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,t.readOnly=!0},yp=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType},pb=_("ZodISODateTime",(A,e)=>{um.init(A,e),kA.init(A,e)});function hb(A){return wC(pb,A)}const fb=_("ZodISODate",(A,e)=>{dm.init(A,e),kA.init(A,e)});function gb(A){return mC(fb,A)}const Bb=_("ZodISOTime",(A,e)=>{pm.init(A,e),kA.init(A,e)});function wb(A){return CC(Bb,A)}const mb=_("ZodISODuration",(A,e)=>{hm.init(A,e),kA.init(A,e)});function Cb(A){return bC(mb,A)}const bb=(A,e)=>{np.init(A,e),A.name="ZodError",Object.defineProperties(A,{format:{value:t=>rw(A,t)},flatten:{value:t=>nw(A,t)},addIssue:{value:t=>{A.issues.push(t),A.message=JSON.stringify(A.issues,va,2)}},addIssues:{value:t=>{A.issues.push(...t),A.message=JSON.stringify(A.issues,va,2)}},isEmpty:{get(){return A.issues.length===0}}})},Re=_("ZodError",bb,{Parent:Error}),Qb=Uc(Re),yb=Ec(Re),Ub=hi(Re),Eb=fi(Re),kb=iw(Re),Fb=aw(Re),vb=cw(Re),_b=lw(Re),xb=uw(Re),Sb=dw(Re),Ib=pw(Re),Tb=hw(Re),UA=_("ZodType",(A,e)=>(QA.init(A,e),Object.assign(A["~standard"],{jsonSchema:{input:Zo(A,"input"),output:Zo(A,"output")}}),A.toJSONSchema=$C(A,{}),A.def=e,A.type=e.type,Object.defineProperty(A,"_def",{value:e}),A.check=(...t)=>{var n;return A.clone(jt(e,{checks:[...(n=e.checks)!=null?n:[],...t.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},A.with=A.check,A.clone=(t,n)=>Yt(A,t,n),A.brand=()=>A,A.register=((t,n)=>(t.add(A,n),A)),A.parse=(t,n)=>Qb(A,t,n,{callee:A.parse}),A.safeParse=(t,n)=>Ub(A,t,n),A.parseAsync=(t,n)=>I(null,null,function*(){return yb(A,t,n,{callee:A.parseAsync})}),A.safeParseAsync=(t,n)=>I(null,null,function*(){return Eb(A,t,n)}),A.spa=A.safeParseAsync,A.encode=(t,n)=>kb(A,t,n),A.decode=(t,n)=>Fb(A,t,n),A.encodeAsync=(t,n)=>I(null,null,function*(){return vb(A,t,n)}),A.decodeAsync=(t,n)=>I(null,null,function*(){return _b(A,t,n)}),A.safeEncode=(t,n)=>xb(A,t,n),A.safeDecode=(t,n)=>Sb(A,t,n),A.safeEncodeAsync=(t,n)=>I(null,null,function*(){return Ib(A,t,n)}),A.safeDecodeAsync=(t,n)=>I(null,null,function*(){return Tb(A,t,n)}),A.refine=(t,n)=>A.check(vQ(t,n)),A.superRefine=t=>A.check(_Q(t)),A.overwrite=t=>A.check(wr(t)),A.optional=()=>zl(A),A.exactOptional=()=>fQ(A),A.nullable=()=>Vl(A),A.nullish=()=>zl(Vl(A)),A.nonoptional=t=>bQ(A,t),A.array=()=>be(A),A.or=t=>oQ([A,t]),A.and=t=>cQ(A,t),A.transform=t=>Gl(A,pQ(t)),A.default=t=>wQ(A,t),A.prefault=t=>CQ(A,t),A.catch=t=>yQ(A,t),A.pipe=t=>Gl(A,t),A.readonly=()=>kQ(A),A.describe=t=>{const n=A.clone();return Gr.add(n,{description:t}),n},Object.defineProperty(A,"description",{get(){var t;return(t=Gr.get(A))==null?void 0:t.description},configurable:!0}),A.meta=(...t)=>{if(t.length===0)return Gr.get(A);const n=A.clone();return Gr.add(n,t[0]),n},A.isOptional=()=>A.safeParse(void 0).success,A.isNullable=()=>A.safeParse(null).success,A.apply=t=>t(A),A)),Up=_("_ZodString",(A,e)=>{var n,r,s;kc.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(o,a,i)=>VC(A,o,a);const t=A._zod.bag;A.format=(n=t.format)!=null?n:null,A.minLength=(r=t.minimum)!=null?r:null,A.maxLength=(s=t.maximum)!=null?s:null,A.regex=(...o)=>A.check(vC(...o)),A.includes=(...o)=>A.check(SC(...o)),A.startsWith=(...o)=>A.check(IC(...o)),A.endsWith=(...o)=>A.check(TC(...o)),A.min=(...o)=>A.check(Go(...o)),A.max=(...o)=>A.check(wp(...o)),A.length=(...o)=>A.check(mp(...o)),A.nonempty=(...o)=>A.check(Go(1,...o)),A.lowercase=o=>A.check(_C(o)),A.uppercase=o=>A.check(xC(o)),A.trim=()=>A.check(LC()),A.normalize=(...o)=>A.check(HC(...o)),A.toLowerCase=()=>A.check(DC()),A.toUpperCase=()=>A.check(RC()),A.slugify=()=>A.check(OC())}),Hb=_("ZodString",(A,e)=>{kc.init(A,e),Up.init(A,e),A.email=t=>A.check(jm(Lb,t)),A.url=t=>A.check(tC(Db,t)),A.jwt=t=>A.check(BC(jb,t)),A.emoji=t=>A.check(nC(Rb,t)),A.guid=t=>A.check(Rl(Kl,t)),A.uuid=t=>A.check(Ym(Xs,t)),A.uuidv4=t=>A.check(qm(Xs,t)),A.uuidv6=t=>A.check(AC(Xs,t)),A.uuidv7=t=>A.check(eC(Xs,t)),A.nanoid=t=>A.check(rC(Ob,t)),A.guid=t=>A.check(Rl(Kl,t)),A.cuid=t=>A.check(sC(Pb,t)),A.cuid2=t=>A.check(oC(Mb,t)),A.ulid=t=>A.check(iC(Kb,t)),A.base64=t=>A.check(hC(Xb,t)),A.base64url=t=>A.check(fC(Wb,t)),A.xid=t=>A.check(aC(Nb,t)),A.ksuid=t=>A.check(cC($b,t)),A.ipv4=t=>A.check(lC(zb,t)),A.ipv6=t=>A.check(uC(Vb,t)),A.cidrv4=t=>A.check(dC(Gb,t)),A.cidrv6=t=>A.check(pC(Zb,t)),A.e164=t=>A.check(gC(Jb,t)),A.datetime=t=>A.check(hb(t)),A.date=t=>A.check(gb(t)),A.time=t=>A.check(wb(t)),A.duration=t=>A.check(Cb(t))});function L(A){return Jm(Hb,A)}const kA=_("ZodStringFormat",(A,e)=>{yA.init(A,e),Up.init(A,e)}),Lb=_("ZodEmail",(A,e)=>{tm.init(A,e),kA.init(A,e)}),Kl=_("ZodGUID",(A,e)=>{Am.init(A,e),kA.init(A,e)}),Xs=_("ZodUUID",(A,e)=>{em.init(A,e),kA.init(A,e)}),Db=_("ZodURL",(A,e)=>{nm.init(A,e),kA.init(A,e)}),Rb=_("ZodEmoji",(A,e)=>{rm.init(A,e),kA.init(A,e)}),Ob=_("ZodNanoID",(A,e)=>{sm.init(A,e),kA.init(A,e)}),Pb=_("ZodCUID",(A,e)=>{om.init(A,e),kA.init(A,e)}),Mb=_("ZodCUID2",(A,e)=>{im.init(A,e),kA.init(A,e)}),Kb=_("ZodULID",(A,e)=>{am.init(A,e),kA.init(A,e)}),Nb=_("ZodXID",(A,e)=>{cm.init(A,e),kA.init(A,e)}),$b=_("ZodKSUID",(A,e)=>{lm.init(A,e),kA.init(A,e)}),zb=_("ZodIPv4",(A,e)=>{fm.init(A,e),kA.init(A,e)}),Vb=_("ZodIPv6",(A,e)=>{gm.init(A,e),kA.init(A,e)}),Gb=_("ZodCIDRv4",(A,e)=>{Bm.init(A,e),kA.init(A,e)}),Zb=_("ZodCIDRv6",(A,e)=>{wm.init(A,e),kA.init(A,e)}),Xb=_("ZodBase64",(A,e)=>{mm.init(A,e),kA.init(A,e)}),Wb=_("ZodBase64URL",(A,e)=>{bm.init(A,e),kA.init(A,e)}),Jb=_("ZodE164",(A,e)=>{Qm.init(A,e),kA.init(A,e)}),jb=_("ZodJWT",(A,e)=>{Um.init(A,e),kA.init(A,e)}),Ep=_("ZodNumber",(A,e)=>{var n,r,s,o,a,i,c,u,h;pp.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(f,g,m)=>GC(A,f,g),A.gt=(f,g)=>A.check(Pl(f,g)),A.gte=(f,g)=>A.check(Gi(f,g)),A.min=(f,g)=>A.check(Gi(f,g)),A.lt=(f,g)=>A.check(Ol(f,g)),A.lte=(f,g)=>A.check(Vi(f,g)),A.max=(f,g)=>A.check(Vi(f,g)),A.int=f=>A.check(Nl(f)),A.safe=f=>A.check(Nl(f)),A.positive=f=>A.check(Pl(0,f)),A.nonnegative=f=>A.check(Gi(0,f)),A.negative=f=>A.check(Ol(0,f)),A.nonpositive=f=>A.check(Vi(0,f)),A.multipleOf=(f,g)=>A.check(Ml(f,g)),A.step=(f,g)=>A.check(Ml(f,g)),A.finite=()=>A;const t=A._zod.bag;A.minValue=(s=Math.max((n=t.minimum)!=null?n:Number.NEGATIVE_INFINITY,(r=t.exclusiveMinimum)!=null?r:Number.NEGATIVE_INFINITY))!=null?s:null,A.maxValue=(i=Math.min((o=t.maximum)!=null?o:Number.POSITIVE_INFINITY,(a=t.exclusiveMaximum)!=null?a:Number.POSITIVE_INFINITY))!=null?i:null,A.isInt=((c=t.format)!=null?c:"").includes("int")||Number.isSafeInteger((u=t.multipleOf)!=null?u:.5),A.isFinite=!0,A.format=(h=t.format)!=null?h:null});function ht(A){return QC(Ep,A)}const Yb=_("ZodNumberFormat",(A,e)=>{Em.init(A,e),Ep.init(A,e)});function Nl(A){return yC(Yb,A)}const qb=_("ZodBoolean",(A,e)=>{km.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>ZC(A,t,n)});function CA(A){return UC(qb,A)}const AQ=_("ZodAny",(A,e)=>{Fm.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>WC()});function kp(){return EC(AQ)}const eQ=_("ZodUnknown",(A,e)=>{vm.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>JC()});function $l(){return kC(eQ)}const tQ=_("ZodNever",(A,e)=>{_m.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>XC(A,t,n)});function nQ(A){return FC(tQ,A)}const rQ=_("ZodArray",(A,e)=>{xm.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>eb(A,t,n,r),A.element=e.element,A.min=(t,n)=>A.check(Go(t,n)),A.nonempty=t=>A.check(Go(1,t)),A.max=(t,n)=>A.check(wp(t,n)),A.length=(t,n)=>A.check(mp(t,n)),A.unwrap=()=>A.element});function be(A,e){return PC(rQ,A,e)}const sQ=_("ZodObject",(A,e)=>{Im.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>tb(A,t,n,r),aA(A,"shape",()=>e.shape),A.keyof=()=>xe(Object.keys(A._zod.def.shape)),A.catchall=t=>A.clone(z(F({},A._zod.def),{catchall:t})),A.passthrough=()=>A.clone(z(F({},A._zod.def),{catchall:$l()})),A.loose=()=>A.clone(z(F({},A._zod.def),{catchall:$l()})),A.strict=()=>A.clone(z(F({},A._zod.def),{catchall:nQ()})),A.strip=()=>A.clone(z(F({},A._zod.def),{catchall:void 0})),A.extend=t=>YB(A,t),A.safeExtend=t=>qB(A,t),A.merge=t=>Aw(A,t),A.pick=t=>JB(A,t),A.omit=t=>jB(A,t),A.partial=(...t)=>ew(_p,A,t[0]),A.required=(...t)=>tw(xp,A,t[0])});function wA(A,e){const t=F({type:"object",shape:A!=null?A:{}},G(e));return new sQ(t)}const Fp=_("ZodUnion",(A,e)=>{gp.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>nb(A,t,n,r),A.options=e.options});function oQ(A,e){return new Fp(F({type:"union",options:A},G(e)))}const iQ=_("ZodDiscriminatedUnion",(A,e)=>{Fp.init(A,e),Tm.init(A,e)});function vp(A,e,t){return new iQ(F({type:"union",options:e,discriminator:A},G(t)))}const aQ=_("ZodIntersection",(A,e)=>{Hm.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>rb(A,t,n,r)});function cQ(A,e){return new aQ({type:"intersection",left:A,right:e})}const lQ=_("ZodRecord",(A,e)=>{Lm.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>sb(A,t,n,r),A.keyType=e.keyType,A.valueType=e.valueType});function ut(A,e,t){return new lQ(F({type:"record",keyType:A,valueType:e},G(t)))}const xa=_("ZodEnum",(A,e)=>{Dm.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(n,r,s)=>jC(A,n,r),A.enum=e.entries,A.options=Object.values(e.entries);const t=new Set(Object.keys(e.entries));A.extract=(n,r)=>{const s={};for(const o of n)if(t.has(o))s[o]=e.entries[o];else throw new Error(`Key ${o} not found in enum`);return new xa(z(F(z(F({},e),{checks:[]}),G(r)),{entries:s}))},A.exclude=(n,r)=>{const s=F({},e.entries);for(const o of n)if(t.has(o))delete s[o];else throw new Error(`Key ${o} not found in enum`);return new xa(z(F(z(F({},e),{checks:[]}),G(r)),{entries:s}))}});function xe(A,e){const t=Array.isArray(A)?Object.fromEntries(A.map(n=>[n,n])):A;return new xa(F({type:"enum",entries:t},G(e)))}const uQ=_("ZodLiteral",(A,e)=>{Rm.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>YC(A,t,n),A.values=new Set(e.values),Object.defineProperty(A,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function ve(A,e){return new uQ(F({type:"literal",values:Array.isArray(A)?A:[A]},G(e)))}const dQ=_("ZodTransform",(A,e)=>{Om.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Ab(A,t),A._zod.parse=(t,n)=>{if(n.direction==="backward")throw new jd(A.constructor.name);t.addIssue=s=>{var o,a,i;if(typeof s=="string")t.issues.push(ps(s,t.value,e));else{const c=s;c.fatal&&(c.continue=!1),(o=c.code)!=null||(c.code="custom"),(a=c.input)!=null||(c.input=t.value),(i=c.inst)!=null||(c.inst=A),t.issues.push(ps(c))}};const r=e.transform(t.value,t);return r instanceof Promise?r.then(s=>(t.value=s,t)):(t.value=r,t)}});function pQ(A){return new dQ({type:"transform",transform:A})}const _p=_("ZodOptional",(A,e)=>{Bp.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>yp(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function zl(A){return new _p({type:"optional",innerType:A})}const hQ=_("ZodExactOptional",(A,e)=>{Pm.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>yp(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function fQ(A){return new hQ({type:"optional",innerType:A})}const gQ=_("ZodNullable",(A,e)=>{Mm.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>ob(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function Vl(A){return new gQ({type:"nullable",innerType:A})}const BQ=_("ZodDefault",(A,e)=>{Km.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>ab(A,t,n,r),A.unwrap=()=>A._zod.def.innerType,A.removeDefault=A.unwrap});function wQ(A,e){return new BQ({type:"default",innerType:A,get defaultValue(){return typeof e=="function"?e():ep(e)}})}const mQ=_("ZodPrefault",(A,e)=>{Nm.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>cb(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function CQ(A,e){return new mQ({type:"prefault",innerType:A,get defaultValue(){return typeof e=="function"?e():ep(e)}})}const xp=_("ZodNonOptional",(A,e)=>{$m.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>ib(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function bQ(A,e){return new xp(F({type:"nonoptional",innerType:A},G(e)))}const QQ=_("ZodCatch",(A,e)=>{zm.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>lb(A,t,n,r),A.unwrap=()=>A._zod.def.innerType,A.removeCatch=A.unwrap});function yQ(A,e){return new QQ({type:"catch",innerType:A,catchValue:typeof e=="function"?e:()=>e})}const UQ=_("ZodPipe",(A,e)=>{Vm.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>ub(A,t,n,r),A.in=e.in,A.out=e.out});function Gl(A,e){return new UQ({type:"pipe",in:A,out:e})}const EQ=_("ZodReadonly",(A,e)=>{Gm.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>db(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function kQ(A){return new EQ({type:"readonly",innerType:A})}const FQ=_("ZodCustom",(A,e)=>{Zm.init(A,e),UA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>qC(A,t)});function vQ(A,e={}){return MC(FQ,A,e)}function _Q(A){return KC(A)}const xQ=wA({name:L().min(1).max(100).optional(),command:L().min(1).max(500),args:be(L()).optional(),failOnError:CA().default(!0).optional(),timeout:ht().int().min(1e3).max(3e5).default(3e4).optional(),workingDirectory:L().optional(),env:ut(L(),L()).optional(),runOnBackground:CA().optional(),agentTags:be(L()).optional()});wA({name:L(),command:L(),success:CA(),exitCode:ht().optional(),stdout:L().optional(),stderr:L().optional(),error:L().optional(),duration:ht(),failOnError:CA()});const cn=wA({path:L(),extraCommands:be(xQ).optional(),id:L().uuid().optional(),rotationKey:L().optional(),usageStatus:xe(["free","in_use"]).optional(),agentTags:be(L()).optional()}),SQ=vp("operation",[cn.extend({operation:ve("create"),content:L().optional(),contentPath:L().optional(),encoding:xe(["utf-8","base64"]).optional()}),cn.extend({operation:ve("merge"),data:ut(L(),kp()),mergeStrategy:xe(["deep","shallow"]).optional(),arrayMergeStrategy:xe(["concat","replace"]).optional()}),cn.extend({operation:ve("modify"),content:L().optional(),contentPath:L().optional(),createIfMissing:CA().optional()}),cn.extend({operation:ve("delete"),ignoreIfMissing:CA().optional()}),cn.extend({operation:ve("createDirectory"),contentPath:L().optional(),mode:ht().optional(),ignoreIfExists:CA().optional()}),cn.extend({operation:ve("download"),url:L().url(),headers:ut(L(),L()).optional(),timeout:ht().min(1e3).max(3e5).optional()}),cn.extend({operation:ve("gitClone"),gitUrl:L(),gitSecretKey:L().optional(),sourceBranch:L().optional(),targetBranch:L().optional(),originalBranch:L().optional(),defaultBranch:L().optional()})]);var EA=(A=>(A.DRAFT="draft",A.PENDING="pending",A.ASSIGNED="assigned",A.IN_PROGRESS="in_progress",A.WAITING_FOR_INPUT="waiting_for_input",A.WAITING_FOR_PLAN_APPROVAL="waiting_for_plan_approval",A.PLAN_APPROVED="plan_approved",A.PLAN_REJECTED="plan_rejected",A.COMPLETED="completed",A.FAILED="failed",A.CANCELLED="cancelled",A.RESULT_REJECTED="result_rejected",A))(EA||{});const IQ=wA({type:xe(["json","file","regex"]).describe("Extraction method"),source:L().describe("Source to extract from (file path or stdout/stderr)"),schema:wA({}).passthrough().optional().describe("JSON schema for validation"),pattern:L().optional().describe("Regex pattern for extraction")}),TQ=wA({type:xe(["issue_update","bulk_issue_update","notification","webhook"]).describe("Hook type"),config:kp().describe("Hook-specific configuration")});wA({command:L().optional().describe("Legacy — unused in SDK mode"),args:be(L()).optional().describe("Legacy — unused in SDK mode"),env:ut(L(),L()).optional().describe("Environment variables"),workingDirectory:L().optional().describe("Working directory for command execution"),fileOperations:be(SQ).optional().describe("File operations to perform during setup"),gitUrl:L().optional().describe("Git repository URL (populated from project)"),gitPrivateKey:L().optional().describe("Git SSH private key (populated from project)"),gitCommitMessage:L().optional().describe("Commit message for git operations"),resultExtraction:IQ.optional().describe("Schema for extracting result data"),postExecutionHooks:be(TQ).optional().describe("Hooks to run after task completion"),executionMode:xe(["claudeAgentSdk","openaiAgentSdk","opencodeSdk","cursorSdk","codexSdk"]).optional().default("claudeAgentSdk").describe("Execution mode (default: claudeAgentSdk)"),executionPlan:vp("executionMode",[wA({executionMode:ve("claudeAgentSdk"),promptText:L(),sdkOptions:wA({model:L(),permissionMode:xe(["plan","acceptEdits","bypassPermissions","ask"]),settingSources:be(L()),allowDangerouslySkipPermissions:CA(),persistSession:CA(),streamSdkEvents:CA().optional(),allowedTools:be(L()).optional(),settings:wA({enabledPlugins:ut(L(),CA())}),env:ut(L(),L()).optional()}),resume:wA({sessionId:L().optional(),continue:CA()}).optional()}),wA({executionMode:ve("opencodeSdk"),promptText:L(),sdkOptions:wA({provider:L(),model:L(),allowedTools:be(L()).optional(),env:ut(L(),L()).optional()}),resume:wA({sessionId:L().optional(),continue:CA()}).optional()}),wA({executionMode:ve("openaiAgentSdk"),promptText:L(),sdkOptions:wA({model:L(),env:ut(L(),L()).optional()}),resume:wA({sessionId:L().optional(),continue:CA()}).optional()}),wA({executionMode:ve("codexSdk"),promptText:L(),sdkOptions:wA({model:L().optional(),sandboxMode:xe(["read-only","workspace-write","danger-full-access"]).optional(),approvalPolicy:xe(["never","on-request","on-failure","untrusted"]).optional(),env:ut(L(),L()).optional()}),resume:wA({sessionId:L().optional(),continue:CA()}).optional()}),wA({executionMode:ve("cursorSdk"),promptText:L(),sdkOptions:wA({model:L(),env:ut(L(),L()).optional()}),resume:wA({sessionId:L().optional(),continue:CA()}).optional()})]).optional().describe("Backend-built prompt + resolved SDK options for this phase"),planEnabled:CA().optional().default(!1).describe("Enable planning phase (computed at runtime for agent)"),planContent:L().optional().describe("Final approved plan content"),planApproved:CA().optional().describe("Plan approval status"),planApprovedAt:L().optional().describe("ISO timestamp of approval"),planRejected:CA().optional().describe("Plan rejection flag"),planRejectionFeedback:L().optional().describe("User rejection feedback"),rejectedPlanContent:L().optional().describe("Previously rejected plan content"),planCompletedAt:L().optional().describe("ISO timestamp when plan was generated"),planRejectedAt:L().optional().describe("ISO timestamp when plan was rejected"),resultRejectionFeedback:L().optional().describe("User feedback when rejecting the result (most recent)"),resultRejectedAt:L().optional().describe("ISO timestamp when result was rejected (most recent)"),resultRejectionHistory:be(wA({feedback:L(),rejectedAt:L()})).optional().describe("All rejection messages in chronological order"),notificationChannelPlanMessageId:ht().optional(),notificationChannelPlanMessageSentAt:L().optional(),notificationChannelCompletedMessageId:ht().optional(),notificationChannelFailedMessageId:ht().optional(),streamSdkEvents:CA().optional().describe("Stream SDK messages (thinking, tool calls, etc.) as sdk_event chunks"),originalTaskSummary:L().optional().describe("Summary from the original task run (passed to retry for historical context)"),planWasApproved:CA().optional().describe("True when planApproved was cleared for rePlan=true retry — indicates the plan had been approved before"),planComments:be(wA({id:L(),selectedText:L(),startOffset:ht(),endOffset:ht(),commentText:L(),createdAt:L()})).optional().describe("Inline review comments attached to the plan"),hasAiConfigSecrets:CA().optional().describe("True when AI Config has secret-backed env vars; agent must fetch resolved values via /tasks/:id/resolve-secrets"),hasCredentials:CA().optional().describe("True when the task has credentials attached; agent must fetch resolved values via /tasks/:id/resolve-credentials"),mcpServersMode:xe(["all","ignoreExistingMcpServers"]).optional().describe("MCP server strategy for this run; 'ignoreExistingMcpServers' overrides the existing .mcp.json with only the template's configured servers plus the agent-platform server"),enableBrowserTools:CA().optional().describe("When true, the MCP server registers browser_interact and browser_get_context (browser_automate tasks only)")});EA.DRAFT+"",EA.CANCELLED,EA.PENDING+"",EA.CANCELLED,EA.ASSIGNED+"",EA.CANCELLED,EA.IN_PROGRESS+"",EA.CANCELLED,EA.FAILED,EA.WAITING_FOR_INPUT+"",EA.CANCELLED,EA.WAITING_FOR_PLAN_APPROVAL+"",EA.CANCELLED,EA.PLAN_APPROVED+"",EA.CANCELLED,EA.PLAN_REJECTED+"",EA.CANCELLED,EA.COMPLETED+"",EA.RESULT_REJECTED+"",EA.CANCELLED,EA.FAILED+"",EA.CANCELLED+"";function Zl(A){let e=(A||"").trim().toLowerCase();const t=e.indexOf("@");return t>=0&&(e=e.slice(t+1)),e=e.split("/")[0].split(":")[0],e.startsWith("www.")&&(e=e.slice(4)),e}function HQ(A,e){const t=Zl(A),n=(e||"").trim().toLowerCase();if(!t||!n)return!1;if(n.startsWith("*.")){const r=n.slice(2);return t===r||t.endsWith("."+r)}return t===Zl(n)}function Xl(A,e){var s;let t;try{const o=new URL(A);if(o.protocol!=="http:"&&o.protocol!=="https:")return null;t=o.hostname}catch(o){return null}let n=null,r=-1;for(const o of e)for(const a of(s=o.domains)!=null?s:[])HQ(t,a)&&a.length>r&&(r=a.length,n=o.id);return n}class Sp extends Error{}function Fc(A){return I(this,null,function*(){if(!A.ok){const e=yield A.json().catch(()=>({message:`HTTP ${A.status}`})),t=e.message||e.error||`HTTP ${A.status}`;throw A.status===401?new Sp(t):new Error(t)}return A.json()})}const LQ=3e4;let Ip=LQ;function DQ(A){Number.isFinite(A)&&A>0&&(Ip=A)}function hs(n){return I(this,arguments,function*(A,e={},t=Ip){const r=new AbortController,s=setTimeout(()=>r.abort(),t);try{return yield fetch(A,z(F({},e),{credentials:"omit",signal:r.signal}))}catch(o){throw o instanceof DOMException&&o.name==="AbortError"?new Error(`Request timed out after ${Math.round(t/1e3)}s. Please check your connection and try again.`):o}finally{clearTimeout(s)}})}function JA(A,e,t,n){return I(this,null,function*(){const s=`${A.backendUrl.replace(/\/+$/,"")}/api${t}`,o=yield hs(s,{method:e,headers:{"Content-Type":"application/json",Authorization:`Bearer ${A.token}`},body:n!==void 0?JSON.stringify(n):void 0});return Fc(o)})}function RQ(A,e,t){return I(this,null,function*(){const n=A.backendUrl.replace(/\/+$/,""),r=new FormData;r.append("file",e,t);const s=yield hs(`${n}/api/files/upload`,{method:"POST",headers:{Authorization:`Bearer ${A.token}`},body:r});return Fc(s)})}function OQ(A,e){return I(this,null,function*(){return JA(A,"GET",`/projects/by-key/${encodeURIComponent(e)}`)})}const PQ=["project","note","ctx"];function MQ(A){var t,n;const e=PQ.filter(r=>A[r]===void 0||A[r]===null);if(e.length>0)throw new Error(`createTask: missing required field(s): ${e.join(", ")}`);if(!((t=A.project)!=null&&t.id)&&!((n=A.project)!=null&&n.key))throw new Error("createTask: project must have an id or key")}function Sa(A,e){return I(this,null,function*(){var f,g,m,b,k,E;MQ(e);const{project:t,note:n,ctx:r,advancedOpts:s,titleOverride:o,titleInstruction:a,allowSubmit:i,extraFileIds:c,type:u=Cc}=e,h=!!(s!=null&&s.instructionTemplateId);return JA(A,"POST","/tasks",z(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(z(F({type:u,title:h?void 0:o||n.slice(0,120)||r.pageTitle||"Browser capture",titleInstruction:h?void 0:a!=null?a:n},t.id?{projectId:t.id}:{projectKey:t.key}),{autoAssign:!0}),s!=null&&s.claudeTemplateId?{claudeTemplateId:s.claudeTemplateId}:{}),(s==null?void 0:s.quickMode)!==void 0?{quickMode:s.quickMode}:{}),(s==null?void 0:s.modelOverride)!=null?{modelOverride:s.modelOverride}:{}),(s==null?void 0:s.claudeProfileId)!=null?{claudeProfileId:s.claudeProfileId}:{}),(s==null?void 0:s.effort)!=null?{effort:s.effort}:{}),(s==null?void 0:s.executionMode)!=null?{executionMode:s.executionMode}:{}),(f=s==null?void 0:s.selectedPluginIds)!=null&&f.length?{selectedPluginIds:s.selectedPluginIds}:{}),(g=s==null?void 0:s.selectedSkillIds)!=null&&g.length?{selectedSkillIds:s.selectedSkillIds}:{}),(m=s==null?void 0:s.selectedPluginSkillIds)!=null&&m.length?{selectedPluginSkillIds:s.selectedPluginSkillIds}:{}),(b=s==null?void 0:s.selectedMcpServerIds)!=null&&b.length?{selectedMcpServerIds:s.selectedMcpServerIds}:{}),(k=s==null?void 0:s.selectedSlashCommandIds)!=null&&k.length?{selectedSlashCommandIds:s.selectedSlashCommandIds}:{}),(E=s==null?void 0:s.selectedRemoteContextProviderIds)!=null&&E.length?{selectedRemoteContextProviderIds:s.selectedRemoteContextProviderIds}:{}),s!=null&&s.instructionTemplateId?{instructionTemplateId:s.instructionTemplateId}:{}),s!=null&&s.templateParamValues?{templateParamValues:s.templateParamValues}:{}),s!=null&&s.defaultParamValues?{defaultParamValues:s.defaultParamValues}:{}),{metadata:F(F({type:u,note:n,source:"web-sdk",pageUrl:r.pageUrl,pageTitle:r.pageTitle,elementText:r.elementText,cssSelector:r.cssSelector,elementOuterHtml:r.elementOuterHtml,ancestry:r.ancestry,elementRole:r.elementRole,elementAriaLabel:r.elementAriaLabel,enclosingSection:r.enclosingSection,description:r.description,canonicalUrl:r.canonicalUrl,lang:r.lang,ogTitle:r.ogTitle,ogDescription:r.ogDescription,ogType:r.ogType,ogSiteName:r.ogSiteName,viewportWidth:r.viewportWidth,viewportHeight:r.viewportHeight,scrollX:r.scrollX,scrollY:r.scrollY,selectionText:r.selectionText,capturedAt:r.capturedAt,interactionSteps:r.interactionSteps},i!==void 0?{allowSubmit:i}:{}),c!=null&&c.length?{extraFileIds:c}:{})}))})}function Wl(A,e){return I(this,null,function*(){return Sa(A,z(F({},e),{type:Jd}))})}function Jl(A,e,t,n,r){return I(this,null,function*(){var s;return JA(A,"POST","/planning-sessions",F(F(F(F(F(z(F({},e.id?{projectId:e.id}:{projectKey:e.key}),{instruction:t,quickMode:(s=n==null?void 0:n.quickMode)!=null?s:!1}),n!=null&&n.claudeTemplateId?{claudeTemplateId:n.claudeTemplateId}:{}),n!=null&&n.instructionTemplateId?{instructionTemplateId:n.instructionTemplateId}:{}),n!=null&&n.templateParamValues?{templateParamValues:n.templateParamValues}:{}),n!=null&&n.defaultParamValues?{defaultParamValues:n.defaultParamValues}:{}),r!=null&&r.length?{fileIds:r}:{}))})}function KQ(A,e){return I(this,null,function*(){const t=e?`?projectId=${encodeURIComponent(e)}`:"";return JA(A,"GET",`/claude-templates${t}`)})}function NQ(A,e,t,n,r){return I(this,null,function*(){const s=new URLSearchParams;e&&s.set("projectId",e),t&&s.set("entityType",t),n&&s.set("taskType",n),r&&s.set("scenario",r);const o=s.toString()?`?${s.toString()}`:"";return JA(A,"GET",`/instruction-composer/context${o}`)})}function Tp(A,e){return I(this,null,function*(){return JA(A,"GET",`/tasks/${e}`)})}function $Q(A,e){return I(this,null,function*(){return JA(A,"GET",`/planning-sessions/${e}`)})}function jl(A){return I(this,null,function*(){return JA(A,"GET","/projects")})}function zQ(A){return I(this,null,function*(){return(yield JA(A,"GET","/tenants/current")).membership})}function Yl(A,e){if(!A||A.includes("tenant:*")||A.includes(e))return!0;const t=e.split(":")[0];return A.includes(`${t}:*`)}function Ia(A,e,t){return I(this,null,function*(){const r=`${A.backendUrl.replace(/\/+$/,"")}/api/auth/tokens/exchange-code`,s=yield hs(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,origin:t})});return Fc(s)})}function VQ(A,e){return I(this,null,function*(){return JA(A,"GET",`/tasks/${e}/browser-commands/pending`)})}function GQ(A,e,t,n,r){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/browser-commands/${t}/result`,{status:n,message:r})})}function ZQ(A,e){return I(this,null,function*(){return JA(A,"GET",`/tasks/${e}/chunks`)})}function XQ(A,e,t){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/instructions`,{content:t})})}function WQ(A,e){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/cancel`)})}function JQ(A,e){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/approve-result`)})}function jQ(A,e,t){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/reject-result`,{feedback:t})})}function Xo(A,e){return I(this,null,function*(){return JA(A,"GET",`/tasks/${e}/interactions?filter=unanswered`)})}function Hp(A,e,t,n){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/interactions/${t}/answer`,{answer:n})})}function YQ(A,e,t){const n=!!(e.backendUrl&&e.token),r=document.createElement("div");r.className="ap-sdk-advanced",r.innerHTML=`
|
|
1626
1626
|
<details class="ap-sdk-advanced__details">
|
|
1627
1627
|
<summary class="ap-sdk-advanced__summary">Advanced options</summary>
|
|
1628
1628
|
<div class="ap-sdk-advanced__body">
|
|
@@ -1641,7 +1641,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
1641
1641
|
</div>
|
|
1642
1642
|
</div>
|
|
1643
1643
|
</details>
|
|
1644
|
-
`,A.appendChild(r);const s=r.querySelector("[data-ap-adv-template-field]"),o=r.querySelector("[data-ap-template]"),a=r.querySelector("[data-ap-quickmode]");let i=[];if(n){const c={backendUrl:e.backendUrl,token:e.token};
|
|
1644
|
+
`,A.appendChild(r);const s=r.querySelector("[data-ap-adv-template-field]"),o=r.querySelector("[data-ap-template]"),a=r.querySelector("[data-ap-quickmode]");let i=[];if(n){const c={backendUrl:e.backendUrl,token:e.token};KQ(c,t!=null?t:void 0).then(u=>{var f,g;if(i=u,u.length===0){s.style.display="none";return}const h=(f=u.find(m=>m.isDefault&&m.scope==="project"))!=null?f:u.find(m=>m.isDefault&&m.scope==="global");o.innerHTML='<option value="">None (use default)</option>'+u.map(m=>`<option value="${qQ(m.id)}">${Ay(m.name)}${m.isDefault?" (Default)":""}</option>`).join(""),o.value=(g=h==null?void 0:h.id)!=null?g:""}).catch(()=>{s.style.display="none"})}else{o.innerHTML='<option value="">None</option>',o.disabled=!0;const c=document.createElement("span");c.className="ap-sdk-advanced__hint",c.textContent="Connect credentials to enable template selection",s.appendChild(c)}return{getOptions(){var h,f,g,m,b,k,E,v;const c=o.value||null,u=c?(f=(h=i.find(y=>y.id===c))==null?void 0:h.templateData)!=null?f:{}:{};return F(F(F(F(F(F(F(F(F(F({claudeTemplateId:c,quickMode:a.checked},u.modelOverride!=null?{modelOverride:u.modelOverride}:{}),u.claudeProfileId!=null?{claudeProfileId:u.claudeProfileId}:{}),u.effort!=null?{effort:u.effort}:{}),u.executionMode!=null?{executionMode:u.executionMode}:{}),(g=u.selectedPluginIds)!=null&&g.length?{selectedPluginIds:u.selectedPluginIds}:{}),(m=u.selectedSkillIds)!=null&&m.length?{selectedSkillIds:u.selectedSkillIds}:{}),(b=u.selectedPluginSkillIds)!=null&&b.length?{selectedPluginSkillIds:u.selectedPluginSkillIds}:{}),(k=u.selectedMcpServerIds)!=null&&k.length?{selectedMcpServerIds:u.selectedMcpServerIds}:{}),(E=u.selectedSlashCommandIds)!=null&&E.length?{selectedSlashCommandIds:u.selectedSlashCommandIds}:{}),(v=u.selectedRemoteContextProviderIds)!=null&&v.length?{selectedRemoteContextProviderIds:u.selectedRemoteContextProviderIds}:{})}}}function qQ(A){return A.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function Ay(A){return A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function ey(A,e){return A.type==="boolean"?!1:A.type==="multiselect"?!Array.isArray(e)||e.length===0:e==null?!0:A.type==="number"?e===""||Number.isNaN(Number(e)):String(e).trim()===""}function ty(A,e){return A.some(t=>{var n;return t.required&&ey(t,(n=e[t.key])!=null?n:t.defaultValue)})}function ql(A,e,t,n,r){var v;if((v=A.parentElement)==null||v.querySelectorAll(".ap-sdk-instruction-composer--before").forEach(y=>y.remove()),A.style.display="",!!!(e.backendUrl&&e.token))return{getSelection:()=>({}),isValid:()=>!0};const o={backendUrl:e.backendUrl,token:e.token},a=document.createElement("div");a.className="ap-sdk-instruction-composer ap-sdk-instruction-composer--before",a.innerHTML=`
|
|
1645
1645
|
<div class="ap-sdk-panel__field" data-ap-instruction-template-field>
|
|
1646
1646
|
<label class="ap-sdk-panel__label" for="ap-sdk-instruction-template">Instruction Template</label>
|
|
1647
1647
|
<select id="ap-sdk-instruction-template" class="ap-sdk-panel__input" data-ap-instruction-template>
|
|
@@ -1650,23 +1650,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
1650
1650
|
</div>
|
|
1651
1651
|
<div class="ap-sdk-panel__field" data-ap-template-params></div>
|
|
1652
1652
|
<div class="ap-sdk-panel__field" data-ap-default-params></div>
|
|
1653
|
-
|
|
1654
|
-
<div class="ap-sdk-panel__field ap-sdk-instruction-preview" data-ap-instruction-preview style="display:none"></div>
|
|
1655
|
-
`;const a=A.parentElement;a.insertBefore(s,A),a.insertBefore(o,A.nextSibling);const i=s.querySelector("[data-ap-instruction-template-field]"),c=s.querySelector("[data-ap-instruction-template]"),u=s.querySelector("[data-ap-template-params]"),h=s.querySelector("[data-ap-default-params]"),f=o.querySelector("[data-ap-instruction-preview]");let g=[],m=[],b=null;const U=y=>y==="GLOBAL"?"Global":y==="PROJECT"?"This project":"My templates",E=()=>g.find(y=>y.id===c.value),v=()=>{b&&clearTimeout(b),b=setTimeout(()=>{const y=c.value||void 0;OQ(r,{projectId:t!=null?t:void 0,instructionTemplateId:y,templateParamValues:y?Ws(u):void 0,defaultParamValues:m.length>0?Ws(h):void 0,rawText:y?void 0:A.value}).then(_=>{var R;f.style.display="block",f.innerHTML=`
|
|
1656
|
-
<div class="ap-sdk-panel__label">Preview</div>
|
|
1657
|
-
<div class="ap-sdk-instruction-preview__text">${ut(_.renderedText)}</div>
|
|
1658
|
-
${(R=_.warnings)!=null&&R.length?`<div class="ap-sdk-instruction-preview__warnings">${_.warnings.map(H=>ut(H)).join("<br/>")}</div>`:""}
|
|
1659
|
-
`}).catch(()=>{f.style.display="none",f.innerHTML=""})},jQ)},F=()=>{const y=E();u.innerHTML="",y?(Wl(u,y.parameterSchema,v),A.style.display="none"):A.style.display="",v()};return c.addEventListener("change",F),A.addEventListener("input",v),RQ(r,t!=null?t:void 0).then(y=>{g=y.templates,m=y.defaultFields,c.innerHTML='<option value="">No template (free text)</option>'+g.map(_=>`<option value="${ze(_.id)}">${ut(_.name)} (${ut(U(_.scope))})</option>`).join(""),m.length>0?Wl(h,m,v):h.style.display="none"}).catch(()=>{i.style.display="none",h.style.display="none"}),{getSelection(){const y=c.value||void 0;return{instructionTemplateId:y,templateParamValues:y?Ws(u):void 0,defaultParamValues:m.length>0?Ws(h):void 0}}}}function Wl(A,e,t){A.innerHTML=e.map(n=>{var a,i;const r=`<label class="ap-sdk-panel__label">${ut(n.label)}${n.required?" *":""}</label>`,s=n.helpText?`<span class="ap-sdk-advanced__hint">${ut(n.helpText)}</span>`:"";let o;switch(n.type){case"textarea":o=`<textarea class="ap-sdk-panel__textarea" rows="2" data-ap-field-key="${ze(n.key)}" data-ap-field-type="textarea">${ut(typeof n.defaultValue=="string"?n.defaultValue:"")}</textarea>`;break;case"number":o=`<input type="number" class="ap-sdk-panel__input" data-ap-field-key="${ze(n.key)}" data-ap-field-type="number" value="${ze(n.defaultValue!=null?String(n.defaultValue):"")}" />`;break;case"boolean":o=`<label class="ap-sdk-advanced__checkbox-label"><input type="checkbox" data-ap-field-key="${ze(n.key)}" data-ap-field-type="boolean" ${n.defaultValue?"checked":""} /> ${ut(n.label)}</label>`;break;case"select":o=`<select class="ap-sdk-panel__input" data-ap-field-key="${ze(n.key)}" data-ap-field-type="select">${((a=n.options)!=null?a:[]).map(c=>`<option value="${ze(c.value)}" ${n.defaultValue===c.value?"selected":""}>${ut(c.label)}</option>`).join("")}</select>`;break;case"multiselect":{const c=Array.isArray(n.defaultValue)?n.defaultValue:[];o=`<select multiple class="ap-sdk-panel__input" data-ap-field-key="${ze(n.key)}" data-ap-field-type="multiselect">${((i=n.options)!=null?i:[]).map(u=>`<option value="${ze(u.value)}" ${c.includes(u.value)?"selected":""}>${ut(u.label)}</option>`).join("")}</select>`;break}case"text":default:o=`<input type="text" class="ap-sdk-panel__input" data-ap-field-key="${ze(n.key)}" data-ap-field-type="text" value="${ze(typeof n.defaultValue=="string"?n.defaultValue:"")}" />`;break}return n.type==="boolean"?`<div class="ap-sdk-panel__field">${o}${s}</div>`:`<div class="ap-sdk-panel__field">${r}${o}${s}</div>`}).join(""),A.querySelectorAll("[data-ap-field-key]").forEach(n=>{n.addEventListener("change",t),(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&n.addEventListener("input",t)})}function Ws(A){const e={};return A.querySelectorAll("[data-ap-field-key]").forEach(t=>{const n=t.getAttribute("data-ap-field-key"),r=t.getAttribute("data-ap-field-type");r==="boolean"?e[n]=t.checked:r==="multiselect"?e[n]=Array.from(t.selectedOptions).map(s=>s.value):r==="number"?e[n]=Number(t.value):e[n]=t.value}),e}function ze(A){return A.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function ut(A){return A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}const Uc="shared",_p="ap-sdk-panel-size:",Jl=280,jl=200;function qQ(A){try{const e=sessionStorage.getItem(_p+A);if(!e)return null;const t=JSON.parse(e);return typeof(t==null?void 0:t.width)=="number"&&typeof(t==null?void 0:t.height)=="number"?t:null}catch(e){return null}}function Ay(A,e){try{sessionStorage.setItem(_p+A,JSON.stringify(e))}catch(t){}}function Js(A,e,t){return Math.min(Math.max(A,e),t)}function Yl(){return window.innerWidth-32}function ql(){return window.innerHeight-64}function Ec(A,e){const t=qQ(e);t&&(A.style.width=`${Js(t.width,Jl,Yl())}px`,A.style.height=`${Js(t.height,jl,ql())}px`);const n=document.createElement("div");n.className="ap-sdk-resize-handle",n.setAttribute("data-ap-sdk","1"),A.appendChild(n);let r=!1,s=0,o=0,a=0,i=0,c=0,u=0;const h=m=>{r&&(c=Js(a+(m.clientX-s),Jl,Yl()),u=Js(i+(m.clientY-o),jl,ql()),A.style.width=`${c}px`,A.style.height=`${u}px`)},f=()=>{r&&(r=!1,document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f),Ay(e,{width:c,height:u}))},g=m=>{const b=m.target;if(!(b===n||n.contains(b)))return;m.preventDefault(),m.stopPropagation(),r=!0,s=m.clientX,o=m.clientY;const U=A.getBoundingClientRect();a=U.width,i=U.height,c=a,u=i,document.addEventListener("pointermove",h),document.addEventListener("pointerup",f)};return window.addEventListener("pointerdown",g,{capture:!0}),()=>{window.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f)}}const ys="shared",xp="ap-sdk-panel-pos:";function ey(A){try{const e=sessionStorage.getItem(xp+A);if(!e)return null;const t=JSON.parse(e);return typeof(t==null?void 0:t.left)=="number"&&typeof(t==null?void 0:t.top)=="number"?t:null}catch(e){return null}}function ty(A,e){try{sessionStorage.setItem(xp+A,JSON.stringify(e))}catch(t){}}function Au(A,e,t){return Math.min(Math.max(A,e),t)}function Us(A,e){const t=(m,b)=>{const U=Math.max(0,window.innerWidth-A.offsetWidth),E=Math.max(0,window.innerHeight-A.offsetHeight);A.style.left=`${Au(m,0,U)}px`,A.style.top=`${Au(b,0,E)}px`,A.style.right="auto",A.style.transform="none"},n=ey(e);n&&t(n.left,n.top);let r=!1,s=0,o=0,a=0,i=0,c=0,u=0;const h=m=>{r&&(c=a+(m.clientX-s),u=i+(m.clientY-o),t(c,u))},f=()=>{r&&(r=!1,document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f),ty(e,{left:c,top:u}))},g=m=>{const b=m.target;if(!(b===A||A.contains(b))||!b.closest(".ap-sdk-panel__header")||b.closest("button, a, input, select, textarea"))return;m.preventDefault(),r=!0,s=m.clientX,o=m.clientY;const U=A.getBoundingClientRect();a=U.left,i=U.top,c=a,u=i,document.addEventListener("pointermove",h),document.addEventListener("pointerup",f)};return window.addEventListener("pointerdown",g,{capture:!0}),()=>{window.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f)}}const Zo="ap-sdk-panel-draft";function Sp(){var A,e;try{const t=localStorage.getItem(Zo);if(!t)return null;const n=JSON.parse(t);return!Array.isArray(n.completedPicks)||!n.currentCtx||typeof n.currentCtx!="object"?null:{captureType:(A=n.captureType)!=null?A:"task",note:(e=n.note)!=null?e:"",completedPicks:n.completedPicks,allowSubmit:!!n.allowSubmit,currentCtx:n.currentCtx}}catch(t){return null}}function ny(A){try{if(!A.note&&A.completedPicks.length===0&&!A.allowSubmit){localStorage.removeItem(Zo);return}localStorage.setItem(Zo,JSON.stringify(A))}catch(e){}}function kc(){try{localStorage.removeItem(Zo)}catch(A){}}/*!
|
|
1653
|
+
`,A.parentElement.insertBefore(a,A);const c=a.querySelector("[data-ap-instruction-template-field]"),u=a.querySelector("[data-ap-instruction-template]"),h=a.querySelector("[data-ap-template-params]"),f=a.querySelector("[data-ap-default-params]");let g=[],m=[];const b=y=>y==="GLOBAL"?"Global":y==="PROJECT"?"This project":"My templates",k=()=>g.find(y=>y.id===u.value),E=()=>{const y=k();h.innerHTML="",y?(Au(h,y.parameterSchema),A.style.display="none"):A.style.display="",r==null||r()};return u.addEventListener("change",E),h.addEventListener("input",()=>r==null?void 0:r()),h.addEventListener("change",()=>r==null?void 0:r()),NQ(o,t!=null?t:void 0,n==null?void 0:n.entityType,n==null?void 0:n.taskType,n==null?void 0:n.scenario).then(y=>{g=y.templates,m=y.defaultFields,u.innerHTML='<option value="">No template (free text)</option>'+g.map(U=>`<option value="${Ge(U.id)}">${Nt(U.name)} (${Nt(b(U.scope))})</option>`).join(""),m.length>0?Au(f,m):f.style.display="none"}).catch(()=>{c.style.display="none",f.style.display="none"}),{getSelection(){const y=u.value||void 0;return{instructionTemplateId:y,templateParamValues:y?Zi(h):void 0,defaultParamValues:m.length>0?Zi(f):void 0}},isValid(){const y=k();return y?!ty(y.parameterSchema,Zi(h)):!0}}}function Au(A,e){A.innerHTML=e.map(t=>{var o,a;const n=`<label class="ap-sdk-panel__label">${Nt(t.label)}${t.required?" *":""}</label>`,r=t.helpText?`<span class="ap-sdk-advanced__hint">${Nt(t.helpText)}</span>`:"";let s;switch(t.type){case"textarea":s=`<textarea class="ap-sdk-panel__textarea" rows="2" data-ap-field-key="${Ge(t.key)}" data-ap-field-type="textarea">${Nt(typeof t.defaultValue=="string"?t.defaultValue:"")}</textarea>`;break;case"number":s=`<input type="number" class="ap-sdk-panel__input" data-ap-field-key="${Ge(t.key)}" data-ap-field-type="number" value="${Ge(t.defaultValue!=null?String(t.defaultValue):"")}" />`;break;case"boolean":s=`<label class="ap-sdk-advanced__checkbox-label"><input type="checkbox" data-ap-field-key="${Ge(t.key)}" data-ap-field-type="boolean" ${t.defaultValue?"checked":""} /> ${Nt(t.label)}</label>`;break;case"select":s=`<select class="ap-sdk-panel__input" data-ap-field-key="${Ge(t.key)}" data-ap-field-type="select">${((o=t.options)!=null?o:[]).map(i=>`<option value="${Ge(i.value)}" ${t.defaultValue===i.value?"selected":""}>${Nt(i.label)}</option>`).join("")}</select>`;break;case"multiselect":{const i=Array.isArray(t.defaultValue)?t.defaultValue:[];s=`<select multiple class="ap-sdk-panel__input" data-ap-field-key="${Ge(t.key)}" data-ap-field-type="multiselect">${((a=t.options)!=null?a:[]).map(c=>`<option value="${Ge(c.value)}" ${i.includes(c.value)?"selected":""}>${Nt(c.label)}</option>`).join("")}</select>`;break}case"text":default:s=`<input type="text" class="ap-sdk-panel__input" data-ap-field-key="${Ge(t.key)}" data-ap-field-type="text" value="${Ge(typeof t.defaultValue=="string"?t.defaultValue:"")}" />`;break}return t.type==="boolean"?`<div class="ap-sdk-panel__field">${s}${r}</div>`:`<div class="ap-sdk-panel__field">${n}${s}${r}</div>`}).join("")}function Zi(A){const e={};return A.querySelectorAll("[data-ap-field-key]").forEach(t=>{const n=t.getAttribute("data-ap-field-key"),r=t.getAttribute("data-ap-field-type");r==="boolean"?e[n]=t.checked:r==="multiselect"?e[n]=Array.from(t.selectedOptions).map(s=>s.value):r==="number"?e[n]=Number(t.value):e[n]=t.value}),e}function Ge(A){return A.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function Nt(A){return A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}const vc="shared",Lp="ap-sdk-panel-size:",eu=280,tu=200;function ny(A){try{const e=sessionStorage.getItem(Lp+A);if(!e)return null;const t=JSON.parse(e);return typeof(t==null?void 0:t.width)=="number"&&typeof(t==null?void 0:t.height)=="number"?t:null}catch(e){return null}}function ry(A,e){try{sessionStorage.setItem(Lp+A,JSON.stringify(e))}catch(t){}}function Ws(A,e,t){return Math.min(Math.max(A,e),t)}function nu(){return window.innerWidth-32}function ru(){return window.innerHeight-64}function _c(A,e){const t=ny(e);t&&(A.style.width=`${Ws(t.width,eu,nu())}px`,A.style.height=`${Ws(t.height,tu,ru())}px`);const n=document.createElement("div");n.className="ap-sdk-resize-handle",n.setAttribute("data-ap-sdk","1"),A.appendChild(n);let r=!1,s=0,o=0,a=0,i=0,c=0,u=0;const h=m=>{r&&(c=Ws(a+(m.clientX-s),eu,nu()),u=Ws(i+(m.clientY-o),tu,ru()),A.style.width=`${c}px`,A.style.height=`${u}px`)},f=()=>{r&&(r=!1,document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f),ry(e,{width:c,height:u}))},g=m=>{const b=m.target;if(!(b===n||n.contains(b)))return;m.preventDefault(),m.stopPropagation(),r=!0,s=m.clientX,o=m.clientY;const k=A.getBoundingClientRect();a=k.width,i=k.height,c=a,u=i,document.addEventListener("pointermove",h),document.addEventListener("pointerup",f)};return window.addEventListener("pointerdown",g,{capture:!0}),()=>{window.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f)}}const ys="shared",Dp="ap-sdk-panel-pos:";function sy(A){try{const e=sessionStorage.getItem(Dp+A);if(!e)return null;const t=JSON.parse(e);return typeof(t==null?void 0:t.left)=="number"&&typeof(t==null?void 0:t.top)=="number"?t:null}catch(e){return null}}function oy(A,e){try{sessionStorage.setItem(Dp+A,JSON.stringify(e))}catch(t){}}function su(A,e,t){return Math.min(Math.max(A,e),t)}function Us(A,e){const t=(m,b)=>{const k=Math.max(0,window.innerWidth-A.offsetWidth),E=Math.max(0,window.innerHeight-A.offsetHeight);A.style.left=`${su(m,0,k)}px`,A.style.top=`${su(b,0,E)}px`,A.style.right="auto",A.style.transform="none"},n=sy(e);n&&t(n.left,n.top);let r=!1,s=0,o=0,a=0,i=0,c=0,u=0;const h=m=>{r&&(c=a+(m.clientX-s),u=i+(m.clientY-o),t(c,u))},f=()=>{r&&(r=!1,document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f),oy(e,{left:c,top:u}))},g=m=>{const b=m.target;if(!(b===A||A.contains(b))||!b.closest(".ap-sdk-panel__header")||b.closest("button, a, input, select, textarea"))return;m.preventDefault(),r=!0,s=m.clientX,o=m.clientY;const k=A.getBoundingClientRect();a=k.left,i=k.top,c=a,u=i,document.addEventListener("pointermove",h),document.addEventListener("pointerup",f)};return window.addEventListener("pointerdown",g,{capture:!0}),()=>{window.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f)}}const Wo="ap-sdk-panel-draft";function Rp(){var A,e;try{const t=localStorage.getItem(Wo);if(!t)return null;const n=JSON.parse(t);return!Array.isArray(n.completedPicks)||!n.currentCtx||typeof n.currentCtx!="object"?null:{captureType:(A=n.captureType)!=null?A:"task",note:(e=n.note)!=null?e:"",completedPicks:n.completedPicks,allowSubmit:!!n.allowSubmit,currentCtx:n.currentCtx}}catch(t){return null}}function iy(A){try{if(!A.note&&A.completedPicks.length===0&&!A.allowSubmit){localStorage.removeItem(Wo);return}localStorage.setItem(Wo,JSON.stringify(A))}catch(e){}}function xc(){try{localStorage.removeItem(Wo)}catch(A){}}/*!
|
|
1660
1654
|
* html2canvas-pro 2.4.3 <https://yorickshan.github.io/html2canvas-pro/>
|
|
1661
1655
|
* Copyright (c) 2024-present yorickshan and html2canvas-pro contributors
|
|
1662
1656
|
* Released under MIT License
|
|
1663
|
-
*/var
|
|
1664
|
-
📊 Performance Summary (Total: ${A.totalDuration.toFixed(2)}ms):`),A.breakdown.sort((e,t)=>t.duration-e.duration).forEach(e=>{this.context.logger.info(` ${e.name.padEnd(20)} ${e.duration.toFixed(2).padStart(8)}ms ${e.percentage.padStart(6)}`)})}clear(){this.activeMetrics.clear(),this.completedMetrics.splice(0)}isEnabled(){return this.enabled}getActiveMetrics(){return Array.from(this.activeMetrics.keys())}},Je,Le=(Je=class{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}add(e,t,n,r){return new Je(this.left+e,this.top+t,this.width+n,this.height+r)}static fromClientRect(e,t){return new Je(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)}static fromDOMRectList(e,t){const n=Array.from(t);let r=n.find(s=>s.width!==0);return r||(r=n.find(s=>s.height!==0)),!r&&n.length>0&&(r=n[0]),r?new Je(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):Je.EMPTY}},Je.EMPTY=new Je(0,0,0,0),Je);const fs=(A,e)=>Le.fromClientRect(A,e.getBoundingClientRect()),ay=A=>{const e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");return new Le(0,0,Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight)))};var fi=function(A){for(var e=[],t=0,n=A.length;t<n;){var r=A.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var s=A.charCodeAt(t++);(s&64512)===56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),t--)}else e.push(r)}return e},LA=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var n=[],r=-1,s="";++r<t;){var o=A[r];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(r+1===t||n.length>16384)&&(s+=String.fromCharCode.apply(String,n),n.length=0)}return s},eu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cy=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var js=0;js<eu.length;js++)cy[eu.charCodeAt(js)]=js;var tu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Ys=0;Ys<tu.length;Ys++)Zr[tu.charCodeAt(Ys)]=Ys;var ly=function(A){var e=A.length*.75,t=A.length,n,r=0,s,o,a,i;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(e):new Array(e),u=Array.isArray(c)?c:new Uint8Array(c);for(n=0;n<t;n+=4)s=Zr[A.charCodeAt(n)],o=Zr[A.charCodeAt(n+1)],a=Zr[A.charCodeAt(n+2)],i=Zr[A.charCodeAt(n+3)],u[r++]=s<<2|o>>4,u[r++]=(o&15)<<4|a>>2,u[r++]=(a&3)<<6|i&63;return c},uy=function(A){for(var e=A.length,t=[],n=0;n<e;n+=2)t.push(A[n+1]<<8|A[n]);return t},dy=function(A){for(var e=A.length,t=[],n=0;n<e;n+=4)t.push(A[n+3]<<24|A[n+2]<<16|A[n+1]<<8|A[n]);return t},Bn=5,Fc=11,Vi=2,py=Fc-Bn,Ip=65536>>Bn,Gi=(1<<Bn)-1,hy=Ip+(1024>>Bn)+32,fy=65536>>Fc,gy=(1<<py)-1,nu=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},By=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},wy=function(A,e){var t=ly(A),n=Array.isArray(t)?dy(t):new Uint32Array(t),r=Array.isArray(t)?uy(t):new Uint16Array(t),s=24,o=nu(r,s/2,n[4]/2),a=n[5]===2?nu(r,(s+n[4])/2):By(n,Math.ceil((s+n[4])/4));return new my(n[0],n[1],n[2],n[3],o,a)},my=(function(){function A(e,t,n,r,s,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=s,this.data=o}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Bn],t=(t<<Vi)+(e&Gi),this.data[t];if(e<=65535)return t=this.index[Ip+(e-55296>>Bn)],t=(t<<Vi)+(e&Gi),this.data[t];if(e<this.highStart)return t=hy-fy+(e>>Fc),t=this.index[t],t+=e>>Bn&gy,t=this.index[t],t=(t<<Vi)+(e&Gi),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),ru="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cy=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var qs=0;qs<ru.length;qs++)Cy[ru.charCodeAt(qs)]=qs;var by="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHL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aWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHA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wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AH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AB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAU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UABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVw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ASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUAB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QAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4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ABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACU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QAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",su=50,Qy=1,Tp=2,Hp=3,yy=4,Uy=5,ou=7,Lp=8,iu=9,zt=10,Sa=11,au=12,Ia=13,Ey=14,Xr=15,Ta=16,Ao=17,Hr=18,ky=19,cu=20,Ha=21,Lr=22,Zi=23,Kn=24,me=25,Wr=26,Jr=27,Nn=28,Fy=29,cn=30,vy=31,eo=32,to=33,La=34,Da=35,Ra=36,gs=37,Oa=38,Fo=39,vo=40,Xi=41,Dp=42,_y=43,xy=[9001,65288],Rp="!",nA="×",no="÷",Pa=wy(by),yt=[cn,Ra],Ma=[Qy,Tp,Hp,Uy],Op=[zt,Lp],lu=[Jr,Wr],Sy=Ma.concat(Op),uu=[Oa,Fo,vo,La,Da],Iy=[Xr,Ia],Ty=function(A,e){e===void 0&&(e="strict");var t=[],n=[],r=[];return A.forEach(function(s,o){var a=Pa.get(s);if(a>su?(r.push(!0),a-=su):r.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(s)!==-1)return n.push(o),t.push(Ta);if(a===yy||a===Sa){if(o===0)return n.push(o),t.push(cn);var i=t[o-1];return Sy.indexOf(i)===-1?(n.push(n[o-1]),t.push(i)):(n.push(o),t.push(cn))}if(n.push(o),a===vy)return t.push(e==="strict"?Ha:gs);if(a===Dp||a===Fy)return t.push(cn);if(a===_y)return s>=131072&&s<=196605||s>=196608&&s<=262141?t.push(gs):t.push(cn);t.push(a)}),[n,t,r]},Wi=function(A,e,t,n){var r=n[t];if(Array.isArray(A)?A.indexOf(r)!==-1:A===r)for(var s=t;s<=n.length;){s++;var o=n[s];if(o===e)return!0;if(o!==zt)break}if(r===zt)for(var s=t;s>0;){s--;var a=n[s];if(Array.isArray(A)?A.indexOf(a)!==-1:A===a)for(var i=t;i<=n.length;){i++;var o=n[i];if(o===e)return!0;if(o!==zt)break}if(a!==zt)break}return!1},du=function(A,e){for(var t=A;t>=0;){var n=e[t];if(n===zt)t--;else return n}return 0},Hy=function(A,e,t,n,r){if(t[n]===0)return nA;var s=n-1;if(Array.isArray(r)&&r[s]===!0)return nA;var o=s-1,a=s+1,i=e[s],c=o>=0?e[o]:0,u=e[a];if(i===Tp&&u===Hp)return nA;if(Ma.indexOf(i)!==-1)return Rp;if(Ma.indexOf(u)!==-1||Op.indexOf(u)!==-1)return nA;if(du(s,e)===Lp)return no;if(Pa.get(A[s])===Sa||(i===eo||i===to)&&Pa.get(A[a])===Sa||i===ou||u===ou||i===iu||[zt,Ia,Xr].indexOf(i)===-1&&u===iu||[Ao,Hr,ky,Kn,Nn].indexOf(u)!==-1||du(s,e)===Lr||Wi(Zi,Lr,s,e)||Wi([Ao,Hr],Ha,s,e)||Wi(au,au,s,e))return nA;if(i===zt)return no;if(i===Zi||u===Zi)return nA;if(u===Ta||i===Ta)return no;if([Ia,Xr,Ha].indexOf(u)!==-1||i===Ey||c===Ra&&Iy.indexOf(i)!==-1||i===Nn&&u===Ra||u===cu||yt.indexOf(u)!==-1&&i===me||yt.indexOf(i)!==-1&&u===me||i===Jr&&[gs,eo,to].indexOf(u)!==-1||[gs,eo,to].indexOf(i)!==-1&&u===Wr||yt.indexOf(i)!==-1&&lu.indexOf(u)!==-1||lu.indexOf(i)!==-1&&yt.indexOf(u)!==-1||[Jr,Wr].indexOf(i)!==-1&&(u===me||[Lr,Xr].indexOf(u)!==-1&&e[a+1]===me)||[Lr,Xr].indexOf(i)!==-1&&u===me||i===me&&[me,Nn,Kn].indexOf(u)!==-1)return nA;if([me,Nn,Kn,Ao,Hr].indexOf(u)!==-1)for(var h=s;h>=0;){var f=e[h];if(f===me)return nA;if([Nn,Kn].indexOf(f)!==-1)h--;else break}if([Jr,Wr].indexOf(u)!==-1)for(var h=[Ao,Hr].indexOf(i)!==-1?o:s;h>=0;){var f=e[h];if(f===me)return nA;if([Nn,Kn].indexOf(f)!==-1)h--;else break}if(Oa===i&&[Oa,Fo,La,Da].indexOf(u)!==-1||[Fo,La].indexOf(i)!==-1&&[Fo,vo].indexOf(u)!==-1||[vo,Da].indexOf(i)!==-1&&u===vo||uu.indexOf(i)!==-1&&[cu,Wr].indexOf(u)!==-1||uu.indexOf(u)!==-1&&i===Jr||yt.indexOf(i)!==-1&&yt.indexOf(u)!==-1||i===Kn&&yt.indexOf(u)!==-1||yt.concat(me).indexOf(i)!==-1&&u===Lr&&xy.indexOf(A[a])===-1||yt.concat(me).indexOf(u)!==-1&&i===Hr)return nA;if(i===Xi&&u===Xi){for(var g=t[s],m=1;g>0&&(g--,e[g]===Xi);)m++;if(m%2!==0)return nA}return i===eo&&u===to?nA:no},Ly=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=Ty(A,e.lineBreak),n=t[0],r=t[1],s=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(r=r.map(function(a){return[me,cn,Dp].indexOf(a)!==-1?gs:a}));var o=e.wordBreak==="keep-all"?s.map(function(a,i){return a&&A[i]>=19968&&A[i]<=40959}):void 0;return[n,r,o]},Dy=(function(){function A(e,t,n,r){this.codePoints=e,this.required=t===Rp,this.start=n,this.end=r}return A.prototype.slice=function(){return LA.apply(void 0,this.codePoints.slice(this.start,this.end))},A})(),Ry=function(A,e){var t=fi(A),n=Ly(t,e),r=n[0],s=n[1],o=n[2],a=t.length,i=0,c=0;return{next:function(){if(c>=a)return{done:!0,value:null};for(var u=nA;c<a&&(u=Hy(t,s,r,++c,o))===nA;);if(u!==nA||c===a){var h=new Dy(t,u,i,c);return i=c,{value:h,done:!1}}return{done:!0,value:null}}}};const pu=65533,te=A=>A>=48&&A<=57,Oy=A=>A>=55296&&A<=57343,$n=A=>te(A)||A>=65&&A<=70||A>=97&&A<=102,Py=A=>A>=97&&A<=122,My=A=>A>=65&&A<=90,Ky=A=>Py(A)||My(A),Ny=A=>A>=128,ro=A=>A===10||A===9||A===32,Xo=A=>Ky(A)||Ny(A)||A===95,hu=A=>Xo(A)||te(A)||A===45,$y=A=>A>=0&&A<=8||A===11||A>=14&&A<=31||A===127,Kt=(A,e)=>A!==92?!1:e!==10,so=(A,e,t)=>A===45?Xo(e)||Kt(e,t):Xo(A)?!0:!!(A===92&&Kt(A,e)),Ji=(A,e,t)=>A===43||A===45?te(e)?!0:e===46&&te(t):te(A===46?e:A),zy=A=>{let e=0,t=1;(A[e]===43||A[e]===45)&&(A[e]===45&&(t=-1),e++);const n=[];for(;te(A[e]);)n.push(A[e++]);const r=n.length?parseInt(LA(...n),10):0;A[e]===46&&e++;const s=[];for(;te(A[e]);)s.push(A[e++]);const o=s.length,a=o?parseInt(LA(...s),10):0;(A[e]===69||A[e]===101)&&e++;let i=1;(A[e]===43||A[e]===45)&&(A[e]===45&&(i=-1),e++);const c=[];for(;te(A[e]);)c.push(A[e++]);const u=c.length?parseInt(LA(...c),10):0;return t*(r+a*Math.pow(10,-o))*Math.pow(10,i*u)},Vy={type:2},Gy={type:3},Zy={type:4},Xy={type:13},Wy={type:8},Jy={type:21},jy={type:9},Yy={type:10},qy={type:11},A0={type:12},e0={type:14},oo={type:23},t0={type:1},n0={type:25},r0={type:24},s0={type:26},o0={type:27},i0={type:28},a0={type:29},c0={type:31},Ka={type:32};var _e,Na=(_e=class{static get(){return _e._pool.pop()||new _e}static release(e){_e._pool.length<_e.MAX_POOL_SIZE&&(e._reset(),_e._pool.push(e))}constructor(){this._value=[]}_reset(){this._value=[]}write(e){this._value=this._value.concat(fi(e))}read(){const e=[];let t=this.consumeToken();for(;t!==Ka;)e.push(t),t=this.consumeToken();return e}consumeToken(){const e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:{const t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(hu(t)||Kt(n,r)){const s=so(t,n,r)?2:1;return{type:5,value:this.consumeName(),flags:s}}break}case 36:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),Xy;break;case 39:return this.consumeStringToken(39);case 40:return Vy;case 41:return Gy;case 42:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),e0;break;case 43:if(Ji(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return Zy;case 45:{const t=e,n=this.peekCodePoint(0),r=this.peekCodePoint(1);if(Ji(t,n,r))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(so(t,n,r))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(n===45&&r===62)return this.consumeCodePoint(),this.consumeCodePoint(),r0;break}case 46:if(Ji(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(this.peekCodePoint(0)===42)for(this.consumeCodePoint();;){let t=this.consumeCodePoint();if(t===42&&(t=this.consumeCodePoint(),t===47))return this.consumeToken();if(t===-1)return this.consumeToken()}break;case 58:return s0;case 59:return o0;case 60:if(this.peekCodePoint(0)===33&&this.peekCodePoint(1)===45&&this.peekCodePoint(2)===45)return this.consumeCodePoint(),this.consumeCodePoint(),n0;break;case 64:if(so(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2)))return{type:7,value:this.consumeName()};break;case 91:return i0;case 92:if(Kt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return a0;case 61:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),Wy;break;case 123:return qy;case 125:return A0;case 117:case 85:{const t=this.peekCodePoint(0),n=this.peekCodePoint(1);return t===43&&($n(n)||n===63)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken()}case 124:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),jy;if(this.peekCodePoint(0)===124)return this.consumeCodePoint(),Jy;break;case 126:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),Yy;break;case-1:return Ka}return ro(e)?(this.consumeWhiteSpace(),c0):te(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Xo(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:LA(e)}}consumeCodePoint(){const e=this._value.shift();return typeof e=="undefined"?-1:e}reconsumeCodePoint(e){this._value.unshift(e)}peekCodePoint(e){return e>=this._value.length?-1:this._value[e]}consumeUnicodeRangeToken(){const e=[];let t=this.consumeCodePoint();for(;$n(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();let n=!1;for(;t===63&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(LA(...e.map(s=>s===63?48:s)),16),end:parseInt(LA(...e.map(s=>s===63?70:s)),16)};const r=parseInt(LA(...e),16);if(this.peekCodePoint(0)===45&&$n(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();const s=[];for(;$n(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(LA(...s),16)}}else return{type:30,start:r,end:r}}consumeIdentLikeToken(){const e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===40?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===40?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}}consumeUrlToken(){const e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===-1)return{type:22,value:""};const t=this.peekCodePoint(0);if(t===39||t===34){const n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===-1||this.peekCodePoint(0)===41)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),oo)}for(;;){const n=this.consumeCodePoint();if(n===-1||n===41)return{type:22,value:LA(...e)};if(ro(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===-1||this.peekCodePoint(0)===41?(this.consumeCodePoint(),{type:22,value:LA(...e)}):(this.consumeBadUrlRemnants(),oo);if(n===34||n===39||n===40||$y(n))return this.consumeBadUrlRemnants(),oo;if(n===92)if(Kt(n,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),oo;else e.push(n)}}consumeWhiteSpace(){for(;ro(this.peekCodePoint(0));)this.consumeCodePoint()}consumeBadUrlRemnants(){for(;;){const e=this.consumeCodePoint();if(e===41||e===-1)return;Kt(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}}consumeStringSlice(e){let n="";for(;e>0;){const r=Math.min(5e4,e);n+=LA(...this._value.splice(0,r)),e-=r}return this._value.shift(),n}consumeStringToken(e){let t="",n=0;do{const r=this._value[n];if(r===-1||r===void 0||r===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(r===10)return this._value.splice(0,n),t0;if(r===92){const s=this._value[n+1];s!==-1&&s!==void 0&&(s===10?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):Kt(r,s)&&(t+=this.consumeStringSlice(n),t+=LA(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)}consumeNumber(){const e=[];let t=4,n=this.peekCodePoint(0);for((n===43||n===45)&&e.push(this.consumeCodePoint());te(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);let r=this.peekCodePoint(1);if(n===46&&te(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;te(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);const s=this.peekCodePoint(2);if((n===69||n===101)&&((r===43||r===45)&&te(s)||te(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;te(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[zy(e),t]}consumeNumericToken(){const[e,t]=this.consumeNumber(),n=this.peekCodePoint(0);return so(n,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:e,flags:t,unit:this.consumeName()}:n===37?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}}consumeEscapedCodePoint(){const e=this.consumeCodePoint();if($n(e)){let t=LA(e);for(;$n(this.peekCodePoint(0))&&t.length<6;)t+=LA(this.consumeCodePoint());ro(this.peekCodePoint(0))&&this.consumeCodePoint();const n=parseInt(t,16);return n===0||Oy(n)||n>1114111?pu:n}return e===-1?pu:e}consumeName(){let e="";for(;;){const t=this.consumeCodePoint();if(hu(t))e+=LA(t);else if(Kt(t,this.peekCodePoint(0)))e+=LA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}}},_e._pool=[],_e.MAX_POOL_SIZE=40,_e),Pp=class _o{constructor(e){this._tokens=e}static create(e){const t=new Na;return t.write(e),new _o(t.read())}static parseValue(e){return _o.create(e).parseComponentValue()}static parseValues(e){return _o.create(e).parseComponentValues()}parseComponentValue(){let e=this.consumeToken();for(;e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);const t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")}parseComponentValues(){const e=[];for(;;){const t=this.consumeComponentValue();if(t.type===32)return e;e.push(t)}}consumeComponentValue(){const e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e}consumeSimpleBlock(e){const t={type:e,values:[]};let n=this.consumeToken();for(;;){if(n.type===32||u0(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}}consumeFunction(e){const t={name:e.value,values:[],type:18};for(;;){const n=this.consumeToken();if(n.type===32||n.type===3)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}}consumeToken(){const e=this._tokens.shift();return typeof e=="undefined"?Ka:e}reconsumeToken(e){this._tokens.unshift(e)}};const gt=A=>A.type===15,GA=A=>A.type===17,j=A=>A.type===20,l0=A=>A.type===0,Bs=(A,e)=>j(A)&&A.value===e,Es=A=>A.type!==31,ZA=A=>A.type!==31&&A.type!==4,At=A=>{const e=[];let t=[];return A.forEach(n=>{if(n.type===4){t.length&&(e.push(t),t=[]);return}n.type!==31&&t.push(n)}),t.length&&e.push(t),e},u0=(A,e)=>e===11&&A.type===12||e===28&&A.type===29?!0:e===2&&A.type===3,d0=/(\d+(?:\.\d+)?|[+\-*/()])/g,Mp=A=>{const e=A.match(d0);if(!e)return NaN;const t=[],n=[],r={"+":1,"-":1,"*":2,"/":2};for(const o of e)if(/^\d+(?:\.\d+)?$/.test(o))t.push(parseFloat(o));else if(o==="(")n.push(o);else if(o===")"){for(;n.length&&n[n.length-1]!=="(";)t.push(n.pop());if(!n.length)return NaN;n.pop()}else{for(;n.length&&r[n[n.length-1]]>=r[o];)t.push(n.pop());n.push(o)}for(;n.length;){const o=n.pop();if(o==="(")return NaN;t.push(o)}const s=[];for(const o of t)if(typeof o=="number")s.push(o);else{const a=s.pop(),i=s.pop();if(i===void 0||a===void 0)return NaN;switch(o){case"+":s.push(i+a);break;case"-":s.push(i-a);break;case"*":s.push(i*a);break;case"/":s.push(a===0?NaN:i/a);break;default:return NaN}}return s.length===1?s[0]:NaN},IA=(A,e,t)=>Math.min(Math.max(A,e),t),ge=(A,e)=>[A[0]*e[0]+A[1]*e[1]+A[2]*e[2],A[3]*e[0]+A[4]*e[1]+A[5]*e[2],A[6]*e[0]+A[7]*e[1]+A[8]*e[2]],Yt=A=>ge([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.04155505740717559,.05563007969699366,-.20397695888897652,1.0569715142428786],A),$a=A=>ge([.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],A),_n=A=>A.map(e=>{const t=e<0?-1:1,n=Math.abs(e);return n>.0031308?t*(1.055*we(n,1/2.4)-.055):12.92*e}),za=A=>A.map(e=>{const t=e<0?-1:1,n=Math.abs(e);return n<=.04045?e/12.92:t*we((n+.055)/1.055,2.4)}),p0=A=>{const[e,t,n]=_n(Yt([A[0],A[1],A[2]]));return[e,t,n,A[3]]},h0=A=>{const[e,t,n]=Yt([A[0],A[1],A[2]]);return[IA(Math.round(e*255),0,255),IA(Math.round(t*255),0,255),IA(Math.round(n*255),0,255),A[3]]},Wt=A=>A.type===17||A.type===15,iA=A=>A.type===16||Wt(A)||Kp(A),Kp=A=>A.type===17&&A._calcPercentage!==void 0,f0=A=>A.type===18&&A.name==="calc",g0=A=>{const e=fu(A,0);if(!e)return null;const t=fu(A,100);if(!t)return null;const n=e.number,r=t.number-n;return r===0?e:{type:17,number:n,flags:4,_calcPercentage:r,_calcPixelOffset:n}},Np=A=>f0(A)?g0(A):iA(A)?A:null,fu=(A,e=0)=>{const t=n=>{let r="";for(const s of n)if(s.type!==31){if(s.type===18)if(s.name==="calc"){const o=t(s.values);if(o===null)return null;r+=`(${o})`}else return null;else if(s.type===17)r+=s.number.toString();else if(s.type===15)s.unit==="px"?r+=s.number.toString():s.unit==="rem"||s.unit==="em"?r+=(s.number*16).toString():r+=s.number.toString();else if(s.type===16)r+=(s.number/100*e).toString();else if(s.type===6){const o=s.value;o==="+"||o==="-"||o==="*"||o==="/"?r+=` ${o} `:o==="("?r+="(":o===")"&&(r+=")")}}return r};try{const n=t(A.values);if(n===null||n.trim()==="")return null;const r=Mp(n);if(typeof r=="number"&&!isNaN(r))return{type:17,number:r,flags:4}}catch(n){return null}return null},$p=A=>A.length>1?[A[0],A[1]]:[A[0]],DA={type:17,number:0,flags:4},Ft={type:16,number:50,flags:4},Ye={type:16,number:100,flags:4},jr=(A,e,t)=>{const[n,r]=A;return[J(n,e),J(typeof r!="undefined"?r:n,t)]},J=(A,e)=>{if(Kp(A))return A._calcPercentage/100*e+A._calcPixelOffset;if(A.type===16)return A.number/100*e;if(gt(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},zp="deg",Vp="grad",Gp="rad",Zp="turn",wr={name:"angle",parse:(A,e)=>{if(e.type===15)switch(e.unit){case zp:return Math.PI*e.number/180;case Vp:return Math.PI/200*e.number;case Gp:return e.number;case Zp:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Xp=A=>A.type===15&&(A.unit===zp||A.unit===Vp||A.unit===Gp||A.unit===Zp),Wp=A=>{switch(A.filter(j).map(e=>e.value).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[DA,DA];case"to top":case"bottom":return Ie(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[DA,Ye];case"to right":case"left":return Ie(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ye,Ye];case"to bottom":case"top":return Ie(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ye,DA];case"to left":case"right":return Ie(270)}return 0},Ie=A=>Math.PI*A/180,vt=A=>(255&A)===0,QA=A=>{const e=255&A,t=255&A>>8,n=255&A>>16,r=255&A>>24;return e<255?`rgba(${r},${n},${t},${e/255})`:`rgb(${r},${n},${t})`},qe=(A,e,t,n)=>(A<<24|e<<16|t<<8|Math.round(n*255)<<0)>>>0,Nt=(A,e)=>{if(A.type===17)return A.number;if(A.type===16){const t=e===3?1:255;return e===3?A.number/100*t:Math.round(A.number/100*t)}return 0},xn=A=>(A[0].type===20?A[0].value:"unknown")==="from",B0=A=>qe(IA(Math.round(A[0]*255),0,255),IA(Math.round(A[1]*255),0,255),IA(Math.round(A[2]*255),0,255),IA(A[3],0,1)),vc=([A,e,t,n])=>{const r=_n([A,e,t]);return qe(IA(Math.round(r[0]*255),0,255),IA(Math.round(r[1]*255),0,255),IA(Math.round(r[2]*255),0,255),n)},ks=A=>{const e=Yt([A[0],A[1],A[2]]);return vc([e[0],e[1],e[2],A[3]])},w0=(A,e)=>{if(xn(e.filter(ZA)))throw new Error("Relative color not supported for lab()");const[t,n,r,s]=gi(e),o=_n(Yt(mi([t,n,r])));return qe(IA(Math.round(o[0]*255),0,255),IA(Math.round(o[1]*255),0,255),IA(Math.round(o[2]*255),0,255),s)},m0=(A,e)=>{if(xn(e.filter(ZA)))throw new Error("Relative color not supported for oklab()");const[t,n,r,s]=gi(e),o=_n(Yt(wi([t,n,r])));return qe(IA(Math.round(o[0]*255),0,255),IA(Math.round(o[1]*255),0,255),IA(Math.round(o[2]*255),0,255),s)},C0=(A,e)=>{if(xn(e.filter(ZA)))throw new Error("Relative color not supported for oklch()");const[t,n,r,s]=Yp(e),o=_n(Yt(wi(Bi([t,n,r]))));return qe(IA(Math.round(o[0]*255),0,255),IA(Math.round(o[1]*255),0,255),IA(Math.round(o[2]*255),0,255),s)},b0=(A,e)=>{if(xn(e.filter(ZA)))throw new Error("Relative color not supported for lch()");const[t,n,r,s]=jp(e),o=_n(Yt(mi(Bi([t,n,r]))));return qe(IA(Math.round(o[0]*255),0,255),IA(Math.round(o[1]*255),0,255),IA(Math.round(o[2]*255),0,255),s)},Jp=(A,e)=>{const[t,n,r,s]=e.filter(ZA);return[(t.type===17?Ie(t.number):wr.parse(A,t))/(Math.PI*2),iA(n)?n.number/100:0,iA(r)?r.number/100:0,typeof s!="undefined"&&iA(s)?J(s,1):1]},gu=(A,e)=>{if(xn(e))throw new Error("Relative color not supported for hsl()");const[t,n,r,s]=Jp(A,e),o=Ah([t,n,r]);return qe(o[0]*255,o[1]*255,o[2]*255,n===0?1:s)},jp=A=>{const e=A.filter(ZA);return[iA(e[0])?e[0].number:0,iA(e[1])?e[1].number:0,GA(e[2])||gt(e[2])?e[2].number:0,typeof e[4]!="undefined"&&iA(e[4])?J(e[4],1):1]},gi=A=>{const e=A.filter(ZA);return[e[0].type===16?e[0].number/100:GA(e[0])?e[0].number:0,e[1].type===16?e[1].number/100:GA(e[1])?e[1].number:0,GA(e[2])||gt(e[2])?e[2].number:0,typeof e[4]!="undefined"&&iA(e[4])?J(e[4],1):1]},Yp=A=>{const e=A.filter(ZA);return[e[0].type===16?e[0].number/100:GA(e[0])?e[0].number:0,e[1].type===16?e[1].number/100:GA(e[1])?e[1].number:0,GA(e[2])||gt(e[2])?e[2].number:0,typeof e[4]!="undefined"&&iA(e[4])?J(e[4],1):1]},qp=A=>ge([1.0479297925449969,.022946870601609652,-.05019226628920524,.02962780877005599,.9904344267538799,-.017073799063418826,-.009243040646204504,.015055191490298152,.7518742814281371],A),_c=A=>ge([.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],A),ji=(A,e,t)=>(t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<1/2?e:t<2/3?(e-A)*6*(2/3-t)+A:A),Ah=([A,e,t])=>{if(e===0)return[t*255,t*255,t*255];const n=t<=.5?t*(e+1):t+e-t*e,r=t*2-n;return[ji(r,n,A+1/3),ji(r,n,A),ji(r,n,A-1/3)]},Bi=([A,e,t])=>(e<0&&(e=0),isNaN(t)&&(t=0),[A,e*Math.cos(t*Math.PI/180),e*Math.sin(t*Math.PI/180)]),wi=A=>ge([1.2268798758459243,-.5578149944602171,.2813910456659647,-.0405757452148008,1.112286803280317,-.0717110580655164,-.0763729366746601,-.4214933324022432,1.5869240198367816],ge([1,.3963377773761749,.2158037573099136,1,-.1055613458156586,-.0638541728258133,1,-.0894841775298119,-1.2914855480194092],A).map(e=>we(e,3))),mi=A=>{const e=(A[0]+16)/116,t=A[1]/500+e,n=e-A[2]/200,r=24389/27,s=24/116,o=[(t>s?we(t,3):(116*t-16)/r)*.3457/.3585,A[0]>8?we(e,3):A[0]/r,(n>s?we(n,3):(116*n-16)/r)*.2958/.3585];return _c([o[0],o[1],o[2]])},Q0=(A,e)=>{const t=e.filter(ZA);if(t.length===3){const[n,r,s]=t.map(Nt),o=za([n/255,r/255,s/255]),[a,i,c]=$a([o[0],o[1],o[2]]);return[a,i,c,1]}if(t.length===4){const[n,r,s,o]=t.map(Nt),a=za([n/255,r/255,s/255]),[i,c,u]=$a([a[0],a[1],a[2]]);return[i,c,u,o]}return[0,0,0,1]},y0=(A,e)=>{const[t,n,r,s]=Jp(A,e),o=za(Ah([t,n,r])),[a,i,c]=$a([o[0],o[1],o[2]]);return[a,i,c,s]},U0=(A,e)=>{const[t,n,r,s]=gi(e),[o,a,i]=mi([t,n,r]);return[o,a,i,s]},E0=(A,e)=>{const[t,n,r,s]=jp(e),[o,a,i]=mi(Bi([t,n,r]));return[o,a,i,s]},k0=(A,e)=>{const[t,n,r,s]=Yp(e),[o,a,i]=wi(Bi([t,n,r]));return[o,a,i,s]},F0=(A,e)=>{const[t,n,r,s]=gi(e),[o,a,i]=wi([t,n,r]);return[o,a,i,s]},v0=A=>_c([A[0],A[1],A[2]]),Bu=A=>A,_0=A=>{const[e,t,n]=qp([A[0],A[2],A[3]]);return[e,t,n,A[3]]},wu=A=>ks([A[0],A[1],A[2],A[3]]),x0=A=>{const e=v0([A[0],A[1],A[2]]);return ks([e[0],e[1],e[2],A[3]])},S0=A=>ge([.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],A),I0=A=>ge([2.493496911941425,-.9313836179191239,-.40271078445071684,-.8294889695615747,1.7626640603183463,.023624685841943577,.03584583024378447,-.07617238926804182,.9568845240076872],A),T0=A=>A.map(e=>{const t=e<0?-1:1;return e*t<=.04045?e/12.92:t*we((e+.055)/1.055,2.4)||0}),H0=A=>_n(A),L0=A=>{const e=T0([A[0],A[1],A[2]]);return S0([e[0],e[1],e[2]])},D0=A=>{const[e,t,n]=H0(I0([A[0],A[1],A[2]]));return[e,t,n,A[3]]},R0=A=>{const e=L0([A[0],A[1],A[2]]);return ks([e[0],e[1],e[2],A[3]])},O0=A=>ge([2.0415879038107465,-.5650069742788596,-.34473135077832956,-.9692436362808795,1.8759675015077202,.04155505740717557,.013444280632031142,-.11836239223101838,1.0151749943912054],A),P0=A=>ge([.5766690429101305,.1855582379065463,.1882286462349947,.29734497525053605,.6273635662554661,.0752914584939978,.02703136138641234,.07068885253582723,.9913375368376388],A),M0=A=>{const e=A.map(t=>(t<0?-1:1)*we(Math.abs(t),2.19921875));return[e[0],e[1],e[2]]},K0=A=>{const e=A.map(t=>(t<0?-1:1)*we(Math.abs(t),.4547069271758437));return[e[0],e[1],e[2]]},N0=A=>{const[e,t,n]=K0(O0([A[0],A[1],A[2]]));return[e,t,n,A[3]]},$0=A=>{const e=Yt(P0(M0([A[0],A[1],A[2]])));return vc([e[0],e[1],e[2],A[3]])},z0=A=>ge([.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],A),V0=A=>ge([1.3457868816471583,-.25557208737979464,-.05110186497554526,-.5446307051249019,1.5082477428451468,.02052744743642139,0,0,1.2119675456389452],A),G0=A=>A.map(e=>e<16/512?e/16:we(e,1.8)),Z0=A=>A.map(e=>e>1/512?we(e,1/1.8):e*16),X0=A=>{const e=G0([A[0],A[1],A[2]]);return _c(z0([e[0],e[1],e[2]]))},W0=A=>{const[e,t,n]=Z0(V0(qp([A[0],A[1],A[2]])));return[e,t,n,A[3]]},J0=A=>{const e=X0([A[0],A[1],A[2]]);return ks([e[0],e[1],e[2],A[3]])},Wo=1.09929682680944,eh=.018053968510807,j0=A=>A.map(function(e){return e<eh*4.5?e/4.5:Math.pow((e+Wo-1)/Wo,1/.45)}),Y0=A=>A.map(function(e){return e>=eh?Wo*Math.pow(e,.45)-(Wo-1):4.5*e}),q0=A=>ge([.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],A),AU=A=>ge([1.716651187971268,-.355670783776392,-.25336628137366,-.666684351832489,1.616481236634939,.0157685458139111,.017639857445311,-.042770613257809,.942103121235474],A),eU=A=>{const e=j0([A[0],A[1],A[2]]);return q0([e[0],e[1],e[2]])},tU=A=>{const[e,t,n]=Y0(AU([A[0],A[1],A[2]]));return[e,t,n,A[3]]},nU=A=>{const e=eU([A[0],A[1],A[2]]);return ks([e[0],e[1],e[2],A[3]])},Gt={name:"color",parse:(A,e)=>{if(e.type===18){const t=iU[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported color function "${e.name}"`);return t(A,e.values)}if(e.type===5){const[t,n,r,s]=th(e);return qe(t,n,r,s)}if(e.type===20){const t=pt[e.value.toUpperCase()];if(typeof t!="undefined")return t}return pt.TRANSPARENT}},th=A=>{if(A.value.length===3){const e=A.value.substring(0,1),t=A.value.substring(1,2),n=A.value.substring(2,3);return[parseInt(e+e,16),parseInt(t+t,16),parseInt(n+n,16),1]}if(A.value.length===4){const e=A.value.substring(0,1),t=A.value.substring(1,2),n=A.value.substring(2,3),r=A.value.substring(3,4);return[parseInt(e+e,16),parseInt(t+t,16),parseInt(n+n,16),parseInt(r+r,16)/255]}if(A.value.length===6){const e=A.value.substring(0,2),t=A.value.substring(2,4),n=A.value.substring(4,6);return[parseInt(e,16),parseInt(t,16),parseInt(n,16),1]}if(A.value.length===8){const e=A.value.substring(0,2),t=A.value.substring(2,4),n=A.value.substring(4,6),r=A.value.substring(6,8);return[parseInt(e,16),parseInt(t,16),parseInt(n,16),parseInt(r,16)/255]}return[0,0,0,1]},mu=(A,e)=>{const t=e.filter(ZA);if(xn(t))throw new Error("Relative color not supported for rgb()");if(t.length===3){const[n,r,s]=t.map(Nt);return qe(n,r,s,1)}if(t.length===4){const[n,r,s,o]=t.map(Nt);return qe(n,r,s,o)}return t.length===5&&t[3].type===6&&t[3].value==="/"?qe(Nt(t[0],0),Nt(t[1],1),Nt(t[2],2),Nt(t[4],3)):0},rU=(A,e)=>{const t=e.filter(ZA),n=t[0].type===20?t[0].value:"unknown";if(xn(t)){const r=(U,E)=>{if(GA(E))return E.number;const v=y=>y==="r"||y==="x"?0:y==="g"||y==="y"?1:2;if(j(E))return U[v(E.value)];const F=y=>{const _=y.filter(ZA);let R="(";for(const H of _)R+=H.type===18&&H.name==="calc"?F(H.values):GA(H)?H.number:H.type===6||j(H)?H.value:"";return R+=")",R};if(E.type===18){const y=E.values.filter(ZA);if(E.name==="calc")return Mp(F(y).replace(/r|x/,U[0].toString()).replace(/g|y/,U[1].toString()).replace(/b|z/,U[2].toString()))}return null},s=t[1].type===18?t[1].name:j(t[1])||t[1].type===5?"rgb":"unknown",o=j(t[2])?t[2].value:"unknown";let a=t[1].type===18?t[1].values:j(t[1])?[t[1]]:[];if(j(t[1])){if(typeof pt[t[1].value.toUpperCase()]=="undefined")throw new Error("Attempting to use unknown color in relative color 'from'");{const U=cr(A,t[1].value),E=255&U,v=255&U>>8,F=255&U>>16;a=[{type:17,number:255&U>>24,flags:1},{type:17,number:F,flags:1},{type:17,number:v,flags:1},{type:17,number:E>1?E/255:E,flags:1}]}}else if(t[1].type===5){const[U,E,v,F]=th(t[1]);a=[{type:17,number:U,flags:1},{type:17,number:E,flags:1},{type:17,number:v,flags:1},{type:17,number:F>1?F/255:F,flags:1}]}if(a.length===0)throw new Error("Attempting to use unknown color in relative color 'from'");if(o==="unknown")throw new Error("Attempting to use unknown colorspace in relative color 'to'");const i=sU[s],c=oU[o],u=Cu[o];if(typeof i=="undefined")throw new Error(`Attempting to parse an unsupported color space "${s}" for color() function`);if(typeof c=="undefined")throw new Error(`Attempting to parse an unsupported color space "${o}" for color() function`);const h=c(i(A,a)),f=r(h,t[3]),g=r(h,t[4]),m=r(h,t[5]),b=t.length>6&&t[6].type===6&&t[6].value==="/"&&GA(t[7])?t[7].number:1;if(f===null||g===null||m===null)throw new Error("Invalid relative color in color() function");return u([f,g,m,b])}else{const r=n,s=Cu[r];if(typeof s=="undefined")throw new Error(`Attempting to parse an unsupported color space "${r}" for color() function`);return s([GA(t[1])?t[1].number:0,GA(t[2])?t[2].number:0,GA(t[3])?t[3].number:0,t.length>4&&t[4].type===6&&t[4].value==="/"&&GA(t[5])?t[5].number:1])}},Cu={srgb:B0,"srgb-linear":vc,"display-p3":R0,"a98-rgb":$0,"prophoto-rgb":J0,xyz:wu,"xyz-d50":x0,"xyz-d65":wu,rec2020:nU},sU={rgb:Q0,hsl:y0,lab:U0,lch:E0,oklab:F0,oklch:k0},oU={srgb:p0,"srgb-linear":h0,"display-p3":D0,"a98-rgb":N0,"prophoto-rgb":W0,xyz:Bu,"xyz-d50":_0,"xyz-d65":Bu,rec2020:tU},iU={hsl:gu,hsla:gu,rgb:mu,rgba:mu,lch:b0,oklch:C0,oklab:m0,lab:w0,color:rU},cr=(A,e)=>Gt.parse(A,Pp.create(e).parseComponentValue()),pt={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},pn=A=>A.nodeType===Node.ELEMENT_NODE,nh=A=>A.nodeType===Node.TEXT_NODE,hn=A=>typeof A.className=="object",ws=A=>pn(A)&&typeof A.style!="undefined"&&!hn(A),aU=A=>A.tagName==="INPUT",cU=A=>A.tagName==="HTML",rh=A=>A.tagName==="svg",xc=A=>A.tagName==="BODY",sh=A=>A.tagName==="CANVAS",bu=A=>A.tagName==="VIDEO",Va=A=>A.tagName==="IMG",oh=A=>A.tagName==="IFRAME",ih=A=>A.tagName==="STYLE",lU=A=>A.tagName==="SCRIPT",Jo=A=>A.tagName==="TEXTAREA",jo=A=>A.tagName==="SELECT",Yr=A=>A.tagName==="SLOT",uU=A=>A.tagName==="LI",dU=A=>A.tagName==="OL",Qu=A=>!hn(A)&&A.tagName.indexOf("-")>0,pU=new Set(["IMG","VIDEO","AUDIO","CANVAS","IFRAME","INPUT","TEXTAREA","SELECT","BR","HR","META","LINK","BASE","COL","SOURCE","TRACK","WBR","AREA","PARAM","EMBED","OBJECT"]),hU=A=>!hn(A)&&!pU.has(A.tagName),Ga={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 52;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},qA=(A,e)=>(A&e)!==0;var fU=class{constructor(){this.counters={}}getCounterValue(A){const e=this.counters[A];return e&&e.length?e[e.length-1]:1}getCounterValues(A){const e=this.counters[A];return e||[]}pop(A){A.forEach(e=>this.counters[e].pop())}parse(A){const e=A.counterIncrement,t=A.counterReset;let n=!0;e!==null&&e.forEach(s=>{const o=this.counters[s.counter];o&&s.increment!==0&&(n=!1,o.length||o.push(1),o[Math.max(0,o.length-1)]+=s.increment)});const r=[];return n&&t.forEach(s=>{let o=this.counters[s.counter];r.push(s.counter),o||(o=this.counters[s.counter]=[]),o.push(s.reset)}),r}};const yu={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Uu={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},gU={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},BU={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},zn=(A,e,t,n,r,s)=>A<e||A>t?ms(A,r,s.length>0):n.integers.reduce((o,a,i)=>{for(;A>=a;)A-=a,o+=n.values[i];return o},"")+s,ah=(A,e,t,n)=>{let r="";do t||A--,r=n(A)+r,A/=e;while(A*e>=e);return r},TA=(A,e,t,n,r)=>{const s=t-e+1;return(A<0?"-":"")+(ah(Math.abs(A),s,n,o=>LA(Math.floor(o%s)+e))+r)},an=(A,e,t=". ")=>{const n=e.length;return ah(Math.abs(A),n,!1,r=>e[Math.floor(r%n)])+t},wU=1,mU=2,CU=4,bU=8,Ut=(A,e,t,n,r,s)=>{if(A<-9999||A>9999)return ms(A,4,r.length>0);let o=Math.abs(A),a=r;if(o===0)return e[0]+a;for(let i=0;o>0&&i<=4;i++){const c=o%10;c===0&&qA(s,wU)&&a!==""?a=e[c]+a:c>1||c===1&&i===0||c===1&&i===1&&qA(s,mU)||c===1&&i===1&&qA(s,CU)&&A>100||c===1&&i>1&&qA(s,bU)?a=e[c]+(i>0?t[i-1]:"")+a:c===1&&i>0&&(a=t[i-1]+a),o=Math.floor(o/10)}return(A<0?n:"")+a},Eu="十百千萬",ku="拾佰仟萬",Fu="マイナス",Yi="마이너스",ms=(A,e,t)=>{const n=t?". ":"",r=t?"、":"",s=t?", ":"",o=t?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:const a=TA(A,48,57,!0,n);return a.length<4?`0${a}`:a;case 4:return an(A,"〇一二三四五六七八九",r);case 6:return zn(A,1,3999,yu,3,n).toLowerCase();case 7:return zn(A,1,3999,yu,3,n);case 8:return TA(A,945,969,!1,n);case 9:return TA(A,97,122,!1,n);case 10:return TA(A,65,90,!1,n);case 11:return TA(A,1632,1641,!0,n);case 12:case 49:return zn(A,1,9999,Uu,3,n);case 35:return zn(A,1,9999,Uu,3,n).toLowerCase();case 13:return TA(A,2534,2543,!0,n);case 14:case 30:return TA(A,6112,6121,!0,n);case 15:return an(A,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return an(A,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Ut(A,"零一二三四五六七八九",Eu,"負",r,14);case 47:return Ut(A,"零壹貳參肆伍陸柒捌玖",ku,"負",r,15);case 42:return Ut(A,"零一二三四五六七八九",Eu,"负",r,14);case 41:return Ut(A,"零壹贰叁肆伍陆柒捌玖",ku,"负",r,15);case 26:return Ut(A,"〇一二三四五六七八九","十百千万",Fu,r,0);case 25:return Ut(A,"零壱弐参四伍六七八九","拾百千万",Fu,r,7);case 31:return Ut(A,"영일이삼사오육칠팔구","십백천만",Yi,s,7);case 33:return Ut(A,"零一二三四五六七八九","十百千萬",Yi,s,0);case 32:return Ut(A,"零壹貳參四五六七八九","拾百千",Yi,s,7);case 18:return TA(A,2406,2415,!0,n);case 20:return zn(A,1,19999,BU,3,n);case 21:return TA(A,2790,2799,!0,n);case 22:return TA(A,2662,2671,!0,n);case 52:return zn(A,1,10999,gU,3,n);case 23:return an(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return an(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return TA(A,3302,3311,!0,n);case 28:return an(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return an(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return TA(A,3792,3801,!0,n);case 37:return TA(A,6160,6169,!0,n);case 38:return TA(A,4160,4169,!0,n);case 39:return TA(A,2918,2927,!0,n);case 40:return TA(A,1776,1785,!0,n);case 43:return TA(A,3046,3055,!0,n);case 44:return TA(A,3174,3183,!0,n);case 45:return TA(A,3664,3673,!0,n);case 46:return TA(A,3872,3881,!0,n);default:return TA(A,48,57,!0,n)}},QU={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:(A,e)=>e.map(t=>{if(j(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2;case"text":return 3}return 0})},yU={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ci=(A,e)=>{const t=Gt.parse(A,e[0]),n=e[1];return n&&iA(n)?{color:t,stop:n}:{color:t,stop:null}},qi=(A,e)=>{const t=A[0],n=A[A.length-1];t.stop===null&&(t.stop=DA),n.stop===null&&(n.stop=Ye);const r=[];let s=0;for(let a=0;a<A.length;a++){const i=A[a].stop;if(i!==null){const c=J(i,e);c>s?r.push(c):r.push(s),s=c}else r.push(null)}let o=null;for(let a=0;a<r.length;a++){const i=r[a];if(i===null)o===null&&(o=a);else if(o!==null){const c=a-o,u=(i-r[o-1])/(c+1);for(let h=1;h<=c;h++)r[o+h-1]=u*h;o=null}}return A.map(({color:a},i)=>({color:a,stop:Math.max(Math.min(1,r[i]/e),0)}))},UU=(A,e,t)=>{const n=e/2,r=t/2,s=J(A[0],e)-n,o=r-J(A[1],t);return(Math.atan2(o,s)+Math.PI*2)%(Math.PI*2)},vu=(A,e,t)=>{const n=typeof A=="number"?A:UU(A,e,t),r=Math.abs(e*Math.sin(n))+Math.abs(t*Math.cos(n)),s=e/2,o=t/2,a=r/2,i=Math.sin(n-Math.PI/2)*a,c=Math.cos(n-Math.PI/2)*a;return[r,s-c,s+c,o-i,o+i]},Ve=(A,e)=>Math.sqrt(A*A+e*e),_u=(A,e,t,n,r)=>[[0,0],[0,e],[A,0],[A,e]].reduce((s,o)=>{const[a,i]=o,c=Ve(t-a,n-i);return(r?c<s.optimumDistance:c>s.optimumDistance)?{optimumCorner:o,optimumDistance:c}:s},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner,EU=(A,e,t,n,r)=>{let s=0,o=0;switch(A.size){case 0:A.shape===0?s=o=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===1&&(s=Math.min(Math.abs(e),Math.abs(e-n)),o=Math.min(Math.abs(t),Math.abs(t-r)));break;case 2:if(A.shape===0)s=o=Math.min(Ve(e,t),Ve(e,t-r),Ve(e-n,t),Ve(e-n,t-r));else if(A.shape===1){const a=Math.min(Math.abs(t),Math.abs(t-r))/Math.min(Math.abs(e),Math.abs(e-n)),[i,c]=_u(n,r,e,t,!0);s=Ve(i-e,(c-t)/a),o=a*s}break;case 1:A.shape===0?s=o=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===1&&(s=Math.max(Math.abs(e),Math.abs(e-n)),o=Math.max(Math.abs(t),Math.abs(t-r)));break;case 3:if(A.shape===0)s=o=Math.max(Ve(e,t),Ve(e,t-r),Ve(e-n,t),Ve(e-n,t-r));else if(A.shape===1){const a=Math.max(Math.abs(t),Math.abs(t-r))/Math.max(Math.abs(e),Math.abs(e-n)),[i,c]=_u(n,r,e,t,!1);s=Ve(i-e,(c-t)/a),o=a*s}break}return Array.isArray(A.size)&&(s=J(A.size[0],n),o=A.size.length===2?J(A.size[1],r):s),[s,o]},ch=(A,e)=>{let t=Ie(180);const n=[];return At(e).forEach((r,s)=>{if(s===0){const a=r[0];if(a.type===20&&a.value==="to"){t=Wp(r);return}else if(Xp(a)){t=wr.parse(A,a);return}}const o=Ci(A,r);n.push(o)}),{angle:t,stops:n,type:1}},io=(A,e)=>{let t=Ie(180);const n=[];return At(e).forEach((r,s)=>{if(s===0){const a=r[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){t=Wp(r);return}else if(Xp(a)){t=(wr.parse(A,a)+Ie(270))%Ie(360);return}}const o=Ci(A,r);n.push(o)}),{angle:t,stops:n,type:1}},kU=(A,e)=>{const t=Ie(180),n=[];let r=1;const s=0,o=3,a=[];return At(e).forEach((i,c)=>{const u=i[0];if(c===0){if(j(u)&&u.value==="linear"){r=1;return}else if(j(u)&&u.value==="radial"){r=2;return}}if(u.type===18){if(u.name==="from"){const h=Gt.parse(A,u.values[0]);n.push({stop:DA,color:h})}else if(u.name==="to"){const h=Gt.parse(A,u.values[0]);n.push({stop:Ye,color:h})}else if(u.name==="color-stop"){const h=u.values.filter(ZA);if(h.length===2){const f=Gt.parse(A,h[1]),g=h[0];GA(g)&&n.push({stop:{type:16,number:g.number*100,flags:g.flags},color:f})}}}}),r===1?{angle:(t+Ie(180))%Ie(360),stops:n,type:r}:{size:o,shape:s,stops:n,position:a,type:r}},lh="closest-side",uh="farthest-side",dh="closest-corner",ph="farthest-corner",hh="circle",fh="ellipse",gh="cover",Bh="contain",FU=(A,e)=>{let t=0,n=3;const r=[],s=[];return At(e).forEach((o,a)=>{let i=!0;if(a===0){let c=!1;i=o.reduce((u,h)=>{if(c)if(j(h))switch(h.value){case"center":return s.push(Ft),u;case"top":case"left":return s.push(DA),u;case"right":case"bottom":return s.push(Ye),u}else(iA(h)||Wt(h))&&s.push(h);else if(j(h))switch(h.value){case hh:return t=0,!1;case fh:return t=1,!1;case"at":return c=!0,!1;case lh:return n=0,!1;case gh:case uh:return n=1,!1;case Bh:case dh:return n=2,!1;case ph:return n=3,!1}else if(Wt(h)||iA(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return u},i)}if(i){const c=Ci(A,o);r.push(c)}}),{size:n,shape:t,stops:r,position:s,type:2}},ao=(A,e)=>{let t=0,n=3;const r=[],s=[];return At(e).forEach((o,a)=>{let i=!0;if(a===0?i=o.reduce((c,u)=>{if(j(u))switch(u.value){case"center":return s.push(Ft),!1;case"top":case"left":return s.push(DA),!1;case"right":case"bottom":return s.push(Ye),!1}else if(iA(u)||Wt(u))return s.push(u),!1;return c},i):a===1&&(i=o.reduce((c,u)=>{if(j(u))switch(u.value){case hh:return t=0,!1;case fh:return t=1,!1;case Bh:case lh:return n=0,!1;case uh:return n=1,!1;case dh:return n=2,!1;case gh:case ph:return n=3,!1}else if(Wt(u)||iA(u))return Array.isArray(n)||(n=[]),n.push(u),!1;return c},i)),i){const c=Ci(A,o);r.push(c)}}),{size:n,shape:t,stops:r,position:s,type:2}},Dr=(A,e)=>$(k({},ch(A,e)),{type:3}),vU=A=>A.type===1,_U=A=>A.type===2,xU=A=>A.type===3,bi={name:"image",parse:(A,e)=>{if(e.type===22){const t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(e.type===18){const t=mh[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported image function "${e.name}"`);return t(A,e.values)}throw new Error(`Unsupported image type ${e.type}`)}};function wh(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!mh[A.name])}const mh={"linear-gradient":ch,"-moz-linear-gradient":io,"-ms-linear-gradient":io,"-o-linear-gradient":io,"-webkit-linear-gradient":io,"radial-gradient":FU,"-moz-radial-gradient":ao,"-ms-radial-gradient":ao,"-o-radial-gradient":ao,"-webkit-radial-gradient":ao,"-webkit-gradient":kU,"repeating-linear-gradient":Dr,"-webkit-repeating-linear-gradient":Dr,"-moz-repeating-linear-gradient":Dr,"-ms-repeating-linear-gradient":Dr,"-o-repeating-linear-gradient":Dr},SU={name:"background-image",initialValue:"none",type:1,prefix:!1,skipCache:!0,parse:(A,e)=>{if(e.length===0)return[];const t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(n=>ZA(n)&&wh(n)).map(n=>bi.parse(A,n))}},IU={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:(A,e)=>e.map(t=>{if(j(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})},TU={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:(A,e)=>At(e).map(t=>t.map(Np).filter(n=>n!==null)).map($p)},HU={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:(A,e)=>At(e).map(t=>t.filter(j).map(n=>n.value).join(" ")).map(LU)},LU=A=>{switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},DU={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:(A,e)=>At(e).map(t=>t.map(n=>RU(n)?n:Np(n)).filter(n=>n!==null))},RU=A=>j(A)||iA(A),Qi=A=>({name:`border-${A}-color`,initialValue:"transparent",prefix:!1,type:3,format:"color"}),OU=Qi("top"),PU=Qi("right"),MU=Qi("bottom"),KU=Qi("left"),yi=A=>({name:`border-${A}-radius`,initialValue:"0 0",prefix:!1,type:1,parse:(e,t)=>$p(t.filter(iA))}),NU=yi("top-left"),$U=yi("top-right"),zU=yi("bottom-right"),VU=yi("bottom-left"),Ui=A=>({name:`border-${A}-style`,initialValue:"solid",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}),GU=Ui("top"),ZU=Ui("right"),XU=Ui("bottom"),WU=Ui("left"),Ei=A=>({name:`border-${A}-width`,initialValue:"0",type:0,prefix:!1,parse:(e,t)=>gt(t)?t.number:0}),JU=Ei("top"),jU=Ei("right"),YU=Ei("bottom"),qU=Ei("left"),Za={type:0},Xa=A=>{const[e]=A;return e?j(e)?e.value==="farthest-side"?"farthest-side":"closest-side":iA(e)?e:"closest-side":"closest-side"},Ch=A=>{let e=null,t=null;for(const n of A)if(j(n))switch(n.value){case"left":e=DA;break;case"right":e=Ye;break;case"top":t=DA;break;case"bottom":t=Ye;break;case"center":e===null?e=Ft:t===null&&(t=Ft);break}else iA(n)&&(e===null?e=n:t===null&&(t=n));return{cx:e!=null?e:Ft,cy:t!=null?t:Ft}},AE=A=>{var r,s,o,a;const e=[];for(const i of A)if(i.type!==31){if(j(i)&&i.value==="round")break;iA(i)&&e.push(i)}const t=(r=e[0])!=null?r:DA,n=(s=e[1])!=null?s:t;return{type:1,top:t,right:n,bottom:(o=e[2])!=null?o:t,left:(a=e[3])!=null?a:n}},eE=A=>{const e=A.filter(Es),t=e.findIndex(s=>Bs(s,"at")),n=t===-1?e:e.slice(0,t),r=t===-1?[]:e.slice(t+1);return k({type:2,radius:Xa(n)},Ch(r))},tE=A=>{const e=A.filter(Es),t=e.findIndex(s=>Bs(s,"at")),n=t===-1?e:e.slice(0,t),r=t===-1?[]:e.slice(t+1);return k({type:3,rx:Xa(n.slice(0,1)),ry:Xa(n.slice(1,2))},Ch(r))},nE=A=>{const e=At(A),t=[];for(const n of e){if(n.length===1&&j(n[0]))continue;const r=n.filter(iA);r.length>=2&&t.push([r[0],r[1]])}return{type:4,points:t}},rE=A=>{const e=A.find(t=>t.type===0);return e?{type:5,d:e.value}:Za},sE={name:"clip-path",initialValue:"none",prefix:!1,type:0,parse:(A,e)=>{if(j(e)&&e.value==="none")return Za;if(e.type===18)switch(e.name){case"inset":return AE(e.values);case"circle":return eE(e.values);case"ellipse":return tE(e.values);case"polygon":return nE(e.values);case"path":return rE(e.values)}return Za}},oE={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},iE={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"rtl":return 1;default:return 0}}},aE={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:(A,e)=>e.filter(j).reduce((t,n)=>t|cE(n.value),0)},cE=A=>{switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},xu={name:"float",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},lE={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:(A,e)=>e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0},uE={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"strict":return"strict";default:return"normal"}}},dE={name:"line-height",initialValue:"normal",prefix:!1,type:4},Wa=(A,e)=>j(A)&&A.value==="normal"?1.2*e:A.type===17?e*A.number:iA(A)?J(A,e):e,pE={name:"list-style-image",initialValue:"none",type:0,prefix:!1,skipCache:!0,parse:(A,e)=>e.type===20&&e.value==="none"?null:bi.parse(A,e)},hE={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"inside":return 0;default:return 1}}},ki=A=>({name:`margin-${A}`,initialValue:"0",prefix:!1,type:4}),fE=ki("top"),gE=ki("right"),BE=ki("bottom"),wE=ki("left"),Su={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:(A,e)=>e.filter(j).map(t=>{switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})},mE={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"break-word":return"break-word";default:return"normal"}}},Fi=A=>({name:`padding-${A}`,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}),CE=Fi("top"),bE=Fi("right"),QE=Fi("bottom"),yE=Fi("left"),UE={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},EE={name:"position",initialValue:"static",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},kE={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.length===1&&Bs(e[0],"none")?[]:At(e).map(t=>{const n={color:pt.TRANSPARENT,offsetX:DA,offsetY:DA,blur:DA};let r=0;for(let s=0;s<t.length;s++){const o=t[s];Wt(o)?(r===0?n.offsetX=o:r===1?n.offsetY=o:n.blur=o,r++):n.color=Gt.parse(A,o)}return n})},FE={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},vE={name:"transform",initialValue:"none",prefix:!0,type:0,parse:(A,e)=>{if(e.type===20&&e.value==="none")return null;if(e.type===18){const t=IE[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported transform function "${e.name}"`);return t(A,e.values)}return null}},_E=(A,e)=>{const t=e.filter(n=>n.type===17).map(n=>n.number);return t.length===6?t:null},xE=(A,e)=>{const t=e.filter(c=>c.type===17).map(c=>c.number),[n,r,{},{},s,o,{},{},{},{},{},{},a,i]=t;return t.length===16?[n,r,s,o,a,i]:null},SE=(A,e)=>{if(e.length!==1)return null;const t=e[0];let n=0;if(t.type===17&&t.number===0)n=0;else if(t.type===15)n=wr.parse(A,t);else return null;const r=Math.cos(n),s=Math.sin(n);return[r,s,-s,r,0,0]},IE={matrix:_E,matrix3d:xE,rotate:SE},Iu={type:16,number:50,flags:4},TE=[Iu,Iu],HE={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:(A,e)=>{const t=e.filter(iA);return t.length!==2?TE:[t[0],t[1]]}},LE={name:"rotate",initialValue:"none",prefix:!1,type:0,parse:(A,e)=>e.type===20&&e.value==="none"?null:e.type===17&&e.number===0?0:e.type===15?wr.parse(A,e)*180/Math.PI:null},DE={name:"visibility",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}},RE={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"break-all":return"break-all";case"keep-all":return"keep-all";default:return"normal"}}},OE={name:"white-space",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"pre":return"pre";case"nowrap":return"nowrap";case"pre-wrap":return"pre-wrap";case"pre-line":return"pre-line";default:return"normal"}}},Yo=A=>A!==0,Aa=A=>A===3||A===4,PE={name:"writing-mode",initialValue:"horizontal-tb",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"vertical-rl":return 1;case"vertical-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4;default:return 0}}},ME={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>{if(e.type===20)return{auto:!0,order:0};if(GA(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},bh={name:"time",parse:(A,e)=>{if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},KE={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:(A,e)=>GA(e)?e.number:1},Tu={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Hu={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:(A,e)=>e.filter(j).map(t=>{switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(t=>t!==0)},NE={name:"text-decoration-style",initialValue:"solid",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"double":return 1;case"dotted":return 2;case"dashed":return 3;case"wavy":return 4;default:return 0}}},$E={name:"text-decoration-thickness",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>{if(j(e))switch(e.value){case"auto":return"auto";case"from-font":return"from-font"}return gt(e)?e.number:"auto"}},zE={name:"text-underline-offset",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>j(e)&&e.value==="auto"?"auto":gt(e)?e.number:"auto"},VE={name:"font-family",initialValue:"",prefix:!1,type:1,parse:(A,e)=>{const t=[],n=[],r=[];let s=!1;return e.forEach(o=>{switch(o.type){case 20:t.push(o.value);break;case 0:s=!0,t.push(o.value);break;case 17:t.push(o.number.toString());break;case 4:n.push(t.join(" ")),r.push(s),s=!1,t.length=0;break}}),t.length&&(n.push(t.join(" ")),r.push(s)),n.map((o,a)=>r[a]||o.indexOf(" ")!==-1?`'${o.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\n/g,"\\a ").replace(/\r/g,"\\d ").replace(/\f/g,"\\c ")}'`:o)}},GE={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ZE={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:(A,e)=>{if(GA(e))return e.number;if(j(e))switch(e.value){case"bold":return 700;default:return 400}return 400}},XE={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.filter(j).map(t=>t.value)},WE={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},JE={name:"content",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>{if(e.length===0)return[];const t=e[0];return t.type===20&&t.value==="none"?[]:e}},Qh=(A,e)=>{const t=[],n=A.filter(Es);for(let r=0;r<n.length;r++){const s=n[r],o=n[r+1];if(s.type===20){const a=o&&GA(o)?o.number:e;t.push([s.value,a])}}return t},jE={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>{if(e.length===0)return null;const t=e[0];return t.type===20&&t.value==="none"?null:Qh(e,1).map(([n,r])=>({counter:n,increment:r}))}},YE={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>e.length===0?[]:Qh(e,0).filter(([t])=>t!=="none").map(([t,n])=>({counter:t,reset:n}))},qE={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:(A,e)=>e.filter(gt).map(t=>bh.parse(A,t))},Ak={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>{if(e.length===0)return null;const t=e[0];if(t.type===20&&t.value==="none")return null;const n=[],r=e.filter(l0);if(r.length%2!==0)return null;for(let s=0;s<r.length;s+=2){const o=r[s].value,a=r[s+1].value;n.push({open:o,close:a})}return n}},Lu=(A,e,t)=>{if(!A)return"";const n=A[Math.min(e,A.length-1)];return n?t?n.open:n.close:""},ek={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.length===1&&Bs(e[0],"none")?[]:At(e).map(t=>{const n={color:255,offsetX:DA,offsetY:DA,blur:DA,spread:DA,inset:!1};let r=0;for(let s=0;s<t.length;s++){const o=t[s];Bs(o,"inset")?n.inset=!0:Wt(o)?(r===0?n.offsetX=o:r===1?n.offsetY=o:r===2?n.blur=o:n.spread=o,r++):n.color=Gt.parse(A,o)}return n})},tk={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:(A,e)=>{const t=[0,1,2],n=[];return e.filter(j).forEach(r=>{switch(r.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),t.forEach(r=>{n.indexOf(r)===-1&&n.push(r)}),n}},nk={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},rk={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:(A,e)=>gt(e)?e.number:0},sk={name:"-webkit-line-clamp",initialValue:"none",prefix:!0,type:0,parse:(A,e)=>e.type===20&&e.value==="none"?0:e.type===17?Math.max(0,Math.floor(e.number)):0},ok={name:"object-fit",initialValue:"fill",prefix:!1,type:1,parse:(A,e)=>e.filter(j).reduce((t,n)=>t|ik(n.value),0)},ik=A=>{switch(A){case"contain":return 2;case"cover":return 4;case"none":return 8;case"scale-down":return 16}return 0},ak={name:"text-overflow",initialValue:"clip",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"ellipsis":return 1;default:return 0}}},ck={name:"image-rendering",initialValue:"auto",prefix:!1,type:2,parse:(A,e)=>{switch(e.toLowerCase()){case"crisp-edges":case"-webkit-crisp-edges":case"-moz-crisp-edges":return 1;case"pixelated":case"-webkit-optimize-contrast":return 2;case"smooth":case"high-quality":return 3;default:return 0}}},VA={NORMAL:"normal",MULTIPLY:"multiply",SCREEN:"screen",OVERLAY:"overlay",DARKEN:"darken",LIGHTEN:"lighten",COLOR_DODGE:"color-dodge",COLOR_BURN:"color-burn",HARD_LIGHT:"hard-light",SOFT_LIGHT:"soft-light",DIFFERENCE:"difference",EXCLUSION:"exclusion",HUE:"hue",SATURATION:"saturation",COLOR:"color",LUMINOSITY:"luminosity"},lk=new Set(Object.values(VA)),uk={name:"mix-blend-mode",initialValue:"normal",type:2,prefix:!1,parse:(A,e)=>lk.has(e)?e:VA.NORMAL},dk={name:"filter",initialValue:"none",prefix:!1,type:1,parse:(A,e)=>{if(e.length===1&&e[0].type===20&&e[0].value==="none")return null;const t=[];for(const n of e)if(n.type===18){const r=n,s=pk(r.values);switch(r.name){case"blur":t.push(`blur(${s}px)`);break;case"brightness":case"contrast":case"invert":case"opacity":case"saturate":case"sepia":t.push(`${r.name}(${s})`);break;case"grayscale":t.push(`grayscale(${s})`);break;case"hue-rotate":t.push(`hue-rotate(${s}deg)`);break;case"drop-shadow":t.push(`drop-shadow(${s})`);break}}return t.length>0?t.join(" "):null}},pk=A=>{const e=[];for(const t of A)t.type!==31&&(t.type===15?e.push(`${t.number}${t.unit}`):t.type===17?e.push(`${t.number}`):t.type===16?e.push(`${t.number}%`):t.type===20?e.push(t.value):t.type===5&&e.push(`#${t.value}`));return e.join(" ")},hk={name:"font-variant-ligatures",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"none":return 1;case"common-ligatures":return 2;case"no-common-ligatures":return 3;case"discretionary-ligatures":return 4;case"no-discretionary-ligatures":return 5;case"historical-ligatures":return 6;case"no-historical-ligatures":return 7;case"contextual":return 8;case"no-contextual":return 9;default:return 0}}},fk={name:"zoom",initialValue:"1",type:0,prefix:!1,parse:(A,e)=>e.type===16?Math.max(0,e.number/100):e.type===17?Math.max(0,e.number):1},gk={name:"object-position",initialValue:"50% 50%",prefix:!1,type:1,parse:(A,e)=>{const t=[];let n=0;for(;n<e.length&&t.length<2;){const r=e[n];if(j(r))switch(r.value){case"left":case"top":t.push(DA);break;case"center":t.push(Ft);break;case"right":case"bottom":t.push(Ye);break}else iA(r)&&t.push(r);n++}for(;t.length<2;)t.push(Ft);return[t[0],t[1]]}},Bk=new Set(Object.values({NORMAL:"normal",MULTIPLY:"multiply",SCREEN:"screen",OVERLAY:"overlay",DARKEN:"darken",LIGHTEN:"lighten",COLOR_DODGE:"color-dodge",COLOR_BURN:"color-burn",HARD_LIGHT:"hard-light",SOFT_LIGHT:"soft-light",DIFFERENCE:"difference",EXCLUSION:"exclusion",HUE:"hue",SATURATION:"saturation",COLOR:"color",LUMINOSITY:"luminosity"})),wk={name:"background-blend-mode",initialValue:"normal",prefix:!1,type:1,parse:(A,e)=>{const t=[],n=e.filter(ZA);for(const r of n)j(r)&&Bk.has(r.value)&&t.push(r.value);return t.length>0?t:["normal"]}},mk={name:"border-image-source",initialValue:"none",prefix:!1,type:1,skipCache:!0,parse:(A,e)=>{if(e.length===0)return null;const t=e.filter(n=>ZA(n)&&wh(n));return t.length===0?null:bi.parse(A,t[0])}},Ck=A=>{const e=[...A];return e.length===1?e.push(e[0],e[0],e[0]):e.length===2?e.push(e[0],e[1]):e.length===3&&e.push(e[1]),e.slice(0,4)},bk={name:"border-image-slice",initialValue:"100%",prefix:!1,type:1,parse:(A,e)=>{const t=e.filter(Es),n=[];let r=!1,s="percent";for(const u of t){if(j(u)&&u.value==="fill"){r=!0;continue}u.type===17?(n.push(u.number),s="number"):u.type===16&&(n.push(u.number),s="percent")}const[o,a,i,c]=Ck(n.length>0?n:[100]);return{top:o,right:a,bottom:i,left:c,fill:r,unit:s}}},Qk=A=>{switch(A){case"repeat":return 1;case"round":return 2;case"space":return 3;default:return 0}},yk={name:"border-image-repeat",initialValue:"stretch",prefix:!1,type:1,parse:(A,e)=>{var s,o;const t=e.filter(Es),n=[];for(const a of t)j(a)&&n.push(Qk(a.value));const r=(s=n[0])!=null?s:0;return{horizontal:r,vertical:(o=n[1])!=null?o:r}}},Uk={name:"box-decoration-break",initialValue:"slice",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"clone":return 1;default:return 0}}},Ek=1e4;var kk=class{constructor(A){this.styles=A}get topColor(){return this.styles.borderTopColor}get rightColor(){return this.styles.borderRightColor}get bottomColor(){return this.styles.borderBottomColor}get leftColor(){return this.styles.borderLeftColor}get topStyle(){return this.styles.borderTopStyle}get rightStyle(){return this.styles.borderRightStyle}get bottomStyle(){return this.styles.borderBottomStyle}get leftStyle(){return this.styles.borderLeftStyle}get topWidth(){return this.styles.borderTopWidth}get rightWidth(){return this.styles.borderRightWidth}get bottomWidth(){return this.styles.borderBottomWidth}get leftWidth(){return this.styles.borderLeftWidth}get topLeftRadius(){return this.styles.borderTopLeftRadius}get topRightRadius(){return this.styles.borderTopRightRadius}get bottomRightRadius(){return this.styles.borderBottomRightRadius}get bottomLeftRadius(){return this.styles.borderBottomLeftRadius}get imageSource(){return this.styles.borderImageSource}get imageSlice(){return this.styles.borderImageSlice}get imageRepeat(){return this.styles.borderImageRepeat}get boxShadow(){return this.styles.boxShadow}},Fk=class{constructor(A){this.styles=A}get color(){return this.styles.backgroundColor}get image(){return this.styles.backgroundImage}get clip(){return this.styles.backgroundClip}get origin(){return this.styles.backgroundOrigin}get position(){return this.styles.backgroundPosition}get repeat(){return this.styles.backgroundRepeat}get size(){return this.styles.backgroundSize}get blendMode(){return this.styles.backgroundBlendMode}},vk=class{constructor(A){this.styles=A}get family(){return this.styles.fontFamily}get size(){return this.styles.fontSize}get style(){return this.styles.fontStyle}get variant(){return this.styles.fontVariant}get weight(){return this.styles.fontWeight}get ligatures(){return this.styles.fontVariantLigatures}get color(){return this.styles.color}get letterSpacing(){return this.styles.letterSpacing}get lineHeight(){return this.styles.lineHeight}get textAlign(){return this.styles.textAlign}get textTransform(){return this.styles.textTransform}get textOverflow(){return this.styles.textOverflow}get textShadow(){return this.styles.textShadow}get textDecorationColor(){return this.styles.textDecorationColor}get textDecorationLine(){return this.styles.textDecorationLine}get textDecorationStyle(){return this.styles.textDecorationStyle}get textDecorationThickness(){return this.styles.textDecorationThickness}get textUnderlineOffset(){return this.styles.textUnderlineOffset}get wordBreak(){return this.styles.wordBreak}get lineBreak(){return this.styles.lineBreak}get overflowWrap(){return this.styles.overflowWrap}get writingMode(){return this.styles.writingMode}get direction(){return this.styles.direction}get webkitTextStrokeColor(){return this.styles.webkitTextStrokeColor}get webkitTextStrokeWidth(){return this.styles.webkitTextStrokeWidth}get webkitLineClamp(){return this.styles.webkitLineClamp}get paintOrder(){return this.styles.paintOrder}},_k=class{constructor(A){this.styles=A}get display(){return this.styles.display}get position(){return this.styles.position}get float(){return this.styles.float}get zIndex(){return this.styles.zIndex}get marginTop(){return this.styles.marginTop}get marginRight(){return this.styles.marginRight}get marginBottom(){return this.styles.marginBottom}get marginLeft(){return this.styles.marginLeft}get paddingTop(){return this.styles.paddingTop}get paddingRight(){return this.styles.paddingRight}get paddingBottom(){return this.styles.paddingBottom}get paddingLeft(){return this.styles.paddingLeft}get overflowX(){return this.styles.overflowX}get overflowY(){return this.styles.overflowY}get opacity(){return this.styles.opacity}get visibility(){return this.styles.visibility}get transform(){return this.styles.transform}get transformOrigin(){return this.styles.transformOrigin}get rotate(){return this.styles.rotate}get zoom(){return this.styles.zoom}get clipPath(){return this.styles.clipPath}get mixBlendMode(){return this.styles.mixBlendMode}get filter(){return this.styles.filter}get imageRendering(){return this.styles.imageRendering}get objectFit(){return this.styles.objectFit}get objectPosition(){return this.styles.objectPosition}get boxDecorationBreak(){return this.styles.boxDecorationBreak}get listStyleImage(){return this.styles.listStyleImage}get listStylePosition(){return this.styles.listStylePosition}get listStyleType(){return this.styles.listStyleType}get animationDuration(){return this.styles.animationDuration}isVisible(){return this.styles.isVisible()}isTransparent(){return this.styles.isTransparent()}isTransformed(){return this.styles.isTransformed()}isPositioned(){return this.styles.isPositioned()}isPositionedWithZIndex(){return this.styles.isPositionedWithZIndex()}isFloating(){return this.styles.isFloating()}isInlineLevel(){return this.styles.isInlineLevel()}},Qn,xk=(Qn=class{get border(){var e;return(e=this._border)!=null?e:this._border=new kk(this)}get background(){var e;return(e=this._background)!=null?e:this._background=new Fk(this)}get font(){var e;return(e=this._font)!=null?e:this._font=new vk(this)}get layout(){var e;return(e=this._layout)!=null?e:this._layout=new _k(this)}constructor(e,t){var s,o;const n=Qn.standardProps;if(t.display==="none"){this.display=0;for(const[i,c]of n)i!=="display"&&(this[i]=pe(e,c,void 0));this.float=pe(e,xu,void 0),this.textDecorationColor=pe(e,Tu,void 0),this.textDecorationLine=pe(e,Hu,void 0);const a=pe(e,Su,void 0);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0];return}for(const[a,i,c]of n)this[a]=pe(e,i,t[c]);this.float=pe(e,xu,t.cssFloat),this.textDecorationColor=pe(e,Tu,(s=t.textDecorationColor)!=null?s:t.color),this.textDecorationLine=pe(e,Hu,(o=t.textDecorationLine)!=null?o:t.textDecoration);const r=pe(e,Su,t.overflow);this.overflowX=r[0],this.overflowY=r[r.length>1?1:0]}isVisible(){return this.display>0&&this.opacity>0&&this.visibility===0}isTransparent(){return vt(this.backgroundColor)}isTransformed(){return this.transform!==null||this.rotate!==null}isPositioned(){return this.position!==0}isPositionedWithZIndex(){return this.isPositioned()&&!this.zIndex.auto}isFloating(){return this.float!==0}isInlineLevel(){return qA(this.display,4)||qA(this.display,33554432)||qA(this.display,268435456)||qA(this.display,536870912)||qA(this.display,67108864)||qA(this.display,134217728)}},Qn.standardProps=[["animationDuration",qE,"animationDuration"],["backgroundClip",QU,"backgroundClip"],["backgroundColor",yU,"backgroundColor"],["backgroundImage",SU,"backgroundImage"],["backgroundOrigin",IU,"backgroundOrigin"],["backgroundPosition",TU,"backgroundPosition"],["backgroundRepeat",HU,"backgroundRepeat"],["backgroundSize",DU,"backgroundSize"],["borderTopColor",OU,"borderTopColor"],["borderRightColor",PU,"borderRightColor"],["borderBottomColor",MU,"borderBottomColor"],["borderLeftColor",KU,"borderLeftColor"],["borderTopLeftRadius",NU,"borderTopLeftRadius"],["borderTopRightRadius",$U,"borderTopRightRadius"],["borderBottomRightRadius",zU,"borderBottomRightRadius"],["borderBottomLeftRadius",VU,"borderBottomLeftRadius"],["borderTopStyle",GU,"borderTopStyle"],["borderRightStyle",ZU,"borderRightStyle"],["borderBottomStyle",XU,"borderBottomStyle"],["borderLeftStyle",WU,"borderLeftStyle"],["borderTopWidth",JU,"borderTopWidth"],["borderRightWidth",jU,"borderRightWidth"],["borderBottomWidth",YU,"borderBottomWidth"],["borderLeftWidth",qU,"borderLeftWidth"],["boxShadow",ek,"boxShadow"],["clipPath",sE,"clipPath"],["color",oE,"color"],["direction",iE,"direction"],["display",aE,"display"],["fontFamily",VE,"fontFamily"],["fontSize",GE,"fontSize"],["fontStyle",WE,"fontStyle"],["fontVariant",XE,"fontVariant"],["fontWeight",ZE,"fontWeight"],["letterSpacing",lE,"letterSpacing"],["lineBreak",uE,"lineBreak"],["lineHeight",dE,"lineHeight"],["listStyleImage",pE,"listStyleImage"],["listStylePosition",hE,"listStylePosition"],["listStyleType",Ga,"listStyleType"],["marginTop",fE,"marginTop"],["marginRight",gE,"marginRight"],["marginBottom",BE,"marginBottom"],["marginLeft",wE,"marginLeft"],["opacity",KE,"opacity"],["overflowWrap",mE,"overflowWrap"],["paddingTop",CE,"paddingTop"],["paddingRight",bE,"paddingRight"],["paddingBottom",QE,"paddingBottom"],["paddingLeft",yE,"paddingLeft"],["paintOrder",tk,"paintOrder"],["position",EE,"position"],["textAlign",UE,"textAlign"],["textDecorationStyle",NE,"textDecorationStyle"],["textDecorationThickness",$E,"textDecorationThickness"],["textUnderlineOffset",zE,"textUnderlineOffset"],["textShadow",kE,"textShadow"],["textTransform",FE,"textTransform"],["textOverflow",ak,"textOverflow"],["transform",vE,"transform"],["transformOrigin",HE,"transformOrigin"],["rotate",LE,"rotate"],["visibility",DE,"visibility"],["webkitTextStrokeColor",nk,"webkitTextStrokeColor"],["webkitTextStrokeWidth",rk,"webkitTextStrokeWidth"],["webkitLineClamp",sk,"webkitLineClamp"],["wordBreak",RE,"wordBreak"],["whiteSpace",OE,"whiteSpace"],["writingMode",PE,"writingMode"],["zIndex",ME,"zIndex"],["objectFit",ok,"objectFit"],["imageRendering",ck,"imageRendering"],["mixBlendMode",uk,"mixBlendMode"],["filter",dk,"filter"],["fontVariantLigatures",hk,"fontVariantLigatures"],["zoom",fk,"zoom"],["objectPosition",gk,"objectPosition"],["backgroundBlendMode",wk,"backgroundBlendMode"],["borderImageSource",mk,"borderImageSource"],["borderImageSlice",bk,"borderImageSlice"],["borderImageRepeat",yk,"borderImageRepeat"],["boxDecorationBreak",Uk,"boxDecorationBreak"]],Qn),Sk=class{constructor(A,e){this.content=pe(A,JE,e.content),this.quotes=pe(A,Ak,e.quotes)}},Du=class{constructor(A,e){this.counterIncrement=pe(A,jE,e.counterIncrement),this.counterReset=pe(A,YE,e.counterReset)}};const Ru=new Map,pe=(A,e,t)=>{let n=t!==null&&typeof t!="undefined"?t.toString():e.initialValue;n.trim()===""&&(n=e.initialValue);let r=Ru.get(e);if(r){const i=r.get(n);if(i!==void 0)return r.delete(n),r.set(n,i),i}const s=Na.get();s.write(n);const o=new Pp(s.read());Na.release(s);const a=(()=>{switch(e.type){case 2:{const i=o.parseComponentValue();return e.parse(A,j(i)?i.value:e.initialValue)}case 0:return e.parse(A,o.parseComponentValue());case 1:return e.parse(A,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(e.format){case"angle":return wr.parse(A,o.parseComponentValue());case"color":return Gt.parse(A,o.parseComponentValue());case"image":return bi.parse(A,o.parseComponentValue());case"length":{const i=o.parseComponentValue();return Wt(i)?i:DA}case"length-percentage":{const i=o.parseComponentValue();return iA(i)?i:DA}case"time":return bh.parse(A,o.parseComponentValue())}}})();if(r||(r=new Map,Ru.set(e,r)),!(e.skipCache||e.type===3&&e.format==="image")){if(r.size>=200){const i=r.keys().next().value;r.delete(i)}r.set(n,a)}return a},Ik="data-html2canvas-debug",Tk=A=>{if(typeof A.getAttribute!="function")return 0;switch(A.getAttribute(Ik)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ja=(A,e)=>{const t=Tk(A);return t===1||e===t},Hk="data-html2canvas-ignore";var Lk=class{constructor(A,e,t){this.cloneNodeFn=A,this.options=e,this.context=t}appendChildNode(A,e,t){this.safeAppendClonedChild(A,e,t)}cloneChildNodes(A,e,t){A.shadowRoot&&e.shadowRoot?(this.cloneShadowDOMChildren(A.shadowRoot,e.shadowRoot,t),this.cloneLightDOMChildren(A,e,t)):A.shadowRoot&&!e.shadowRoot?this.cloneShadowDOMAsLightDOM(A.shadowRoot,e,t):this.cloneLightDOMChildren(A,e,t)}shouldCloneChild(A){return!pn(A)||!lU(A)&&!A.hasAttribute("data-html2canvas-ignore")&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A))}shouldCloneStyleElement(A){return!this.options.copyStyles||!pn(A)||!ih(A)}safeAppendClonedChild(A,e,t){this.shouldCloneChild(e)&&this.shouldCloneStyleElement(e)&&A.appendChild(this.cloneNodeFn(e,t))}cloneAssignedNodes(A,e,t){A.forEach(n=>{this.safeAppendClonedChild(e,n,t)})}cloneSlotFallbackContent(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)this.safeAppendClonedChild(e,n,t)}cloneSlotElement(A,e,t){if(!Yr(A))return;const n=A;if(typeof n.assignedNodes!="function"){this.context.logger.warn("HTMLSlotElement.assignedNodes is not available",A),this.cloneSlotFallbackContent(A,e,t);return}const r=n.assignedNodes();if(!r||!Array.isArray(r)){this.context.logger.warn("assignedNodes() did not return a valid array",A),this.cloneSlotFallbackContent(A,e,t);return}r.length>0?this.cloneAssignedNodes(r,e,t):this.cloneSlotFallbackContent(A,e,t)}cloneShadowDOMChildren(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)pn(n)&&Yr(n)?this.cloneSlotElement(n,e,t):this.safeAppendClonedChild(e,n,t)}cloneLightDOMChildren(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)this.appendChildNode(e,n,t)}cloneSlotElementAsLightDOM(A,e,t){if(!Yr(A))return;const n=A;if(typeof n.assignedNodes!="function"){for(let s=A.firstChild;s;s=s.nextSibling)this.appendChildNode(e,s,t);return}const r=n.assignedNodes();if(r&&Array.isArray(r)&&r.length>0)r.forEach(s=>this.appendChildNode(e,s,t));else for(let s=A.firstChild;s;s=s.nextSibling)this.appendChildNode(e,s,t)}cloneShadowDOMAsLightDOM(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)pn(n)&&Yr(n)?this.cloneSlotElementAsLightDOM(n,e,t):this.appendChildNode(e,n,t)}};const Dk=A=>{let e=A;for(;e;){if(e.parentNode&&e.parentNode.host)return e.parentNode;const t=e.getRootNode();if(t&&t!==e.ownerDocument&&t.host)return t;e=e.parentNode}return null};var ea=class{constructor(A,e,t){var n;if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new fU,this.quoteDepth=0,this.slotCloner=new Lk((r,s)=>this.cloneNode(r,s),{ignoreElements:t.ignoreElements,copyStyles:(n=t.copyStyles)!=null?n:!0},A),!e.ownerDocument)throw new Error("Cloned element does not have an owner document");if(!this.options.iframeContainer){const r=Dk(e);r&&(this.options.iframeContainer=r)}this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}toIFrame(A,e){var h,f;const t=Rk(A,e,this.options.iframeContainer);if(!t.contentWindow)throw new Error("Unable to find iframe window");const n=A.defaultView.pageXOffset,r=A.defaultView.pageYOffset,s=t.contentWindow,o=s.document,a=Mk(t).then(()=>I(this,null,function*(){this.scrolledElements.forEach(zk),s&&s.scrollTo(e.left,e.top);const g=this.options.onclone,m=this.clonedReferenceElement;if(typeof m=="undefined")throw new Error(`Error finding the ${this.referenceElement.nodeName} in the cloned document`);return o.fonts&&o.fonts.ready&&(yield o.fonts.ready),/(AppleWebKit)/g.test(navigator.userAgent)&&(yield Pk(o)),typeof g=="function"&&(yield Promise.resolve().then(()=>g(o,m))),s.scrollTo(e.left,e.top),/AppleWebKit/g.test(navigator.userAgent)&&(s.scrollY!==e.top||s.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-e.left,s.scrollY-e.top,0,0)),t})),i=A.baseURI;o.open();const c=Nk(document.doctype)+"<html></html>";try{const g=(h=this.referenceElement.ownerDocument)==null?void 0:h.defaultView,m=g&&g.trustedTypes;let b=(f=m==null?void 0:m.getPolicy)==null?void 0:f.call(m,"html2canvas-pro");!b&&m&&(b=m.createPolicy("html2canvas-pro",{createHTML:E=>E}));const U=b?b.createHTML(c):c;o.write(U)}catch(g){o.write(c)}$k(this.referenceElement.ownerDocument,n,r),o.close();const u=o.adoptNode(this.documentElement);return Wk(u,i),o.replaceChild(u,o.documentElement),a}createElementClone(A){if(Ja(A,2))debugger;if(sh(A))return this.createCanvasClone(A);if(bu(A))return this.createVideoClone(A);if(ih(A))return this.createStyleClone(A);const e=A.cloneNode(!1);return Va(e)&&(Va(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),Qu(e)&&!hn(e)?this.createCustomElementClone(A,e):e}createCustomElementClone(A,e){const t=document.createElement("div");t.className=e.className,ta(e.style,t);const n=e.attributes;for(let r=0;r<n.length;r++){const s=n[r];s.name!=="class"&&s.name!=="style"&&t.setAttribute(s.name,s.value)}if(A.shadowRoot)try{t.attachShadow({mode:"open"})}catch(r){this.context.logger.error("Failed to attach shadow root to custom element clone:",r)}return t}createStyleClone(A){try{const t=A.sheet;if(t&&t.cssRules){const n=[].slice.call(t.cssRules,0).reduce((s,o)=>o&&typeof o.cssText=="string"?s+o.cssText:s,""),r=A.cloneNode(!1);return r.textContent=n,this.options.cspNonce&&(r.nonce=this.options.cspNonce),r}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),t.name!=="SecurityError")throw t}const e=A.cloneNode(!1);return this.options.cspNonce&&(e.nonce=this.options.cspNonce),e}createCanvasClone(A){var t,n;if(this.options.inlineImages&&A.ownerDocument){const r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch(s){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}const e=A.cloneNode(!1);try{e.width=A.width,e.height=A.height;const r=A.getContext("2d"),s=e.getContext("2d",{willReadFrequently:!0});if(s)if(!this.options.allowTaint&&r)s.putImageData(r.getImageData(0,0,A.width,A.height),0,0);else{const o=(t=A.getContext("webgl2"))!=null?t:A.getContext("webgl");o&&((n=o.getContextAttributes())==null?void 0:n.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A),s.drawImage(A,0,0)}return e}catch(r){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return e}createVideoClone(A){const e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;const t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(r){this.context.logger.info("Unable to clone video as it is tainted",A)}const n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n}appendChildNode(A,e,t){this.slotCloner.appendChildNode(A,e,t)}cloneChildNodes(A,e,t){this.slotCloner.cloneChildNodes(A,e,t)}cloneNode(A,e){if(nh(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);const t=A.ownerDocument.defaultView;if(t&&pn(A)&&(ws(A)||hn(A))){const n=this.createElementClone(A);n.style.transitionProperty="none";const r=t.getComputedStyle(A),s=hU(A);this.referenceElement===A&&ws(n)&&(this.clonedReferenceElement=n),xc(n)&&Zk(n,this.options.cspNonce);const o=this.counters.parse(new Du(this.context,r));if(s){const a=t.getComputedStyle(A,":before"),i=this.resolvePseudoContent(A,n,a,0);i&&n.insertBefore(i,n.firstChild);const c=t.getComputedStyle(A,":after"),u=this.resolvePseudoContent(A,n,c,1);u&&n.appendChild(u)}return Qu(A)&&(e=!0),bu(A)||this.cloneChildNodes(A,n,e),this.counters.pop(o),(r&&(this.options.copyStyles||hn(A))&&!oh(A)||e)&&ta(r,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(Jo(A)||jo(A))&&(Jo(n)||jo(n))&&(n.value=A.value),n}return A.cloneNode(!1)}resolvePseudoContent(A,e,t,n){if(!t)return;const r=t.content,s=e.ownerDocument;if(!s||!r||r==="none"||r==="-moz-alt-content"||t.display==="none")return;this.counters.parse(new Du(this.context,t));const o=new Sk(this.context,t),a=s.createElement("html2canvaspseudoelement");ta(t,a),o.content.forEach(c=>{if(c.type===0)a.appendChild(s.createTextNode(c.value));else if(c.type===22){const u=s.createElement("img");u.src=c.value,u.style.opacity="1",a.appendChild(u)}else if(c.type===18){if(c.name==="attr"){const u=c.values.filter(j);u.length&&a.appendChild(s.createTextNode(A.getAttribute(u[0].value)||""))}else if(c.name==="counter"){const[u,h]=c.values.filter(ZA);if(u&&j(u)){const f=this.counters.getCounterValue(u.value),g=h&&j(h)?Ga.parse(this.context,h.value):3;a.appendChild(s.createTextNode(ms(f,g,!1)))}}else if(c.name==="counters"){const[u,h,f]=c.values.filter(ZA);if(u&&j(u)){const g=this.counters.getCounterValues(u.value),m=f&&j(f)?Ga.parse(this.context,f.value):3,b=h&&h.type===0?h.value:"",U=g.map(E=>ms(E,m,!1)).join(b);a.appendChild(s.createTextNode(U))}}}else if(c.type===20)switch(c.value){case"open-quote":a.appendChild(s.createTextNode(Lu(o.quotes,this.quoteDepth++,!0)));break;case"close-quote":a.appendChild(s.createTextNode(Lu(o.quotes,--this.quoteDepth,!1)));break;default:a.appendChild(s.createTextNode(c.value))}}),a.className=`${ja} ${Ya}`;const i=n===0?` ${ja}`:` ${Ya}`;return hn(e)?e.className.baseValue+=i:e.className+=i,a}static destroy(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1}};const Rk=(A,e,t)=>{const n=A.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(Hk,"true"),(t||A.body).appendChild(n),n},Ok=A=>new Promise(e=>{if(A.complete){e();return}if(!A.src){e();return}A.onload=e,A.onerror=e}),Pk=A=>Promise.all([].slice.call(A.images,0).map(Ok)),Mk=A=>new Promise((e,t)=>{const n=A.contentWindow;if(!n)return t("No window assigned for iframe");const r=n.document;n.onload=A.onload=()=>{n.onload=A.onload=null;const s=600;let o=0;const a=setInterval(()=>{o++,(r.body.childNodes.length>0&&r.readyState==="complete"||o>=s)&&(clearInterval(a),e(A))},50)}}),Kk=["all","d","content"],ta=(A,e)=>{const t=[];for(let n=A.length-1;n>=0;n--){const r=A.item(n);if(Kk.indexOf(r)===-1&&!r.startsWith("--")){const s=A.getPropertyValue(r);if(s){const o=A.getPropertyPriority(r);t.push(o?`${r}:${s} !${o}`:`${r}:${s}`)}}}return t.length>0&&(e.style.cssText=t.join(";")+";"),e},Nk=A=>{let e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=" "+A.internalSubset.replace(/"/g,""").replace(/>/g,">")),A.publicId?(e+=' PUBLIC "'+A.publicId.replace(/"/g,""")+'"',A.systemId&&(e+=' "'+A.systemId.replace(/"/g,""")+'"')):A.systemId&&(e+=' SYSTEM "'+A.systemId.replace(/"/g,""")+'"'),e+=">"),e},$k=(A,e,t)=>{A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},zk=([A,e,t])=>{A.scrollLeft=e,A.scrollTop=t},Vk=":before",Gk=":after",ja="___html2canvas___pseudoelement_before",Ya="___html2canvas___pseudoelement_after",Ou=`{
|
|
1657
|
+
*/var ay=class Ta{constructor(e={}){const t=e.window||(typeof window!="undefined"?window:void 0);if(!t)throw new Error("Window object is required but not available");this.window=t,this.cspNonce=e.cspNonce,this.cache=e.cache}static fromElement(e,t={}){const n=e.ownerDocument;if(!n)throw new Error("Element is not attached to a document");const r=n.defaultView;if(!r)throw new Error("Document is not attached to a window");return new Ta(F({window:r},t))}clone(e={}){var t,n;return new Ta({window:e.window||this.window,cspNonce:(t=e.cspNonce)!=null?t:this.cspNonce,cache:(n=e.cache)!=null?n:this.cache})}},cy=class{constructor(A={}){this.config=F({maxImageTimeout:3e5,allowDataUrls:!0},A)}validateUrl(A,e="general"){if(!A||typeof A!="string")return{valid:!1,error:"URL must be a non-empty string"};if(A.startsWith("data:"))return this.config.allowDataUrls?{valid:!0,sanitized:A}:{valid:!1,error:"Data URLs are not allowed"};if(A.startsWith("blob:"))return{valid:!0,sanitized:A};try{const t=new URL(A);if(!["http:","https:"].includes(t.protocol))return{valid:!1,error:`Protocol ${t.protocol} is not allowed. Only http and https are permitted.`};if(e==="proxy"&&this.config.allowedProxyDomains&&this.config.allowedProxyDomains.length>0){const n=t.hostname.toLowerCase();if(!this.config.allowedProxyDomains.some(r=>{const s=r.toLowerCase();return n===s||n.endsWith("."+s)}))return{valid:!1,error:`Proxy domain ${t.hostname} is not in the allowed list`}}if(e==="proxy"){if(!this.config.allowLocalhostProxy){const n=t.hostname.toLowerCase();if(n==="localhost"||n==="127.0.0.1"||n==="::1")return{valid:!1,error:"Localhost is not allowed for proxy URLs"};if(this.isPrivateIP(n))return{valid:!1,error:"Private IP addresses are not allowed for proxy URLs"};if(n.startsWith("169.254.")||n.startsWith("fe80:"))return{valid:!1,error:"Link-local addresses are not allowed for proxy URLs"}}return{valid:!0,sanitized:A,requiresRuntimeCheck:!0}}return{valid:!0,sanitized:A}}catch(t){return{valid:!1,error:`Invalid URL format: ${t instanceof Error?t.message:"Unknown error"}`}}}isPrivateIP(A){return[/^0\./,/^10\./,/^100\.(6[4-9]|[7-9][0-9]|1[0-1][0-9]|12[0-7])\./,/^127\./,/^169\.254\./,/^172\.(1[6-9]|2[0-9]|3[0-1])\./,/^192\.0\.0\./,/^192\.0\.2\./,/^192\.168\./,/^198\.(1[8-9])\./,/^198\.51\.100\./,/^203\.0\.113\./,/^2(2[4-9]|3[0-9])\./,/^24[0-9]\./,/^255\.255\.255\.255$/].some(e=>e.test(A))?!0:A.includes(":")?this.isPrivateIPv6(A):!1}isPrivateIPv6(A){const e=A.toLowerCase().trim().replace(/^\[|\]$/g,"").split("%")[0];if(/^(0:){7}1$/.test(e)||e==="::1"||/^(0:){7}0$/.test(e)||e==="::")return!0;const t=this.expandIPv6(e);if(!t)return this.isPrivateIPv6Prefix(e);const n=parseInt(t.substring(0,2),16);if(n>=252&&n<=253)return!0;if(n===254){const r=parseInt(t.substring(2,4),16);if(r>=128&&r<=191)return!0}return n===255}expandIPv6(A){try{if(A.includes("::")){const e=A.split("::");if(e.length>2)return null;const t=e[0]?e[0].split(":"):[],n=e[1]?e[1].split(":"):[],r=8-t.length-n.length;if(r<0)return null;const s=Array(r).fill("0000");return[...t,...s,...n].map(o=>o.padStart(4,"0")).join(":")}else{const e=A.split(":");return e.length!==8?null:e.map(t=>t.padStart(4,"0")).join(":")}}catch(e){return null}}isPrivateIPv6Prefix(A){return!!(/^fc[0-9a-f]{0,2}:?/i.test(A)||/^fd[0-9a-f]{0,2}:?/i.test(A)||/^fe[89ab][0-9a-f]:?/i.test(A)||/^ff[0-9a-f]{0,2}:?/i.test(A))}validateCspNonce(A){return!A||typeof A!="string"?{valid:!1,error:"CSP nonce must be a non-empty string"}:A.length<16?{valid:!1,error:"CSP nonce is too short (minimum 16 characters recommended)"}:/^[A-Za-z0-9+/=_-]+$/.test(A)?{valid:!0,sanitized:A}:{valid:!1,error:"CSP nonce contains invalid characters"}}validateImageTimeout(A){return typeof A!="number"||isNaN(A)?{valid:!1,error:"Image timeout must be a number"}:A<0?{valid:!1,error:"Image timeout cannot be negative"}:this.config.maxImageTimeout&&A>this.config.maxImageTimeout?{valid:!1,error:`Image timeout ${A}ms exceeds maximum allowed ${this.config.maxImageTimeout}ms`}:{valid:!0,sanitized:A}}validateDimensions(A,e){if(typeof A!="number"||typeof e!="number")return{valid:!1,error:"Dimensions must be numbers"};if(isNaN(A)||isNaN(e))return{valid:!1,error:"Dimensions cannot be NaN"};if(A<=0||e<=0)return{valid:!1,error:"Dimensions must be positive"};const t=32767;return A>t||e>t?{valid:!1,error:`Dimensions exceed maximum allowed (${t}px)`}:{valid:!0,sanitized:{width:A,height:e}}}validateScale(A){return typeof A!="number"||isNaN(A)?{valid:!1,error:"Scale must be a number"}:A<=0?{valid:!1,error:"Scale must be positive"}:A>10?{valid:!1,error:"Scale factor too large (maximum 10x)"}:{valid:!0,sanitized:A}}validateElement(A){if(!A)return{valid:!1,error:"Element is required"};if(typeof A!="object")return{valid:!1,error:"Element must be an object"};const e=A;return typeof HTMLElement!="undefined"&&A instanceof HTMLElement?A.ownerDocument?{valid:!0}:{valid:!1,error:"Element must be attached to a document"}:e.ownerDocument?e.ownerDocument.defaultView?{valid:!0}:{valid:!1,error:"Document must be attached to a window (ownerDocument.defaultView required)"}:{valid:!1,error:"Element must be attached to a document (ownerDocument required)"}}validateOptions(A){var n,r;const e=[],t=A.proxy;if(t!=null&&typeof t=="string"&&t.length>0){const s=this.validateUrl(t,"proxy");s.valid||e.push(`Proxy: ${s.error}`)}if(A.imageTimeout!==void 0){const s=this.validateImageTimeout(A.imageTimeout);s.valid||e.push(`Image timeout: ${s.error}`)}if(A.width!==void 0||A.height!==void 0){const s=(n=A.width)!=null?n:800,o=(r=A.height)!=null?r:600,a=this.validateDimensions(s,o);a.valid||e.push(`Dimensions: ${a.error}`)}if(A.scale!==void 0){const s=this.validateScale(A.scale);s.valid||e.push(`Scale: ${s.error}`)}if(A.cspNonce!==void 0){const s=this.validateCspNonce(A.cspNonce);s.valid||e.push(`CSP nonce: ${s.error}`)}if(this.config.customValidator){const s=this.config.customValidator(A,"options");s.valid||e.push(`Custom validation: ${s.error}`)}return e.length>0?{valid:!1,error:e.join("; ")}:{valid:!0}}};function ly(A={}){return new cy(F({allowDataUrls:!0,maxImageTimeout:3e5},A))}var uy=class{constructor(A,e=!0){this.context=A,this.activeMetrics=new Map,this.completedMetrics=[],this.enabled=e,this.getTime=typeof performance!="undefined"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now()}start(A,e){var t;this.enabled&&(this.activeMetrics.has(A)&&((t=this.context)==null||t.logger.warn(`Performance metric '${A}' already started. Overwriting.`)),this.activeMetrics.set(A,{name:A,startTime:this.getTime(),metadata:e}))}end(A){var t,n;if(!this.enabled)return;const e=this.activeMetrics.get(A);if(!e){(t=this.context)==null||t.logger.warn(`Performance metric '${A}' not found. Was start() called?`);return}return e.endTime=this.getTime(),e.duration=e.endTime-e.startTime,this.completedMetrics.push(e),this.activeMetrics.delete(A),(n=this.context)==null||n.logger.debug(`⏱️ ${A}: ${e.duration.toFixed(2)}ms`,e.metadata),e}measure(A,e,t){this.start(A,t);try{const n=e();return this.end(A),n}catch(n){throw this.end(A),n}}measureAsync(A,e,t){return I(this,null,function*(){this.start(A,t);try{const n=yield e();return this.end(A),n}catch(n){throw this.end(A),n}})}getMetrics(){return[...this.completedMetrics]}getMetric(A){return this.completedMetrics.find(e=>e.name===A)}getSummary(){const A=this.completedMetrics.reduce((t,n)=>t+(n.duration||0),0),e=this.completedMetrics.map(t=>({name:t.name,duration:t.duration||0,percentage:A>0?((t.duration||0)/A*100).toFixed(1)+"%":"0%"}));return{totalDuration:A,metrics:this.getMetrics(),breakdown:e}}logSummary(){if(!this.enabled||this.completedMetrics.length===0||!this.context)return;const A=this.getSummary();this.context.logger.info(`
|
|
1658
|
+
📊 Performance Summary (Total: ${A.totalDuration.toFixed(2)}ms):`),A.breakdown.sort((e,t)=>t.duration-e.duration).forEach(e=>{this.context.logger.info(` ${e.name.padEnd(20)} ${e.duration.toFixed(2).padStart(8)}ms ${e.percentage.padStart(6)}`)})}clear(){this.activeMetrics.clear(),this.completedMetrics.splice(0)}isEnabled(){return this.enabled}getActiveMetrics(){return Array.from(this.activeMetrics.keys())}},Ye,Le=(Ye=class{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}add(e,t,n,r){return new Ye(this.left+e,this.top+t,this.width+n,this.height+r)}static fromClientRect(e,t){return new Ye(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)}static fromDOMRectList(e,t){const n=Array.from(t);let r=n.find(s=>s.width!==0);return r||(r=n.find(s=>s.height!==0)),!r&&n.length>0&&(r=n[0]),r?new Ye(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):Ye.EMPTY}},Ye.EMPTY=new Ye(0,0,0,0),Ye);const fs=(A,e)=>Le.fromClientRect(A,e.getBoundingClientRect()),dy=A=>{const e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");return new Le(0,0,Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight)))};var Bi=function(A){for(var e=[],t=0,n=A.length;t<n;){var r=A.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var s=A.charCodeAt(t++);(s&64512)===56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),t--)}else e.push(r)}return e},DA=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var n=[],r=-1,s="";++r<t;){var o=A[r];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(r+1===t||n.length>16384)&&(s+=String.fromCharCode.apply(String,n),n.length=0)}return s},ou="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",py=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Js=0;Js<ou.length;Js++)py[ou.charCodeAt(Js)]=Js;var iu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var js=0;js<iu.length;js++)Zr[iu.charCodeAt(js)]=js;var hy=function(A){var e=A.length*.75,t=A.length,n,r=0,s,o,a,i;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(e):new Array(e),u=Array.isArray(c)?c:new Uint8Array(c);for(n=0;n<t;n+=4)s=Zr[A.charCodeAt(n)],o=Zr[A.charCodeAt(n+1)],a=Zr[A.charCodeAt(n+2)],i=Zr[A.charCodeAt(n+3)],u[r++]=s<<2|o>>4,u[r++]=(o&15)<<4|a>>2,u[r++]=(a&3)<<6|i&63;return c},fy=function(A){for(var e=A.length,t=[],n=0;n<e;n+=2)t.push(A[n+1]<<8|A[n]);return t},gy=function(A){for(var e=A.length,t=[],n=0;n<e;n+=4)t.push(A[n+3]<<24|A[n+2]<<16|A[n+1]<<8|A[n]);return t},mn=5,Sc=11,Xi=2,By=Sc-mn,Op=65536>>mn,Wi=(1<<mn)-1,wy=Op+(1024>>mn)+32,my=65536>>Sc,Cy=(1<<By)-1,au=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},by=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},Qy=function(A,e){var t=hy(A),n=Array.isArray(t)?gy(t):new Uint32Array(t),r=Array.isArray(t)?fy(t):new Uint16Array(t),s=24,o=au(r,s/2,n[4]/2),a=n[5]===2?au(r,(s+n[4])/2):by(n,Math.ceil((s+n[4])/4));return new yy(n[0],n[1],n[2],n[3],o,a)},yy=(function(){function A(e,t,n,r,s,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=s,this.data=o}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>mn],t=(t<<Xi)+(e&Wi),this.data[t];if(e<=65535)return t=this.index[Op+(e-55296>>mn)],t=(t<<Xi)+(e&Wi),this.data[t];if(e<this.highStart)return t=wy-my+(e>>Sc),t=this.index[t],t+=e>>mn&Cy,t=this.index[t],t=(t<<Xi)+(e&Wi),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),cu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Uy=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Ys=0;Ys<cu.length;Ys++)Uy[cu.charCodeAt(Ys)]=Ys;var Ey="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAA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sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3U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AAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4Qkw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ACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8N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gBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB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gAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAl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4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAU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BQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACU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lACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",lu=50,ky=1,Pp=2,Mp=3,Fy=4,vy=5,uu=7,Kp=8,du=9,Gt=10,Ha=11,pu=12,La=13,_y=14,Xr=15,Da=16,qs=17,Hr=18,xy=19,hu=20,Ra=21,Lr=22,Ji=23,Nn=24,Ce=25,Wr=26,Jr=27,$n=28,Sy=29,un=30,Iy=31,Ao=32,eo=33,Oa=34,Pa=35,Ma=36,gs=37,Ka=38,_o=39,xo=40,ji=41,Np=42,Ty=43,Hy=[9001,65288],$p="!",rA="×",to="÷",Na=Qy(Ey),Et=[un,Ma],$a=[ky,Pp,Mp,vy],zp=[Gt,Kp],fu=[Jr,Wr],Ly=$a.concat(zp),gu=[Ka,_o,xo,Oa,Pa],Dy=[Xr,La],Ry=function(A,e){e===void 0&&(e="strict");var t=[],n=[],r=[];return A.forEach(function(s,o){var a=Na.get(s);if(a>lu?(r.push(!0),a-=lu):r.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(s)!==-1)return n.push(o),t.push(Da);if(a===Fy||a===Ha){if(o===0)return n.push(o),t.push(un);var i=t[o-1];return Ly.indexOf(i)===-1?(n.push(n[o-1]),t.push(i)):(n.push(o),t.push(un))}if(n.push(o),a===Iy)return t.push(e==="strict"?Ra:gs);if(a===Np||a===Sy)return t.push(un);if(a===Ty)return s>=131072&&s<=196605||s>=196608&&s<=262141?t.push(gs):t.push(un);t.push(a)}),[n,t,r]},Yi=function(A,e,t,n){var r=n[t];if(Array.isArray(A)?A.indexOf(r)!==-1:A===r)for(var s=t;s<=n.length;){s++;var o=n[s];if(o===e)return!0;if(o!==Gt)break}if(r===Gt)for(var s=t;s>0;){s--;var a=n[s];if(Array.isArray(A)?A.indexOf(a)!==-1:A===a)for(var i=t;i<=n.length;){i++;var o=n[i];if(o===e)return!0;if(o!==Gt)break}if(a!==Gt)break}return!1},Bu=function(A,e){for(var t=A;t>=0;){var n=e[t];if(n===Gt)t--;else return n}return 0},Oy=function(A,e,t,n,r){if(t[n]===0)return rA;var s=n-1;if(Array.isArray(r)&&r[s]===!0)return rA;var o=s-1,a=s+1,i=e[s],c=o>=0?e[o]:0,u=e[a];if(i===Pp&&u===Mp)return rA;if($a.indexOf(i)!==-1)return $p;if($a.indexOf(u)!==-1||zp.indexOf(u)!==-1)return rA;if(Bu(s,e)===Kp)return to;if(Na.get(A[s])===Ha||(i===Ao||i===eo)&&Na.get(A[a])===Ha||i===uu||u===uu||i===du||[Gt,La,Xr].indexOf(i)===-1&&u===du||[qs,Hr,xy,Nn,$n].indexOf(u)!==-1||Bu(s,e)===Lr||Yi(Ji,Lr,s,e)||Yi([qs,Hr],Ra,s,e)||Yi(pu,pu,s,e))return rA;if(i===Gt)return to;if(i===Ji||u===Ji)return rA;if(u===Da||i===Da)return to;if([La,Xr,Ra].indexOf(u)!==-1||i===_y||c===Ma&&Dy.indexOf(i)!==-1||i===$n&&u===Ma||u===hu||Et.indexOf(u)!==-1&&i===Ce||Et.indexOf(i)!==-1&&u===Ce||i===Jr&&[gs,Ao,eo].indexOf(u)!==-1||[gs,Ao,eo].indexOf(i)!==-1&&u===Wr||Et.indexOf(i)!==-1&&fu.indexOf(u)!==-1||fu.indexOf(i)!==-1&&Et.indexOf(u)!==-1||[Jr,Wr].indexOf(i)!==-1&&(u===Ce||[Lr,Xr].indexOf(u)!==-1&&e[a+1]===Ce)||[Lr,Xr].indexOf(i)!==-1&&u===Ce||i===Ce&&[Ce,$n,Nn].indexOf(u)!==-1)return rA;if([Ce,$n,Nn,qs,Hr].indexOf(u)!==-1)for(var h=s;h>=0;){var f=e[h];if(f===Ce)return rA;if([$n,Nn].indexOf(f)!==-1)h--;else break}if([Jr,Wr].indexOf(u)!==-1)for(var h=[qs,Hr].indexOf(i)!==-1?o:s;h>=0;){var f=e[h];if(f===Ce)return rA;if([$n,Nn].indexOf(f)!==-1)h--;else break}if(Ka===i&&[Ka,_o,Oa,Pa].indexOf(u)!==-1||[_o,Oa].indexOf(i)!==-1&&[_o,xo].indexOf(u)!==-1||[xo,Pa].indexOf(i)!==-1&&u===xo||gu.indexOf(i)!==-1&&[hu,Wr].indexOf(u)!==-1||gu.indexOf(u)!==-1&&i===Jr||Et.indexOf(i)!==-1&&Et.indexOf(u)!==-1||i===Nn&&Et.indexOf(u)!==-1||Et.concat(Ce).indexOf(i)!==-1&&u===Lr&&Hy.indexOf(A[a])===-1||Et.concat(Ce).indexOf(u)!==-1&&i===Hr)return rA;if(i===ji&&u===ji){for(var g=t[s],m=1;g>0&&(g--,e[g]===ji);)m++;if(m%2!==0)return rA}return i===Ao&&u===eo?rA:to},Py=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=Ry(A,e.lineBreak),n=t[0],r=t[1],s=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(r=r.map(function(a){return[Ce,un,Np].indexOf(a)!==-1?gs:a}));var o=e.wordBreak==="keep-all"?s.map(function(a,i){return a&&A[i]>=19968&&A[i]<=40959}):void 0;return[n,r,o]},My=(function(){function A(e,t,n,r){this.codePoints=e,this.required=t===$p,this.start=n,this.end=r}return A.prototype.slice=function(){return DA.apply(void 0,this.codePoints.slice(this.start,this.end))},A})(),Ky=function(A,e){var t=Bi(A),n=Py(t,e),r=n[0],s=n[1],o=n[2],a=t.length,i=0,c=0;return{next:function(){if(c>=a)return{done:!0,value:null};for(var u=rA;c<a&&(u=Oy(t,s,r,++c,o))===rA;);if(u!==rA||c===a){var h=new My(t,u,i,c);return i=c,{value:h,done:!1}}return{done:!0,value:null}}}};const wu=65533,ne=A=>A>=48&&A<=57,Ny=A=>A>=55296&&A<=57343,zn=A=>ne(A)||A>=65&&A<=70||A>=97&&A<=102,$y=A=>A>=97&&A<=122,zy=A=>A>=65&&A<=90,Vy=A=>$y(A)||zy(A),Gy=A=>A>=128,no=A=>A===10||A===9||A===32,Jo=A=>Vy(A)||Gy(A)||A===95,mu=A=>Jo(A)||ne(A)||A===45,Zy=A=>A>=0&&A<=8||A===11||A>=14&&A<=31||A===127,$t=(A,e)=>A!==92?!1:e!==10,ro=(A,e,t)=>A===45?Jo(e)||$t(e,t):Jo(A)?!0:!!(A===92&&$t(A,e)),qi=(A,e,t)=>A===43||A===45?ne(e)?!0:e===46&&ne(t):ne(A===46?e:A),Xy=A=>{let e=0,t=1;(A[e]===43||A[e]===45)&&(A[e]===45&&(t=-1),e++);const n=[];for(;ne(A[e]);)n.push(A[e++]);const r=n.length?parseInt(DA(...n),10):0;A[e]===46&&e++;const s=[];for(;ne(A[e]);)s.push(A[e++]);const o=s.length,a=o?parseInt(DA(...s),10):0;(A[e]===69||A[e]===101)&&e++;let i=1;(A[e]===43||A[e]===45)&&(A[e]===45&&(i=-1),e++);const c=[];for(;ne(A[e]);)c.push(A[e++]);const u=c.length?parseInt(DA(...c),10):0;return t*(r+a*Math.pow(10,-o))*Math.pow(10,i*u)},Wy={type:2},Jy={type:3},jy={type:4},Yy={type:13},qy={type:8},A0={type:21},e0={type:9},t0={type:10},n0={type:11},r0={type:12},s0={type:14},so={type:23},o0={type:1},i0={type:25},a0={type:24},c0={type:26},l0={type:27},u0={type:28},d0={type:29},p0={type:31},za={type:32};var _e,Va=(_e=class{static get(){return _e._pool.pop()||new _e}static release(e){_e._pool.length<_e.MAX_POOL_SIZE&&(e._reset(),_e._pool.push(e))}constructor(){this._value=[]}_reset(){this._value=[]}write(e){this._value=this._value.concat(Bi(e))}read(){const e=[];let t=this.consumeToken();for(;t!==za;)e.push(t),t=this.consumeToken();return e}consumeToken(){const e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:{const t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(mu(t)||$t(n,r)){const s=ro(t,n,r)?2:1;return{type:5,value:this.consumeName(),flags:s}}break}case 36:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),Yy;break;case 39:return this.consumeStringToken(39);case 40:return Wy;case 41:return Jy;case 42:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),s0;break;case 43:if(qi(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return jy;case 45:{const t=e,n=this.peekCodePoint(0),r=this.peekCodePoint(1);if(qi(t,n,r))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(ro(t,n,r))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(n===45&&r===62)return this.consumeCodePoint(),this.consumeCodePoint(),a0;break}case 46:if(qi(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(this.peekCodePoint(0)===42)for(this.consumeCodePoint();;){let t=this.consumeCodePoint();if(t===42&&(t=this.consumeCodePoint(),t===47))return this.consumeToken();if(t===-1)return this.consumeToken()}break;case 58:return c0;case 59:return l0;case 60:if(this.peekCodePoint(0)===33&&this.peekCodePoint(1)===45&&this.peekCodePoint(2)===45)return this.consumeCodePoint(),this.consumeCodePoint(),i0;break;case 64:if(ro(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2)))return{type:7,value:this.consumeName()};break;case 91:return u0;case 92:if($t(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return d0;case 61:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),qy;break;case 123:return n0;case 125:return r0;case 117:case 85:{const t=this.peekCodePoint(0),n=this.peekCodePoint(1);return t===43&&(zn(n)||n===63)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken()}case 124:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),e0;if(this.peekCodePoint(0)===124)return this.consumeCodePoint(),A0;break;case 126:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),t0;break;case-1:return za}return no(e)?(this.consumeWhiteSpace(),p0):ne(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Jo(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:DA(e)}}consumeCodePoint(){const e=this._value.shift();return typeof e=="undefined"?-1:e}reconsumeCodePoint(e){this._value.unshift(e)}peekCodePoint(e){return e>=this._value.length?-1:this._value[e]}consumeUnicodeRangeToken(){const e=[];let t=this.consumeCodePoint();for(;zn(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();let n=!1;for(;t===63&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(DA(...e.map(s=>s===63?48:s)),16),end:parseInt(DA(...e.map(s=>s===63?70:s)),16)};const r=parseInt(DA(...e),16);if(this.peekCodePoint(0)===45&&zn(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();const s=[];for(;zn(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(DA(...s),16)}}else return{type:30,start:r,end:r}}consumeIdentLikeToken(){const e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===40?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===40?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}}consumeUrlToken(){const e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===-1)return{type:22,value:""};const t=this.peekCodePoint(0);if(t===39||t===34){const n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===-1||this.peekCodePoint(0)===41)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),so)}for(;;){const n=this.consumeCodePoint();if(n===-1||n===41)return{type:22,value:DA(...e)};if(no(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===-1||this.peekCodePoint(0)===41?(this.consumeCodePoint(),{type:22,value:DA(...e)}):(this.consumeBadUrlRemnants(),so);if(n===34||n===39||n===40||Zy(n))return this.consumeBadUrlRemnants(),so;if(n===92)if($t(n,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),so;else e.push(n)}}consumeWhiteSpace(){for(;no(this.peekCodePoint(0));)this.consumeCodePoint()}consumeBadUrlRemnants(){for(;;){const e=this.consumeCodePoint();if(e===41||e===-1)return;$t(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}}consumeStringSlice(e){let n="";for(;e>0;){const r=Math.min(5e4,e);n+=DA(...this._value.splice(0,r)),e-=r}return this._value.shift(),n}consumeStringToken(e){let t="",n=0;do{const r=this._value[n];if(r===-1||r===void 0||r===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(r===10)return this._value.splice(0,n),o0;if(r===92){const s=this._value[n+1];s!==-1&&s!==void 0&&(s===10?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):$t(r,s)&&(t+=this.consumeStringSlice(n),t+=DA(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)}consumeNumber(){const e=[];let t=4,n=this.peekCodePoint(0);for((n===43||n===45)&&e.push(this.consumeCodePoint());ne(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);let r=this.peekCodePoint(1);if(n===46&&ne(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ne(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);const s=this.peekCodePoint(2);if((n===69||n===101)&&((r===43||r===45)&&ne(s)||ne(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ne(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Xy(e),t]}consumeNumericToken(){const[e,t]=this.consumeNumber(),n=this.peekCodePoint(0);return ro(n,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:e,flags:t,unit:this.consumeName()}:n===37?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}}consumeEscapedCodePoint(){const e=this.consumeCodePoint();if(zn(e)){let t=DA(e);for(;zn(this.peekCodePoint(0))&&t.length<6;)t+=DA(this.consumeCodePoint());no(this.peekCodePoint(0))&&this.consumeCodePoint();const n=parseInt(t,16);return n===0||Ny(n)||n>1114111?wu:n}return e===-1?wu:e}consumeName(){let e="";for(;;){const t=this.consumeCodePoint();if(mu(t))e+=DA(t);else if($t(t,this.peekCodePoint(0)))e+=DA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}}},_e._pool=[],_e.MAX_POOL_SIZE=40,_e),Vp=class So{constructor(e){this._tokens=e}static create(e){const t=new Va;return t.write(e),new So(t.read())}static parseValue(e){return So.create(e).parseComponentValue()}static parseValues(e){return So.create(e).parseComponentValues()}parseComponentValue(){let e=this.consumeToken();for(;e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);const t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")}parseComponentValues(){const e=[];for(;;){const t=this.consumeComponentValue();if(t.type===32)return e;e.push(t)}}consumeComponentValue(){const e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e}consumeSimpleBlock(e){const t={type:e,values:[]};let n=this.consumeToken();for(;;){if(n.type===32||f0(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}}consumeFunction(e){const t={name:e.value,values:[],type:18};for(;;){const n=this.consumeToken();if(n.type===32||n.type===3)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}}consumeToken(){const e=this._tokens.shift();return typeof e=="undefined"?za:e}reconsumeToken(e){this._tokens.unshift(e)}};const wt=A=>A.type===15,VA=A=>A.type===17,j=A=>A.type===20,h0=A=>A.type===0,Bs=(A,e)=>j(A)&&A.value===e,Es=A=>A.type!==31,GA=A=>A.type!==31&&A.type!==4,tt=A=>{const e=[];let t=[];return A.forEach(n=>{if(n.type===4){t.length&&(e.push(t),t=[]);return}n.type!==31&&t.push(n)}),t.length&&e.push(t),e},f0=(A,e)=>e===11&&A.type===12||e===28&&A.type===29?!0:e===2&&A.type===3,g0=/(\d+(?:\.\d+)?|[+\-*/()])/g,Gp=A=>{const e=A.match(g0);if(!e)return NaN;const t=[],n=[],r={"+":1,"-":1,"*":2,"/":2};for(const o of e)if(/^\d+(?:\.\d+)?$/.test(o))t.push(parseFloat(o));else if(o==="(")n.push(o);else if(o===")"){for(;n.length&&n[n.length-1]!=="(";)t.push(n.pop());if(!n.length)return NaN;n.pop()}else{for(;n.length&&r[n[n.length-1]]>=r[o];)t.push(n.pop());n.push(o)}for(;n.length;){const o=n.pop();if(o==="(")return NaN;t.push(o)}const s=[];for(const o of t)if(typeof o=="number")s.push(o);else{const a=s.pop(),i=s.pop();if(i===void 0||a===void 0)return NaN;switch(o){case"+":s.push(i+a);break;case"-":s.push(i-a);break;case"*":s.push(i*a);break;case"/":s.push(a===0?NaN:i/a);break;default:return NaN}}return s.length===1?s[0]:NaN},IA=(A,e,t)=>Math.min(Math.max(A,e),t),Be=(A,e)=>[A[0]*e[0]+A[1]*e[1]+A[2]*e[2],A[3]*e[0]+A[4]*e[1]+A[5]*e[2],A[6]*e[0]+A[7]*e[1]+A[8]*e[2]],qt=A=>Be([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.04155505740717559,.05563007969699366,-.20397695888897652,1.0569715142428786],A),Ga=A=>Be([.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],A),Sn=A=>A.map(e=>{const t=e<0?-1:1,n=Math.abs(e);return n>.0031308?t*(1.055*me(n,1/2.4)-.055):12.92*e}),Za=A=>A.map(e=>{const t=e<0?-1:1,n=Math.abs(e);return n<=.04045?e/12.92:t*me((n+.055)/1.055,2.4)}),B0=A=>{const[e,t,n]=Sn(qt([A[0],A[1],A[2]]));return[e,t,n,A[3]]},w0=A=>{const[e,t,n]=qt([A[0],A[1],A[2]]);return[IA(Math.round(e*255),0,255),IA(Math.round(t*255),0,255),IA(Math.round(n*255),0,255),A[3]]},Jt=A=>A.type===17||A.type===15,iA=A=>A.type===16||Jt(A)||Zp(A),Zp=A=>A.type===17&&A._calcPercentage!==void 0,m0=A=>A.type===18&&A.name==="calc",C0=A=>{const e=Cu(A,0);if(!e)return null;const t=Cu(A,100);if(!t)return null;const n=e.number,r=t.number-n;return r===0?e:{type:17,number:n,flags:4,_calcPercentage:r,_calcPixelOffset:n}},Xp=A=>m0(A)?C0(A):iA(A)?A:null,Cu=(A,e=0)=>{const t=n=>{let r="";for(const s of n)if(s.type!==31){if(s.type===18)if(s.name==="calc"){const o=t(s.values);if(o===null)return null;r+=`(${o})`}else return null;else if(s.type===17)r+=s.number.toString();else if(s.type===15)s.unit==="px"?r+=s.number.toString():s.unit==="rem"||s.unit==="em"?r+=(s.number*16).toString():r+=s.number.toString();else if(s.type===16)r+=(s.number/100*e).toString();else if(s.type===6){const o=s.value;o==="+"||o==="-"||o==="*"||o==="/"?r+=` ${o} `:o==="("?r+="(":o===")"&&(r+=")")}}return r};try{const n=t(A.values);if(n===null||n.trim()==="")return null;const r=Gp(n);if(typeof r=="number"&&!isNaN(r))return{type:17,number:r,flags:4}}catch(n){return null}return null},Wp=A=>A.length>1?[A[0],A[1]]:[A[0]],RA={type:17,number:0,flags:4},xt={type:16,number:50,flags:4},At={type:16,number:100,flags:4},jr=(A,e,t)=>{const[n,r]=A;return[J(n,e),J(typeof r!="undefined"?r:n,t)]},J=(A,e)=>{if(Zp(A))return A._calcPercentage/100*e+A._calcPixelOffset;if(A.type===16)return A.number/100*e;if(wt(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},Jp="deg",jp="grad",Yp="rad",qp="turn",mr={name:"angle",parse:(A,e)=>{if(e.type===15)switch(e.unit){case Jp:return Math.PI*e.number/180;case jp:return Math.PI/200*e.number;case Yp:return e.number;case qp:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Ah=A=>A.type===15&&(A.unit===Jp||A.unit===jp||A.unit===Yp||A.unit===qp),eh=A=>{switch(A.filter(j).map(e=>e.value).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[RA,RA];case"to top":case"bottom":return Ie(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[RA,At];case"to right":case"left":return Ie(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[At,At];case"to bottom":case"top":return Ie(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[At,RA];case"to left":case"right":return Ie(270)}return 0},Ie=A=>Math.PI*A/180,St=A=>(255&A)===0,bA=A=>{const e=255&A,t=255&A>>8,n=255&A>>16,r=255&A>>24;return e<255?`rgba(${r},${n},${t},${e/255})`:`rgb(${r},${n},${t})`},et=(A,e,t,n)=>(A<<24|e<<16|t<<8|Math.round(n*255)<<0)>>>0,zt=(A,e)=>{if(A.type===17)return A.number;if(A.type===16){const t=e===3?1:255;return e===3?A.number/100*t:Math.round(A.number/100*t)}return 0},In=A=>(A[0].type===20?A[0].value:"unknown")==="from",b0=A=>et(IA(Math.round(A[0]*255),0,255),IA(Math.round(A[1]*255),0,255),IA(Math.round(A[2]*255),0,255),IA(A[3],0,1)),Ic=([A,e,t,n])=>{const r=Sn([A,e,t]);return et(IA(Math.round(r[0]*255),0,255),IA(Math.round(r[1]*255),0,255),IA(Math.round(r[2]*255),0,255),n)},ks=A=>{const e=qt([A[0],A[1],A[2]]);return Ic([e[0],e[1],e[2],A[3]])},Q0=(A,e)=>{if(In(e.filter(GA)))throw new Error("Relative color not supported for lab()");const[t,n,r,s]=wi(e),o=Sn(qt(bi([t,n,r])));return et(IA(Math.round(o[0]*255),0,255),IA(Math.round(o[1]*255),0,255),IA(Math.round(o[2]*255),0,255),s)},y0=(A,e)=>{if(In(e.filter(GA)))throw new Error("Relative color not supported for oklab()");const[t,n,r,s]=wi(e),o=Sn(qt(Ci([t,n,r])));return et(IA(Math.round(o[0]*255),0,255),IA(Math.round(o[1]*255),0,255),IA(Math.round(o[2]*255),0,255),s)},U0=(A,e)=>{if(In(e.filter(GA)))throw new Error("Relative color not supported for oklch()");const[t,n,r,s]=rh(e),o=Sn(qt(Ci(mi([t,n,r]))));return et(IA(Math.round(o[0]*255),0,255),IA(Math.round(o[1]*255),0,255),IA(Math.round(o[2]*255),0,255),s)},E0=(A,e)=>{if(In(e.filter(GA)))throw new Error("Relative color not supported for lch()");const[t,n,r,s]=nh(e),o=Sn(qt(bi(mi([t,n,r]))));return et(IA(Math.round(o[0]*255),0,255),IA(Math.round(o[1]*255),0,255),IA(Math.round(o[2]*255),0,255),s)},th=(A,e)=>{const[t,n,r,s]=e.filter(GA);return[(t.type===17?Ie(t.number):mr.parse(A,t))/(Math.PI*2),iA(n)?n.number/100:0,iA(r)?r.number/100:0,typeof s!="undefined"&&iA(s)?J(s,1):1]},bu=(A,e)=>{if(In(e))throw new Error("Relative color not supported for hsl()");const[t,n,r,s]=th(A,e),o=oh([t,n,r]);return et(o[0]*255,o[1]*255,o[2]*255,n===0?1:s)},nh=A=>{const e=A.filter(GA);return[iA(e[0])?e[0].number:0,iA(e[1])?e[1].number:0,VA(e[2])||wt(e[2])?e[2].number:0,typeof e[4]!="undefined"&&iA(e[4])?J(e[4],1):1]},wi=A=>{const e=A.filter(GA);return[e[0].type===16?e[0].number/100:VA(e[0])?e[0].number:0,e[1].type===16?e[1].number/100:VA(e[1])?e[1].number:0,VA(e[2])||wt(e[2])?e[2].number:0,typeof e[4]!="undefined"&&iA(e[4])?J(e[4],1):1]},rh=A=>{const e=A.filter(GA);return[e[0].type===16?e[0].number/100:VA(e[0])?e[0].number:0,e[1].type===16?e[1].number/100:VA(e[1])?e[1].number:0,VA(e[2])||wt(e[2])?e[2].number:0,typeof e[4]!="undefined"&&iA(e[4])?J(e[4],1):1]},sh=A=>Be([1.0479297925449969,.022946870601609652,-.05019226628920524,.02962780877005599,.9904344267538799,-.017073799063418826,-.009243040646204504,.015055191490298152,.7518742814281371],A),Tc=A=>Be([.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],A),Aa=(A,e,t)=>(t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<1/2?e:t<2/3?(e-A)*6*(2/3-t)+A:A),oh=([A,e,t])=>{if(e===0)return[t*255,t*255,t*255];const n=t<=.5?t*(e+1):t+e-t*e,r=t*2-n;return[Aa(r,n,A+1/3),Aa(r,n,A),Aa(r,n,A-1/3)]},mi=([A,e,t])=>(e<0&&(e=0),isNaN(t)&&(t=0),[A,e*Math.cos(t*Math.PI/180),e*Math.sin(t*Math.PI/180)]),Ci=A=>Be([1.2268798758459243,-.5578149944602171,.2813910456659647,-.0405757452148008,1.112286803280317,-.0717110580655164,-.0763729366746601,-.4214933324022432,1.5869240198367816],Be([1,.3963377773761749,.2158037573099136,1,-.1055613458156586,-.0638541728258133,1,-.0894841775298119,-1.2914855480194092],A).map(e=>me(e,3))),bi=A=>{const e=(A[0]+16)/116,t=A[1]/500+e,n=e-A[2]/200,r=24389/27,s=24/116,o=[(t>s?me(t,3):(116*t-16)/r)*.3457/.3585,A[0]>8?me(e,3):A[0]/r,(n>s?me(n,3):(116*n-16)/r)*.2958/.3585];return Tc([o[0],o[1],o[2]])},k0=(A,e)=>{const t=e.filter(GA);if(t.length===3){const[n,r,s]=t.map(zt),o=Za([n/255,r/255,s/255]),[a,i,c]=Ga([o[0],o[1],o[2]]);return[a,i,c,1]}if(t.length===4){const[n,r,s,o]=t.map(zt),a=Za([n/255,r/255,s/255]),[i,c,u]=Ga([a[0],a[1],a[2]]);return[i,c,u,o]}return[0,0,0,1]},F0=(A,e)=>{const[t,n,r,s]=th(A,e),o=Za(oh([t,n,r])),[a,i,c]=Ga([o[0],o[1],o[2]]);return[a,i,c,s]},v0=(A,e)=>{const[t,n,r,s]=wi(e),[o,a,i]=bi([t,n,r]);return[o,a,i,s]},_0=(A,e)=>{const[t,n,r,s]=nh(e),[o,a,i]=bi(mi([t,n,r]));return[o,a,i,s]},x0=(A,e)=>{const[t,n,r,s]=rh(e),[o,a,i]=Ci(mi([t,n,r]));return[o,a,i,s]},S0=(A,e)=>{const[t,n,r,s]=wi(e),[o,a,i]=Ci([t,n,r]);return[o,a,i,s]},I0=A=>Tc([A[0],A[1],A[2]]),Qu=A=>A,T0=A=>{const[e,t,n]=sh([A[0],A[2],A[3]]);return[e,t,n,A[3]]},yu=A=>ks([A[0],A[1],A[2],A[3]]),H0=A=>{const e=I0([A[0],A[1],A[2]]);return ks([e[0],e[1],e[2],A[3]])},L0=A=>Be([.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],A),D0=A=>Be([2.493496911941425,-.9313836179191239,-.40271078445071684,-.8294889695615747,1.7626640603183463,.023624685841943577,.03584583024378447,-.07617238926804182,.9568845240076872],A),R0=A=>A.map(e=>{const t=e<0?-1:1;return e*t<=.04045?e/12.92:t*me((e+.055)/1.055,2.4)||0}),O0=A=>Sn(A),P0=A=>{const e=R0([A[0],A[1],A[2]]);return L0([e[0],e[1],e[2]])},M0=A=>{const[e,t,n]=O0(D0([A[0],A[1],A[2]]));return[e,t,n,A[3]]},K0=A=>{const e=P0([A[0],A[1],A[2]]);return ks([e[0],e[1],e[2],A[3]])},N0=A=>Be([2.0415879038107465,-.5650069742788596,-.34473135077832956,-.9692436362808795,1.8759675015077202,.04155505740717557,.013444280632031142,-.11836239223101838,1.0151749943912054],A),$0=A=>Be([.5766690429101305,.1855582379065463,.1882286462349947,.29734497525053605,.6273635662554661,.0752914584939978,.02703136138641234,.07068885253582723,.9913375368376388],A),z0=A=>{const e=A.map(t=>(t<0?-1:1)*me(Math.abs(t),2.19921875));return[e[0],e[1],e[2]]},V0=A=>{const e=A.map(t=>(t<0?-1:1)*me(Math.abs(t),.4547069271758437));return[e[0],e[1],e[2]]},G0=A=>{const[e,t,n]=V0(N0([A[0],A[1],A[2]]));return[e,t,n,A[3]]},Z0=A=>{const e=qt($0(z0([A[0],A[1],A[2]])));return Ic([e[0],e[1],e[2],A[3]])},X0=A=>Be([.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],A),W0=A=>Be([1.3457868816471583,-.25557208737979464,-.05110186497554526,-.5446307051249019,1.5082477428451468,.02052744743642139,0,0,1.2119675456389452],A),J0=A=>A.map(e=>e<16/512?e/16:me(e,1.8)),j0=A=>A.map(e=>e>1/512?me(e,1/1.8):e*16),Y0=A=>{const e=J0([A[0],A[1],A[2]]);return Tc(X0([e[0],e[1],e[2]]))},q0=A=>{const[e,t,n]=j0(W0(sh([A[0],A[1],A[2]])));return[e,t,n,A[3]]},AU=A=>{const e=Y0([A[0],A[1],A[2]]);return ks([e[0],e[1],e[2],A[3]])},jo=1.09929682680944,ih=.018053968510807,eU=A=>A.map(function(e){return e<ih*4.5?e/4.5:Math.pow((e+jo-1)/jo,1/.45)}),tU=A=>A.map(function(e){return e>=ih?jo*Math.pow(e,.45)-(jo-1):4.5*e}),nU=A=>Be([.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],A),rU=A=>Be([1.716651187971268,-.355670783776392,-.25336628137366,-.666684351832489,1.616481236634939,.0157685458139111,.017639857445311,-.042770613257809,.942103121235474],A),sU=A=>{const e=eU([A[0],A[1],A[2]]);return nU([e[0],e[1],e[2]])},oU=A=>{const[e,t,n]=tU(rU([A[0],A[1],A[2]]));return[e,t,n,A[3]]},iU=A=>{const e=sU([A[0],A[1],A[2]]);return ks([e[0],e[1],e[2],A[3]])},Zt={name:"color",parse:(A,e)=>{if(e.type===18){const t=uU[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported color function "${e.name}"`);return t(A,e.values)}if(e.type===5){const[t,n,r,s]=ah(e);return et(t,n,r,s)}if(e.type===20){const t=ft[e.value.toUpperCase()];if(typeof t!="undefined")return t}return ft.TRANSPARENT}},ah=A=>{if(A.value.length===3){const e=A.value.substring(0,1),t=A.value.substring(1,2),n=A.value.substring(2,3);return[parseInt(e+e,16),parseInt(t+t,16),parseInt(n+n,16),1]}if(A.value.length===4){const e=A.value.substring(0,1),t=A.value.substring(1,2),n=A.value.substring(2,3),r=A.value.substring(3,4);return[parseInt(e+e,16),parseInt(t+t,16),parseInt(n+n,16),parseInt(r+r,16)/255]}if(A.value.length===6){const e=A.value.substring(0,2),t=A.value.substring(2,4),n=A.value.substring(4,6);return[parseInt(e,16),parseInt(t,16),parseInt(n,16),1]}if(A.value.length===8){const e=A.value.substring(0,2),t=A.value.substring(2,4),n=A.value.substring(4,6),r=A.value.substring(6,8);return[parseInt(e,16),parseInt(t,16),parseInt(n,16),parseInt(r,16)/255]}return[0,0,0,1]},Uu=(A,e)=>{const t=e.filter(GA);if(In(t))throw new Error("Relative color not supported for rgb()");if(t.length===3){const[n,r,s]=t.map(zt);return et(n,r,s,1)}if(t.length===4){const[n,r,s,o]=t.map(zt);return et(n,r,s,o)}return t.length===5&&t[3].type===6&&t[3].value==="/"?et(zt(t[0],0),zt(t[1],1),zt(t[2],2),zt(t[4],3)):0},aU=(A,e)=>{const t=e.filter(GA),n=t[0].type===20?t[0].value:"unknown";if(In(t)){const r=(k,E)=>{if(VA(E))return E.number;const v=U=>U==="r"||U==="x"?0:U==="g"||U==="y"?1:2;if(j(E))return k[v(E.value)];const y=U=>{const x=U.filter(GA);let D="(";for(const H of x)D+=H.type===18&&H.name==="calc"?y(H.values):VA(H)?H.number:H.type===6||j(H)?H.value:"";return D+=")",D};if(E.type===18){const U=E.values.filter(GA);if(E.name==="calc")return Gp(y(U).replace(/r|x/,k[0].toString()).replace(/g|y/,k[1].toString()).replace(/b|z/,k[2].toString()))}return null},s=t[1].type===18?t[1].name:j(t[1])||t[1].type===5?"rgb":"unknown",o=j(t[2])?t[2].value:"unknown";let a=t[1].type===18?t[1].values:j(t[1])?[t[1]]:[];if(j(t[1])){if(typeof ft[t[1].value.toUpperCase()]=="undefined")throw new Error("Attempting to use unknown color in relative color 'from'");{const k=lr(A,t[1].value),E=255&k,v=255&k>>8,y=255&k>>16;a=[{type:17,number:255&k>>24,flags:1},{type:17,number:y,flags:1},{type:17,number:v,flags:1},{type:17,number:E>1?E/255:E,flags:1}]}}else if(t[1].type===5){const[k,E,v,y]=ah(t[1]);a=[{type:17,number:k,flags:1},{type:17,number:E,flags:1},{type:17,number:v,flags:1},{type:17,number:y>1?y/255:y,flags:1}]}if(a.length===0)throw new Error("Attempting to use unknown color in relative color 'from'");if(o==="unknown")throw new Error("Attempting to use unknown colorspace in relative color 'to'");const i=cU[s],c=lU[o],u=Eu[o];if(typeof i=="undefined")throw new Error(`Attempting to parse an unsupported color space "${s}" for color() function`);if(typeof c=="undefined")throw new Error(`Attempting to parse an unsupported color space "${o}" for color() function`);const h=c(i(A,a)),f=r(h,t[3]),g=r(h,t[4]),m=r(h,t[5]),b=t.length>6&&t[6].type===6&&t[6].value==="/"&&VA(t[7])?t[7].number:1;if(f===null||g===null||m===null)throw new Error("Invalid relative color in color() function");return u([f,g,m,b])}else{const r=n,s=Eu[r];if(typeof s=="undefined")throw new Error(`Attempting to parse an unsupported color space "${r}" for color() function`);return s([VA(t[1])?t[1].number:0,VA(t[2])?t[2].number:0,VA(t[3])?t[3].number:0,t.length>4&&t[4].type===6&&t[4].value==="/"&&VA(t[5])?t[5].number:1])}},Eu={srgb:b0,"srgb-linear":Ic,"display-p3":K0,"a98-rgb":Z0,"prophoto-rgb":AU,xyz:yu,"xyz-d50":H0,"xyz-d65":yu,rec2020:iU},cU={rgb:k0,hsl:F0,lab:v0,lch:_0,oklab:S0,oklch:x0},lU={srgb:B0,"srgb-linear":w0,"display-p3":M0,"a98-rgb":G0,"prophoto-rgb":q0,xyz:Qu,"xyz-d50":T0,"xyz-d65":Qu,rec2020:oU},uU={hsl:bu,hsla:bu,rgb:Uu,rgba:Uu,lch:E0,oklch:U0,oklab:y0,lab:Q0,color:aU},lr=(A,e)=>Zt.parse(A,Vp.create(e).parseComponentValue()),ft={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},fn=A=>A.nodeType===Node.ELEMENT_NODE,ch=A=>A.nodeType===Node.TEXT_NODE,gn=A=>typeof A.className=="object",ws=A=>fn(A)&&typeof A.style!="undefined"&&!gn(A),dU=A=>A.tagName==="INPUT",pU=A=>A.tagName==="HTML",lh=A=>A.tagName==="svg",Hc=A=>A.tagName==="BODY",uh=A=>A.tagName==="CANVAS",ku=A=>A.tagName==="VIDEO",Xa=A=>A.tagName==="IMG",dh=A=>A.tagName==="IFRAME",ph=A=>A.tagName==="STYLE",hU=A=>A.tagName==="SCRIPT",Yo=A=>A.tagName==="TEXTAREA",qo=A=>A.tagName==="SELECT",Yr=A=>A.tagName==="SLOT",fU=A=>A.tagName==="LI",gU=A=>A.tagName==="OL",Fu=A=>!gn(A)&&A.tagName.indexOf("-")>0,BU=new Set(["IMG","VIDEO","AUDIO","CANVAS","IFRAME","INPUT","TEXTAREA","SELECT","BR","HR","META","LINK","BASE","COL","SOURCE","TRACK","WBR","AREA","PARAM","EMBED","OBJECT"]),wU=A=>!gn(A)&&!BU.has(A.tagName),Wa={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 52;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Ae=(A,e)=>(A&e)!==0;var mU=class{constructor(){this.counters={}}getCounterValue(A){const e=this.counters[A];return e&&e.length?e[e.length-1]:1}getCounterValues(A){const e=this.counters[A];return e||[]}pop(A){A.forEach(e=>this.counters[e].pop())}parse(A){const e=A.counterIncrement,t=A.counterReset;let n=!0;e!==null&&e.forEach(s=>{const o=this.counters[s.counter];o&&s.increment!==0&&(n=!1,o.length||o.push(1),o[Math.max(0,o.length-1)]+=s.increment)});const r=[];return n&&t.forEach(s=>{let o=this.counters[s.counter];r.push(s.counter),o||(o=this.counters[s.counter]=[]),o.push(s.reset)}),r}};const vu={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},_u={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},CU={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},bU={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Vn=(A,e,t,n,r,s)=>A<e||A>t?ms(A,r,s.length>0):n.integers.reduce((o,a,i)=>{for(;A>=a;)A-=a,o+=n.values[i];return o},"")+s,hh=(A,e,t,n)=>{let r="";do t||A--,r=n(A)+r,A/=e;while(A*e>=e);return r},HA=(A,e,t,n,r)=>{const s=t-e+1;return(A<0?"-":"")+(hh(Math.abs(A),s,n,o=>DA(Math.floor(o%s)+e))+r)},ln=(A,e,t=". ")=>{const n=e.length;return hh(Math.abs(A),n,!1,r=>e[Math.floor(r%n)])+t},QU=1,yU=2,UU=4,EU=8,kt=(A,e,t,n,r,s)=>{if(A<-9999||A>9999)return ms(A,4,r.length>0);let o=Math.abs(A),a=r;if(o===0)return e[0]+a;for(let i=0;o>0&&i<=4;i++){const c=o%10;c===0&&Ae(s,QU)&&a!==""?a=e[c]+a:c>1||c===1&&i===0||c===1&&i===1&&Ae(s,yU)||c===1&&i===1&&Ae(s,UU)&&A>100||c===1&&i>1&&Ae(s,EU)?a=e[c]+(i>0?t[i-1]:"")+a:c===1&&i>0&&(a=t[i-1]+a),o=Math.floor(o/10)}return(A<0?n:"")+a},xu="十百千萬",Su="拾佰仟萬",Iu="マイナス",ea="마이너스",ms=(A,e,t)=>{const n=t?". ":"",r=t?"、":"",s=t?", ":"",o=t?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:const a=HA(A,48,57,!0,n);return a.length<4?`0${a}`:a;case 4:return ln(A,"〇一二三四五六七八九",r);case 6:return Vn(A,1,3999,vu,3,n).toLowerCase();case 7:return Vn(A,1,3999,vu,3,n);case 8:return HA(A,945,969,!1,n);case 9:return HA(A,97,122,!1,n);case 10:return HA(A,65,90,!1,n);case 11:return HA(A,1632,1641,!0,n);case 12:case 49:return Vn(A,1,9999,_u,3,n);case 35:return Vn(A,1,9999,_u,3,n).toLowerCase();case 13:return HA(A,2534,2543,!0,n);case 14:case 30:return HA(A,6112,6121,!0,n);case 15:return ln(A,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return ln(A,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return kt(A,"零一二三四五六七八九",xu,"負",r,14);case 47:return kt(A,"零壹貳參肆伍陸柒捌玖",Su,"負",r,15);case 42:return kt(A,"零一二三四五六七八九",xu,"负",r,14);case 41:return kt(A,"零壹贰叁肆伍陆柒捌玖",Su,"负",r,15);case 26:return kt(A,"〇一二三四五六七八九","十百千万",Iu,r,0);case 25:return kt(A,"零壱弐参四伍六七八九","拾百千万",Iu,r,7);case 31:return kt(A,"영일이삼사오육칠팔구","십백천만",ea,s,7);case 33:return kt(A,"零一二三四五六七八九","十百千萬",ea,s,0);case 32:return kt(A,"零壹貳參四五六七八九","拾百千",ea,s,7);case 18:return HA(A,2406,2415,!0,n);case 20:return Vn(A,1,19999,bU,3,n);case 21:return HA(A,2790,2799,!0,n);case 22:return HA(A,2662,2671,!0,n);case 52:return Vn(A,1,10999,CU,3,n);case 23:return ln(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ln(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return HA(A,3302,3311,!0,n);case 28:return ln(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return ln(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return HA(A,3792,3801,!0,n);case 37:return HA(A,6160,6169,!0,n);case 38:return HA(A,4160,4169,!0,n);case 39:return HA(A,2918,2927,!0,n);case 40:return HA(A,1776,1785,!0,n);case 43:return HA(A,3046,3055,!0,n);case 44:return HA(A,3174,3183,!0,n);case 45:return HA(A,3664,3673,!0,n);case 46:return HA(A,3872,3881,!0,n);default:return HA(A,48,57,!0,n)}},kU={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:(A,e)=>e.map(t=>{if(j(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2;case"text":return 3}return 0})},FU={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Qi=(A,e)=>{const t=Zt.parse(A,e[0]),n=e[1];return n&&iA(n)?{color:t,stop:n}:{color:t,stop:null}},ta=(A,e)=>{const t=A[0],n=A[A.length-1];t.stop===null&&(t.stop=RA),n.stop===null&&(n.stop=At);const r=[];let s=0;for(let a=0;a<A.length;a++){const i=A[a].stop;if(i!==null){const c=J(i,e);c>s?r.push(c):r.push(s),s=c}else r.push(null)}let o=null;for(let a=0;a<r.length;a++){const i=r[a];if(i===null)o===null&&(o=a);else if(o!==null){const c=a-o,u=(i-r[o-1])/(c+1);for(let h=1;h<=c;h++)r[o+h-1]=u*h;o=null}}return A.map(({color:a},i)=>({color:a,stop:Math.max(Math.min(1,r[i]/e),0)}))},vU=(A,e,t)=>{const n=e/2,r=t/2,s=J(A[0],e)-n,o=r-J(A[1],t);return(Math.atan2(o,s)+Math.PI*2)%(Math.PI*2)},Tu=(A,e,t)=>{const n=typeof A=="number"?A:vU(A,e,t),r=Math.abs(e*Math.sin(n))+Math.abs(t*Math.cos(n)),s=e/2,o=t/2,a=r/2,i=Math.sin(n-Math.PI/2)*a,c=Math.cos(n-Math.PI/2)*a;return[r,s-c,s+c,o-i,o+i]},Ze=(A,e)=>Math.sqrt(A*A+e*e),Hu=(A,e,t,n,r)=>[[0,0],[0,e],[A,0],[A,e]].reduce((s,o)=>{const[a,i]=o,c=Ze(t-a,n-i);return(r?c<s.optimumDistance:c>s.optimumDistance)?{optimumCorner:o,optimumDistance:c}:s},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner,_U=(A,e,t,n,r)=>{let s=0,o=0;switch(A.size){case 0:A.shape===0?s=o=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===1&&(s=Math.min(Math.abs(e),Math.abs(e-n)),o=Math.min(Math.abs(t),Math.abs(t-r)));break;case 2:if(A.shape===0)s=o=Math.min(Ze(e,t),Ze(e,t-r),Ze(e-n,t),Ze(e-n,t-r));else if(A.shape===1){const a=Math.min(Math.abs(t),Math.abs(t-r))/Math.min(Math.abs(e),Math.abs(e-n)),[i,c]=Hu(n,r,e,t,!0);s=Ze(i-e,(c-t)/a),o=a*s}break;case 1:A.shape===0?s=o=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===1&&(s=Math.max(Math.abs(e),Math.abs(e-n)),o=Math.max(Math.abs(t),Math.abs(t-r)));break;case 3:if(A.shape===0)s=o=Math.max(Ze(e,t),Ze(e,t-r),Ze(e-n,t),Ze(e-n,t-r));else if(A.shape===1){const a=Math.max(Math.abs(t),Math.abs(t-r))/Math.max(Math.abs(e),Math.abs(e-n)),[i,c]=Hu(n,r,e,t,!1);s=Ze(i-e,(c-t)/a),o=a*s}break}return Array.isArray(A.size)&&(s=J(A.size[0],n),o=A.size.length===2?J(A.size[1],r):s),[s,o]},fh=(A,e)=>{let t=Ie(180);const n=[];return tt(e).forEach((r,s)=>{if(s===0){const a=r[0];if(a.type===20&&a.value==="to"){t=eh(r);return}else if(Ah(a)){t=mr.parse(A,a);return}}const o=Qi(A,r);n.push(o)}),{angle:t,stops:n,type:1}},oo=(A,e)=>{let t=Ie(180);const n=[];return tt(e).forEach((r,s)=>{if(s===0){const a=r[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){t=eh(r);return}else if(Ah(a)){t=(mr.parse(A,a)+Ie(270))%Ie(360);return}}const o=Qi(A,r);n.push(o)}),{angle:t,stops:n,type:1}},xU=(A,e)=>{const t=Ie(180),n=[];let r=1;const s=0,o=3,a=[];return tt(e).forEach((i,c)=>{const u=i[0];if(c===0){if(j(u)&&u.value==="linear"){r=1;return}else if(j(u)&&u.value==="radial"){r=2;return}}if(u.type===18){if(u.name==="from"){const h=Zt.parse(A,u.values[0]);n.push({stop:RA,color:h})}else if(u.name==="to"){const h=Zt.parse(A,u.values[0]);n.push({stop:At,color:h})}else if(u.name==="color-stop"){const h=u.values.filter(GA);if(h.length===2){const f=Zt.parse(A,h[1]),g=h[0];VA(g)&&n.push({stop:{type:16,number:g.number*100,flags:g.flags},color:f})}}}}),r===1?{angle:(t+Ie(180))%Ie(360),stops:n,type:r}:{size:o,shape:s,stops:n,position:a,type:r}},gh="closest-side",Bh="farthest-side",wh="closest-corner",mh="farthest-corner",Ch="circle",bh="ellipse",Qh="cover",yh="contain",SU=(A,e)=>{let t=0,n=3;const r=[],s=[];return tt(e).forEach((o,a)=>{let i=!0;if(a===0){let c=!1;i=o.reduce((u,h)=>{if(c)if(j(h))switch(h.value){case"center":return s.push(xt),u;case"top":case"left":return s.push(RA),u;case"right":case"bottom":return s.push(At),u}else(iA(h)||Jt(h))&&s.push(h);else if(j(h))switch(h.value){case Ch:return t=0,!1;case bh:return t=1,!1;case"at":return c=!0,!1;case gh:return n=0,!1;case Qh:case Bh:return n=1,!1;case yh:case wh:return n=2,!1;case mh:return n=3,!1}else if(Jt(h)||iA(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return u},i)}if(i){const c=Qi(A,o);r.push(c)}}),{size:n,shape:t,stops:r,position:s,type:2}},io=(A,e)=>{let t=0,n=3;const r=[],s=[];return tt(e).forEach((o,a)=>{let i=!0;if(a===0?i=o.reduce((c,u)=>{if(j(u))switch(u.value){case"center":return s.push(xt),!1;case"top":case"left":return s.push(RA),!1;case"right":case"bottom":return s.push(At),!1}else if(iA(u)||Jt(u))return s.push(u),!1;return c},i):a===1&&(i=o.reduce((c,u)=>{if(j(u))switch(u.value){case Ch:return t=0,!1;case bh:return t=1,!1;case yh:case gh:return n=0,!1;case Bh:return n=1,!1;case wh:return n=2,!1;case Qh:case mh:return n=3,!1}else if(Jt(u)||iA(u))return Array.isArray(n)||(n=[]),n.push(u),!1;return c},i)),i){const c=Qi(A,o);r.push(c)}}),{size:n,shape:t,stops:r,position:s,type:2}},Dr=(A,e)=>z(F({},fh(A,e)),{type:3}),IU=A=>A.type===1,TU=A=>A.type===2,HU=A=>A.type===3,yi={name:"image",parse:(A,e)=>{if(e.type===22){const t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(e.type===18){const t=Eh[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported image function "${e.name}"`);return t(A,e.values)}throw new Error(`Unsupported image type ${e.type}`)}};function Uh(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!Eh[A.name])}const Eh={"linear-gradient":fh,"-moz-linear-gradient":oo,"-ms-linear-gradient":oo,"-o-linear-gradient":oo,"-webkit-linear-gradient":oo,"radial-gradient":SU,"-moz-radial-gradient":io,"-ms-radial-gradient":io,"-o-radial-gradient":io,"-webkit-radial-gradient":io,"-webkit-gradient":xU,"repeating-linear-gradient":Dr,"-webkit-repeating-linear-gradient":Dr,"-moz-repeating-linear-gradient":Dr,"-ms-repeating-linear-gradient":Dr,"-o-repeating-linear-gradient":Dr},LU={name:"background-image",initialValue:"none",type:1,prefix:!1,skipCache:!0,parse:(A,e)=>{if(e.length===0)return[];const t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(n=>GA(n)&&Uh(n)).map(n=>yi.parse(A,n))}},DU={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:(A,e)=>e.map(t=>{if(j(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})},RU={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:(A,e)=>tt(e).map(t=>t.map(Xp).filter(n=>n!==null)).map(Wp)},OU={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:(A,e)=>tt(e).map(t=>t.filter(j).map(n=>n.value).join(" ")).map(PU)},PU=A=>{switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},MU={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:(A,e)=>tt(e).map(t=>t.map(n=>KU(n)?n:Xp(n)).filter(n=>n!==null))},KU=A=>j(A)||iA(A),Ui=A=>({name:`border-${A}-color`,initialValue:"transparent",prefix:!1,type:3,format:"color"}),NU=Ui("top"),$U=Ui("right"),zU=Ui("bottom"),VU=Ui("left"),Ei=A=>({name:`border-${A}-radius`,initialValue:"0 0",prefix:!1,type:1,parse:(e,t)=>Wp(t.filter(iA))}),GU=Ei("top-left"),ZU=Ei("top-right"),XU=Ei("bottom-right"),WU=Ei("bottom-left"),ki=A=>({name:`border-${A}-style`,initialValue:"solid",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}),JU=ki("top"),jU=ki("right"),YU=ki("bottom"),qU=ki("left"),Fi=A=>({name:`border-${A}-width`,initialValue:"0",type:0,prefix:!1,parse:(e,t)=>wt(t)?t.number:0}),AE=Fi("top"),eE=Fi("right"),tE=Fi("bottom"),nE=Fi("left"),Ja={type:0},ja=A=>{const[e]=A;return e?j(e)?e.value==="farthest-side"?"farthest-side":"closest-side":iA(e)?e:"closest-side":"closest-side"},kh=A=>{let e=null,t=null;for(const n of A)if(j(n))switch(n.value){case"left":e=RA;break;case"right":e=At;break;case"top":t=RA;break;case"bottom":t=At;break;case"center":e===null?e=xt:t===null&&(t=xt);break}else iA(n)&&(e===null?e=n:t===null&&(t=n));return{cx:e!=null?e:xt,cy:t!=null?t:xt}},rE=A=>{var r,s,o,a;const e=[];for(const i of A)if(i.type!==31){if(j(i)&&i.value==="round")break;iA(i)&&e.push(i)}const t=(r=e[0])!=null?r:RA,n=(s=e[1])!=null?s:t;return{type:1,top:t,right:n,bottom:(o=e[2])!=null?o:t,left:(a=e[3])!=null?a:n}},sE=A=>{const e=A.filter(Es),t=e.findIndex(s=>Bs(s,"at")),n=t===-1?e:e.slice(0,t),r=t===-1?[]:e.slice(t+1);return F({type:2,radius:ja(n)},kh(r))},oE=A=>{const e=A.filter(Es),t=e.findIndex(s=>Bs(s,"at")),n=t===-1?e:e.slice(0,t),r=t===-1?[]:e.slice(t+1);return F({type:3,rx:ja(n.slice(0,1)),ry:ja(n.slice(1,2))},kh(r))},iE=A=>{const e=tt(A),t=[];for(const n of e){if(n.length===1&&j(n[0]))continue;const r=n.filter(iA);r.length>=2&&t.push([r[0],r[1]])}return{type:4,points:t}},aE=A=>{const e=A.find(t=>t.type===0);return e?{type:5,d:e.value}:Ja},cE={name:"clip-path",initialValue:"none",prefix:!1,type:0,parse:(A,e)=>{if(j(e)&&e.value==="none")return Ja;if(e.type===18)switch(e.name){case"inset":return rE(e.values);case"circle":return sE(e.values);case"ellipse":return oE(e.values);case"polygon":return iE(e.values);case"path":return aE(e.values)}return Ja}},lE={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},uE={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"rtl":return 1;default:return 0}}},dE={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:(A,e)=>e.filter(j).reduce((t,n)=>t|pE(n.value),0)},pE=A=>{switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Lu={name:"float",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},hE={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:(A,e)=>e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0},fE={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"strict":return"strict";default:return"normal"}}},gE={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ya=(A,e)=>j(A)&&A.value==="normal"?1.2*e:A.type===17?e*A.number:iA(A)?J(A,e):e,BE={name:"list-style-image",initialValue:"none",type:0,prefix:!1,skipCache:!0,parse:(A,e)=>e.type===20&&e.value==="none"?null:yi.parse(A,e)},wE={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"inside":return 0;default:return 1}}},vi=A=>({name:`margin-${A}`,initialValue:"0",prefix:!1,type:4}),mE=vi("top"),CE=vi("right"),bE=vi("bottom"),QE=vi("left"),Du={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:(A,e)=>e.filter(j).map(t=>{switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})},yE={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"break-word":return"break-word";default:return"normal"}}},_i=A=>({name:`padding-${A}`,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}),UE=_i("top"),EE=_i("right"),kE=_i("bottom"),FE=_i("left"),vE={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},_E={name:"position",initialValue:"static",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},xE={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.length===1&&Bs(e[0],"none")?[]:tt(e).map(t=>{const n={color:ft.TRANSPARENT,offsetX:RA,offsetY:RA,blur:RA};let r=0;for(let s=0;s<t.length;s++){const o=t[s];Jt(o)?(r===0?n.offsetX=o:r===1?n.offsetY=o:n.blur=o,r++):n.color=Zt.parse(A,o)}return n})},SE={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},IE={name:"transform",initialValue:"none",prefix:!0,type:0,parse:(A,e)=>{if(e.type===20&&e.value==="none")return null;if(e.type===18){const t=DE[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported transform function "${e.name}"`);return t(A,e.values)}return null}},TE=(A,e)=>{const t=e.filter(n=>n.type===17).map(n=>n.number);return t.length===6?t:null},HE=(A,e)=>{const t=e.filter(c=>c.type===17).map(c=>c.number),[n,r,{},{},s,o,{},{},{},{},{},{},a,i]=t;return t.length===16?[n,r,s,o,a,i]:null},LE=(A,e)=>{if(e.length!==1)return null;const t=e[0];let n=0;if(t.type===17&&t.number===0)n=0;else if(t.type===15)n=mr.parse(A,t);else return null;const r=Math.cos(n),s=Math.sin(n);return[r,s,-s,r,0,0]},DE={matrix:TE,matrix3d:HE,rotate:LE},Ru={type:16,number:50,flags:4},RE=[Ru,Ru],OE={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:(A,e)=>{const t=e.filter(iA);return t.length!==2?RE:[t[0],t[1]]}},PE={name:"rotate",initialValue:"none",prefix:!1,type:0,parse:(A,e)=>e.type===20&&e.value==="none"?null:e.type===17&&e.number===0?0:e.type===15?mr.parse(A,e)*180/Math.PI:null},ME={name:"visibility",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}},KE={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"break-all":return"break-all";case"keep-all":return"keep-all";default:return"normal"}}},NE={name:"white-space",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"pre":return"pre";case"nowrap":return"nowrap";case"pre-wrap":return"pre-wrap";case"pre-line":return"pre-line";default:return"normal"}}},Ai=A=>A!==0,na=A=>A===3||A===4,$E={name:"writing-mode",initialValue:"horizontal-tb",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"vertical-rl":return 1;case"vertical-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4;default:return 0}}},zE={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>{if(e.type===20)return{auto:!0,order:0};if(VA(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Fh={name:"time",parse:(A,e)=>{if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},VE={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:(A,e)=>VA(e)?e.number:1},Ou={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Pu={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:(A,e)=>e.filter(j).map(t=>{switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(t=>t!==0)},GE={name:"text-decoration-style",initialValue:"solid",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"double":return 1;case"dotted":return 2;case"dashed":return 3;case"wavy":return 4;default:return 0}}},ZE={name:"text-decoration-thickness",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>{if(j(e))switch(e.value){case"auto":return"auto";case"from-font":return"from-font"}return wt(e)?e.number:"auto"}},XE={name:"text-underline-offset",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>j(e)&&e.value==="auto"?"auto":wt(e)?e.number:"auto"},WE={name:"font-family",initialValue:"",prefix:!1,type:1,parse:(A,e)=>{const t=[],n=[],r=[];let s=!1;return e.forEach(o=>{switch(o.type){case 20:t.push(o.value);break;case 0:s=!0,t.push(o.value);break;case 17:t.push(o.number.toString());break;case 4:n.push(t.join(" ")),r.push(s),s=!1,t.length=0;break}}),t.length&&(n.push(t.join(" ")),r.push(s)),n.map((o,a)=>r[a]||o.indexOf(" ")!==-1?`'${o.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\n/g,"\\a ").replace(/\r/g,"\\d ").replace(/\f/g,"\\c ")}'`:o)}},JE={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},jE={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:(A,e)=>{if(VA(e))return e.number;if(j(e))switch(e.value){case"bold":return 700;default:return 400}return 400}},YE={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.filter(j).map(t=>t.value)},qE={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},Ak={name:"content",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>{if(e.length===0)return[];const t=e[0];return t.type===20&&t.value==="none"?[]:e}},vh=(A,e)=>{const t=[],n=A.filter(Es);for(let r=0;r<n.length;r++){const s=n[r],o=n[r+1];if(s.type===20){const a=o&&VA(o)?o.number:e;t.push([s.value,a])}}return t},ek={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>{if(e.length===0)return null;const t=e[0];return t.type===20&&t.value==="none"?null:vh(e,1).map(([n,r])=>({counter:n,increment:r}))}},tk={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>e.length===0?[]:vh(e,0).filter(([t])=>t!=="none").map(([t,n])=>({counter:t,reset:n}))},nk={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:(A,e)=>e.filter(wt).map(t=>Fh.parse(A,t))},rk={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>{if(e.length===0)return null;const t=e[0];if(t.type===20&&t.value==="none")return null;const n=[],r=e.filter(h0);if(r.length%2!==0)return null;for(let s=0;s<r.length;s+=2){const o=r[s].value,a=r[s+1].value;n.push({open:o,close:a})}return n}},Mu=(A,e,t)=>{if(!A)return"";const n=A[Math.min(e,A.length-1)];return n?t?n.open:n.close:""},sk={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.length===1&&Bs(e[0],"none")?[]:tt(e).map(t=>{const n={color:255,offsetX:RA,offsetY:RA,blur:RA,spread:RA,inset:!1};let r=0;for(let s=0;s<t.length;s++){const o=t[s];Bs(o,"inset")?n.inset=!0:Jt(o)?(r===0?n.offsetX=o:r===1?n.offsetY=o:r===2?n.blur=o:n.spread=o,r++):n.color=Zt.parse(A,o)}return n})},ok={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:(A,e)=>{const t=[0,1,2],n=[];return e.filter(j).forEach(r=>{switch(r.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),t.forEach(r=>{n.indexOf(r)===-1&&n.push(r)}),n}},ik={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},ak={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:(A,e)=>wt(e)?e.number:0},ck={name:"-webkit-line-clamp",initialValue:"none",prefix:!0,type:0,parse:(A,e)=>e.type===20&&e.value==="none"?0:e.type===17?Math.max(0,Math.floor(e.number)):0},lk={name:"object-fit",initialValue:"fill",prefix:!1,type:1,parse:(A,e)=>e.filter(j).reduce((t,n)=>t|uk(n.value),0)},uk=A=>{switch(A){case"contain":return 2;case"cover":return 4;case"none":return 8;case"scale-down":return 16}return 0},dk={name:"text-overflow",initialValue:"clip",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"ellipsis":return 1;default:return 0}}},pk={name:"image-rendering",initialValue:"auto",prefix:!1,type:2,parse:(A,e)=>{switch(e.toLowerCase()){case"crisp-edges":case"-webkit-crisp-edges":case"-moz-crisp-edges":return 1;case"pixelated":case"-webkit-optimize-contrast":return 2;case"smooth":case"high-quality":return 3;default:return 0}}},zA={NORMAL:"normal",MULTIPLY:"multiply",SCREEN:"screen",OVERLAY:"overlay",DARKEN:"darken",LIGHTEN:"lighten",COLOR_DODGE:"color-dodge",COLOR_BURN:"color-burn",HARD_LIGHT:"hard-light",SOFT_LIGHT:"soft-light",DIFFERENCE:"difference",EXCLUSION:"exclusion",HUE:"hue",SATURATION:"saturation",COLOR:"color",LUMINOSITY:"luminosity"},hk=new Set(Object.values(zA)),fk={name:"mix-blend-mode",initialValue:"normal",type:2,prefix:!1,parse:(A,e)=>hk.has(e)?e:zA.NORMAL},gk={name:"filter",initialValue:"none",prefix:!1,type:1,parse:(A,e)=>{if(e.length===1&&e[0].type===20&&e[0].value==="none")return null;const t=[];for(const n of e)if(n.type===18){const r=n,s=Bk(r.values);switch(r.name){case"blur":t.push(`blur(${s}px)`);break;case"brightness":case"contrast":case"invert":case"opacity":case"saturate":case"sepia":t.push(`${r.name}(${s})`);break;case"grayscale":t.push(`grayscale(${s})`);break;case"hue-rotate":t.push(`hue-rotate(${s}deg)`);break;case"drop-shadow":t.push(`drop-shadow(${s})`);break}}return t.length>0?t.join(" "):null}},Bk=A=>{const e=[];for(const t of A)t.type!==31&&(t.type===15?e.push(`${t.number}${t.unit}`):t.type===17?e.push(`${t.number}`):t.type===16?e.push(`${t.number}%`):t.type===20?e.push(t.value):t.type===5&&e.push(`#${t.value}`));return e.join(" ")},wk={name:"font-variant-ligatures",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"none":return 1;case"common-ligatures":return 2;case"no-common-ligatures":return 3;case"discretionary-ligatures":return 4;case"no-discretionary-ligatures":return 5;case"historical-ligatures":return 6;case"no-historical-ligatures":return 7;case"contextual":return 8;case"no-contextual":return 9;default:return 0}}},mk={name:"zoom",initialValue:"1",type:0,prefix:!1,parse:(A,e)=>e.type===16?Math.max(0,e.number/100):e.type===17?Math.max(0,e.number):1},Ck={name:"object-position",initialValue:"50% 50%",prefix:!1,type:1,parse:(A,e)=>{const t=[];let n=0;for(;n<e.length&&t.length<2;){const r=e[n];if(j(r))switch(r.value){case"left":case"top":t.push(RA);break;case"center":t.push(xt);break;case"right":case"bottom":t.push(At);break}else iA(r)&&t.push(r);n++}for(;t.length<2;)t.push(xt);return[t[0],t[1]]}},bk=new Set(Object.values({NORMAL:"normal",MULTIPLY:"multiply",SCREEN:"screen",OVERLAY:"overlay",DARKEN:"darken",LIGHTEN:"lighten",COLOR_DODGE:"color-dodge",COLOR_BURN:"color-burn",HARD_LIGHT:"hard-light",SOFT_LIGHT:"soft-light",DIFFERENCE:"difference",EXCLUSION:"exclusion",HUE:"hue",SATURATION:"saturation",COLOR:"color",LUMINOSITY:"luminosity"})),Qk={name:"background-blend-mode",initialValue:"normal",prefix:!1,type:1,parse:(A,e)=>{const t=[],n=e.filter(GA);for(const r of n)j(r)&&bk.has(r.value)&&t.push(r.value);return t.length>0?t:["normal"]}},yk={name:"border-image-source",initialValue:"none",prefix:!1,type:1,skipCache:!0,parse:(A,e)=>{if(e.length===0)return null;const t=e.filter(n=>GA(n)&&Uh(n));return t.length===0?null:yi.parse(A,t[0])}},Uk=A=>{const e=[...A];return e.length===1?e.push(e[0],e[0],e[0]):e.length===2?e.push(e[0],e[1]):e.length===3&&e.push(e[1]),e.slice(0,4)},Ek={name:"border-image-slice",initialValue:"100%",prefix:!1,type:1,parse:(A,e)=>{const t=e.filter(Es),n=[];let r=!1,s="percent";for(const u of t){if(j(u)&&u.value==="fill"){r=!0;continue}u.type===17?(n.push(u.number),s="number"):u.type===16&&(n.push(u.number),s="percent")}const[o,a,i,c]=Uk(n.length>0?n:[100]);return{top:o,right:a,bottom:i,left:c,fill:r,unit:s}}},kk=A=>{switch(A){case"repeat":return 1;case"round":return 2;case"space":return 3;default:return 0}},Fk={name:"border-image-repeat",initialValue:"stretch",prefix:!1,type:1,parse:(A,e)=>{var s,o;const t=e.filter(Es),n=[];for(const a of t)j(a)&&n.push(kk(a.value));const r=(s=n[0])!=null?s:0;return{horizontal:r,vertical:(o=n[1])!=null?o:r}}},vk={name:"box-decoration-break",initialValue:"slice",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"clone":return 1;default:return 0}}},_k=1e4;var xk=class{constructor(A){this.styles=A}get topColor(){return this.styles.borderTopColor}get rightColor(){return this.styles.borderRightColor}get bottomColor(){return this.styles.borderBottomColor}get leftColor(){return this.styles.borderLeftColor}get topStyle(){return this.styles.borderTopStyle}get rightStyle(){return this.styles.borderRightStyle}get bottomStyle(){return this.styles.borderBottomStyle}get leftStyle(){return this.styles.borderLeftStyle}get topWidth(){return this.styles.borderTopWidth}get rightWidth(){return this.styles.borderRightWidth}get bottomWidth(){return this.styles.borderBottomWidth}get leftWidth(){return this.styles.borderLeftWidth}get topLeftRadius(){return this.styles.borderTopLeftRadius}get topRightRadius(){return this.styles.borderTopRightRadius}get bottomRightRadius(){return this.styles.borderBottomRightRadius}get bottomLeftRadius(){return this.styles.borderBottomLeftRadius}get imageSource(){return this.styles.borderImageSource}get imageSlice(){return this.styles.borderImageSlice}get imageRepeat(){return this.styles.borderImageRepeat}get boxShadow(){return this.styles.boxShadow}},Sk=class{constructor(A){this.styles=A}get color(){return this.styles.backgroundColor}get image(){return this.styles.backgroundImage}get clip(){return this.styles.backgroundClip}get origin(){return this.styles.backgroundOrigin}get position(){return this.styles.backgroundPosition}get repeat(){return this.styles.backgroundRepeat}get size(){return this.styles.backgroundSize}get blendMode(){return this.styles.backgroundBlendMode}},Ik=class{constructor(A){this.styles=A}get family(){return this.styles.fontFamily}get size(){return this.styles.fontSize}get style(){return this.styles.fontStyle}get variant(){return this.styles.fontVariant}get weight(){return this.styles.fontWeight}get ligatures(){return this.styles.fontVariantLigatures}get color(){return this.styles.color}get letterSpacing(){return this.styles.letterSpacing}get lineHeight(){return this.styles.lineHeight}get textAlign(){return this.styles.textAlign}get textTransform(){return this.styles.textTransform}get textOverflow(){return this.styles.textOverflow}get textShadow(){return this.styles.textShadow}get textDecorationColor(){return this.styles.textDecorationColor}get textDecorationLine(){return this.styles.textDecorationLine}get textDecorationStyle(){return this.styles.textDecorationStyle}get textDecorationThickness(){return this.styles.textDecorationThickness}get textUnderlineOffset(){return this.styles.textUnderlineOffset}get wordBreak(){return this.styles.wordBreak}get lineBreak(){return this.styles.lineBreak}get overflowWrap(){return this.styles.overflowWrap}get writingMode(){return this.styles.writingMode}get direction(){return this.styles.direction}get webkitTextStrokeColor(){return this.styles.webkitTextStrokeColor}get webkitTextStrokeWidth(){return this.styles.webkitTextStrokeWidth}get webkitLineClamp(){return this.styles.webkitLineClamp}get paintOrder(){return this.styles.paintOrder}},Tk=class{constructor(A){this.styles=A}get display(){return this.styles.display}get position(){return this.styles.position}get float(){return this.styles.float}get zIndex(){return this.styles.zIndex}get marginTop(){return this.styles.marginTop}get marginRight(){return this.styles.marginRight}get marginBottom(){return this.styles.marginBottom}get marginLeft(){return this.styles.marginLeft}get paddingTop(){return this.styles.paddingTop}get paddingRight(){return this.styles.paddingRight}get paddingBottom(){return this.styles.paddingBottom}get paddingLeft(){return this.styles.paddingLeft}get overflowX(){return this.styles.overflowX}get overflowY(){return this.styles.overflowY}get opacity(){return this.styles.opacity}get visibility(){return this.styles.visibility}get transform(){return this.styles.transform}get transformOrigin(){return this.styles.transformOrigin}get rotate(){return this.styles.rotate}get zoom(){return this.styles.zoom}get clipPath(){return this.styles.clipPath}get mixBlendMode(){return this.styles.mixBlendMode}get filter(){return this.styles.filter}get imageRendering(){return this.styles.imageRendering}get objectFit(){return this.styles.objectFit}get objectPosition(){return this.styles.objectPosition}get boxDecorationBreak(){return this.styles.boxDecorationBreak}get listStyleImage(){return this.styles.listStyleImage}get listStylePosition(){return this.styles.listStylePosition}get listStyleType(){return this.styles.listStyleType}get animationDuration(){return this.styles.animationDuration}isVisible(){return this.styles.isVisible()}isTransparent(){return this.styles.isTransparent()}isTransformed(){return this.styles.isTransformed()}isPositioned(){return this.styles.isPositioned()}isPositionedWithZIndex(){return this.styles.isPositionedWithZIndex()}isFloating(){return this.styles.isFloating()}isInlineLevel(){return this.styles.isInlineLevel()}},Un,Hk=(Un=class{get border(){var e;return(e=this._border)!=null?e:this._border=new xk(this)}get background(){var e;return(e=this._background)!=null?e:this._background=new Sk(this)}get font(){var e;return(e=this._font)!=null?e:this._font=new Ik(this)}get layout(){var e;return(e=this._layout)!=null?e:this._layout=new Tk(this)}constructor(e,t){var s,o;const n=Un.standardProps;if(t.display==="none"){this.display=0;for(const[i,c]of n)i!=="display"&&(this[i]=he(e,c,void 0));this.float=he(e,Lu,void 0),this.textDecorationColor=he(e,Ou,void 0),this.textDecorationLine=he(e,Pu,void 0);const a=he(e,Du,void 0);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0];return}for(const[a,i,c]of n)this[a]=he(e,i,t[c]);this.float=he(e,Lu,t.cssFloat),this.textDecorationColor=he(e,Ou,(s=t.textDecorationColor)!=null?s:t.color),this.textDecorationLine=he(e,Pu,(o=t.textDecorationLine)!=null?o:t.textDecoration);const r=he(e,Du,t.overflow);this.overflowX=r[0],this.overflowY=r[r.length>1?1:0]}isVisible(){return this.display>0&&this.opacity>0&&this.visibility===0}isTransparent(){return St(this.backgroundColor)}isTransformed(){return this.transform!==null||this.rotate!==null}isPositioned(){return this.position!==0}isPositionedWithZIndex(){return this.isPositioned()&&!this.zIndex.auto}isFloating(){return this.float!==0}isInlineLevel(){return Ae(this.display,4)||Ae(this.display,33554432)||Ae(this.display,268435456)||Ae(this.display,536870912)||Ae(this.display,67108864)||Ae(this.display,134217728)}},Un.standardProps=[["animationDuration",nk,"animationDuration"],["backgroundClip",kU,"backgroundClip"],["backgroundColor",FU,"backgroundColor"],["backgroundImage",LU,"backgroundImage"],["backgroundOrigin",DU,"backgroundOrigin"],["backgroundPosition",RU,"backgroundPosition"],["backgroundRepeat",OU,"backgroundRepeat"],["backgroundSize",MU,"backgroundSize"],["borderTopColor",NU,"borderTopColor"],["borderRightColor",$U,"borderRightColor"],["borderBottomColor",zU,"borderBottomColor"],["borderLeftColor",VU,"borderLeftColor"],["borderTopLeftRadius",GU,"borderTopLeftRadius"],["borderTopRightRadius",ZU,"borderTopRightRadius"],["borderBottomRightRadius",XU,"borderBottomRightRadius"],["borderBottomLeftRadius",WU,"borderBottomLeftRadius"],["borderTopStyle",JU,"borderTopStyle"],["borderRightStyle",jU,"borderRightStyle"],["borderBottomStyle",YU,"borderBottomStyle"],["borderLeftStyle",qU,"borderLeftStyle"],["borderTopWidth",AE,"borderTopWidth"],["borderRightWidth",eE,"borderRightWidth"],["borderBottomWidth",tE,"borderBottomWidth"],["borderLeftWidth",nE,"borderLeftWidth"],["boxShadow",sk,"boxShadow"],["clipPath",cE,"clipPath"],["color",lE,"color"],["direction",uE,"direction"],["display",dE,"display"],["fontFamily",WE,"fontFamily"],["fontSize",JE,"fontSize"],["fontStyle",qE,"fontStyle"],["fontVariant",YE,"fontVariant"],["fontWeight",jE,"fontWeight"],["letterSpacing",hE,"letterSpacing"],["lineBreak",fE,"lineBreak"],["lineHeight",gE,"lineHeight"],["listStyleImage",BE,"listStyleImage"],["listStylePosition",wE,"listStylePosition"],["listStyleType",Wa,"listStyleType"],["marginTop",mE,"marginTop"],["marginRight",CE,"marginRight"],["marginBottom",bE,"marginBottom"],["marginLeft",QE,"marginLeft"],["opacity",VE,"opacity"],["overflowWrap",yE,"overflowWrap"],["paddingTop",UE,"paddingTop"],["paddingRight",EE,"paddingRight"],["paddingBottom",kE,"paddingBottom"],["paddingLeft",FE,"paddingLeft"],["paintOrder",ok,"paintOrder"],["position",_E,"position"],["textAlign",vE,"textAlign"],["textDecorationStyle",GE,"textDecorationStyle"],["textDecorationThickness",ZE,"textDecorationThickness"],["textUnderlineOffset",XE,"textUnderlineOffset"],["textShadow",xE,"textShadow"],["textTransform",SE,"textTransform"],["textOverflow",dk,"textOverflow"],["transform",IE,"transform"],["transformOrigin",OE,"transformOrigin"],["rotate",PE,"rotate"],["visibility",ME,"visibility"],["webkitTextStrokeColor",ik,"webkitTextStrokeColor"],["webkitTextStrokeWidth",ak,"webkitTextStrokeWidth"],["webkitLineClamp",ck,"webkitLineClamp"],["wordBreak",KE,"wordBreak"],["whiteSpace",NE,"whiteSpace"],["writingMode",$E,"writingMode"],["zIndex",zE,"zIndex"],["objectFit",lk,"objectFit"],["imageRendering",pk,"imageRendering"],["mixBlendMode",fk,"mixBlendMode"],["filter",gk,"filter"],["fontVariantLigatures",wk,"fontVariantLigatures"],["zoom",mk,"zoom"],["objectPosition",Ck,"objectPosition"],["backgroundBlendMode",Qk,"backgroundBlendMode"],["borderImageSource",yk,"borderImageSource"],["borderImageSlice",Ek,"borderImageSlice"],["borderImageRepeat",Fk,"borderImageRepeat"],["boxDecorationBreak",vk,"boxDecorationBreak"]],Un),Lk=class{constructor(A,e){this.content=he(A,Ak,e.content),this.quotes=he(A,rk,e.quotes)}},Ku=class{constructor(A,e){this.counterIncrement=he(A,ek,e.counterIncrement),this.counterReset=he(A,tk,e.counterReset)}};const Nu=new Map,he=(A,e,t)=>{let n=t!==null&&typeof t!="undefined"?t.toString():e.initialValue;n.trim()===""&&(n=e.initialValue);let r=Nu.get(e);if(r){const i=r.get(n);if(i!==void 0)return r.delete(n),r.set(n,i),i}const s=Va.get();s.write(n);const o=new Vp(s.read());Va.release(s);const a=(()=>{switch(e.type){case 2:{const i=o.parseComponentValue();return e.parse(A,j(i)?i.value:e.initialValue)}case 0:return e.parse(A,o.parseComponentValue());case 1:return e.parse(A,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(e.format){case"angle":return mr.parse(A,o.parseComponentValue());case"color":return Zt.parse(A,o.parseComponentValue());case"image":return yi.parse(A,o.parseComponentValue());case"length":{const i=o.parseComponentValue();return Jt(i)?i:RA}case"length-percentage":{const i=o.parseComponentValue();return iA(i)?i:RA}case"time":return Fh.parse(A,o.parseComponentValue())}}})();if(r||(r=new Map,Nu.set(e,r)),!(e.skipCache||e.type===3&&e.format==="image")){if(r.size>=200){const i=r.keys().next().value;r.delete(i)}r.set(n,a)}return a},Dk="data-html2canvas-debug",Rk=A=>{if(typeof A.getAttribute!="function")return 0;switch(A.getAttribute(Dk)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},qa=(A,e)=>{const t=Rk(A);return t===1||e===t},Ok="data-html2canvas-ignore";var Pk=class{constructor(A,e,t){this.cloneNodeFn=A,this.options=e,this.context=t}appendChildNode(A,e,t){this.safeAppendClonedChild(A,e,t)}cloneChildNodes(A,e,t){A.shadowRoot&&e.shadowRoot?(this.cloneShadowDOMChildren(A.shadowRoot,e.shadowRoot,t),this.cloneLightDOMChildren(A,e,t)):A.shadowRoot&&!e.shadowRoot?this.cloneShadowDOMAsLightDOM(A.shadowRoot,e,t):this.cloneLightDOMChildren(A,e,t)}shouldCloneChild(A){return!fn(A)||!hU(A)&&!A.hasAttribute("data-html2canvas-ignore")&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A))}shouldCloneStyleElement(A){return!this.options.copyStyles||!fn(A)||!ph(A)}safeAppendClonedChild(A,e,t){this.shouldCloneChild(e)&&this.shouldCloneStyleElement(e)&&A.appendChild(this.cloneNodeFn(e,t))}cloneAssignedNodes(A,e,t){A.forEach(n=>{this.safeAppendClonedChild(e,n,t)})}cloneSlotFallbackContent(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)this.safeAppendClonedChild(e,n,t)}cloneSlotElement(A,e,t){if(!Yr(A))return;const n=A;if(typeof n.assignedNodes!="function"){this.context.logger.warn("HTMLSlotElement.assignedNodes is not available",A),this.cloneSlotFallbackContent(A,e,t);return}const r=n.assignedNodes();if(!r||!Array.isArray(r)){this.context.logger.warn("assignedNodes() did not return a valid array",A),this.cloneSlotFallbackContent(A,e,t);return}r.length>0?this.cloneAssignedNodes(r,e,t):this.cloneSlotFallbackContent(A,e,t)}cloneShadowDOMChildren(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)fn(n)&&Yr(n)?this.cloneSlotElement(n,e,t):this.safeAppendClonedChild(e,n,t)}cloneLightDOMChildren(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)this.appendChildNode(e,n,t)}cloneSlotElementAsLightDOM(A,e,t){if(!Yr(A))return;const n=A;if(typeof n.assignedNodes!="function"){for(let s=A.firstChild;s;s=s.nextSibling)this.appendChildNode(e,s,t);return}const r=n.assignedNodes();if(r&&Array.isArray(r)&&r.length>0)r.forEach(s=>this.appendChildNode(e,s,t));else for(let s=A.firstChild;s;s=s.nextSibling)this.appendChildNode(e,s,t)}cloneShadowDOMAsLightDOM(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)fn(n)&&Yr(n)?this.cloneSlotElementAsLightDOM(n,e,t):this.appendChildNode(e,n,t)}};const Mk=A=>{let e=A;for(;e;){if(e.parentNode&&e.parentNode.host)return e.parentNode;const t=e.getRootNode();if(t&&t!==e.ownerDocument&&t.host)return t;e=e.parentNode}return null};var ra=class{constructor(A,e,t){var n;if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new mU,this.quoteDepth=0,this.slotCloner=new Pk((r,s)=>this.cloneNode(r,s),{ignoreElements:t.ignoreElements,copyStyles:(n=t.copyStyles)!=null?n:!0},A),!e.ownerDocument)throw new Error("Cloned element does not have an owner document");if(!this.options.iframeContainer){const r=Mk(e);r&&(this.options.iframeContainer=r)}this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}toIFrame(A,e){var h,f;const t=Kk(A,e,this.options.iframeContainer);if(!t.contentWindow)throw new Error("Unable to find iframe window");const n=A.defaultView.pageXOffset,r=A.defaultView.pageYOffset,s=t.contentWindow,o=s.document,a=zk(t).then(()=>I(this,null,function*(){this.scrolledElements.forEach(Xk),s&&s.scrollTo(e.left,e.top);const g=this.options.onclone,m=this.clonedReferenceElement;if(typeof m=="undefined")throw new Error(`Error finding the ${this.referenceElement.nodeName} in the cloned document`);return o.fonts&&o.fonts.ready&&(yield o.fonts.ready),/(AppleWebKit)/g.test(navigator.userAgent)&&(yield $k(o)),typeof g=="function"&&(yield Promise.resolve().then(()=>g(o,m))),s.scrollTo(e.left,e.top),/AppleWebKit/g.test(navigator.userAgent)&&(s.scrollY!==e.top||s.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-e.left,s.scrollY-e.top,0,0)),t})),i=A.baseURI;o.open();const c=Gk(document.doctype)+"<html></html>";try{const g=(h=this.referenceElement.ownerDocument)==null?void 0:h.defaultView,m=g&&g.trustedTypes;let b=(f=m==null?void 0:m.getPolicy)==null?void 0:f.call(m,"html2canvas-pro");!b&&m&&(b=m.createPolicy("html2canvas-pro",{createHTML:E=>E}));const k=b?b.createHTML(c):c;o.write(k)}catch(g){o.write(c)}Zk(this.referenceElement.ownerDocument,n,r),o.close();const u=o.adoptNode(this.documentElement);return qk(u,i),o.replaceChild(u,o.documentElement),a}createElementClone(A){if(qa(A,2))debugger;if(uh(A))return this.createCanvasClone(A);if(ku(A))return this.createVideoClone(A);if(ph(A))return this.createStyleClone(A);const e=A.cloneNode(!1);return Xa(e)&&(Xa(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),Fu(e)&&!gn(e)?this.createCustomElementClone(A,e):e}createCustomElementClone(A,e){const t=document.createElement("div");t.className=e.className,sa(e.style,t);const n=e.attributes;for(let r=0;r<n.length;r++){const s=n[r];s.name!=="class"&&s.name!=="style"&&t.setAttribute(s.name,s.value)}if(A.shadowRoot)try{t.attachShadow({mode:"open"})}catch(r){this.context.logger.error("Failed to attach shadow root to custom element clone:",r)}return t}createStyleClone(A){try{const t=A.sheet;if(t&&t.cssRules){const n=[].slice.call(t.cssRules,0).reduce((s,o)=>o&&typeof o.cssText=="string"?s+o.cssText:s,""),r=A.cloneNode(!1);return r.textContent=n,this.options.cspNonce&&(r.nonce=this.options.cspNonce),r}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),t.name!=="SecurityError")throw t}const e=A.cloneNode(!1);return this.options.cspNonce&&(e.nonce=this.options.cspNonce),e}createCanvasClone(A){var t,n;if(this.options.inlineImages&&A.ownerDocument){const r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch(s){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}const e=A.cloneNode(!1);try{e.width=A.width,e.height=A.height;const r=A.getContext("2d"),s=e.getContext("2d",{willReadFrequently:!0});if(s)if(!this.options.allowTaint&&r)s.putImageData(r.getImageData(0,0,A.width,A.height),0,0);else{const o=(t=A.getContext("webgl2"))!=null?t:A.getContext("webgl");o&&((n=o.getContextAttributes())==null?void 0:n.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A),s.drawImage(A,0,0)}return e}catch(r){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return e}createVideoClone(A){const e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;const t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(r){this.context.logger.info("Unable to clone video as it is tainted",A)}const n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n}appendChildNode(A,e,t){this.slotCloner.appendChildNode(A,e,t)}cloneChildNodes(A,e,t){this.slotCloner.cloneChildNodes(A,e,t)}cloneNode(A,e){if(ch(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);const t=A.ownerDocument.defaultView;if(t&&fn(A)&&(ws(A)||gn(A))){const n=this.createElementClone(A);n.style.transitionProperty="none";const r=t.getComputedStyle(A),s=wU(A);this.referenceElement===A&&ws(n)&&(this.clonedReferenceElement=n),Hc(n)&&jk(n,this.options.cspNonce);const o=this.counters.parse(new Ku(this.context,r));if(s){const a=t.getComputedStyle(A,":before"),i=this.resolvePseudoContent(A,n,a,0);i&&n.insertBefore(i,n.firstChild);const c=t.getComputedStyle(A,":after"),u=this.resolvePseudoContent(A,n,c,1);u&&n.appendChild(u)}return Fu(A)&&(e=!0),ku(A)||this.cloneChildNodes(A,n,e),this.counters.pop(o),(r&&(this.options.copyStyles||gn(A))&&!dh(A)||e)&&sa(r,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(Yo(A)||qo(A))&&(Yo(n)||qo(n))&&(n.value=A.value),n}return A.cloneNode(!1)}resolvePseudoContent(A,e,t,n){if(!t)return;const r=t.content,s=e.ownerDocument;if(!s||!r||r==="none"||r==="-moz-alt-content"||t.display==="none")return;this.counters.parse(new Ku(this.context,t));const o=new Lk(this.context,t),a=s.createElement("html2canvaspseudoelement");sa(t,a),o.content.forEach(c=>{if(c.type===0)a.appendChild(s.createTextNode(c.value));else if(c.type===22){const u=s.createElement("img");u.src=c.value,u.style.opacity="1",a.appendChild(u)}else if(c.type===18){if(c.name==="attr"){const u=c.values.filter(j);u.length&&a.appendChild(s.createTextNode(A.getAttribute(u[0].value)||""))}else if(c.name==="counter"){const[u,h]=c.values.filter(GA);if(u&&j(u)){const f=this.counters.getCounterValue(u.value),g=h&&j(h)?Wa.parse(this.context,h.value):3;a.appendChild(s.createTextNode(ms(f,g,!1)))}}else if(c.name==="counters"){const[u,h,f]=c.values.filter(GA);if(u&&j(u)){const g=this.counters.getCounterValues(u.value),m=f&&j(f)?Wa.parse(this.context,f.value):3,b=h&&h.type===0?h.value:"",k=g.map(E=>ms(E,m,!1)).join(b);a.appendChild(s.createTextNode(k))}}}else if(c.type===20)switch(c.value){case"open-quote":a.appendChild(s.createTextNode(Mu(o.quotes,this.quoteDepth++,!0)));break;case"close-quote":a.appendChild(s.createTextNode(Mu(o.quotes,--this.quoteDepth,!1)));break;default:a.appendChild(s.createTextNode(c.value))}}),a.className=`${Ac} ${ec}`;const i=n===0?` ${Ac}`:` ${ec}`;return gn(e)?e.className.baseValue+=i:e.className+=i,a}static destroy(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1}};const Kk=(A,e,t)=>{const n=A.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(Ok,"true"),(t||A.body).appendChild(n),n},Nk=A=>new Promise(e=>{if(A.complete){e();return}if(!A.src){e();return}A.onload=e,A.onerror=e}),$k=A=>Promise.all([].slice.call(A.images,0).map(Nk)),zk=A=>new Promise((e,t)=>{const n=A.contentWindow;if(!n)return t("No window assigned for iframe");const r=n.document;n.onload=A.onload=()=>{n.onload=A.onload=null;const s=600;let o=0;const a=setInterval(()=>{o++,(r.body.childNodes.length>0&&r.readyState==="complete"||o>=s)&&(clearInterval(a),e(A))},50)}}),Vk=["all","d","content"],sa=(A,e)=>{const t=[];for(let n=A.length-1;n>=0;n--){const r=A.item(n);if(Vk.indexOf(r)===-1&&!r.startsWith("--")){const s=A.getPropertyValue(r);if(s){const o=A.getPropertyPriority(r);t.push(o?`${r}:${s} !${o}`:`${r}:${s}`)}}}return t.length>0&&(e.style.cssText=t.join(";")+";"),e},Gk=A=>{let e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=" "+A.internalSubset.replace(/"/g,""").replace(/>/g,">")),A.publicId?(e+=' PUBLIC "'+A.publicId.replace(/"/g,""")+'"',A.systemId&&(e+=' "'+A.systemId.replace(/"/g,""")+'"')):A.systemId&&(e+=' SYSTEM "'+A.systemId.replace(/"/g,""")+'"'),e+=">"),e},Zk=(A,e,t)=>{A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},Xk=([A,e,t])=>{A.scrollLeft=e,A.scrollTop=t},Wk=":before",Jk=":after",Ac="___html2canvas___pseudoelement_before",ec="___html2canvas___pseudoelement_after",$u=`{
|
|
1665
1659
|
content: "" !important;
|
|
1666
1660
|
display: none !important;
|
|
1667
|
-
}`,
|
|
1668
|
-
.${Ya}${Gk}${Ou}`,e)},Xk=(A,e,t)=>{const n=A.ownerDocument;if(n){const r=n.createElement("style");r.textContent=e,t&&(r.nonce=t),A.appendChild(r)}},Wk=(A,e)=>{var r;const t=A.ownerDocument.createElement("base");t.href=e;const n=A.getElementsByTagName("head").item(0);n==null||n.insertBefore(t,(r=n==null?void 0:n.firstChild)!=null?r:null)};var Pu=class{static normalizeElement(A,e){const t={};return ws(A)&&(e.animationDuration.some(n=>n>0)&&(t.animationDuration=A.style.animationDuration,A.style.animationDuration="0s"),e.transform!==null&&(t.transform=A.style.transform,A.style.transform="translate(0, 0)"),e.rotate!==null&&(t.rotate=A.style.rotate,A.style.rotate="0deg",t.transform===void 0&&(t.transform=A.style.transform,A.style.transform="translate(0, 0)"))),t}static restoreElement(A,e){ws(A)&&(e.animationDuration!==void 0&&(A.style.animationDuration=e.animationDuration),e.transform!==void 0&&(A.style.transform=e.transform),e.rotate!==void 0&&(A.style.rotate=e.rotate))}},Bt=class{constructor(A,e,t={}){if(this.context=A,this.textNodes=[],this.elements=[],this.createsStackingContext=!1,this.createsRealStackingContext=!1,this.isListOwner=!1,this.debugRender=!1,Ja(e,3))debugger;if(this.styles=new xk(A,A.config.window.getComputedStyle(e,null)),t.normalizeDom!==!1&&ws(e)&&(this.originalStyles=Pu.normalizeElement(e,this.styles),this.originalElement=e),this.bounds=fs(this.context,e),e.tagName==="FIELDSET"){const n=e.querySelector(":scope > legend");if(n){const r=fs(this.context,n);this.legendBounds=r;const s=r.top+r.height/2-this.styles.borderTopWidth/2;this.bounds=new Le(this.bounds.left,s,this.bounds.width,this.bounds.height-(s-this.bounds.top))}}Ja(e,4)&&(this.debugRender=!0)}restore(){this.originalStyles&&this.originalElement&&(Pu.restoreElement(this.originalElement,this.originalStyles),this.originalStyles=void 0,this.originalElement=void 0)}restoreTree(){this.restore();for(const A of this.elements)A.restoreTree()}},Jk="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAI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cFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQG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ALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAA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EFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var co=0;co<Mu.length;co++)qr[Mu.charCodeAt(co)]=co;var jk=function(A){var e=A.length*.75,t=A.length,n,r=0,s,o,a,i;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(e):new Array(e),u=Array.isArray(c)?c:new Uint8Array(c);for(n=0;n<t;n+=4)s=qr[A.charCodeAt(n)],o=qr[A.charCodeAt(n+1)],a=qr[A.charCodeAt(n+2)],i=qr[A.charCodeAt(n+3)],u[r++]=s<<2|o>>4,u[r++]=(o&15)<<4|a>>2,u[r++]=(a&3)<<6|i&63;return c},Yk=function(A){for(var e=A.length,t=[],n=0;n<e;n+=2)t.push(A[n+1]<<8|A[n]);return t},qk=function(A){for(var e=A.length,t=[],n=0;n<e;n+=4)t.push(A[n+3]<<24|A[n+2]<<16|A[n+1]<<8|A[n]);return t},wn=5,Sc=11,na=2,AF=Sc-wn,yh=65536>>wn,ra=(1<<wn)-1,eF=yh+(1024>>wn)+32,tF=65536>>Sc,nF=(1<<AF)-1,Ku=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},rF=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},sF=function(A,e){var t=jk(A),n=Array.isArray(t)?qk(t):new Uint32Array(t),r=Array.isArray(t)?Yk(t):new Uint16Array(t),s=24,o=Ku(r,s/2,n[4]/2),a=n[5]===2?Ku(r,(s+n[4])/2):rF(n,Math.ceil((s+n[4])/4));return new oF(n[0],n[1],n[2],n[3],o,a)},oF=(function(){function A(e,t,n,r,s,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=s,this.data=o}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>wn],t=(t<<na)+(e&ra),this.data[t];if(e<=65535)return t=this.index[yh+(e-55296>>wn)],t=(t<<na)+(e&ra),this.data[t];if(e<this.highStart)return t=eF-tF+(e>>Sc),t=this.index[t],t+=e>>wn&nF,t=this.index[t],t=(t<<na)+(e&ra),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),Nu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",iF=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var lo=0;lo<Nu.length;lo++)iF[Nu.charCodeAt(lo)]=lo;var aF=1,sa=2,oa=3,$u=4,zu=5,cF=7,Vu=8,ia=9,aa=10,Gu=11,Zu=12,Xu=13,Wu=14,ca=15,lF=function(A){for(var e=[],t=0,n=A.length;t<n;){var r=A.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var s=A.charCodeAt(t++);(s&64512)===56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),t--)}else e.push(r)}return e},uF=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var n=[],r=-1,s="";++r<t;){var o=A[r];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(r+1===t||n.length>16384)&&(s+=String.fromCharCode.apply(String,n),n.length=0)}return s},dF=sF(Jk),ke="×",la="÷",pF=function(A){return dF.get(A)},hF=function(A,e,t){var n=t-2,r=e[n],s=e[t-1],o=e[t];if(s===sa&&o===oa)return ke;if(s===sa||s===oa||s===$u||o===sa||o===oa||o===$u)return la;if(s===Vu&&[Vu,ia,Gu,Zu].indexOf(o)!==-1||(s===Gu||s===ia)&&(o===ia||o===aa)||(s===Zu||s===aa)&&o===aa||o===Xu||o===zu||o===cF||s===aF)return ke;if(s===Xu&&o===Wu){for(;r===zu;)r=e[--n];if(r===Wu)return ke}if(s===ca&&o===ca){for(var a=0;r===ca;)a++,r=e[--n];if(a%2===0)return ke}return la},fF=function(A){var e=lF(A),t=e.length,n=0,r=0,s=e.map(pF);return{next:function(){if(n>=t)return{done:!0,value:null};for(var o=ke;n<t&&(o=hF(e,s,++n))===ke;);if(o!==ke||n===t){var a=uF.apply(null,e.slice(r,n));return r=n,{value:a,done:!1}}return{done:!0,value:null}}}},gF=function(A){for(var e=fF(A),t=[],n;!(n=e.next()).done;)n.value&&t.push(n.value.slice());return t};const BF=A=>{if(A.createRange){const t=A.createRange();if(t.getBoundingClientRect){const n=A.createElement("boundtest");n.style.height="123px",n.style.display="block",A.body.appendChild(n),t.selectNode(n);const r=t.getBoundingClientRect(),s=Math.round(r.height);if(A.body.removeChild(n),s===123)return!0}}return!1},wF=A=>{const e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);const t=A.createRange();e.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";const n=e.firstChild,r=fi(n.data).map(i=>LA(i));let s=0,o={};const a=r.every((i,c)=>{t.setStart(n,s),t.setEnd(n,s+i.length);const u=t.getBoundingClientRect();s+=i.length;const h=u.x>o.x||u.y>o.y;return o=u,c===0?!0:h});return A.body.removeChild(e),a},mF=()=>typeof new Image().crossOrigin!="undefined",CF=()=>typeof new XMLHttpRequest().responseType=="string",bF=A=>{const e=new Image,t=A.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),t.toDataURL()}catch(r){return!1}return!0},Ju=A=>A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255,QF=A=>{const e=A.createElement("canvas"),t=100;e.width=t,e.height=t;const n=e.getContext("2d");if(!n)return Promise.reject(new Error("Failed to get 2D rendering context"));n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,t,t);const r=new Image,s=e.toDataURL();r.src=s;const o=qa(t,t,0,0,r);return n.fillStyle="red",n.fillRect(0,0,t,t),Ac(o).then(a=>{n.drawImage(a,0,0);const i=n.getImageData(0,0,t,t).data;n.fillStyle="red",n.fillRect(0,0,t,t);const c=A.createElement("div");return c.style.backgroundImage=`url(${s})`,c.style.height=`${t}px`,Ju(i)?Ac(qa(t,t,0,0,c)):Promise.reject(new Error("ForeignObject rendering not supported"))}).then(a=>(n.drawImage(a,0,0),Ju(n.getImageData(0,0,t,t).data))).catch(()=>!1)},qa=(A,e,t,n,r)=>{const s="http://www.w3.org/2000/svg",o=document.createElementNS(s,"svg"),a=document.createElementNS(s,"foreignObject");return o.setAttributeNS(null,"width",A.toString()),o.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",t.toString()),a.setAttributeNS(null,"y",n.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(r),o},Ac=A=>new Promise((e,t)=>{const n=new Image;n.onload=()=>e(n),n.onerror=t,n.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(A))}`}),YA={get SUPPORT_RANGE_BOUNDS(){const A=BF(document);return Object.defineProperty(YA,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){const A=YA.SUPPORT_RANGE_BOUNDS&&wF(document);return Object.defineProperty(YA,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){const A=bF(document);return Object.defineProperty(YA,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){const A=typeof Array.from=="function"&&typeof window.fetch=="function"?QF(document):Promise.resolve(!1);return Object.defineProperty(YA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){const A=mF();return Object.defineProperty(YA,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){const A=CF();return Object.defineProperty(YA,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){const A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(YA,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){const A=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(YA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}};var mn=class{constructor(A,e){this.text=A,this.bounds=e}};const yF=(A,e,t,n)=>{const r=kF(e,t),s=[];let o=0;return r.forEach(a=>{if(t.textDecorationLine.length||a.trim().length>0)if(YA.SUPPORT_RANGE_BOUNDS){const i=ju(n,o,a.length).getClientRects();if(i.length>1){const c=Cn(a);let u=0;c.forEach(h=>{s.push(new mn(h,Le.fromDOMRectList(A,ju(n,u+o,h.length).getClientRects()))),u+=h.length})}else s.push(new mn(a,Le.fromDOMRectList(A,i)))}else{const i=n.splitText(a.length);s.push(new mn(a,UF(A,n))),n=i}else YA.SUPPORT_RANGE_BOUNDS||(n=n.splitText(a.length));o+=a.length}),s},UF=(A,e)=>{const t=e.ownerDocument;if(t){const n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));const r=e.parentNode;if(r){r.replaceChild(n,e);const s=fs(A,n);return n.firstChild&&r.replaceChild(n.firstChild,n),s}}return Le.EMPTY},ju=(A,e,t)=>{const n=A.ownerDocument;if(!n)throw new Error("Node has no owner document");const r=n.createRange();return r.setStart(A,e),r.setEnd(A,e+t),r},Cn=A=>{if(YA.SUPPORT_NATIVE_TEXT_SEGMENTATION){const e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(t=>t.segment)}return gF(A)},EF=(A,e)=>{if(YA.SUPPORT_NATIVE_TEXT_SEGMENTATION){const t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map(n=>n.segment)}return vF(A,e)},kF=(A,e)=>Yo(e.writingMode)||e.letterSpacing!==0?Cn(A):EF(A,e),FF=[32,160,4961,65792,65793,4153,4241],vF=(A,e)=>{const t=Ry(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[];let r;for(;!(r=t.next()).done;)if(r.value){const s=fi(r.value.slice());let o="";s.forEach(a=>{FF.indexOf(a)===-1?o+=LA(a):(o.length&&n.push(o),n.push(LA(a)),o="")}),o.length&&n.push(o)}return n};var _F=class{constructor(A,e,t){this.text=xF(e.data,t.textTransform),this.text.length!==e.data.length&&(e.data=this.text),this.textBounds=yF(A,this.text,t,e)}};const xF=(A,e)=>{switch(e){case 1:return A.toLowerCase();case 3:return A.replace(SF,IF);case 2:return A.toUpperCase();default:return A}},SF=/(^|\s|:|-|\(|\))([a-z])/g,IF=(A,e,t)=>A.length>0?e+t.toUpperCase():A;var Uh=class extends Bt{constructor(A,e){super(A,e),this.src=e.currentSrc||e.src,this.intrinsicWidth=e.naturalWidth,this.intrinsicHeight=e.naturalHeight,this.context.cache.addImage(this.src)}},Eh=class extends Bt{constructor(A,e){super(A,e),this.canvas=e,this.intrinsicWidth=e.width,this.intrinsicHeight=e.height}};const TF=["position","inset","top","right","bottom","left","inset-inline","inset-inline-start","inset-inline-end","inset-block","inset-block-start","inset-block-end","margin","margin-top","margin-right","margin-bottom","margin-left","margin-inline","margin-inline-start","margin-inline-end","margin-block","margin-block-start","margin-block-end"],HF=(A,e)=>{const t=e.getAttribute("style");TF.forEach(r=>e.style.removeProperty(r));const n=A.serializeToString(e);return t===null?e.removeAttribute("style"):e.setAttribute("style",t),n};var kh=class extends Bt{constructor(A,e){super(A,e);const t=new XMLSerializer,n=fs(A,e);e.setAttribute("width",`${n.width}px`),e.setAttribute("height",`${n.height}px`),this.svg=`data:image/svg+xml,${encodeURIComponent(HF(t,e))}`,this.intrinsicWidth=e.width.baseVal.value,this.intrinsicHeight=e.height.baseVal.value,this.context.cache.addImage(this.svg)}},Fh=class extends Bt{constructor(A,e){super(A,e),this.value=e.value}},ec=class extends Bt{constructor(A,e){super(A,e),this.start=e.start,this.reversed=typeof e.reversed=="boolean"&&e.reversed===!0}};const LF=[{type:15,flags:0,unit:"px",number:3}],DF=[{type:16,flags:0,number:50}],RF=A=>A.width>A.height?new Le(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new Le(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A,OF=A=>{const e=A.type==="password"?new Array(A.value.length+1).join("•"):A.value;return e.length===0?A.placeholder||"":e},PF=A=>A.value.length===0&&!!A.placeholder,MF="checkbox",KF="radio",Yu=707406591,NF=1970632191;var tr=class extends Bt{constructor(A,e){switch(super(A,e),this.type=e.type.toLowerCase(),this.checked=e.checked,this.value=OF(e),this.isPlaceholder=PF(e),(this.type==="checkbox"||this.type==="radio")&&(this.styles.backgroundColor=3739148031,this.styles.borderTopColor=this.styles.borderRightColor=this.styles.borderBottomColor=this.styles.borderLeftColor=2779096575,this.styles.borderTopWidth=this.styles.borderRightWidth=this.styles.borderBottomWidth=this.styles.borderLeftWidth=1,this.styles.borderTopStyle=this.styles.borderRightStyle=this.styles.borderBottomStyle=this.styles.borderLeftStyle=1,this.styles.backgroundClip=[0],this.styles.backgroundOrigin=[0],this.bounds=RF(this.bounds)),this.type){case MF:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=LF;break;case KF:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=DF;break}}},vh=class extends Bt{constructor(A,e){super(A,e);const t=e.options[e.selectedIndex||0];this.value=t&&t.text||""}},_h=class extends Bt{constructor(A,e){super(A,e),this.value=e.value}},xh=class extends Bt{constructor(A,e,t){super(A,e),this.src=e.src,this.width=parseInt(e.width,10)||0,this.height=parseInt(e.height,10)||0,this.backgroundColor=this.styles.backgroundColor,this.parseTreeFn=t;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement&&this.parseTreeFn){this.tree=this.parseTreeFn(A,e.contentWindow.document.documentElement);const n=e.contentWindow.document.documentElement?cr(A,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):pt.TRANSPARENT,r=e.contentWindow.document.body?cr(A,getComputedStyle(e.contentWindow.document.body).backgroundColor):pt.TRANSPARENT;this.backgroundColor=vt(n)?vt(r)?this.styles.backgroundColor:r:n}}catch(n){}}};const $F=["OL","UL","MENU"],tc=(A,e,t,n)=>{for(let r=e.firstChild,s;r;r=s)s=r.nextSibling,Sh(A,r,t,n)},Sh=(A,e,t,n)=>{if(nh(e)&&e.data.length>0)t.textNodes.push(new _F(A,e,t.styles));else if(pn(e))if(Yr(e)&&e.assignedNodes)e.assignedNodes().forEach(r=>Sh(A,r,t,n));else{const r=Ih(A,e);r.styles.isVisible()&&(zF(e,r,n)?r.createsRealStackingContext=!0:VF(r.styles)&&(r.createsStackingContext=!0),$F.indexOf(e.tagName)!==-1&&(r.isListOwner=!0),t.elements.push(r),e.shadowRoot?tc(A,e.shadowRoot,r,n):!Jo(e)&&!rh(e)&&!jo(e)&&tc(A,e,r,n))}},Ih=(A,e)=>Va(e)?new Uh(A,e):sh(e)?new Eh(A,e):rh(e)?new kh(A,e):uU(e)?new Fh(A,e):dU(e)?new ec(A,e):aU(e)?new tr(A,e):jo(e)?new vh(A,e):Jo(e)?new _h(A,e):oh(e)?new xh(A,e,Th):new Bt(A,e),Th=(A,e)=>{const t=Ih(A,e);return t.createsRealStackingContext=!0,tc(A,e,t,t),t},zF=(A,e,t)=>e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||xc(A)&&t.styles.isTransparent(),VF=A=>A.isPositioned()||A.isFloating()?!0:qA(A.display,268435456)||qA(A.display,33554432)||qA(A.display,536870912)||qA(A.display,134217728),qu=(A,e)=>A.length===e.length?A.some((t,n)=>t===e[n]):!1,GF=(A,e,t,n,r)=>A.map((s,o)=>{switch(o){case 0:return s.add(e,t);case 1:return s.add(e+n,t);case 2:return s.add(e+n,t+r);case 3:return s.add(e,t+r)}return s});var O=class Hh{constructor(e,t){this.type=0,this.x=e,this.y=t}add(e,t){return new Hh(this.x+e,this.y+t)}};const Vn=(A,e,t)=>new O(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t);var uo=class As{constructor(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}subdivide(e,t){const n=Vn(this.start,this.startControl,e),r=Vn(this.startControl,this.endControl,e),s=Vn(this.endControl,this.end,e),o=Vn(n,r,e),a=Vn(r,s,e),i=Vn(o,a,e);return t?new As(this.start,n,o,i):new As(i,a,s,this.end)}add(e,t){return new As(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))}reverse(){return new As(this.end,this.endControl,this.startControl,this.start)}};const Te=A=>A.type===1;var ZF=class{constructor(A){const e=A.styles,t=A.bounds;let[n,r]=jr(e.borderTopLeftRadius,t.width,t.height),[s,o]=jr(e.borderTopRightRadius,t.width,t.height),[a,i]=jr(e.borderBottomRightRadius,t.width,t.height),[c,u]=jr(e.borderBottomLeftRadius,t.width,t.height);const h=[];h.push((n+s)/t.width),h.push((c+a)/t.width),h.push((r+u)/t.height),h.push((o+i)/t.height);const f=Math.max(...h);f>1&&(n/=f,r/=f,s/=f,o/=f,a/=f,i/=f,c/=f,u/=f);const g=t.width-s,m=t.height-i,b=t.width-a,U=t.height-u,E=e.borderTopWidth,v=e.borderRightWidth,F=e.borderBottomWidth,y=e.borderLeftWidth,_=J(e.paddingTop,A.bounds.width),R=J(e.paddingRight,A.bounds.width),H=J(e.paddingBottom,A.bounds.width),z=J(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||r>0?CA(t.left+y/3,t.top+E/3,n-y/3,r-E/3,0):new O(t.left+y/3,t.top+E/3),this.topRightBorderDoubleOuterBox=n>0||r>0?CA(t.left+g,t.top+E/3,s-v/3,o-E/3,1):new O(t.left+t.width-v/3,t.top+E/3),this.bottomRightBorderDoubleOuterBox=a>0||i>0?CA(t.left+b,t.top+m,a-v/3,i-F/3,2):new O(t.left+t.width-v/3,t.top+t.height-F/3),this.bottomLeftBorderDoubleOuterBox=c>0||u>0?CA(t.left+y/3,t.top+U,c-y/3,u-F/3,3):new O(t.left+y/3,t.top+t.height-F/3),this.topLeftBorderDoubleInnerBox=n>0||r>0?CA(t.left+y*2/3,t.top+E*2/3,n-y*2/3,r-E*2/3,0):new O(t.left+y*2/3,t.top+E*2/3),this.topRightBorderDoubleInnerBox=n>0||r>0?CA(t.left+g,t.top+E*2/3,s-v*2/3,o-E*2/3,1):new O(t.left+t.width-v*2/3,t.top+E*2/3),this.bottomRightBorderDoubleInnerBox=a>0||i>0?CA(t.left+b,t.top+m,a-v*2/3,i-F*2/3,2):new O(t.left+t.width-v*2/3,t.top+t.height-F*2/3),this.bottomLeftBorderDoubleInnerBox=c>0||u>0?CA(t.left+y*2/3,t.top+U,c-y*2/3,u-F*2/3,3):new O(t.left+y*2/3,t.top+t.height-F*2/3),this.topLeftBorderStroke=n>0||r>0?CA(t.left+y/2,t.top+E/2,n-y/2,r-E/2,0):new O(t.left+y/2,t.top+E/2),this.topRightBorderStroke=n>0||r>0?CA(t.left+g,t.top+E/2,s-v/2,o-E/2,1):new O(t.left+t.width-v/2,t.top+E/2),this.bottomRightBorderStroke=a>0||i>0?CA(t.left+b,t.top+m,a-v/2,i-F/2,2):new O(t.left+t.width-v/2,t.top+t.height-F/2),this.bottomLeftBorderStroke=c>0||u>0?CA(t.left+y/2,t.top+U,c-y/2,u-F/2,3):new O(t.left+y/2,t.top+t.height-F/2),this.topLeftBorderBox=n>0||r>0?CA(t.left,t.top,n,r,0):new O(t.left,t.top),this.topRightBorderBox=s>0||o>0?CA(t.left+g,t.top,s,o,1):new O(t.left+t.width,t.top),this.bottomRightBorderBox=a>0||i>0?CA(t.left+b,t.top+m,a,i,2):new O(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=c>0||u>0?CA(t.left,t.top+U,c,u,3):new O(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||r>0?CA(t.left+y,t.top+E,Math.max(0,n-y),Math.max(0,r-E),0):new O(t.left+y,t.top+E),this.topRightPaddingBox=s>0||o>0?CA(t.left+Math.min(g,t.width-v),t.top+E,g>t.width+v?0:Math.max(0,s-v),Math.max(0,o-E),1):new O(t.left+t.width-v,t.top+E),this.bottomRightPaddingBox=a>0||i>0?CA(t.left+Math.min(b,t.width-y),t.top+Math.min(m,t.height-F),Math.max(0,a-v),Math.max(0,i-F),2):new O(t.left+t.width-v,t.top+t.height-F),this.bottomLeftPaddingBox=c>0||u>0?CA(t.left+y,t.top+Math.min(U,t.height-F),Math.max(0,c-y),Math.max(0,u-F),3):new O(t.left+y,t.top+t.height-F),this.topLeftContentBox=n>0||r>0?CA(t.left+y+z,t.top+E+_,Math.max(0,n-(y+z)),Math.max(0,r-(E+_)),0):new O(t.left+y+z,t.top+E+_),this.topRightContentBox=s>0||o>0?CA(t.left+Math.min(g,t.width+y+z),t.top+E+_,g>t.width+y+z?0:s-y+z,o-(E+_),1):new O(t.left+t.width-(v+R),t.top+E+_),this.bottomRightContentBox=a>0||i>0?CA(t.left+Math.min(b,t.width-(y+z)),t.top+Math.min(m,t.height+E+_),Math.max(0,a-(v+R)),i-(F+H),2):new O(t.left+t.width-(v+R),t.top+t.height-(F+H)),this.bottomLeftContentBox=c>0||u>0?CA(t.left+y+z,t.top+U,Math.max(0,c-(y+z)),u-(F+H),3):new O(t.left+y+z,t.top+t.height-(F+H))}};const CA=(A,e,t,n,r)=>{const s=4*((Math.sqrt(2)-1)/3),o=t*s,a=n*s,i=A+t,c=e+n;switch(r){case 0:return new uo(new O(A,c),new O(A,c-a),new O(i-o,e),new O(i,e));case 1:return new uo(new O(A,e),new O(A+o,e),new O(i,c-a),new O(i,c));case 2:return new uo(new O(i,e),new O(i,e+a),new O(A+o,c),new O(A,c));default:return new uo(new O(i,c),new O(i-o,c),new O(A,e+a),new O(A,e))}},qo=A=>[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox],XF=A=>[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox],Ai=A=>[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox];var ua=class{constructor(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6}},po=class{constructor(A,e){this.path=A,this.target=e,this.type=1}},WF=class{constructor(A){this.opacity=A,this.type=2,this.target=6}},Rr=class{constructor(A){this.applyClip=A,this.type=3,this.target=6}};const JF={[VA.NORMAL]:"source-over",[VA.MULTIPLY]:"multiply",[VA.SCREEN]:"screen",[VA.OVERLAY]:"overlay",[VA.DARKEN]:"darken",[VA.LIGHTEN]:"lighten",[VA.COLOR_DODGE]:"color-dodge",[VA.COLOR_BURN]:"color-burn",[VA.HARD_LIGHT]:"hard-light",[VA.SOFT_LIGHT]:"soft-light",[VA.DIFFERENCE]:"difference",[VA.EXCLUSION]:"exclusion",[VA.HUE]:"hue",[VA.SATURATION]:"saturation",[VA.COLOR]:"color",[VA.LUMINOSITY]:"luminosity"};var jF=class{constructor(A){this.mixBlendMode=A,this.type=4,this.target=6,this.compositeOperation=JF[A]}},YF=class Jn{constructor(e){this.type=5,this.target=6;const t=Jn.parseDropShadow(e);this.shadow=t.shadow,this.safeFilterString=t.safeFilterString}static parseDropShadow(e){if(!e)return{safeFilterString:""};const t=Jn.findDropShadows(e);if(t.length===0)return{safeFilterString:e};const n=Jn.parseDropShadowBody(t[0].body);let r="",s=0;for(const o of t)r+=e.slice(s,o.start),s=o.end;return r+=e.slice(s),{shadow:n,safeFilterString:r.replace(/\s+/g," ").trim()}}static findDropShadows(e){const t=[],n=/drop-shadow\(/gi;let r;for(;(r=n.exec(e))!==null;){const s=r.index+12-1,o=r.index;let a=1,i=s+1;for(;i<e.length&&a>0;){const u=e[i];u==="("?a++:u===")"&&a--,i++}if(a!==0)break;const c=e.slice(s+1,i-1);t.push({body:c,start:o,end:i})}return t}static parseDropShadowBody(e){var s;const t=Jn.tokenizeFilterArgs(e.trim()),n=[];let r;for(const o of t)Jn.isCSSLength(o)?n.push(parseFloat(o)):o&&(r=o);if(!(n.length<2||n.length>3))return{offsetX:n[0],offsetY:n[1],blur:(s=n[2])!=null?s:0,color:r!=null?r:"rgba(0,0,0,1)"}}static tokenizeFilterArgs(e){const t=[];let n="",r=0;for(let s=0;s<e.length;s++){const o=e[s];o==="("?(r++,n+=o):o===")"?(r--,n+=o):/\s/.test(o)?r>0?n+=o:n&&(t.push(n),n=""):n+=o}return n&&t.push(n),t}static isCSSLength(e){return/^-?[\d.]+(px|em|rem|pt|cm|mm|in|pc|ex|ch|vw|vh|vmin|vmax|%)?$/i.test(e)}};const Ad=A=>A.type===0,nc=A=>A.type===1,qF=A=>A.type===2,ed=A=>A.type===3,Av=A=>A.type===4,ev=A=>A.type===5;var Lh=class{constructor(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}},Dh=class{constructor(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new ZF(this.container),this.container.styles.opacity<1&&this.effects.push(new WF(this.container.styles.opacity)),this.container.styles.rotate!==null){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.rotate*Math.PI/180,o=Math.cos(s),a=Math.sin(s),i=[o,a,-a,o,0,0];this.effects.push(new ua(n,r,i))}if(this.container.styles.transform!==null){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.transform;this.effects.push(new ua(n,r,s))}if(td(this.container.styles)){const t=qo(this.curves),n=Ai(this.curves);qu(t,n)?this.effects.push(new po(t,6)):(this.effects.push(new po(t,2)),this.effects.push(new po(n,4)))}if(this.container.styles.clipPath.type!==0){const t=tv(this.container.styles.clipPath,this.container.bounds);t&&this.effects.push(t)}if(this.container.styles.mixBlendMode!==VA.NORMAL&&this.effects.push(new jF(this.container.styles.mixBlendMode)),this.container.styles.filter!==null&&this.effects.push(new YF(this.container.styles.filter)),this.container.styles.zoom!==1){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.zoom,o=[s,0,0,s,0,0];this.effects.push(new ua(n,r,o))}}getEffects(A){let e=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent;const n=this.effects.slice(0);for(;t;){const r=t.effects.filter(s=>!nc(s));if(e||t.container.styles.position!==0||!t.parent){if(e=[2,3].indexOf(t.container.styles.position)===-1,td(t.container.styles)){const s=qo(t.curves),o=Ai(t.curves);qu(s,o)||n.unshift(new po(o,6))}n.unshift(...r)}else n.unshift(...r);t=t.parent}return n.filter(r=>qA(r.target,A))}};const td=A=>A.overflowX!==0||A.overflowY!==0,nd=(A,e,t,n,r)=>A==="closest-side"?Math.min(e-t,n-e):A==="farthest-side"?Math.max(e-t,n-e):J(A,r),tv=(A,e)=>{const{left:t,top:n,width:r,height:s}=e;switch(A.type){case 1:{const o=J(A.left,r),a=J(A.top,s),i=t+o,c=n+a,u=Math.max(0,r-o-J(A.right,r)),h=Math.max(0,s-a-J(A.bottom,s));return new Rr(f=>{f.beginPath(),f.rect(i,c,u,h),f.clip()})}case 2:{const o=t+J(A.cx,r),a=n+J(A.cy,s);let i;return A.radius==="closest-side"?i=Math.min(o-t,a-n,t+r-o,n+s-a):A.radius==="farthest-side"?i=Math.max(o-t,a-n,t+r-o,n+s-a):i=J(A.radius,Math.sqrt(r*r+s*s)/Math.SQRT2),new Rr(c=>{c.beginPath(),c.arc(o,a,Math.max(0,i),0,Math.PI*2),c.clip()})}case 3:{const o=t+J(A.cx,r),a=n+J(A.cy,s),i=nd(A.rx,o,t,t+r,r),c=nd(A.ry,a,n,n+s,s);return new Rr(u=>{u.beginPath(),u.ellipse(o,a,Math.max(0,i),Math.max(0,c),0,0,Math.PI*2),u.clip()})}case 4:{const o=A.points.map(([a,i])=>[t+J(a,r),n+J(i,s)]);return new Rr(a=>{if(a.beginPath(),o.length>0){a.moveTo(o[0][0],o[0][1]);for(let i=1;i<o.length;i++)a.lineTo(o[i][0],o[i][1]);a.closePath()}a.clip()})}case 5:{const{d:o}=A;let a=null;return new Rr(i=>{try{a||(a=new Path2D(o));const c=i.getTransform();i.translate(t,n),i.clip(a),i.setTransform(c)}catch(c){}})}case 0:return null;default:return null}},rc=(A,e,t,n)=>{A.container.elements.forEach(r=>{const s=r.createsRealStackingContext,o=r.createsStackingContext,a=new Dh(r,A);qA(r.styles.display,2048)&&n.push(a);const i=r.isListOwner?[]:n;if(s||o){const c=s||r.styles.isPositioned()?t:e,u=new Lh(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){const h=r.styles.zIndex.order;if(h<0){let f=0;c.negativeZIndex.some((g,m)=>h>g.element.container.styles.zIndex.order?(f=m,!1):f>0),c.negativeZIndex.splice(f,0,u)}else if(h>0){let f=0;c.positiveZIndex.some((g,m)=>h>=g.element.container.styles.zIndex.order?(f=m+1,!1):f>0),c.positiveZIndex.splice(f,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else r.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);rc(a,u,s?u:t,i)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),rc(a,e,t,i);r.isListOwner&&Rh(r,i)})},Rh=(A,e)=>{let t=A instanceof ec?A.start:1;const n=A instanceof ec?A.reversed:!1;for(let r=0;r<e.length;r++){const s=e[r];s.container instanceof Fh&&typeof s.container.value=="number"&&s.container.value!==0&&(t=s.container.value),s.listValue=ms(t,s.container.styles.listStyleType,!0),t+=n?-1:1}},nv=A=>{const e=new Dh(A,null),t=new Lh(e),n=[];return rc(e,t,t,n),Rh(e.container,n),t},Ic=A=>{const e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Cs=A=>{const e=A.styles,t=A.bounds,n=J(e.paddingLeft,t.width),r=J(e.paddingRight,t.width),s=J(e.paddingTop,t.width),o=J(e.paddingBottom,t.width);return t.add(n+e.borderLeftWidth,s+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+r),-(e.borderTopWidth+e.borderBottomWidth+s+o))},rv=(A,e)=>A===0?e.bounds:A===2?Cs(e):Ic(e),sv=(A,e)=>A===0?e.bounds:A===2?Cs(e):Ic(e),ho=(A,e,t)=>{const n=rv(ln(A.styles.backgroundOrigin,e),A),r=sv(ln(A.styles.backgroundClip,e),A),s=ov(ln(A.styles.backgroundSize,e),t,n);let[o,a]=s;const i=jr(ln(A.styles.backgroundPosition,e),n.width-o,n.height-a),c=iv(ln(A.styles.backgroundRepeat,e),i,s,n,r),u=Math.round(n.left+i[0]),h=Math.round(n.top+i[1]);return o=Math.max(1,o),a=Math.max(1,a),[c,u,h,o,a]},Gn=A=>j(A)&&A.value==="auto",fo=A=>typeof A=="number",ov=(A,[e,t,n],r)=>{const[s,o]=A;if(!s)return[0,0];if(iA(s)&&o&&iA(o))return[J(s,r.width),J(o,r.height)];const a=fo(n);if(j(s)&&(s.value==="contain"||s.value==="cover"))return fo(n)?r.width/r.height<n!=(s.value==="cover")?[r.width,r.width/n]:[r.height*n,r.height]:[r.width,r.height];const i=fo(e),c=fo(t),u=i||c;if(Gn(s)&&(!o||Gn(o)))return i&&c?[e,t]:!a&&!u?[r.width,r.height]:u&&a?[i?e:t*n,c?t:e/n]:[i?e:r.width,c?t:r.height];if(a){let g=0,m=0;return iA(s)?g=J(s,r.width):iA(o)&&(m=J(o,r.height)),Gn(s)?g=m*n:(!o||Gn(o))&&(m=g/n),[g,m]}let h=null,f=null;if(iA(s)?h=J(s,r.width):o&&iA(o)&&(f=J(o,r.height)),h!==null&&(!o||Gn(o))&&(f=i&&c?h/e*t:r.height),f!==null&&Gn(s)&&(h=i&&c?f/t*e:r.width),h!==null&&f!==null)return[h,f];throw new Error("Unable to calculate background-size for element")},ln=(A,e)=>{const t=A[e];return typeof t=="undefined"?A[0]:t},iv=(A,[e,t],[n,r],s,o)=>{switch(A){case 2:return[new O(Math.round(s.left),Math.round(s.top+t)),new O(Math.round(s.left+s.width),Math.round(s.top+t)),new O(Math.round(s.left+s.width),Math.round(r+s.top+t)),new O(Math.round(s.left),Math.round(r+s.top+t))];case 3:return[new O(Math.round(s.left+e),Math.round(s.top)),new O(Math.round(s.left+e+n),Math.round(s.top)),new O(Math.round(s.left+e+n),Math.round(s.height+s.top)),new O(Math.round(s.left+e),Math.round(s.height+s.top))];case 1:return[new O(Math.round(s.left+e),Math.round(s.top+t)),new O(Math.round(s.left+e+n),Math.round(s.top+t)),new O(Math.round(s.left+e+n),Math.round(s.top+t+r)),new O(Math.round(s.left+e),Math.round(s.top+t+r))];default:return[new O(Math.round(o.left),Math.round(o.top)),new O(Math.round(o.left+o.width),Math.round(o.top)),new O(Math.round(o.left+o.width),Math.round(o.height+o.top)),new O(Math.round(o.left),Math.round(o.height+o.top))]}};var av=class{constructor(A){this.ctx=A}render(A,e){this.ctx.fillStyle=QA(e.textDecorationColor||e.color);let t=1;typeof e.textDecorationThickness=="number"?t=e.textDecorationThickness:e.textDecorationThickness==="from-font"&&(t=Math.max(1,Math.floor(e.fontSize.number*.05)));let n=0;typeof e.textUnderlineOffset=="number"&&(n=e.textUnderlineOffset);const r=e.textDecorationStyle;e.textDecorationLine.forEach(s=>{let o=0;switch(s){case 1:o=A.top+A.height-t+n;break;case 2:o=A.top;break;case 3:o=A.top+(A.height/2-t/2);break;default:return}this.draw(A.left,o,A.width,t,r)})}draw(A,e,t,n,r){switch(r){case 0:this.ctx.fillRect(A,e,t,n);break;case 1:{const s=Math.max(1,n);this.ctx.fillRect(A,e,t,n),this.ctx.fillRect(A,e+n+s,t,n);break}case 2:this.drawPattern(A,e,t,n,[n,n*2]);break;case 3:this.drawPattern(A,e,t,n,[n*3,n*2]);break;case 4:this.drawWavy(A,e,t,n);break;default:this.ctx.fillRect(A,e,t,n)}}drawPattern(A,e,t,n,r){this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash(r),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(A,e+n/2),this.ctx.lineTo(A+t,e+n/2),this.ctx.stroke(),this.ctx.restore()}drawWavy(A,e,t,n){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle;const r=n*2,s=n*4;let o=A;for(this.ctx.moveTo(o,e+n/2);o<A+t;){const a=Math.min(o+s/2,A+t);if(this.ctx.quadraticCurveTo(o+s/4,e+n/2-r,a,e+n/2),o=a,o<A+t){const i=Math.min(o+s/2,A+t);this.ctx.quadraticCurveTo(o+s/4,e+n/2+r,i,e+n/2),o=i}}this.ctx.stroke(),this.ctx.restore()}};const cv="Mg",Zn=A=>A!==void 0&&!Number.isNaN(A),Oh=(A,e)=>{const t=A.measureText(cv),n=t;return{baseline:Zn(n.fontBoundingBoxAscent)?n.fontBoundingBoxAscent:Zn(t.actualBoundingBoxAscent)?t.actualBoundingBoxAscent:e,height:Zn(n.fontBoundingBoxAscent)&&Zn(n.fontBoundingBoxDescent)?n.fontBoundingBoxAscent+n.fontBoundingBoxDescent:Zn(t.actualBoundingBoxAscent)&&Zn(t.actualBoundingBoxDescent)?t.actualBoundingBoxAscent+t.actualBoundingBoxDescent:e}},Ph=(A,e)=>Oh(A,e).baseline,lv=["-apple-system","system-ui"],uv=1,dv=/[\u2E80-\u2FFF\u3000-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF01-\uFFEF]/,Or=A=>dv.test(A),pv=()=>{if(typeof navigator=="undefined")return null;const A=navigator.userAgent,e=/iPhone|iPad|iPod/.test(A),t=/Macintosh/.test(A)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1;if(!e&&!t)return null;for(const n of[/(?:iPhone|CPU(?:\siPhone)?)\sOS\s(\d+)[\._](\d+)/,/Version\/(\d+)\.(\d+)/]){const r=A.match(n);if(r&&r[1])return parseInt(r[1],10)}return null},hv=A=>{const e=pv();return e!==null&&e>=15&&e<17?A.map(t=>lv.indexOf(t)!==-1?'-apple-system, "Helvetica Neue", Arial, sans-serif':t):A},fv=()=>{var A;return(A=typeof window!="undefined"?window:void 0)!=null&&A.chrome?"miter":"round"};var gv=class{constructor(A){this.glyphWidthCache=null,this.ctx=A.ctx,this.options=A.options,this.decorationRenderer=new av(A.ctx)}cachedMeasureText(A,e){let t=this.glyphWidthCache;t||(t=new Map,this.glyphWidthCache=t);const n=A+e;let r=t.get(n);return r===void 0&&(r=this.ctx.measureText(A).width,t.set(n,r)),r}iterateLettersWithLetterSpacing(A,e,t,n,r){if(Yo(n)){this.iterateVerticalGlyphs(A,e,t,n,r);return}const s=Cn(A.text),o=A.bounds.top+t,a=this.ctx.font;let i=A.bounds.left;for(const c of s){if(Or(c)){const u=this.ctx.textBaseline;this.ctx.textBaseline="ideographic",r(c,i,o),this.ctx.textBaseline=u}else r(c,i,o);i+=this.cachedMeasureText(c,a)+e}}iterateVerticalGlyphs(A,e,t,n,r){const s=Cn(A.text),o=this.ctx.font,a=n===4?-Math.PI/2:Math.PI/2;let i=A.bounds.top;for(let c=0;c<s.length;){const u=s[c];if(!(Aa(n)||!Or(u)&&u.trim().length>0)){const g=this.ctx.textBaseline;Or(u)&&(this.ctx.textBaseline="ideographic"),r(u,A.bounds.left,i+t),this.ctx.textBaseline=g,i+=this.cachedMeasureText(u,o)+e,c++;continue}const h=c;for(;c<s.length;){const g=s[c];if(!Aa(n)&&!Or(g)&&g.trim().length===0)break;if(Aa(n)||!Or(g)&&g.trim().length>0)c++;else break}this.ctx.save(),this.ctx.translate(A.bounds.left+t,i),this.ctx.rotate(a);let f=0;for(let g=h;g<c;g++)r(s[g],0,f),f+=this.cachedMeasureText(s[g],o)+e;this.ctx.restore(),i+=f}}renderTextWithLetterSpacing(A,e,t,n=0){this.renderFillText(A,e,t,n)}canRenderWholeText(A,e){return A===0&&!Yo(e)}renderFillText(A,e,t,n){this.canRenderWholeText(e,n)?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+t):this.iterateLettersWithLetterSpacing(A,e,t,n,(r,s,o)=>{this.ctx.fillText(r,s,o)})}renderStrokeText(A,e,t,n){this.canRenderWholeText(e,n)?this.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+t):this.iterateLettersWithLetterSpacing(A,e,t,n,(r,s,o)=>{this.ctx.strokeText(r,s,o)})}renderTextStrokeWithStyle(A,e,t){!e.webkitTextStrokeWidth||!A.text.trim().length||(this.ctx.strokeStyle=QA(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=fv(),this.renderStrokeText(A,e.letterSpacing,t,e.writingMode),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter")}renderTextFillWithShadows(A,e,t){this.ctx.fillStyle=QA(e.color),this.renderTextWithLetterSpacing(A,e.letterSpacing,t,e.writingMode);const n=e.textShadow;n.length&&A.text.trim().length&&(n.slice(0).reverse().forEach(r=>{this.ctx.shadowColor=QA(r.color),this.ctx.shadowOffsetX=r.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=r.offsetY.number*this.options.scale,this.ctx.shadowBlur=r.blur.number,this.renderTextWithLetterSpacing(A,e.letterSpacing,t,e.writingMode)}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0)}renderTextBoundWithPaintOrder(A,e,t,n){t.forEach(r=>{switch(r){case 0:this.ctx.fillStyle=QA(e.color),this.renderTextWithLetterSpacing(A,e.letterSpacing,n,e.writingMode);break;case 1:this.renderTextStrokeWithStyle(A,e,n);break}})}renderTextDecoration(A,e){this.decorationRenderer.render(A,e)}truncateTextWithEllipsis(A,e,t){const r=this.ctx.measureText("…").width,s=Cn(A);if(t===0){const o=c=>this.ctx.measureText(s.slice(0,c).join("")).width+r<=e;let a=0,i=s.length;for(;a<i;){const c=a+i+1>>1;o(c)?a=c:i=c-1}return s.slice(0,a).join("")+"…"}else{const o=this.ctx.font;let a=r;const i=[];for(const c of s){const u=this.cachedMeasureText(c,o);if(a+u>e)break;i.push(c),a+=u+t}return i.join("")+"…"}}createFontStyle(A){const e=A.fontVariant.filter(r=>r==="normal"||r==="small-caps").join(""),t=hv(A.fontFamily).join(", "),n=gt(A.fontSize)?`${A.fontSize.number}${A.fontSize.unit}`:`${A.fontSize.number}px`;return[[A.fontStyle,e,A.fontWeight,n,t].join(" "),t,n]}renderLineClampedText(A,e,t,n,r){const s=e.fontSize.number*1.5,o=[];let a=[],i=A.textBounds[0].bounds.top;A.textBounds.forEach(h=>{Math.abs(h.bounds.top-i)>=s*.5?(a.length>0&&o.push(a),a=[h],i=h.bounds.top):a.push(h)}),a.length>0&&o.push(a);const c=e.webkitLineClamp;if(o.length<=c)return!1;for(let h=0;h<c-1;h++)o[h].forEach(f=>this.renderTextBoundWithPaintOrder(f,e,t,n));const u=o[c-1];if(u!=null&&u.length&&r){const h=u.map(b=>b.text).join(""),f=u[0],g=r.width-(f.bounds.left-r.left),m=new mn(this.truncateTextWithEllipsis(h,g,e.letterSpacing),f.bounds);for(const b of t)b===0?(this.ctx.fillStyle=QA(e.color),this.renderTextWithLetterSpacing(m,e.letterSpacing,n,e.writingMode)):b===1&&this.renderTextStrokeWithStyle(m,e,n)}return!0}renderEllipsisText(A,e,t,n,r){const s=e.fontSize.number*1.5,o=A.textBounds[0].bounds.top;if(!A.textBounds.every(c=>Math.abs(c.bounds.top-o)<s*.5))return!1;let a=A.textBounds.map(c=>c.text).join("").replace(/\s+/g," ").trim();if(this.ctx.measureText(a).width<=r.width+uv)return!1;const i=new mn(this.truncateTextWithEllipsis(a,r.width,e.letterSpacing),A.textBounds[0].bounds);for(const c of t)c===0?this.renderTextFillWithShadows(i,e,n):c===1&&this.renderTextStrokeWithStyle(i,e,n);return!0}renderTextNode(A,e,t){return I(this,null,function*(){this.glyphWidthCache=null;const[n]=this.createFontStyle(e);this.ctx.font=n,this.ctx.direction=e.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic";const r=e.paintOrder,s=Ph(this.ctx,e.fontSize.number);e.webkitLineClamp>0&&(e.display&2)!==0&&e.overflowY===1&&A.textBounds.length>0&&this.renderLineClampedText(A,e,r,s,t)||e.textOverflow===1&&t&&e.overflowX===1&&A.textBounds.length>0&&this.renderEllipsisText(A,e,r,s,t)||A.textBounds.forEach(o=>{r.forEach(a=>{a===0?(this.renderTextFillWithShadows(o,e,s),e.textDecorationLine.length&&this.renderTextDecoration(o.bounds,e)):a===1&&this.renderTextStrokeWithStyle(o,e,s)})})})}};const Mh=(A,e)=>{e.forEach((t,n)=>{const r=Te(t)?t.start:t;n===0?A.moveTo(r.x,r.y):A.lineTo(r.x,r.y),Te(t)&&A.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)})},Kh=(A,e)=>{A.beginPath(),Mh(A,e),A.closePath()};var Bv=class{constructor(A){this.maxSize=A,this._map=new Map}get(A){if(!this._map.has(A))return;const e=this._map.get(A);return this._map.delete(A),this._map.set(A,e),e}set(A,e){if(this._map.has(A))this._map.delete(A);else if(this._map.size>=this.maxSize){const t=this._map.keys().next().value;t!==void 0&&this._map.delete(t)}this._map.set(A,e)}get size(){return this._map.size}clear(){this._map.clear()}},rd=class{constructor(A){this.patternCache=new Bv(50),this.ctx=A.ctx,this.context=A.context,this.canvas=A.canvas}renderBackgroundImage(A){return I(this,null,function*(){var r,s,o,a;let e=A.styles.backgroundImage.length-1;const t=A.styles.backgroundBlendMode;let n=0;for(const i of A.styles.backgroundImage.slice(0).reverse()){if(n>0){const c=(s=(r=t[n])!=null?r:t[0])!=null?s:"normal";c!=="normal"&&(this.ctx.save(),this.ctx.globalCompositeOperation=c)}i.type===0?yield this.renderBackgroundURLImage(A,i,e):vU(i)?this.renderLinearGradient(A,i,e):xU(i)?this.renderRepeatingLinearGradient(A,i,e):_U(i)&&this.renderRadialGradient(A,i,e),n>0&&((a=(o=t[n])!=null?o:t[0])!=null?a:"normal")!=="normal"&&this.ctx.restore(),e--,n++}})}renderBackgroundURLImage(A,e,t){return I(this,null,function*(){var s,o;let n;const r=e.url;try{n=yield this.context.cache.match(r)}catch(a){this.context.logger.error(`Error loading background-image ${r}`),(o=(s=this.context).onError)==null||o.call(s,a instanceof Error?a:new Error(String(a)))}if(n){const a=isNaN(n.width)||n.width===0?1:n.width,i=isNaN(n.height)||n.height===0?1:n.height,[c,u,h,f,g]=ho(A,t,[a,i,a/i]),m=ln(A.styles.backgroundRepeat,t),b=m===1?"no-repeat":m===2?"repeat-x":m===3?"repeat-y":"repeat",U=`${r}|${Math.round(f)}x${Math.round(g)}|${A.styles.imageRendering}|${b}`;let E=this.patternCache.get(U);if(!E){const v=this.resizeImage(n,f,g,A.styles.imageRendering);E=this.ctx.createPattern(v,b),this.patternCache.set(U,E)}this.renderRepeat(c,E,u,h)}})}renderRepeatingLinearGradient(A,e,t){var X;const[n,r,s,o,a]=ho(A,t,[null,null,null]),[i,c,u,h,f]=vu(e.angle,o,a),g=qi(e.stops,i||1),m=g[g.length-1],b=g[0],U=m.stop-b.stop;if(U<=0){this.renderLinearGradient(A,e,t);return}const E=u-c,v=f-h,F=U/(Math.sqrt(E*E+v*v)||1),y=c,_=h,R=c+E*F,H=h+v*F,z=(X=this.canvas.ownerDocument)!=null?X:document,K=`rlg|${e.angle}|${Math.round(U)}|${JSON.stringify(e.stops)}`;let V=this.patternCache.get(K);if(!V){const sA=z.createElement("canvas"),cA=Math.max(1,Math.ceil(U));sA.width=cA,sA.height=cA;const kA=sA.getContext("2d");if(!kA)return;const de=kA.createLinearGradient(y-r,_-s,R-r,H-s);g.forEach(re=>{de.addColorStop((re.stop-b.stop)/U,QA(re.color))}),kA.fillStyle=de,kA.fillRect(0,0,cA,cA),cA>0&&(V=this.ctx.createPattern(sA,"repeat"),this.patternCache.set(K,V))}V&&this.renderRepeat(n,V,r,s)}renderLinearGradient(A,e,t){var b;const[n,r,s,o,a]=ho(A,t,[null,null,null]),[i,c,u,h,f]=vu(e.angle,o,a),g=`lg|${e.angle}|${Math.round(o)}x${Math.round(a)}|${JSON.stringify(e.stops)}`;let m=this.patternCache.get(g);if(!m){const U=((b=this.canvas.ownerDocument)!=null?b:document).createElement("canvas");U.width=o,U.height=a;const E=U.getContext("2d");if(!E)return;const v=E.createLinearGradient(c,h,u,f);qi(e.stops,i||1).forEach(F=>v.addColorStop(F.stop,QA(F.color))),E.fillStyle=v,E.fillRect(0,0,o,a),o>0&&a>0&&(m=this.ctx.createPattern(U,"repeat"),this.patternCache.set(g,m))}m&&this.renderRepeat(n,m,r,s)}renderRadialGradient(A,e,t){var g;const[n,r,s,o,a]=ho(A,t,[null,null,null]),i=e.position.length===0?[Ft]:e.position,c=J(i[0],o),u=J(i[i.length-1],a);let[h,f]=EU(e,c,u,o,a);if((h===0||f===0)&&(h=Math.max(h,.01),f=Math.max(f,.01)),h>0&&f>0){const m=`rg|${Math.round(c)}x${Math.round(u)}|${Math.round(h)}x${Math.round(f)}|${JSON.stringify(e.stops)}`,b=qi(e.stops,h*2),U=b[b.length-1];let E=this.patternCache.get(m);if(!E){const v=((g=this.canvas.ownerDocument)!=null?g:document).createElement("canvas");v.width=Math.ceil(h*2),v.height=Math.ceil(f*2);const F=v.getContext("2d");if(F){const y=F.createRadialGradient(h,h,0,h,h,h);b.forEach(_=>y.addColorStop(_.stop,QA(_.color))),F.fillStyle=y,h!==f&&F.scale(1,f/h),F.fillRect(0,0,h*2,h*2),E=this.ctx.createPattern(v,"no-repeat"),this.patternCache.set(m,E)}}E&&(this.path(n),this.ctx.save(),this.ctx.clip(),U&&(this.ctx.fillStyle=QA(U.color),this.ctx.fill()),this.ctx.translate(r+c-h,s+u-f),this.ctx.fillStyle=E,this.ctx.fillRect(0,0,h*2,f*2),this.ctx.restore())}}renderRepeat(A,e,t,n){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,n),this.ctx.fill(),this.ctx.translate(-t,-n)}resizeImage(A,e,t,n){var o;const r=((o=this.canvas.ownerDocument)!=null?o:document).createElement("canvas");r.width=Math.max(1,e),r.height=Math.max(1,t);const s=r.getContext("2d");return s?(n===2||n===1?(this.context.logger.debug("Disabling image smoothing for background image due to CSS image-rendering"),s.imageSmoothingEnabled=!1):n===3?(this.context.logger.debug("Enabling image smoothing for background image due to CSS image-rendering: smooth"),s.imageSmoothingEnabled=!0):s.imageSmoothingEnabled=this.ctx.imageSmoothingEnabled,this.ctx.imageSmoothingQuality&&(s.imageSmoothingQuality=this.ctx.imageSmoothingQuality),s.drawImage(A,0,0,A.width,A.height,0,0,e,t),r):A}path(A){Kh(this.ctx,A)}};const sd=(A,e)=>{switch(e){case 0:return He(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return He(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return He(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return He(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},wv=(A,e)=>{switch(e){case 0:return He(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return He(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return He(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return He(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},mv=(A,e)=>{switch(e){case 0:return He(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return He(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return He(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return He(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},Cv=(A,e)=>{switch(e){case 0:return go(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return go(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return go(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return go(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},go=(A,e)=>{const t=[];return Te(A)?t.push(A.subdivide(.5,!1)):t.push(A),Te(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},He=(A,e,t,n)=>{const r=[];return Te(A)?r.push(A.subdivide(.5,!1)):r.push(A),Te(t)?r.push(t.subdivide(.5,!0)):r.push(t),Te(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Te(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r};var bv=class{constructor(A,e){this.ctx=A.ctx,this.pathCallbacks=e}renderSolidBorder(A,e,t){return I(this,null,function*(){this.pathCallbacks.path(sd(t,e)),this.ctx.fillStyle=QA(A),this.ctx.fill()})}renderDoubleBorder(A,e,t,n){return I(this,null,function*(){if(e<3){yield this.renderSolidBorder(A,t,n);return}const r=wv(n,t);this.pathCallbacks.path(r),this.ctx.fillStyle=QA(A),this.ctx.fill();const s=mv(n,t);this.pathCallbacks.path(s),this.ctx.fill()})}renderDashedDottedBorder(A,e,t,n,r){return I(this,null,function*(){this.ctx.save();const s=Cv(n,t),o=sd(n,t);r===2&&(this.pathCallbacks.path(o),this.ctx.clip());let a,i,c,u;Te(o[0])?(a=o[0].start.x,i=o[0].start.y):(a=o[0].x,i=o[0].y),Te(o[1])?(c=o[1].end.x,u=o[1].end.y):(c=o[1].x,u=o[1].y);let h;t===0||t===2?h=Math.abs(a-c):h=Math.abs(i-u),this.ctx.beginPath(),r===3?this.pathCallbacks.formatPath(s):this.pathCallbacks.formatPath(o.slice(0,2));let f=e<3?e*3:e*2,g=e<3?e*2:e;r===3&&(f=e,g=e);let m=!0;if(h<=f*2)m=!1;else if(h<=f*2+g){const b=h/(2*f+g);f*=b,g*=b}else{const b=Math.floor((h+g)/(f+g)),U=(h-b*f)/(b-1),E=(h-(b+1)*f)/b;g=E<=0||Math.abs(g-U)<Math.abs(g-E)?U:E}if(m&&(r===3?this.ctx.setLineDash([0,f+g]):this.ctx.setLineDash([f,g])),r===3?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=e*2+1.1,this.ctx.strokeStyle=QA(A),this.ctx.stroke(),this.ctx.setLineDash([]),r===2){if(Te(o[0])){const b=o[3],U=o[0];this.ctx.beginPath(),this.pathCallbacks.formatPath([new O(b.end.x,b.end.y),new O(U.start.x,U.start.y)]),this.ctx.stroke()}if(Te(o[1])){const b=o[1],U=o[2];this.ctx.beginPath(),this.pathCallbacks.formatPath([new O(b.end.x,b.end.y),new O(U.start.x,U.start.y)]),this.ctx.stroke()}}this.ctx.restore()})}},Qv=class{constructor(A){this.ctx=A}renderBorderImage(A,e,t,n,r,s,o,a){const i=e.naturalWidth||e.width,c=e.naturalHeight||e.height;if(i<=0||c<=0)return;const u=Math.min(t.unit==="percent"?t.top/100*c:Math.min(t.top,c),c),h=Math.min(t.unit==="percent"?t.right/100*i:Math.min(t.right,i),i),f=Math.min(t.unit==="percent"?t.bottom/100*c:Math.min(t.bottom,c),c),g=Math.min(t.unit==="percent"?t.left/100*i:Math.min(t.left,i),i),{left:m,top:b,width:U,height:E}=A;if(U<=0||E<=0)return;const v=Math.min(r,E),F=Math.min(s,U),y=Math.min(o,E-v),_=Math.min(a,U-F);this.drawRegion(e,0,0,g,u,m,b,_,v),this.drawRegion(e,i-h,0,h,u,m+U-F,b,F,v),this.drawRegion(e,i-h,c-f,h,f,m+U-F,b+E-y,F,y),this.drawRegion(e,0,c-f,g,f,m,b+E-y,_,y);const R=[{sx:g,sy:0,sw:i-g-h,sh:u,dx:m+_,dy:b,dw:U-_-F,dh:v,repeat:n.horizontal},{sx:i-h,sy:u,sw:h,sh:c-u-f,dx:m+U-F,dy:b+v,dw:F,dh:E-v-y,repeat:n.vertical},{sx:g,sy:c-f,sw:i-g-h,sh:f,dx:m+_,dy:b+E-y,dw:U-_-F,dh:y,repeat:n.horizontal},{sx:0,sy:u,sw:g,sh:c-u-f,dx:m,dy:b+v,dw:_,dh:E-v-y,repeat:n.vertical}];for(const H of R){if(H.sw<=0||H.sh<=0||H.dw<=0||H.dh<=0)continue;const z=H.dw>=H.dh;H.repeat===0?this.ctx.drawImage(e,H.sx,H.sy,H.sw,H.sh,H.dx,H.dy,H.dw,H.dh):(H.repeat===1||H.repeat===2)&&this.drawRepeatedEdge(e,H,z,H.repeat===2)}if(t.fill){const H=g,z=u,K=i-g-h,V=c-u-f,X=m+_,sA=b+v,cA=U-_-F,kA=E-v-y;this.drawRegion(e,H,z,K,V,X,sA,cA,kA)}}drawRegion(A,e,t,n,r,s,o,a,i){n>0&&r>0&&a>0&&i>0&&this.ctx.drawImage(A,e,t,n,r,s,o,a,i)}drawRepeatedEdge(A,e,t,n){const r=t?e.sw:e.sh,s=t?e.dw:e.dh;if(r<=0||s<=0)return;let o,a;n?(a=Math.max(1,Math.round(s/r)),o=s/a):(o=r,a=Math.ceil(s/o)),this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(e.dx,e.dy,e.dw,e.dh),this.ctx.clip();for(let i=0;i<a;i++){const c=i*o,u=s-c,h=Math.min(o,u);if(h<=0)break;t?this.ctx.drawImage(A,e.sx,e.sy,e.sw,e.sh,e.dx+c,e.dy,h,e.dh):this.ctx.drawImage(A,e.sx,e.sy,e.sw,e.sh,e.dx,e.dy+c,e.dw,h)}this.ctx.restore()}},yv=class{constructor(A,e){this.activeEffects=[],this.didSave=!1,this.saveAtDepth=-1,this.ctx=A.ctx,this.pathCallback=e}applyEffects(A){for(;this.activeEffects.length;)this.popEffect();this.didSave=!1,this.saveAtDepth=-1;const e=n=>Ad(n)||nc(n)||ed(n),t=A.reduceRight((n,r,s)=>n!==-1?n:e(r)?s:-1,-1);for(let n=0;n<A.length;n++){const r=A[n];e(r)&&(this.didSave||(this.ctx.save(),this.didSave=!0),n===t&&(this.saveAtDepth=this.activeEffects.length)),this.applyEffect(r)}}applyEffect(A){Ad(A)?(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)):nc(A)?(this.pathCallback.path(A.path),this.ctx.clip()):ed(A)?A.applyClip(this.ctx):qF(A)?this.ctx.globalAlpha*=A.opacity:Av(A)?this.ctx.globalCompositeOperation=A.compositeOperation:ev(A)&&(this.ctx.filter=A.safeFilterString||"none",A.shadow&&(this.ctx.shadowOffsetX=A.shadow.offsetX,this.ctx.shadowOffsetY=A.shadow.offsetY,this.ctx.shadowBlur=A.shadow.blur,this.ctx.shadowColor=A.shadow.color)),this.activeEffects.push(A)}popEffect(){this.activeEffects.length!==0&&(this.didSave&&this.activeEffects.length-1===this.saveAtDepth&&(this.ctx.restore(),this.didSave=!1,this.saveAtDepth=-1),this.activeEffects.pop(),!this.didSave&&this.activeEffects.length===0&&(this.ctx.globalAlpha=1,this.ctx.globalCompositeOperation="source-over",this.ctx.filter="none",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0,this.ctx.shadowColor="rgba(0, 0, 0, 0)"))}getActiveEffectCount(){return this.activeEffects.length}hasActiveEffects(){return this.activeEffects.length>0}};const Uv=(A,e,t,n,r)=>{let s=0,o=0,a=A,i=e,c=t.left,u=t.top,h=t.width,f=t.height;const g=h/f,m=a/i,b=r?J(r[0],1):.5,U=r?J(r[1],1):.5;return n===2?m>g?(f=h/m,u+=(t.height-f)*U):(h=f*m,c+=(t.width-h)*b):n===4?m>g?(a=i*g,s+=(A-a)*b):(i=a/g,o+=(e-i)*U):n===8?(a>h?(s+=(a-h)*b,a=h):(c+=(h-a)*b,h=a),i>f?(o+=(i-f)*U,i=f):(u+=(f-i)*U,f=i)):n===16&&((m>g?h:f*m)<(a>h?a:h)?m>g?(f=h/m,u+=(t.height-f)*U):(h=f*m,c+=(t.width-h)*b):(a>h?(s+=(a-h)*b,a=h):(c+=(h-a)*b,h=a),i>f?(o+=(i-f)*U,i=f):(u+=(f-i)*U,f=i))),{sx:s,sy:o,sw:a,sh:i,dx:c,dy:u,dw:h,dh:f}};function Ev(A,e,t,n,r,s,o,a){return I(this,null,function*(){var i,c;if(r instanceof Uh)try{const u=yield e.cache.match(r.src),h=A.imageSmoothingEnabled;o.imageRendering===2||o.imageRendering===1?A.imageSmoothingEnabled=!1:o.imageRendering===3&&(A.imageSmoothingEnabled=!0),a(r,s,u),A.imageSmoothingEnabled=h}catch(u){e.logger.error(`Error loading image ${r.src}`),(i=e.onError)==null||i.call(e,u instanceof Error?u:new Error(String(u)))}if(r instanceof Eh&&a(r,s,r.canvas),r instanceof kh)try{a(r,s,yield e.cache.match(r.svg))}catch(u){e.logger.error(`Error loading svg ${r.svg.substring(0,255)}`),(c=e.onError)==null||c.call(e,u instanceof Error?u:new Error(String(u)))}if(r instanceof xh&&r.tree){const u=yield n(e,{scale:t.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}).render(r.tree);r.width&&r.height&&A.drawImage(u,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height)}})}function kv(A,e,t,n,r){if(n instanceof tr){const s=Math.min(n.bounds.width,n.bounds.height);n.type==="checkbox"&&n.checked?(A.save(),t([new O(n.bounds.left+s*.39363,n.bounds.top+s*.79),new O(n.bounds.left+s*.16,n.bounds.top+s*.5549),new O(n.bounds.left+s*.27347,n.bounds.top+s*.44071),new O(n.bounds.left+s*.39694,n.bounds.top+s*.5649),new O(n.bounds.left+s*.72983,n.bounds.top+s*.23),new O(n.bounds.left+s*.84,n.bounds.top+s*.34085),new O(n.bounds.left+s*.39363,n.bounds.top+s*.79)]),A.fillStyle=QA(Yu),A.fill(),A.restore()):n.type==="radio"&&n.checked&&(A.save(),A.beginPath(),A.arc(n.bounds.left+s/2,n.bounds.top+s/2,s/4,0,Math.PI*2,!0),A.fillStyle=QA(Yu),A.fill(),A.restore())}if(xv(n)&&n.value.length){const[s]=e.createFontStyle(r);A.font=s;const o=J(r.fontSize,0),{baseline:a,height:i}=Oh(A,o);A.fillStyle=n instanceof tr&&n.isPlaceholder?QA(NF):QA(r.color),A.textBaseline="alphabetic",A.textAlign=Sv(n.styles.textAlign);const c=Cs(n),u=n instanceof tr?Fv(c,Ic(n),i):c;let h=0;switch(n.styles.textAlign){case 1:h+=c.width/2;break;case 2:h+=c.width;break}let f=0;n instanceof tr&&(f=(c.height-i)/2);const g=c.add(h,f,0,0);A.save(),t([new O(u.left,u.top),new O(u.left+u.width,u.top),new O(u.left+u.width,u.top+u.height),new O(u.left,u.top+u.height)]),A.clip();const m=vv(A,n.value,c.width,r.whiteSpace==="pre"||r.whiteSpace==="nowrap"),b=Wa(r.lineHeight,o);m.forEach((U,E)=>{let v=g.left;const F=A.measureText(U).width;switch(r.textAlign){case 1:v+=(c.width-F)/2;break;case 2:v+=c.width-F;break}const y=new Le(v,g.top+E*b,0,0);e.renderTextWithLetterSpacing(new mn(U,y),r.letterSpacing,a,r.writingMode)}),A.restore(),A.textBaseline="alphabetic",A.textAlign="left"}}const Fv=(A,e,t)=>A.height<t?new Le(A.left,e.top,A.width,e.height):A,vv=(A,e,t,n)=>{const r=[],s=e.split(`
|
|
1669
|
-
`);for(const o of s){if(n){r.push(o);continue}const a=o.split(/(\s+)/);let i="";for(const c of a){const u=i+c;A.measureText(u).width<=t||i===""?i=u:(r.push(i),i=c)}r.push(i)}return r};function _v(A,e,t,n,r,s){return I(this,null,function*(){var o;if(qA(r.styles.display,2048)){if(r.styles.listStyleImage!==null){const a=r.styles.listStyleImage;if(a.type===0){const i=a.url;try{const c=yield e.cache.match(i);A.drawImage(c,r.bounds.left-(c.width+10),r.bounds.top)}catch(c){e.logger.error(`Error loading list-style-image ${i}`),(o=e.onError)==null||o.call(e,c instanceof Error?c:new Error(String(c)))}}}else if(n.listValue&&r.styles.listStyleType!==-1){const[a]=t.createFontStyle(s);A.font=a,A.fillStyle=QA(s.color),A.textBaseline="middle",A.textAlign="right";const i=new Le(r.bounds.left,r.bounds.top+J(r.styles.paddingTop,r.bounds.width),r.bounds.width,Wa(s.lineHeight,s.fontSize.number)/2+1);t.renderTextWithLetterSpacing(new mn(n.listValue,i),s.letterSpacing,Wa(s.lineHeight,s.fontSize.number)/2+2,s.writingMode),A.textBaseline="bottom",A.textAlign="left"}}})}const xv=A=>A instanceof _h||A instanceof vh?!0:A instanceof tr&&A.type!=="radio"&&A.type!=="checkbox",Sv=A=>{switch(A){case 1:return"center";case 2:return"right";default:return"left"}};var Iv=class Nh{constructor(e,t){this.context=e,this.options=t,this.canvas=t.canvas?t.canvas:document.createElement("canvas");const n=this.canvas.getContext("2d");if(!n)throw new Error("Failed to get 2D rendering context from canvas");this.ctx=n,t.canvas||(this.canvas.width=Math.floor(t.width*t.scale),this.canvas.height=Math.floor(t.height*t.scale),this.canvas.style.width=`${t.width}px`,this.canvas.style.height=`${t.height}px`),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-t.x,-t.y),this.ctx.textBaseline="bottom",t.imageSmoothing!==void 0&&(this.ctx.imageSmoothingEnabled=t.imageSmoothing),t.imageSmoothingQuality&&(this.ctx.imageSmoothingQuality=t.imageSmoothingQuality),this.backgroundRenderer=new rd({ctx:this.ctx,context:this.context,canvas:this.canvas,options:{width:t.width,height:t.height,scale:t.scale}}),this.borderRenderer=new bv({ctx:this.ctx},{path:r=>this.path(r),formatPath:r=>this.formatPath(r)}),this.borderImageRenderer=new Qv(this.ctx),this.effectsRenderer=new yv({ctx:this.ctx},{path:r=>this.path(r)}),this.textRenderer=new gv({ctx:this.ctx,options:{scale:t.scale}}),this.context.logger.debug(`Canvas renderer initialized (${t.width}x${t.height}) with scale ${t.scale}`)}renderStack(e){return I(this,null,function*(){e.element.container.styles.isVisible()&&(yield this.renderStackContent(e))})}renderNode(e){return I(this,null,function*(){if(e.container.debugRender)debugger;e.container.styles.isVisible()&&(yield this.renderNodeBackgroundAndBorders(e),yield this.renderNodeContent(e))})}renderReplacedElement(e,t,n){const r=n.naturalWidth||e.intrinsicWidth,s=n.naturalHeight||e.intrinsicHeight;if(n&&r>0&&s>0){const o=Cs(e),a=Ai(t);this.path(a),this.ctx.save(),this.ctx.clip();const{sx:i,sy:c,sw:u,sh:h,dx:f,dy:g,dw:m,dh:b}=Uv(r,s,o,e.styles.objectFit,e.styles.objectPosition);this.ctx.drawImage(n,i,c,u,h,f,g,m,b),this.ctx.restore()}}renderNodeContent(e){return I(this,null,function*(){this.effectsRenderer.applyEffects(e.getEffects(4));const t=e.container,n=e.curves,r=t.styles,s=Cs(t);for(const o of t.textNodes)yield this.textRenderer.renderTextNode(o,r,s);yield Ev(this.ctx,this.context,{scale:this.options.scale,backgroundColor:this.options.backgroundColor,x:this.options.x,y:this.options.y,width:this.options.width,height:this.options.height},(o,a)=>new Nh(o,a),t,n,r,(o,a,i)=>this.renderReplacedElement(o,a,i)),kv(this.ctx,this.textRenderer,this.path.bind(this),t,r),yield _v(this.ctx,this.context,this.textRenderer,e,t,r)})}renderStackContent(e){return I(this,null,function*(){if(e.element.container.debugRender)debugger;const t=this.options.signal;yield this.renderNodeBackgroundAndBorders(e.element);for(const n of e.negativeZIndex){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderNodeContent(e.element);for(const n of e.nonInlineLevel)yield this.renderNode(n);for(const n of e.nonPositionedFloats){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.nonPositionedInlineLevel){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.inlineLevel)yield this.renderNode(n);for(const n of e.zeroOrAutoZIndexOrTransformedOrOpacity){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.positiveZIndex){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}})}mask(e){this.ctx.beginPath();const t=this.options.x,n=this.options.y;this.ctx.moveTo(t,n),this.ctx.lineTo(t+this.options.width,n),this.ctx.lineTo(t+this.options.width,n+this.options.height),this.ctx.lineTo(t,n+this.options.height),this.ctx.lineTo(t,n),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()}path(e){Kh(this.ctx,e)}formatPath(e){Mh(this.ctx,e)}renderNodeBackgroundAndBorders(e){return I(this,null,function*(){this.effectsRenderer.applyEffects(e.getEffects(2));const t=e.container.styles,n=!vt(t.backgroundColor)||t.backgroundImage.length,r=Hv(t),s=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],o=ln(t.backgroundClip,0),a=Tv(o,e.curves);if((n||t.boxShadow.length)&&(r&&e.container.textNodes.length>0?yield this.renderTextClippedBackground(e):(this.ctx.save(),this.path(a),this.ctx.clip(),vt(t.backgroundColor)||(this.ctx.fillStyle=QA(t.backgroundColor),this.ctx.fill()),yield this.backgroundRenderer.renderBackgroundImage(e.container),this.ctx.restore()),t.boxShadow.slice(0).reverse().forEach(c=>{this.ctx.save();const u=qo(e.curves),h=c.inset?0:Ek,f=GF(u,-h+(c.inset?1:-1)*c.spread.number,(c.inset?1:-1)*c.spread.number,c.spread.number*(c.inset?-2:2),c.spread.number*(c.inset?-2:2));c.inset?(this.path(u),this.ctx.clip(),this.mask(f)):(this.mask(u),this.ctx.clip(),this.path(f)),this.ctx.shadowOffsetX=c.offsetX.number+h,this.ctx.shadowOffsetY=c.offsetY.number,this.ctx.shadowColor=QA(c.color),this.ctx.shadowBlur=c.blur.number,this.ctx.fillStyle=c.inset?QA(c.color):"rgba(0,0,0,1)",this.ctx.fill(),this.ctx.restore()})),t.borderImageSource){const c=t.borderImageSource;if(c.type===0){const u=c.url;try{const h=yield this.context.cache.match(u);if(h){const f=e.container.bounds;this.borderImageRenderer.renderBorderImage(f,h,t.borderImageSlice,t.borderImageRepeat,Math.max(0,t.borderTopWidth),Math.max(0,t.borderRightWidth),Math.max(0,t.borderBottomWidth),Math.max(0,t.borderLeftWidth))}}catch(h){this.context.logger.error(`Error loading border-image ${u}`)}}return}let i=0;for(const c of s){if(c.style!==0&&!vt(c.color)&&c.width>0){const u=()=>I(this,null,function*(){c.style===2?yield this.borderRenderer.renderDashedDottedBorder(c.color,c.width,i,e.curves,2):c.style===3?yield this.borderRenderer.renderDashedDottedBorder(c.color,c.width,i,e.curves,3):c.style===4?yield this.borderRenderer.renderDoubleBorder(c.color,c.width,i,e.curves):yield this.borderRenderer.renderSolidBorder(c.color,i,e.curves)}),h=e.container.legendBounds;if(i===0&&h){const f=e.container.bounds,g=h.left-f.left,m=h.left+h.width-f.left;g>0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(f.left,f.top,g,f.height),this.ctx.clip(),yield u(),this.ctx.restore());const b=f.left+m,U=f.width-m;U>0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(b,f.top,U,f.height),this.ctx.clip(),yield u(),this.ctx.restore())}else yield u()}i++}})}render(e){return I(this,null,function*(){this.options.backgroundColor&&(this.ctx.fillStyle=QA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height));const t=nv(e);return yield this.renderStack(t),this.effectsRenderer.applyEffects([]),this.canvas})}renderTextClippedBackground(e){return I(this,null,function*(){var m;const t=e.container,n=t.styles,r=t.bounds;if(r.width<=0||r.height<=0)return;const s=((m=this.canvas.ownerDocument)!=null?m:document).createElement("canvas"),o=Math.ceil(r.width),a=Math.ceil(r.height);s.width=o,s.height=a;const i=s.getContext("2d");if(!i)return;const[c]=this.textRenderer.createFontStyle(n);i.font=c,i.textBaseline="alphabetic",i.textAlign="left",i.direction=n.direction===1?"rtl":"ltr";const u=Ph(i,n.fontSize.number),h=new rd({ctx:i,context:this.context,canvas:s,options:{width:o,height:a,scale:1}});vt(n.backgroundColor)||(i.fillStyle=QA(n.backgroundColor),i.fillRect(0,0,o,a)),i.save(),i.translate(-r.left,-r.top),yield h.renderBackgroundImage(t),i.restore(),i.globalCompositeOperation="destination-in",i.fillStyle="#000";const f=n.writingMode,g=n.letterSpacing;for(const b of t.textNodes)for(const U of b.textBounds){const E=U.bounds.left-r.left,v=U.bounds.top-r.top+u;g>0?this.renderTextMaskWithLetterSpacing(i,U,g,E,v,f):i.fillText(U.text,E,v)}this.ctx.drawImage(s,r.left,r.top)})}renderTextMaskWithLetterSpacing(e,t,n,r,s,o){const a=Cn(t.text);let i=r;for(const c of a){if(Yo(o)){e.fillText(t.text,r,s);return}e.fillText(c,i,s),i+=e.measureText(c).width+n}}};const Tv=(A,e)=>{switch(A){case 0:return qo(e);case 2:return XF(e);default:return Ai(e)}},Hv=A=>A.backgroundClip.some(e=>e===3);var Lv=class{constructor(A,e){this.context=A,this.options=e,this.canvas=e.canvas?e.canvas:document.createElement("canvas");const t=this.canvas.getContext("2d");if(!t)throw new Error("Failed to get 2D rendering context from canvas");this.ctx=t,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`,this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x,-e.y),this.context.logger.debug(`EXPERIMENTAL ForeignObject renderer initialized (${e.width}x${e.height} at ${e.x},${e.y}) with scale ${e.scale}`)}render(A){return I(this,null,function*(){var t;if((t=this.options.signal)!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");const e=yield Ac(qa(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A));return this.options.backgroundColor&&(this.ctx.fillStyle=QA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(e,-this.options.x*this.options.scale,-this.options.y*this.options.scale),this.canvas})}},ur,Dv=(ur=class{constructor({id:e,enabled:t}){this.id=e,this.enabled=t,this.start=Date.now()}debug(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug(this.id,`${this.getTime()}ms`,...e):this.info(...e))}getTime(){return Date.now()-this.start}info(...e){this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info(this.id,`${this.getTime()}ms`,...e)}warn(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn(this.id,`${this.getTime()}ms`,...e):this.info(...e))}error(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error(this.id,`${this.getTime()}ms`,...e):this.info(...e))}},ur.instances={},ur),Rv=class{constructor(A,e){var t;if(this.context=A,this._options=e,this._cache=new Map,this._pendingOperations=new Map,this._deferMode=!1,this._collectedUrls=new Set,this.maxSize=(t=e.maxCacheSize)!=null?t:100,this.maxSize<1)throw new Error("Cache maxSize must be at least 1");this.maxSize>1e4&&this.context.logger.warn(`Cache maxSize ${this.maxSize} is very large and may cause memory issues. Consider using a smaller value (recommended: 100-1000).`)}startDefer(){this._deferMode=!0}preloadAll(A=10){return I(this,null,function*(){this._deferMode=!1;const e=Array.from(this._collectedUrls);if(this._collectedUrls.clear(),e.length===0)return;const t=Math.max(1,Math.min(A,100));this.context.logger.debug(`Preloading ${e.length} image(s) with concurrency ${t}`);for(let n=0;n<e.length;n+=t){const r=e.slice(n,n+t).map(s=>this._addImageWithPending(s));yield Promise.allSettled(r)}})}addImage(A){if(this._deferMode)return!this.has(A)&&(Pr(A)||od(A))&&this._collectedUrls.add(A),Promise.resolve();const e=this._pendingOperations.get(A);if(e)return e;if(this.has(A)){const t=this._cache.get(A);return this._cache.delete(A),this._cache.set(A,t),Promise.resolve()}return Pr(A)||od(A)?this._addImageWithPending(A):Promise.resolve()}_addImageWithPending(A){const e=this._pendingOperations.get(A);if(e)return e;const t=this._addImageInternal(A);return this._pendingOperations.set(A,t),t.finally(()=>{this._pendingOperations.delete(A)}),t}_addImageInternal(A){return I(this,null,function*(){var n;const e=(n=this._options.imageTimeout)!=null?n:15e3,t=this.withTimeout(this.loadImage(A),e,`Timed out (${e}ms) loading image`);t.catch(r=>{this.context.logger.error(`Failed to load image ${A}: ${r instanceof Error?r.message:"Unknown error"}`)}),this.set(A,t)})}withTimeout(A,e,t){if(e<=0)return A;let n;const r=new Promise((s,o)=>{n=setTimeout(()=>o(new Error(t)),e)});return Promise.race([A,r]).finally(()=>{n!==void 0&&clearTimeout(n)})}match(A){const e=this._cache.get(A);if(e)return this._cache.delete(A),this._cache.set(A,e),e.value}set(A,e){if(this._cache.has(A))this._cache.delete(A);else if(this._cache.size>=this.maxSize){const t=this._cache.keys().next().value;t!==void 0&&(this._cache.delete(t),this.context.logger.debug(`Cache: Evicted LRU entry: ${t}`))}this._cache.set(A,{value:e})}size(){return this._cache.size}getMaxSize(){return this.maxSize}clear(){this._cache.clear()}loadImage(A){return I(this,null,function*(){const e=this.context.originChecker,t=i=>e.isSameOrigin(i),n=typeof this._options.customIsSameOrigin=="function"?yield this._options.customIsSameOrigin(A,t):t(A),r=!n&&this._options.allowTaint===!1&&!Bo(A)&&!Pr(A)&&typeof this._options.proxy!="string",s=!Bo(A)&&(this._options.useCORS===!0||r)&&YA.SUPPORT_CORS_IMAGES&&!n,o=!Bo(A)&&!n&&!Pr(A)&&typeof this._options.proxy=="string"&&YA.SUPPORT_CORS_XHR&&!s;if(!n&&this._options.allowTaint===!1&&!Bo(A)&&!Pr(A)&&!o&&!s)return;let a=A;return o&&(a=yield this.proxy(a)),this.context.logger.debug(`Added image ${A.substring(0,256)}`),yield new Promise((i,c)=>{const u=new Image;u.onload=()=>i(u),u.onerror=c,(Kv(a)||s)&&(u.crossOrigin="anonymous"),u.src=a,u.complete===!0&&setTimeout(()=>i(u),500)})})}has(A){return this._cache.has(A)}keys(){return Promise.resolve(Array.from(this._cache.keys()))}proxy(A){const e=this._options.proxy;if(!e)throw new Error("No proxy defined");const t=A.substring(0,256);return new Promise((n,r)=>{const s=YA.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=()=>{if(o.status===200)if(s==="text")n(o.response);else{const i=new FileReader;i.addEventListener("load",()=>n(i.result),!1),i.addEventListener("error",c=>r(c),!1),i.readAsDataURL(o.response)}else r(`Failed to proxy resource ${t} with status code ${o.status}`)},o.onerror=r;const a=e.indexOf("?")>-1?"&":"?";if(o.open("GET",`${e}${a}url=${encodeURIComponent(A)}&responseType=${s}`),s!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=s),this._options.imageTimeout){const i=this._options.imageTimeout;o.timeout=i,o.ontimeout=()=>r(`Timed out (${i}ms) proxying ${t}`)}o.send()})}};const Ov=/^data:image\/svg\+xml/i,Pv=/^data:image\/.*;base64,/i,Mv=/^data:image\/.*/i,od=A=>YA.SUPPORT_SVG_DRAWING||!Nv(A),Bo=A=>Mv.test(A),Kv=A=>Pv.test(A),Pr=A=>A.substring(0,4)==="blob",Nv=A=>A.slice(-3).toLowerCase()==="svg"||Ov.test(A);var $v=class{constructor(A){if(!A||!A.document)throw new Error("Valid window object required for OriginChecker");if(!A.location||!A.location.href)throw new Error("Window object must have valid location");this.link=A.document.createElement("a"),this.origin=this.getOrigin(A.location.href)}getOrigin(A){return this.link.href=A,this.link.href=this.link.href,this.link.protocol+this.link.hostname+this.link.port}isSameOrigin(A){return this.getOrigin(A)===this.origin}getContextOrigin(){return this.origin}},yn,zv=(yn=class{constructor(e,t,n){var r,s;this.windowBounds=t,this.instanceName=`#${yn.instanceCount++}`,this.config=n,this.logger=new Dv({id:this.instanceName,enabled:e.logging}),this.originChecker=new $v(n.window),this.cache=(s=(r=e.cache)!=null?r:n.cache)!=null?s:new Rv(this,e),this.onError=e.onError}},yn.instanceCount=1,yn);const wo=A=>{if(A!=null&&A.aborted)throw new DOMException("The operation was aborted.","AbortError")},Vv=A=>{["scale","width","height","imageTimeout","x","y","windowWidth","windowHeight","scrollX","scrollY"].forEach(e=>{const t=A[e];if(t!=null&&typeof t!="number"){const n=Number(t);Number.isNaN(n)||(A[e]=n)}})},Gv=A=>{var e,t,n;return{allowTaint:(e=A.allowTaint)!=null?e:!1,imageTimeout:(t=A.imageTimeout)!=null?t:15e3,proxy:A.proxy,useCORS:(n=A.useCORS)!=null?n:!1,customIsSameOrigin:A.customIsSameOrigin,maxCacheSize:A.maxCacheSize}},Zv=(A,e,t)=>{var n,r;return k({logging:(n=A.logging)!=null?n:!0,cache:(r=A.cache)!=null?r:e.cache},t)},Xv=800,Wv=600,id=0,Jv=(A,e)=>{var n,r,s,o,a,i,c,u;const t=e;return{windowWidth:(r=(n=A.windowWidth)!=null?n:t.innerWidth)!=null?r:Xv,windowHeight:(o=(s=A.windowHeight)!=null?s:t.innerHeight)!=null?o:Wv,scrollX:(i=(a=A.scrollX)!=null?a:t.pageXOffset)!=null?i:id,scrollY:(u=(c=A.scrollY)!=null?c:t.pageYOffset)!=null?u:id}},jv=(A,e,t)=>{var n,r;return{allowTaint:(n=A.allowTaint)!=null?n:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,iframeContainer:A.iframeContainer,inlineImages:t,copyStyles:t,cspNonce:(r=A.cspNonce)!=null?r:e.cspNonce}},Yv=(A,e,t,n,r,s,o)=>{var a,i,c,u,h,f;return{canvas:A.canvas,backgroundColor:e,signal:A.signal,scale:(i=(a=A.scale)!=null?a:o)!=null?i:1,x:((c=A.x)!=null?c:0)+t,y:((u=A.y)!=null?u:0)+n,width:(h=A.width)!=null?h:Math.ceil(r),height:(f=A.height)!=null?f:Math.ceil(s),imageSmoothing:A.imageSmoothing,imageSmoothingQuality:A.imageSmoothingQuality}},qv=(A,e,t)=>{const n=e.ownerDocument,r=n.documentElement?cr(A,getComputedStyle(n.documentElement).backgroundColor):pt.TRANSPARENT,s=n.body?cr(A,getComputedStyle(n.body).backgroundColor):pt.TRANSPARENT,o=typeof t=="string"?cr(A,t):t===null?pt.TRANSPARENT:4294967295;return e===n.documentElement?vt(r)?vt(s)?o:s:r:o},A_=(A,e,t)=>I(null,null,function*(){var K,V,X,sA,cA,kA;if(Vv(e),!e.skipValidation){const de=e.validator||oy(),re=de.validateElement(A);if(!re.valid)throw new Error(re.error);const be=de.validateOptions(e);if(!be.valid)throw new Error(`Invalid options: ${be.error}`)}if(!A||typeof A!="object")throw new Error("Invalid element provided as first argument");const n=A.ownerDocument;if(!n)throw new Error("Element is not attached to a Document");const r=n.defaultView;if(!r)throw new Error("Document is not attached to a Window");const s=Zv(e,t,Gv(e)),o=Jv(e,r),a=new Le(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),i=new zv(s,a,t),c=(V=(K=e.enablePerformanceMonitoring)!=null?K:e.logging)!=null?V:!1,u=new iy(i,c);u.start("total",{width:o.windowWidth,height:o.windowHeight});const h=e.signal;wo(h);const f=(X=e.foreignObjectRendering)!=null?X:!1,g=jv(e,t,f);i.logger.debug(`Starting document clone with size ${a.width}x${a.height} scrolled to ${-a.left},${-a.top}`),u.start("clone");const m=new ea(i,A,g),b=m.clonedReferenceElement;if(!b)throw new Error("Unable to find element in cloned iframe");const U=yield m.toIFrame(n,a);u.end("clone"),h!=null&&h.aborted&&(((sA=e.removeContainer)==null||sA)&&ea.destroy(U),wo(h));const{width:E,height:v,left:F,top:y}=xc(b)||cU(b)?ay(b.ownerDocument):fs(i,b),_=qv(i,b,e.backgroundColor),R=Yv(e,_,F,y,E,v,(cA=r.devicePixelRatio)!=null?cA:1);let H,z;try{return f?(i.logger.debug("Document cloned, using foreign object rendering"),u.start("render-foreignobject"),H=yield new Lv(i,R).render(b),u.end("render-foreignobject")):(i.logger.debug(`Document cloned, element located at ${F},${y} with size ${E}x${v} using computed rendering`),i.logger.debug("Starting DOM parsing"),u.start("parse"),wo(h),i.cache.startDefer(),z=Th(i,b),u.end("parse"),u.start("preload"),yield i.cache.preloadAll(),u.end("preload"),_===z.styles.backgroundColor&&(z.styles.backgroundColor=pt.TRANSPARENT),i.logger.debug(`Starting renderer for element at ${R.x},${R.y} with size ${R.width}x${R.height}`),u.start("render"),wo(h),H=yield new Iv(i,R).render(z),u.end("render")),u.start("cleanup"),((kA=e.removeContainer)==null||kA)&&(ea.destroy(U)||i.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),u.end("cleanup"),u.end("total"),i.logger.debug("Finished rendering"),c&&u.logSummary(),H}finally{z&&z.restoreTree()}}),e_=(A,e={},t)=>A_(A,e,ry.fromElement(A,{cspNonce:e.cspNonce,cache:e.cache}));function t_(A){return I(this,null,function*(){if(!(A instanceof HTMLElement))return{blob:null,error:null};try{const e=yield e_(A,{backgroundColor:"#ffffff",logging:!1,useCORS:!0,scale:1,ignoreElements:n=>n instanceof Element&&n.hasAttribute("data-ap-sdk"),onclone:(n,r)=>{try{fc(r)}catch(s){}}}),t=yield n_(e);return t?{blob:t,error:null}:{blob:null,error:"canvas.toBlob produced no image data"}}catch(e){return console.error("[Agent Platform SDK] screenshot capture failed:",e),{blob:null,error:e instanceof Error?e.message:String(e)}}})}function n_(A){return new Promise(e=>{A.toBlob(t=>e(t),"image/png")})}const r_={click:"🖱",inputText:"⌨",scroll:"↕",keypress:"⌤"};function s_(A,e){const{needsCredentials:t,canCreateTask:n,canCreatePlanning:r,captureType:s,hasOnReselect:o,hasOnAddAnother:a}=e;return`
|
|
1661
|
+
}`,jk=(A,e)=>{Yk(A,`.${Ac}${Wk}${$u}
|
|
1662
|
+
.${ec}${Jk}${$u}`,e)},Yk=(A,e,t)=>{const n=A.ownerDocument;if(n){const r=n.createElement("style");r.textContent=e,t&&(r.nonce=t),A.appendChild(r)}},qk=(A,e)=>{var r;const t=A.ownerDocument.createElement("base");t.href=e;const n=A.getElementsByTagName("head").item(0);n==null||n.insertBefore(t,(r=n==null?void 0:n.firstChild)!=null?r:null)};var zu=class{static normalizeElement(A,e){const t={};return ws(A)&&(e.animationDuration.some(n=>n>0)&&(t.animationDuration=A.style.animationDuration,A.style.animationDuration="0s"),e.transform!==null&&(t.transform=A.style.transform,A.style.transform="translate(0, 0)"),e.rotate!==null&&(t.rotate=A.style.rotate,A.style.rotate="0deg",t.transform===void 0&&(t.transform=A.style.transform,A.style.transform="translate(0, 0)"))),t}static restoreElement(A,e){ws(A)&&(e.animationDuration!==void 0&&(A.style.animationDuration=e.animationDuration),e.transform!==void 0&&(A.style.transform=e.transform),e.rotate!==void 0&&(A.style.rotate=e.rotate))}},mt=class{constructor(A,e,t={}){if(this.context=A,this.textNodes=[],this.elements=[],this.createsStackingContext=!1,this.createsRealStackingContext=!1,this.isListOwner=!1,this.debugRender=!1,qa(e,3))debugger;if(this.styles=new Hk(A,A.config.window.getComputedStyle(e,null)),t.normalizeDom!==!1&&ws(e)&&(this.originalStyles=zu.normalizeElement(e,this.styles),this.originalElement=e),this.bounds=fs(this.context,e),e.tagName==="FIELDSET"){const n=e.querySelector(":scope > legend");if(n){const r=fs(this.context,n);this.legendBounds=r;const s=r.top+r.height/2-this.styles.borderTopWidth/2;this.bounds=new Le(this.bounds.left,s,this.bounds.width,this.bounds.height-(s-this.bounds.top))}}qa(e,4)&&(this.debugRender=!0)}restore(){this.originalStyles&&this.originalElement&&(zu.restoreElement(this.originalElement,this.originalStyles),this.originalStyles=void 0,this.originalElement=void 0)}restoreTree(){this.restore();for(const A of this.elements)A.restoreTree()}},AF="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAI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TUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQg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UBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABg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ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Vu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var ao=0;ao<Vu.length;ao++)qr[Vu.charCodeAt(ao)]=ao;var eF=function(A){var e=A.length*.75,t=A.length,n,r=0,s,o,a,i;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(e):new Array(e),u=Array.isArray(c)?c:new Uint8Array(c);for(n=0;n<t;n+=4)s=qr[A.charCodeAt(n)],o=qr[A.charCodeAt(n+1)],a=qr[A.charCodeAt(n+2)],i=qr[A.charCodeAt(n+3)],u[r++]=s<<2|o>>4,u[r++]=(o&15)<<4|a>>2,u[r++]=(a&3)<<6|i&63;return c},tF=function(A){for(var e=A.length,t=[],n=0;n<e;n+=2)t.push(A[n+1]<<8|A[n]);return t},nF=function(A){for(var e=A.length,t=[],n=0;n<e;n+=4)t.push(A[n+3]<<24|A[n+2]<<16|A[n+1]<<8|A[n]);return t},Cn=5,Lc=11,oa=2,rF=Lc-Cn,_h=65536>>Cn,ia=(1<<Cn)-1,sF=_h+(1024>>Cn)+32,oF=65536>>Lc,iF=(1<<rF)-1,Gu=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},aF=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},cF=function(A,e){var t=eF(A),n=Array.isArray(t)?nF(t):new Uint32Array(t),r=Array.isArray(t)?tF(t):new Uint16Array(t),s=24,o=Gu(r,s/2,n[4]/2),a=n[5]===2?Gu(r,(s+n[4])/2):aF(n,Math.ceil((s+n[4])/4));return new lF(n[0],n[1],n[2],n[3],o,a)},lF=(function(){function A(e,t,n,r,s,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=s,this.data=o}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Cn],t=(t<<oa)+(e&ia),this.data[t];if(e<=65535)return t=this.index[_h+(e-55296>>Cn)],t=(t<<oa)+(e&ia),this.data[t];if(e<this.highStart)return t=sF-oF+(e>>Lc),t=this.index[t],t+=e>>Cn&iF,t=this.index[t],t=(t<<oa)+(e&ia),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),Zu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uF=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var co=0;co<Zu.length;co++)uF[Zu.charCodeAt(co)]=co;var dF=1,aa=2,ca=3,Xu=4,Wu=5,pF=7,Ju=8,la=9,ua=10,ju=11,Yu=12,qu=13,Ad=14,da=15,hF=function(A){for(var e=[],t=0,n=A.length;t<n;){var r=A.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var s=A.charCodeAt(t++);(s&64512)===56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),t--)}else e.push(r)}return e},fF=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var n=[],r=-1,s="";++r<t;){var o=A[r];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(r+1===t||n.length>16384)&&(s+=String.fromCharCode.apply(String,n),n.length=0)}return s},gF=cF(AF),ke="×",pa="÷",BF=function(A){return gF.get(A)},wF=function(A,e,t){var n=t-2,r=e[n],s=e[t-1],o=e[t];if(s===aa&&o===ca)return ke;if(s===aa||s===ca||s===Xu||o===aa||o===ca||o===Xu)return pa;if(s===Ju&&[Ju,la,ju,Yu].indexOf(o)!==-1||(s===ju||s===la)&&(o===la||o===ua)||(s===Yu||s===ua)&&o===ua||o===qu||o===Wu||o===pF||s===dF)return ke;if(s===qu&&o===Ad){for(;r===Wu;)r=e[--n];if(r===Ad)return ke}if(s===da&&o===da){for(var a=0;r===da;)a++,r=e[--n];if(a%2===0)return ke}return pa},mF=function(A){var e=hF(A),t=e.length,n=0,r=0,s=e.map(BF);return{next:function(){if(n>=t)return{done:!0,value:null};for(var o=ke;n<t&&(o=wF(e,s,++n))===ke;);if(o!==ke||n===t){var a=fF.apply(null,e.slice(r,n));return r=n,{value:a,done:!1}}return{done:!0,value:null}}}},CF=function(A){for(var e=mF(A),t=[],n;!(n=e.next()).done;)n.value&&t.push(n.value.slice());return t};const bF=A=>{if(A.createRange){const t=A.createRange();if(t.getBoundingClientRect){const n=A.createElement("boundtest");n.style.height="123px",n.style.display="block",A.body.appendChild(n),t.selectNode(n);const r=t.getBoundingClientRect(),s=Math.round(r.height);if(A.body.removeChild(n),s===123)return!0}}return!1},QF=A=>{const e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);const t=A.createRange();e.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";const n=e.firstChild,r=Bi(n.data).map(i=>DA(i));let s=0,o={};const a=r.every((i,c)=>{t.setStart(n,s),t.setEnd(n,s+i.length);const u=t.getBoundingClientRect();s+=i.length;const h=u.x>o.x||u.y>o.y;return o=u,c===0?!0:h});return A.body.removeChild(e),a},yF=()=>typeof new Image().crossOrigin!="undefined",UF=()=>typeof new XMLHttpRequest().responseType=="string",EF=A=>{const e=new Image,t=A.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),t.toDataURL()}catch(r){return!1}return!0},ed=A=>A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255,kF=A=>{const e=A.createElement("canvas"),t=100;e.width=t,e.height=t;const n=e.getContext("2d");if(!n)return Promise.reject(new Error("Failed to get 2D rendering context"));n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,t,t);const r=new Image,s=e.toDataURL();r.src=s;const o=tc(t,t,0,0,r);return n.fillStyle="red",n.fillRect(0,0,t,t),nc(o).then(a=>{n.drawImage(a,0,0);const i=n.getImageData(0,0,t,t).data;n.fillStyle="red",n.fillRect(0,0,t,t);const c=A.createElement("div");return c.style.backgroundImage=`url(${s})`,c.style.height=`${t}px`,ed(i)?nc(tc(t,t,0,0,c)):Promise.reject(new Error("ForeignObject rendering not supported"))}).then(a=>(n.drawImage(a,0,0),ed(n.getImageData(0,0,t,t).data))).catch(()=>!1)},tc=(A,e,t,n,r)=>{const s="http://www.w3.org/2000/svg",o=document.createElementNS(s,"svg"),a=document.createElementNS(s,"foreignObject");return o.setAttributeNS(null,"width",A.toString()),o.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",t.toString()),a.setAttributeNS(null,"y",n.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(r),o},nc=A=>new Promise((e,t)=>{const n=new Image;n.onload=()=>e(n),n.onerror=t,n.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(A))}`}),qA={get SUPPORT_RANGE_BOUNDS(){const A=bF(document);return Object.defineProperty(qA,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){const A=qA.SUPPORT_RANGE_BOUNDS&&QF(document);return Object.defineProperty(qA,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){const A=EF(document);return Object.defineProperty(qA,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){const A=typeof Array.from=="function"&&typeof window.fetch=="function"?kF(document):Promise.resolve(!1);return Object.defineProperty(qA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){const A=yF();return Object.defineProperty(qA,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){const A=UF();return Object.defineProperty(qA,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){const A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(qA,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){const A=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(qA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}};var bn=class{constructor(A,e){this.text=A,this.bounds=e}};const FF=(A,e,t,n)=>{const r=xF(e,t),s=[];let o=0;return r.forEach(a=>{if(t.textDecorationLine.length||a.trim().length>0)if(qA.SUPPORT_RANGE_BOUNDS){const i=td(n,o,a.length).getClientRects();if(i.length>1){const c=Qn(a);let u=0;c.forEach(h=>{s.push(new bn(h,Le.fromDOMRectList(A,td(n,u+o,h.length).getClientRects()))),u+=h.length})}else s.push(new bn(a,Le.fromDOMRectList(A,i)))}else{const i=n.splitText(a.length);s.push(new bn(a,vF(A,n))),n=i}else qA.SUPPORT_RANGE_BOUNDS||(n=n.splitText(a.length));o+=a.length}),s},vF=(A,e)=>{const t=e.ownerDocument;if(t){const n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));const r=e.parentNode;if(r){r.replaceChild(n,e);const s=fs(A,n);return n.firstChild&&r.replaceChild(n.firstChild,n),s}}return Le.EMPTY},td=(A,e,t)=>{const n=A.ownerDocument;if(!n)throw new Error("Node has no owner document");const r=n.createRange();return r.setStart(A,e),r.setEnd(A,e+t),r},Qn=A=>{if(qA.SUPPORT_NATIVE_TEXT_SEGMENTATION){const e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(t=>t.segment)}return CF(A)},_F=(A,e)=>{if(qA.SUPPORT_NATIVE_TEXT_SEGMENTATION){const t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map(n=>n.segment)}return IF(A,e)},xF=(A,e)=>Ai(e.writingMode)||e.letterSpacing!==0?Qn(A):_F(A,e),SF=[32,160,4961,65792,65793,4153,4241],IF=(A,e)=>{const t=Ky(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[];let r;for(;!(r=t.next()).done;)if(r.value){const s=Bi(r.value.slice());let o="";s.forEach(a=>{SF.indexOf(a)===-1?o+=DA(a):(o.length&&n.push(o),n.push(DA(a)),o="")}),o.length&&n.push(o)}return n};var TF=class{constructor(A,e,t){this.text=HF(e.data,t.textTransform),this.text.length!==e.data.length&&(e.data=this.text),this.textBounds=FF(A,this.text,t,e)}};const HF=(A,e)=>{switch(e){case 1:return A.toLowerCase();case 3:return A.replace(LF,DF);case 2:return A.toUpperCase();default:return A}},LF=/(^|\s|:|-|\(|\))([a-z])/g,DF=(A,e,t)=>A.length>0?e+t.toUpperCase():A;var xh=class extends mt{constructor(A,e){super(A,e),this.src=e.currentSrc||e.src,this.intrinsicWidth=e.naturalWidth,this.intrinsicHeight=e.naturalHeight,this.context.cache.addImage(this.src)}},Sh=class extends mt{constructor(A,e){super(A,e),this.canvas=e,this.intrinsicWidth=e.width,this.intrinsicHeight=e.height}};const RF=["position","inset","top","right","bottom","left","inset-inline","inset-inline-start","inset-inline-end","inset-block","inset-block-start","inset-block-end","margin","margin-top","margin-right","margin-bottom","margin-left","margin-inline","margin-inline-start","margin-inline-end","margin-block","margin-block-start","margin-block-end"],OF=(A,e)=>{const t=e.getAttribute("style");RF.forEach(r=>e.style.removeProperty(r));const n=A.serializeToString(e);return t===null?e.removeAttribute("style"):e.setAttribute("style",t),n};var Ih=class extends mt{constructor(A,e){super(A,e);const t=new XMLSerializer,n=fs(A,e);e.setAttribute("width",`${n.width}px`),e.setAttribute("height",`${n.height}px`),this.svg=`data:image/svg+xml,${encodeURIComponent(OF(t,e))}`,this.intrinsicWidth=e.width.baseVal.value,this.intrinsicHeight=e.height.baseVal.value,this.context.cache.addImage(this.svg)}},Th=class extends mt{constructor(A,e){super(A,e),this.value=e.value}},rc=class extends mt{constructor(A,e){super(A,e),this.start=e.start,this.reversed=typeof e.reversed=="boolean"&&e.reversed===!0}};const PF=[{type:15,flags:0,unit:"px",number:3}],MF=[{type:16,flags:0,number:50}],KF=A=>A.width>A.height?new Le(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new Le(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A,NF=A=>{const e=A.type==="password"?new Array(A.value.length+1).join("•"):A.value;return e.length===0?A.placeholder||"":e},$F=A=>A.value.length===0&&!!A.placeholder,zF="checkbox",VF="radio",nd=707406591,GF=1970632191;var nr=class extends mt{constructor(A,e){switch(super(A,e),this.type=e.type.toLowerCase(),this.checked=e.checked,this.value=NF(e),this.isPlaceholder=$F(e),(this.type==="checkbox"||this.type==="radio")&&(this.styles.backgroundColor=3739148031,this.styles.borderTopColor=this.styles.borderRightColor=this.styles.borderBottomColor=this.styles.borderLeftColor=2779096575,this.styles.borderTopWidth=this.styles.borderRightWidth=this.styles.borderBottomWidth=this.styles.borderLeftWidth=1,this.styles.borderTopStyle=this.styles.borderRightStyle=this.styles.borderBottomStyle=this.styles.borderLeftStyle=1,this.styles.backgroundClip=[0],this.styles.backgroundOrigin=[0],this.bounds=KF(this.bounds)),this.type){case zF:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=PF;break;case VF:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=MF;break}}},Hh=class extends mt{constructor(A,e){super(A,e);const t=e.options[e.selectedIndex||0];this.value=t&&t.text||""}},Lh=class extends mt{constructor(A,e){super(A,e),this.value=e.value}},Dh=class extends mt{constructor(A,e,t){super(A,e),this.src=e.src,this.width=parseInt(e.width,10)||0,this.height=parseInt(e.height,10)||0,this.backgroundColor=this.styles.backgroundColor,this.parseTreeFn=t;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement&&this.parseTreeFn){this.tree=this.parseTreeFn(A,e.contentWindow.document.documentElement);const n=e.contentWindow.document.documentElement?lr(A,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):ft.TRANSPARENT,r=e.contentWindow.document.body?lr(A,getComputedStyle(e.contentWindow.document.body).backgroundColor):ft.TRANSPARENT;this.backgroundColor=St(n)?St(r)?this.styles.backgroundColor:r:n}}catch(n){}}};const ZF=["OL","UL","MENU"],sc=(A,e,t,n)=>{for(let r=e.firstChild,s;r;r=s)s=r.nextSibling,Rh(A,r,t,n)},Rh=(A,e,t,n)=>{if(ch(e)&&e.data.length>0)t.textNodes.push(new TF(A,e,t.styles));else if(fn(e))if(Yr(e)&&e.assignedNodes)e.assignedNodes().forEach(r=>Rh(A,r,t,n));else{const r=Oh(A,e);r.styles.isVisible()&&(XF(e,r,n)?r.createsRealStackingContext=!0:WF(r.styles)&&(r.createsStackingContext=!0),ZF.indexOf(e.tagName)!==-1&&(r.isListOwner=!0),t.elements.push(r),e.shadowRoot?sc(A,e.shadowRoot,r,n):!Yo(e)&&!lh(e)&&!qo(e)&&sc(A,e,r,n))}},Oh=(A,e)=>Xa(e)?new xh(A,e):uh(e)?new Sh(A,e):lh(e)?new Ih(A,e):fU(e)?new Th(A,e):gU(e)?new rc(A,e):dU(e)?new nr(A,e):qo(e)?new Hh(A,e):Yo(e)?new Lh(A,e):dh(e)?new Dh(A,e,Ph):new mt(A,e),Ph=(A,e)=>{const t=Oh(A,e);return t.createsRealStackingContext=!0,sc(A,e,t,t),t},XF=(A,e,t)=>e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Hc(A)&&t.styles.isTransparent(),WF=A=>A.isPositioned()||A.isFloating()?!0:Ae(A.display,268435456)||Ae(A.display,33554432)||Ae(A.display,536870912)||Ae(A.display,134217728),rd=(A,e)=>A.length===e.length?A.some((t,n)=>t===e[n]):!1,JF=(A,e,t,n,r)=>A.map((s,o)=>{switch(o){case 0:return s.add(e,t);case 1:return s.add(e+n,t);case 2:return s.add(e+n,t+r);case 3:return s.add(e,t+r)}return s});var O=class Mh{constructor(e,t){this.type=0,this.x=e,this.y=t}add(e,t){return new Mh(this.x+e,this.y+t)}};const Gn=(A,e,t)=>new O(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t);var lo=class As{constructor(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}subdivide(e,t){const n=Gn(this.start,this.startControl,e),r=Gn(this.startControl,this.endControl,e),s=Gn(this.endControl,this.end,e),o=Gn(n,r,e),a=Gn(r,s,e),i=Gn(o,a,e);return t?new As(this.start,n,o,i):new As(i,a,s,this.end)}add(e,t){return new As(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))}reverse(){return new As(this.end,this.endControl,this.startControl,this.start)}};const Te=A=>A.type===1;var jF=class{constructor(A){const e=A.styles,t=A.bounds;let[n,r]=jr(e.borderTopLeftRadius,t.width,t.height),[s,o]=jr(e.borderTopRightRadius,t.width,t.height),[a,i]=jr(e.borderBottomRightRadius,t.width,t.height),[c,u]=jr(e.borderBottomLeftRadius,t.width,t.height);const h=[];h.push((n+s)/t.width),h.push((c+a)/t.width),h.push((r+u)/t.height),h.push((o+i)/t.height);const f=Math.max(...h);f>1&&(n/=f,r/=f,s/=f,o/=f,a/=f,i/=f,c/=f,u/=f);const g=t.width-s,m=t.height-i,b=t.width-a,k=t.height-u,E=e.borderTopWidth,v=e.borderRightWidth,y=e.borderBottomWidth,U=e.borderLeftWidth,x=J(e.paddingTop,A.bounds.width),D=J(e.paddingRight,A.bounds.width),H=J(e.paddingBottom,A.bounds.width),Z=J(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||r>0?mA(t.left+U/3,t.top+E/3,n-U/3,r-E/3,0):new O(t.left+U/3,t.top+E/3),this.topRightBorderDoubleOuterBox=n>0||r>0?mA(t.left+g,t.top+E/3,s-v/3,o-E/3,1):new O(t.left+t.width-v/3,t.top+E/3),this.bottomRightBorderDoubleOuterBox=a>0||i>0?mA(t.left+b,t.top+m,a-v/3,i-y/3,2):new O(t.left+t.width-v/3,t.top+t.height-y/3),this.bottomLeftBorderDoubleOuterBox=c>0||u>0?mA(t.left+U/3,t.top+k,c-U/3,u-y/3,3):new O(t.left+U/3,t.top+t.height-y/3),this.topLeftBorderDoubleInnerBox=n>0||r>0?mA(t.left+U*2/3,t.top+E*2/3,n-U*2/3,r-E*2/3,0):new O(t.left+U*2/3,t.top+E*2/3),this.topRightBorderDoubleInnerBox=n>0||r>0?mA(t.left+g,t.top+E*2/3,s-v*2/3,o-E*2/3,1):new O(t.left+t.width-v*2/3,t.top+E*2/3),this.bottomRightBorderDoubleInnerBox=a>0||i>0?mA(t.left+b,t.top+m,a-v*2/3,i-y*2/3,2):new O(t.left+t.width-v*2/3,t.top+t.height-y*2/3),this.bottomLeftBorderDoubleInnerBox=c>0||u>0?mA(t.left+U*2/3,t.top+k,c-U*2/3,u-y*2/3,3):new O(t.left+U*2/3,t.top+t.height-y*2/3),this.topLeftBorderStroke=n>0||r>0?mA(t.left+U/2,t.top+E/2,n-U/2,r-E/2,0):new O(t.left+U/2,t.top+E/2),this.topRightBorderStroke=n>0||r>0?mA(t.left+g,t.top+E/2,s-v/2,o-E/2,1):new O(t.left+t.width-v/2,t.top+E/2),this.bottomRightBorderStroke=a>0||i>0?mA(t.left+b,t.top+m,a-v/2,i-y/2,2):new O(t.left+t.width-v/2,t.top+t.height-y/2),this.bottomLeftBorderStroke=c>0||u>0?mA(t.left+U/2,t.top+k,c-U/2,u-y/2,3):new O(t.left+U/2,t.top+t.height-y/2),this.topLeftBorderBox=n>0||r>0?mA(t.left,t.top,n,r,0):new O(t.left,t.top),this.topRightBorderBox=s>0||o>0?mA(t.left+g,t.top,s,o,1):new O(t.left+t.width,t.top),this.bottomRightBorderBox=a>0||i>0?mA(t.left+b,t.top+m,a,i,2):new O(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=c>0||u>0?mA(t.left,t.top+k,c,u,3):new O(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||r>0?mA(t.left+U,t.top+E,Math.max(0,n-U),Math.max(0,r-E),0):new O(t.left+U,t.top+E),this.topRightPaddingBox=s>0||o>0?mA(t.left+Math.min(g,t.width-v),t.top+E,g>t.width+v?0:Math.max(0,s-v),Math.max(0,o-E),1):new O(t.left+t.width-v,t.top+E),this.bottomRightPaddingBox=a>0||i>0?mA(t.left+Math.min(b,t.width-U),t.top+Math.min(m,t.height-y),Math.max(0,a-v),Math.max(0,i-y),2):new O(t.left+t.width-v,t.top+t.height-y),this.bottomLeftPaddingBox=c>0||u>0?mA(t.left+U,t.top+Math.min(k,t.height-y),Math.max(0,c-U),Math.max(0,u-y),3):new O(t.left+U,t.top+t.height-y),this.topLeftContentBox=n>0||r>0?mA(t.left+U+Z,t.top+E+x,Math.max(0,n-(U+Z)),Math.max(0,r-(E+x)),0):new O(t.left+U+Z,t.top+E+x),this.topRightContentBox=s>0||o>0?mA(t.left+Math.min(g,t.width+U+Z),t.top+E+x,g>t.width+U+Z?0:s-U+Z,o-(E+x),1):new O(t.left+t.width-(v+D),t.top+E+x),this.bottomRightContentBox=a>0||i>0?mA(t.left+Math.min(b,t.width-(U+Z)),t.top+Math.min(m,t.height+E+x),Math.max(0,a-(v+D)),i-(y+H),2):new O(t.left+t.width-(v+D),t.top+t.height-(y+H)),this.bottomLeftContentBox=c>0||u>0?mA(t.left+U+Z,t.top+k,Math.max(0,c-(U+Z)),u-(y+H),3):new O(t.left+U+Z,t.top+t.height-(y+H))}};const mA=(A,e,t,n,r)=>{const s=4*((Math.sqrt(2)-1)/3),o=t*s,a=n*s,i=A+t,c=e+n;switch(r){case 0:return new lo(new O(A,c),new O(A,c-a),new O(i-o,e),new O(i,e));case 1:return new lo(new O(A,e),new O(A+o,e),new O(i,c-a),new O(i,c));case 2:return new lo(new O(i,e),new O(i,e+a),new O(A+o,c),new O(A,c));default:return new lo(new O(i,c),new O(i-o,c),new O(A,e+a),new O(A,e))}},ei=A=>[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox],YF=A=>[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox],ti=A=>[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox];var ha=class{constructor(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6}},uo=class{constructor(A,e){this.path=A,this.target=e,this.type=1}},qF=class{constructor(A){this.opacity=A,this.type=2,this.target=6}},Rr=class{constructor(A){this.applyClip=A,this.type=3,this.target=6}};const Av={[zA.NORMAL]:"source-over",[zA.MULTIPLY]:"multiply",[zA.SCREEN]:"screen",[zA.OVERLAY]:"overlay",[zA.DARKEN]:"darken",[zA.LIGHTEN]:"lighten",[zA.COLOR_DODGE]:"color-dodge",[zA.COLOR_BURN]:"color-burn",[zA.HARD_LIGHT]:"hard-light",[zA.SOFT_LIGHT]:"soft-light",[zA.DIFFERENCE]:"difference",[zA.EXCLUSION]:"exclusion",[zA.HUE]:"hue",[zA.SATURATION]:"saturation",[zA.COLOR]:"color",[zA.LUMINOSITY]:"luminosity"};var ev=class{constructor(A){this.mixBlendMode=A,this.type=4,this.target=6,this.compositeOperation=Av[A]}},tv=class jn{constructor(e){this.type=5,this.target=6;const t=jn.parseDropShadow(e);this.shadow=t.shadow,this.safeFilterString=t.safeFilterString}static parseDropShadow(e){if(!e)return{safeFilterString:""};const t=jn.findDropShadows(e);if(t.length===0)return{safeFilterString:e};const n=jn.parseDropShadowBody(t[0].body);let r="",s=0;for(const o of t)r+=e.slice(s,o.start),s=o.end;return r+=e.slice(s),{shadow:n,safeFilterString:r.replace(/\s+/g," ").trim()}}static findDropShadows(e){const t=[],n=/drop-shadow\(/gi;let r;for(;(r=n.exec(e))!==null;){const s=r.index+12-1,o=r.index;let a=1,i=s+1;for(;i<e.length&&a>0;){const u=e[i];u==="("?a++:u===")"&&a--,i++}if(a!==0)break;const c=e.slice(s+1,i-1);t.push({body:c,start:o,end:i})}return t}static parseDropShadowBody(e){var s;const t=jn.tokenizeFilterArgs(e.trim()),n=[];let r;for(const o of t)jn.isCSSLength(o)?n.push(parseFloat(o)):o&&(r=o);if(!(n.length<2||n.length>3))return{offsetX:n[0],offsetY:n[1],blur:(s=n[2])!=null?s:0,color:r!=null?r:"rgba(0,0,0,1)"}}static tokenizeFilterArgs(e){const t=[];let n="",r=0;for(let s=0;s<e.length;s++){const o=e[s];o==="("?(r++,n+=o):o===")"?(r--,n+=o):/\s/.test(o)?r>0?n+=o:n&&(t.push(n),n=""):n+=o}return n&&t.push(n),t}static isCSSLength(e){return/^-?[\d.]+(px|em|rem|pt|cm|mm|in|pc|ex|ch|vw|vh|vmin|vmax|%)?$/i.test(e)}};const sd=A=>A.type===0,oc=A=>A.type===1,nv=A=>A.type===2,od=A=>A.type===3,rv=A=>A.type===4,sv=A=>A.type===5;var Kh=class{constructor(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}},Nh=class{constructor(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new jF(this.container),this.container.styles.opacity<1&&this.effects.push(new qF(this.container.styles.opacity)),this.container.styles.rotate!==null){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.rotate*Math.PI/180,o=Math.cos(s),a=Math.sin(s),i=[o,a,-a,o,0,0];this.effects.push(new ha(n,r,i))}if(this.container.styles.transform!==null){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.transform;this.effects.push(new ha(n,r,s))}if(id(this.container.styles)){const t=ei(this.curves),n=ti(this.curves);rd(t,n)?this.effects.push(new uo(t,6)):(this.effects.push(new uo(t,2)),this.effects.push(new uo(n,4)))}if(this.container.styles.clipPath.type!==0){const t=ov(this.container.styles.clipPath,this.container.bounds);t&&this.effects.push(t)}if(this.container.styles.mixBlendMode!==zA.NORMAL&&this.effects.push(new ev(this.container.styles.mixBlendMode)),this.container.styles.filter!==null&&this.effects.push(new tv(this.container.styles.filter)),this.container.styles.zoom!==1){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.zoom,o=[s,0,0,s,0,0];this.effects.push(new ha(n,r,o))}}getEffects(A){let e=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent;const n=this.effects.slice(0);for(;t;){const r=t.effects.filter(s=>!oc(s));if(e||t.container.styles.position!==0||!t.parent){if(e=[2,3].indexOf(t.container.styles.position)===-1,id(t.container.styles)){const s=ei(t.curves),o=ti(t.curves);rd(s,o)||n.unshift(new uo(o,6))}n.unshift(...r)}else n.unshift(...r);t=t.parent}return n.filter(r=>Ae(r.target,A))}};const id=A=>A.overflowX!==0||A.overflowY!==0,ad=(A,e,t,n,r)=>A==="closest-side"?Math.min(e-t,n-e):A==="farthest-side"?Math.max(e-t,n-e):J(A,r),ov=(A,e)=>{const{left:t,top:n,width:r,height:s}=e;switch(A.type){case 1:{const o=J(A.left,r),a=J(A.top,s),i=t+o,c=n+a,u=Math.max(0,r-o-J(A.right,r)),h=Math.max(0,s-a-J(A.bottom,s));return new Rr(f=>{f.beginPath(),f.rect(i,c,u,h),f.clip()})}case 2:{const o=t+J(A.cx,r),a=n+J(A.cy,s);let i;return A.radius==="closest-side"?i=Math.min(o-t,a-n,t+r-o,n+s-a):A.radius==="farthest-side"?i=Math.max(o-t,a-n,t+r-o,n+s-a):i=J(A.radius,Math.sqrt(r*r+s*s)/Math.SQRT2),new Rr(c=>{c.beginPath(),c.arc(o,a,Math.max(0,i),0,Math.PI*2),c.clip()})}case 3:{const o=t+J(A.cx,r),a=n+J(A.cy,s),i=ad(A.rx,o,t,t+r,r),c=ad(A.ry,a,n,n+s,s);return new Rr(u=>{u.beginPath(),u.ellipse(o,a,Math.max(0,i),Math.max(0,c),0,0,Math.PI*2),u.clip()})}case 4:{const o=A.points.map(([a,i])=>[t+J(a,r),n+J(i,s)]);return new Rr(a=>{if(a.beginPath(),o.length>0){a.moveTo(o[0][0],o[0][1]);for(let i=1;i<o.length;i++)a.lineTo(o[i][0],o[i][1]);a.closePath()}a.clip()})}case 5:{const{d:o}=A;let a=null;return new Rr(i=>{try{a||(a=new Path2D(o));const c=i.getTransform();i.translate(t,n),i.clip(a),i.setTransform(c)}catch(c){}})}case 0:return null;default:return null}},ic=(A,e,t,n)=>{A.container.elements.forEach(r=>{const s=r.createsRealStackingContext,o=r.createsStackingContext,a=new Nh(r,A);Ae(r.styles.display,2048)&&n.push(a);const i=r.isListOwner?[]:n;if(s||o){const c=s||r.styles.isPositioned()?t:e,u=new Kh(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){const h=r.styles.zIndex.order;if(h<0){let f=0;c.negativeZIndex.some((g,m)=>h>g.element.container.styles.zIndex.order?(f=m,!1):f>0),c.negativeZIndex.splice(f,0,u)}else if(h>0){let f=0;c.positiveZIndex.some((g,m)=>h>=g.element.container.styles.zIndex.order?(f=m+1,!1):f>0),c.positiveZIndex.splice(f,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else r.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);ic(a,u,s?u:t,i)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),ic(a,e,t,i);r.isListOwner&&$h(r,i)})},$h=(A,e)=>{let t=A instanceof rc?A.start:1;const n=A instanceof rc?A.reversed:!1;for(let r=0;r<e.length;r++){const s=e[r];s.container instanceof Th&&typeof s.container.value=="number"&&s.container.value!==0&&(t=s.container.value),s.listValue=ms(t,s.container.styles.listStyleType,!0),t+=n?-1:1}},iv=A=>{const e=new Nh(A,null),t=new Kh(e),n=[];return ic(e,t,t,n),$h(e.container,n),t},Dc=A=>{const e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Cs=A=>{const e=A.styles,t=A.bounds,n=J(e.paddingLeft,t.width),r=J(e.paddingRight,t.width),s=J(e.paddingTop,t.width),o=J(e.paddingBottom,t.width);return t.add(n+e.borderLeftWidth,s+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+r),-(e.borderTopWidth+e.borderBottomWidth+s+o))},av=(A,e)=>A===0?e.bounds:A===2?Cs(e):Dc(e),cv=(A,e)=>A===0?e.bounds:A===2?Cs(e):Dc(e),po=(A,e,t)=>{const n=av(dn(A.styles.backgroundOrigin,e),A),r=cv(dn(A.styles.backgroundClip,e),A),s=lv(dn(A.styles.backgroundSize,e),t,n);let[o,a]=s;const i=jr(dn(A.styles.backgroundPosition,e),n.width-o,n.height-a),c=uv(dn(A.styles.backgroundRepeat,e),i,s,n,r),u=Math.round(n.left+i[0]),h=Math.round(n.top+i[1]);return o=Math.max(1,o),a=Math.max(1,a),[c,u,h,o,a]},Zn=A=>j(A)&&A.value==="auto",ho=A=>typeof A=="number",lv=(A,[e,t,n],r)=>{const[s,o]=A;if(!s)return[0,0];if(iA(s)&&o&&iA(o))return[J(s,r.width),J(o,r.height)];const a=ho(n);if(j(s)&&(s.value==="contain"||s.value==="cover"))return ho(n)?r.width/r.height<n!=(s.value==="cover")?[r.width,r.width/n]:[r.height*n,r.height]:[r.width,r.height];const i=ho(e),c=ho(t),u=i||c;if(Zn(s)&&(!o||Zn(o)))return i&&c?[e,t]:!a&&!u?[r.width,r.height]:u&&a?[i?e:t*n,c?t:e/n]:[i?e:r.width,c?t:r.height];if(a){let g=0,m=0;return iA(s)?g=J(s,r.width):iA(o)&&(m=J(o,r.height)),Zn(s)?g=m*n:(!o||Zn(o))&&(m=g/n),[g,m]}let h=null,f=null;if(iA(s)?h=J(s,r.width):o&&iA(o)&&(f=J(o,r.height)),h!==null&&(!o||Zn(o))&&(f=i&&c?h/e*t:r.height),f!==null&&Zn(s)&&(h=i&&c?f/t*e:r.width),h!==null&&f!==null)return[h,f];throw new Error("Unable to calculate background-size for element")},dn=(A,e)=>{const t=A[e];return typeof t=="undefined"?A[0]:t},uv=(A,[e,t],[n,r],s,o)=>{switch(A){case 2:return[new O(Math.round(s.left),Math.round(s.top+t)),new O(Math.round(s.left+s.width),Math.round(s.top+t)),new O(Math.round(s.left+s.width),Math.round(r+s.top+t)),new O(Math.round(s.left),Math.round(r+s.top+t))];case 3:return[new O(Math.round(s.left+e),Math.round(s.top)),new O(Math.round(s.left+e+n),Math.round(s.top)),new O(Math.round(s.left+e+n),Math.round(s.height+s.top)),new O(Math.round(s.left+e),Math.round(s.height+s.top))];case 1:return[new O(Math.round(s.left+e),Math.round(s.top+t)),new O(Math.round(s.left+e+n),Math.round(s.top+t)),new O(Math.round(s.left+e+n),Math.round(s.top+t+r)),new O(Math.round(s.left+e),Math.round(s.top+t+r))];default:return[new O(Math.round(o.left),Math.round(o.top)),new O(Math.round(o.left+o.width),Math.round(o.top)),new O(Math.round(o.left+o.width),Math.round(o.height+o.top)),new O(Math.round(o.left),Math.round(o.height+o.top))]}};var dv=class{constructor(A){this.ctx=A}render(A,e){this.ctx.fillStyle=bA(e.textDecorationColor||e.color);let t=1;typeof e.textDecorationThickness=="number"?t=e.textDecorationThickness:e.textDecorationThickness==="from-font"&&(t=Math.max(1,Math.floor(e.fontSize.number*.05)));let n=0;typeof e.textUnderlineOffset=="number"&&(n=e.textUnderlineOffset);const r=e.textDecorationStyle;e.textDecorationLine.forEach(s=>{let o=0;switch(s){case 1:o=A.top+A.height-t+n;break;case 2:o=A.top;break;case 3:o=A.top+(A.height/2-t/2);break;default:return}this.draw(A.left,o,A.width,t,r)})}draw(A,e,t,n,r){switch(r){case 0:this.ctx.fillRect(A,e,t,n);break;case 1:{const s=Math.max(1,n);this.ctx.fillRect(A,e,t,n),this.ctx.fillRect(A,e+n+s,t,n);break}case 2:this.drawPattern(A,e,t,n,[n,n*2]);break;case 3:this.drawPattern(A,e,t,n,[n*3,n*2]);break;case 4:this.drawWavy(A,e,t,n);break;default:this.ctx.fillRect(A,e,t,n)}}drawPattern(A,e,t,n,r){this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash(r),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(A,e+n/2),this.ctx.lineTo(A+t,e+n/2),this.ctx.stroke(),this.ctx.restore()}drawWavy(A,e,t,n){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle;const r=n*2,s=n*4;let o=A;for(this.ctx.moveTo(o,e+n/2);o<A+t;){const a=Math.min(o+s/2,A+t);if(this.ctx.quadraticCurveTo(o+s/4,e+n/2-r,a,e+n/2),o=a,o<A+t){const i=Math.min(o+s/2,A+t);this.ctx.quadraticCurveTo(o+s/4,e+n/2+r,i,e+n/2),o=i}}this.ctx.stroke(),this.ctx.restore()}};const pv="Mg",Xn=A=>A!==void 0&&!Number.isNaN(A),zh=(A,e)=>{const t=A.measureText(pv),n=t;return{baseline:Xn(n.fontBoundingBoxAscent)?n.fontBoundingBoxAscent:Xn(t.actualBoundingBoxAscent)?t.actualBoundingBoxAscent:e,height:Xn(n.fontBoundingBoxAscent)&&Xn(n.fontBoundingBoxDescent)?n.fontBoundingBoxAscent+n.fontBoundingBoxDescent:Xn(t.actualBoundingBoxAscent)&&Xn(t.actualBoundingBoxDescent)?t.actualBoundingBoxAscent+t.actualBoundingBoxDescent:e}},Vh=(A,e)=>zh(A,e).baseline,hv=["-apple-system","system-ui"],fv=1,gv=/[\u2E80-\u2FFF\u3000-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF01-\uFFEF]/,Or=A=>gv.test(A),Bv=()=>{if(typeof navigator=="undefined")return null;const A=navigator.userAgent,e=/iPhone|iPad|iPod/.test(A),t=/Macintosh/.test(A)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1;if(!e&&!t)return null;for(const n of[/(?:iPhone|CPU(?:\siPhone)?)\sOS\s(\d+)[\._](\d+)/,/Version\/(\d+)\.(\d+)/]){const r=A.match(n);if(r&&r[1])return parseInt(r[1],10)}return null},wv=A=>{const e=Bv();return e!==null&&e>=15&&e<17?A.map(t=>hv.indexOf(t)!==-1?'-apple-system, "Helvetica Neue", Arial, sans-serif':t):A},mv=()=>{var A;return(A=typeof window!="undefined"?window:void 0)!=null&&A.chrome?"miter":"round"};var Cv=class{constructor(A){this.glyphWidthCache=null,this.ctx=A.ctx,this.options=A.options,this.decorationRenderer=new dv(A.ctx)}cachedMeasureText(A,e){let t=this.glyphWidthCache;t||(t=new Map,this.glyphWidthCache=t);const n=A+e;let r=t.get(n);return r===void 0&&(r=this.ctx.measureText(A).width,t.set(n,r)),r}iterateLettersWithLetterSpacing(A,e,t,n,r){if(Ai(n)){this.iterateVerticalGlyphs(A,e,t,n,r);return}const s=Qn(A.text),o=A.bounds.top+t,a=this.ctx.font;let i=A.bounds.left;for(const c of s){if(Or(c)){const u=this.ctx.textBaseline;this.ctx.textBaseline="ideographic",r(c,i,o),this.ctx.textBaseline=u}else r(c,i,o);i+=this.cachedMeasureText(c,a)+e}}iterateVerticalGlyphs(A,e,t,n,r){const s=Qn(A.text),o=this.ctx.font,a=n===4?-Math.PI/2:Math.PI/2;let i=A.bounds.top;for(let c=0;c<s.length;){const u=s[c];if(!(na(n)||!Or(u)&&u.trim().length>0)){const g=this.ctx.textBaseline;Or(u)&&(this.ctx.textBaseline="ideographic"),r(u,A.bounds.left,i+t),this.ctx.textBaseline=g,i+=this.cachedMeasureText(u,o)+e,c++;continue}const h=c;for(;c<s.length;){const g=s[c];if(!na(n)&&!Or(g)&&g.trim().length===0)break;if(na(n)||!Or(g)&&g.trim().length>0)c++;else break}this.ctx.save(),this.ctx.translate(A.bounds.left+t,i),this.ctx.rotate(a);let f=0;for(let g=h;g<c;g++)r(s[g],0,f),f+=this.cachedMeasureText(s[g],o)+e;this.ctx.restore(),i+=f}}renderTextWithLetterSpacing(A,e,t,n=0){this.renderFillText(A,e,t,n)}canRenderWholeText(A,e){return A===0&&!Ai(e)}renderFillText(A,e,t,n){this.canRenderWholeText(e,n)?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+t):this.iterateLettersWithLetterSpacing(A,e,t,n,(r,s,o)=>{this.ctx.fillText(r,s,o)})}renderStrokeText(A,e,t,n){this.canRenderWholeText(e,n)?this.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+t):this.iterateLettersWithLetterSpacing(A,e,t,n,(r,s,o)=>{this.ctx.strokeText(r,s,o)})}renderTextStrokeWithStyle(A,e,t){!e.webkitTextStrokeWidth||!A.text.trim().length||(this.ctx.strokeStyle=bA(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=mv(),this.renderStrokeText(A,e.letterSpacing,t,e.writingMode),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter")}renderTextFillWithShadows(A,e,t){this.ctx.fillStyle=bA(e.color),this.renderTextWithLetterSpacing(A,e.letterSpacing,t,e.writingMode);const n=e.textShadow;n.length&&A.text.trim().length&&(n.slice(0).reverse().forEach(r=>{this.ctx.shadowColor=bA(r.color),this.ctx.shadowOffsetX=r.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=r.offsetY.number*this.options.scale,this.ctx.shadowBlur=r.blur.number,this.renderTextWithLetterSpacing(A,e.letterSpacing,t,e.writingMode)}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0)}renderTextBoundWithPaintOrder(A,e,t,n){t.forEach(r=>{switch(r){case 0:this.ctx.fillStyle=bA(e.color),this.renderTextWithLetterSpacing(A,e.letterSpacing,n,e.writingMode);break;case 1:this.renderTextStrokeWithStyle(A,e,n);break}})}renderTextDecoration(A,e){this.decorationRenderer.render(A,e)}truncateTextWithEllipsis(A,e,t){const r=this.ctx.measureText("…").width,s=Qn(A);if(t===0){const o=c=>this.ctx.measureText(s.slice(0,c).join("")).width+r<=e;let a=0,i=s.length;for(;a<i;){const c=a+i+1>>1;o(c)?a=c:i=c-1}return s.slice(0,a).join("")+"…"}else{const o=this.ctx.font;let a=r;const i=[];for(const c of s){const u=this.cachedMeasureText(c,o);if(a+u>e)break;i.push(c),a+=u+t}return i.join("")+"…"}}createFontStyle(A){const e=A.fontVariant.filter(r=>r==="normal"||r==="small-caps").join(""),t=wv(A.fontFamily).join(", "),n=wt(A.fontSize)?`${A.fontSize.number}${A.fontSize.unit}`:`${A.fontSize.number}px`;return[[A.fontStyle,e,A.fontWeight,n,t].join(" "),t,n]}renderLineClampedText(A,e,t,n,r){const s=e.fontSize.number*1.5,o=[];let a=[],i=A.textBounds[0].bounds.top;A.textBounds.forEach(h=>{Math.abs(h.bounds.top-i)>=s*.5?(a.length>0&&o.push(a),a=[h],i=h.bounds.top):a.push(h)}),a.length>0&&o.push(a);const c=e.webkitLineClamp;if(o.length<=c)return!1;for(let h=0;h<c-1;h++)o[h].forEach(f=>this.renderTextBoundWithPaintOrder(f,e,t,n));const u=o[c-1];if(u!=null&&u.length&&r){const h=u.map(b=>b.text).join(""),f=u[0],g=r.width-(f.bounds.left-r.left),m=new bn(this.truncateTextWithEllipsis(h,g,e.letterSpacing),f.bounds);for(const b of t)b===0?(this.ctx.fillStyle=bA(e.color),this.renderTextWithLetterSpacing(m,e.letterSpacing,n,e.writingMode)):b===1&&this.renderTextStrokeWithStyle(m,e,n)}return!0}renderEllipsisText(A,e,t,n,r){const s=e.fontSize.number*1.5,o=A.textBounds[0].bounds.top;if(!A.textBounds.every(c=>Math.abs(c.bounds.top-o)<s*.5))return!1;let a=A.textBounds.map(c=>c.text).join("").replace(/\s+/g," ").trim();if(this.ctx.measureText(a).width<=r.width+fv)return!1;const i=new bn(this.truncateTextWithEllipsis(a,r.width,e.letterSpacing),A.textBounds[0].bounds);for(const c of t)c===0?this.renderTextFillWithShadows(i,e,n):c===1&&this.renderTextStrokeWithStyle(i,e,n);return!0}renderTextNode(A,e,t){return I(this,null,function*(){this.glyphWidthCache=null;const[n]=this.createFontStyle(e);this.ctx.font=n,this.ctx.direction=e.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic";const r=e.paintOrder,s=Vh(this.ctx,e.fontSize.number);e.webkitLineClamp>0&&(e.display&2)!==0&&e.overflowY===1&&A.textBounds.length>0&&this.renderLineClampedText(A,e,r,s,t)||e.textOverflow===1&&t&&e.overflowX===1&&A.textBounds.length>0&&this.renderEllipsisText(A,e,r,s,t)||A.textBounds.forEach(o=>{r.forEach(a=>{a===0?(this.renderTextFillWithShadows(o,e,s),e.textDecorationLine.length&&this.renderTextDecoration(o.bounds,e)):a===1&&this.renderTextStrokeWithStyle(o,e,s)})})})}};const Gh=(A,e)=>{e.forEach((t,n)=>{const r=Te(t)?t.start:t;n===0?A.moveTo(r.x,r.y):A.lineTo(r.x,r.y),Te(t)&&A.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)})},Zh=(A,e)=>{A.beginPath(),Gh(A,e),A.closePath()};var bv=class{constructor(A){this.maxSize=A,this._map=new Map}get(A){if(!this._map.has(A))return;const e=this._map.get(A);return this._map.delete(A),this._map.set(A,e),e}set(A,e){if(this._map.has(A))this._map.delete(A);else if(this._map.size>=this.maxSize){const t=this._map.keys().next().value;t!==void 0&&this._map.delete(t)}this._map.set(A,e)}get size(){return this._map.size}clear(){this._map.clear()}},cd=class{constructor(A){this.patternCache=new bv(50),this.ctx=A.ctx,this.context=A.context,this.canvas=A.canvas}renderBackgroundImage(A){return I(this,null,function*(){var r,s,o,a;let e=A.styles.backgroundImage.length-1;const t=A.styles.backgroundBlendMode;let n=0;for(const i of A.styles.backgroundImage.slice(0).reverse()){if(n>0){const c=(s=(r=t[n])!=null?r:t[0])!=null?s:"normal";c!=="normal"&&(this.ctx.save(),this.ctx.globalCompositeOperation=c)}i.type===0?yield this.renderBackgroundURLImage(A,i,e):IU(i)?this.renderLinearGradient(A,i,e):HU(i)?this.renderRepeatingLinearGradient(A,i,e):TU(i)&&this.renderRadialGradient(A,i,e),n>0&&((a=(o=t[n])!=null?o:t[0])!=null?a:"normal")!=="normal"&&this.ctx.restore(),e--,n++}})}renderBackgroundURLImage(A,e,t){return I(this,null,function*(){var s,o;let n;const r=e.url;try{n=yield this.context.cache.match(r)}catch(a){this.context.logger.error(`Error loading background-image ${r}`),(o=(s=this.context).onError)==null||o.call(s,a instanceof Error?a:new Error(String(a)))}if(n){const a=isNaN(n.width)||n.width===0?1:n.width,i=isNaN(n.height)||n.height===0?1:n.height,[c,u,h,f,g]=po(A,t,[a,i,a/i]),m=dn(A.styles.backgroundRepeat,t),b=m===1?"no-repeat":m===2?"repeat-x":m===3?"repeat-y":"repeat",k=`${r}|${Math.round(f)}x${Math.round(g)}|${A.styles.imageRendering}|${b}`;let E=this.patternCache.get(k);if(!E){const v=this.resizeImage(n,f,g,A.styles.imageRendering);E=this.ctx.createPattern(v,b),this.patternCache.set(k,E)}this.renderRepeat(c,E,u,h)}})}renderRepeatingLinearGradient(A,e,t){var N;const[n,r,s,o,a]=po(A,t,[null,null,null]),[i,c,u,h,f]=Tu(e.angle,o,a),g=ta(e.stops,i||1),m=g[g.length-1],b=g[0],k=m.stop-b.stop;if(k<=0){this.renderLinearGradient(A,e,t);return}const E=u-c,v=f-h,y=k/(Math.sqrt(E*E+v*v)||1),U=c,x=h,D=c+E*y,H=h+v*y,Z=(N=this.canvas.ownerDocument)!=null?N:document,K=`rlg|${e.angle}|${Math.round(k)}|${JSON.stringify(e.stops)}`;let X=this.patternCache.get(K);if(!X){const tA=Z.createElement("canvas"),dA=Math.max(1,Math.ceil(k));tA.width=dA,tA.height=dA;const FA=tA.getContext("2d");if(!FA)return;const ZA=FA.createLinearGradient(U-r,x-s,D-r,H-s);g.forEach(se=>{ZA.addColorStop((se.stop-b.stop)/k,bA(se.color))}),FA.fillStyle=ZA,FA.fillRect(0,0,dA,dA),dA>0&&(X=this.ctx.createPattern(tA,"repeat"),this.patternCache.set(K,X))}X&&this.renderRepeat(n,X,r,s)}renderLinearGradient(A,e,t){var b;const[n,r,s,o,a]=po(A,t,[null,null,null]),[i,c,u,h,f]=Tu(e.angle,o,a),g=`lg|${e.angle}|${Math.round(o)}x${Math.round(a)}|${JSON.stringify(e.stops)}`;let m=this.patternCache.get(g);if(!m){const k=((b=this.canvas.ownerDocument)!=null?b:document).createElement("canvas");k.width=o,k.height=a;const E=k.getContext("2d");if(!E)return;const v=E.createLinearGradient(c,h,u,f);ta(e.stops,i||1).forEach(y=>v.addColorStop(y.stop,bA(y.color))),E.fillStyle=v,E.fillRect(0,0,o,a),o>0&&a>0&&(m=this.ctx.createPattern(k,"repeat"),this.patternCache.set(g,m))}m&&this.renderRepeat(n,m,r,s)}renderRadialGradient(A,e,t){var g;const[n,r,s,o,a]=po(A,t,[null,null,null]),i=e.position.length===0?[xt]:e.position,c=J(i[0],o),u=J(i[i.length-1],a);let[h,f]=_U(e,c,u,o,a);if((h===0||f===0)&&(h=Math.max(h,.01),f=Math.max(f,.01)),h>0&&f>0){const m=`rg|${Math.round(c)}x${Math.round(u)}|${Math.round(h)}x${Math.round(f)}|${JSON.stringify(e.stops)}`,b=ta(e.stops,h*2),k=b[b.length-1];let E=this.patternCache.get(m);if(!E){const v=((g=this.canvas.ownerDocument)!=null?g:document).createElement("canvas");v.width=Math.ceil(h*2),v.height=Math.ceil(f*2);const y=v.getContext("2d");if(y){const U=y.createRadialGradient(h,h,0,h,h,h);b.forEach(x=>U.addColorStop(x.stop,bA(x.color))),y.fillStyle=U,h!==f&&y.scale(1,f/h),y.fillRect(0,0,h*2,h*2),E=this.ctx.createPattern(v,"no-repeat"),this.patternCache.set(m,E)}}E&&(this.path(n),this.ctx.save(),this.ctx.clip(),k&&(this.ctx.fillStyle=bA(k.color),this.ctx.fill()),this.ctx.translate(r+c-h,s+u-f),this.ctx.fillStyle=E,this.ctx.fillRect(0,0,h*2,f*2),this.ctx.restore())}}renderRepeat(A,e,t,n){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,n),this.ctx.fill(),this.ctx.translate(-t,-n)}resizeImage(A,e,t,n){var o;const r=((o=this.canvas.ownerDocument)!=null?o:document).createElement("canvas");r.width=Math.max(1,e),r.height=Math.max(1,t);const s=r.getContext("2d");return s?(n===2||n===1?(this.context.logger.debug("Disabling image smoothing for background image due to CSS image-rendering"),s.imageSmoothingEnabled=!1):n===3?(this.context.logger.debug("Enabling image smoothing for background image due to CSS image-rendering: smooth"),s.imageSmoothingEnabled=!0):s.imageSmoothingEnabled=this.ctx.imageSmoothingEnabled,this.ctx.imageSmoothingQuality&&(s.imageSmoothingQuality=this.ctx.imageSmoothingQuality),s.drawImage(A,0,0,A.width,A.height,0,0,e,t),r):A}path(A){Zh(this.ctx,A)}};const ld=(A,e)=>{switch(e){case 0:return He(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return He(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return He(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return He(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},Qv=(A,e)=>{switch(e){case 0:return He(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return He(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return He(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return He(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},yv=(A,e)=>{switch(e){case 0:return He(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return He(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return He(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return He(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},Uv=(A,e)=>{switch(e){case 0:return fo(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return fo(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return fo(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return fo(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},fo=(A,e)=>{const t=[];return Te(A)?t.push(A.subdivide(.5,!1)):t.push(A),Te(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},He=(A,e,t,n)=>{const r=[];return Te(A)?r.push(A.subdivide(.5,!1)):r.push(A),Te(t)?r.push(t.subdivide(.5,!0)):r.push(t),Te(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Te(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r};var Ev=class{constructor(A,e){this.ctx=A.ctx,this.pathCallbacks=e}renderSolidBorder(A,e,t){return I(this,null,function*(){this.pathCallbacks.path(ld(t,e)),this.ctx.fillStyle=bA(A),this.ctx.fill()})}renderDoubleBorder(A,e,t,n){return I(this,null,function*(){if(e<3){yield this.renderSolidBorder(A,t,n);return}const r=Qv(n,t);this.pathCallbacks.path(r),this.ctx.fillStyle=bA(A),this.ctx.fill();const s=yv(n,t);this.pathCallbacks.path(s),this.ctx.fill()})}renderDashedDottedBorder(A,e,t,n,r){return I(this,null,function*(){this.ctx.save();const s=Uv(n,t),o=ld(n,t);r===2&&(this.pathCallbacks.path(o),this.ctx.clip());let a,i,c,u;Te(o[0])?(a=o[0].start.x,i=o[0].start.y):(a=o[0].x,i=o[0].y),Te(o[1])?(c=o[1].end.x,u=o[1].end.y):(c=o[1].x,u=o[1].y);let h;t===0||t===2?h=Math.abs(a-c):h=Math.abs(i-u),this.ctx.beginPath(),r===3?this.pathCallbacks.formatPath(s):this.pathCallbacks.formatPath(o.slice(0,2));let f=e<3?e*3:e*2,g=e<3?e*2:e;r===3&&(f=e,g=e);let m=!0;if(h<=f*2)m=!1;else if(h<=f*2+g){const b=h/(2*f+g);f*=b,g*=b}else{const b=Math.floor((h+g)/(f+g)),k=(h-b*f)/(b-1),E=(h-(b+1)*f)/b;g=E<=0||Math.abs(g-k)<Math.abs(g-E)?k:E}if(m&&(r===3?this.ctx.setLineDash([0,f+g]):this.ctx.setLineDash([f,g])),r===3?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=e*2+1.1,this.ctx.strokeStyle=bA(A),this.ctx.stroke(),this.ctx.setLineDash([]),r===2){if(Te(o[0])){const b=o[3],k=o[0];this.ctx.beginPath(),this.pathCallbacks.formatPath([new O(b.end.x,b.end.y),new O(k.start.x,k.start.y)]),this.ctx.stroke()}if(Te(o[1])){const b=o[1],k=o[2];this.ctx.beginPath(),this.pathCallbacks.formatPath([new O(b.end.x,b.end.y),new O(k.start.x,k.start.y)]),this.ctx.stroke()}}this.ctx.restore()})}},kv=class{constructor(A){this.ctx=A}renderBorderImage(A,e,t,n,r,s,o,a){const i=e.naturalWidth||e.width,c=e.naturalHeight||e.height;if(i<=0||c<=0)return;const u=Math.min(t.unit==="percent"?t.top/100*c:Math.min(t.top,c),c),h=Math.min(t.unit==="percent"?t.right/100*i:Math.min(t.right,i),i),f=Math.min(t.unit==="percent"?t.bottom/100*c:Math.min(t.bottom,c),c),g=Math.min(t.unit==="percent"?t.left/100*i:Math.min(t.left,i),i),{left:m,top:b,width:k,height:E}=A;if(k<=0||E<=0)return;const v=Math.min(r,E),y=Math.min(s,k),U=Math.min(o,E-v),x=Math.min(a,k-y);this.drawRegion(e,0,0,g,u,m,b,x,v),this.drawRegion(e,i-h,0,h,u,m+k-y,b,y,v),this.drawRegion(e,i-h,c-f,h,f,m+k-y,b+E-U,y,U),this.drawRegion(e,0,c-f,g,f,m,b+E-U,x,U);const D=[{sx:g,sy:0,sw:i-g-h,sh:u,dx:m+x,dy:b,dw:k-x-y,dh:v,repeat:n.horizontal},{sx:i-h,sy:u,sw:h,sh:c-u-f,dx:m+k-y,dy:b+v,dw:y,dh:E-v-U,repeat:n.vertical},{sx:g,sy:c-f,sw:i-g-h,sh:f,dx:m+x,dy:b+E-U,dw:k-x-y,dh:U,repeat:n.horizontal},{sx:0,sy:u,sw:g,sh:c-u-f,dx:m,dy:b+v,dw:x,dh:E-v-U,repeat:n.vertical}];for(const H of D){if(H.sw<=0||H.sh<=0||H.dw<=0||H.dh<=0)continue;const Z=H.dw>=H.dh;H.repeat===0?this.ctx.drawImage(e,H.sx,H.sy,H.sw,H.sh,H.dx,H.dy,H.dw,H.dh):(H.repeat===1||H.repeat===2)&&this.drawRepeatedEdge(e,H,Z,H.repeat===2)}if(t.fill){const H=g,Z=u,K=i-g-h,X=c-u-f,N=m+x,tA=b+v,dA=k-x-y,FA=E-v-U;this.drawRegion(e,H,Z,K,X,N,tA,dA,FA)}}drawRegion(A,e,t,n,r,s,o,a,i){n>0&&r>0&&a>0&&i>0&&this.ctx.drawImage(A,e,t,n,r,s,o,a,i)}drawRepeatedEdge(A,e,t,n){const r=t?e.sw:e.sh,s=t?e.dw:e.dh;if(r<=0||s<=0)return;let o,a;n?(a=Math.max(1,Math.round(s/r)),o=s/a):(o=r,a=Math.ceil(s/o)),this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(e.dx,e.dy,e.dw,e.dh),this.ctx.clip();for(let i=0;i<a;i++){const c=i*o,u=s-c,h=Math.min(o,u);if(h<=0)break;t?this.ctx.drawImage(A,e.sx,e.sy,e.sw,e.sh,e.dx+c,e.dy,h,e.dh):this.ctx.drawImage(A,e.sx,e.sy,e.sw,e.sh,e.dx,e.dy+c,e.dw,h)}this.ctx.restore()}},Fv=class{constructor(A,e){this.activeEffects=[],this.didSave=!1,this.saveAtDepth=-1,this.ctx=A.ctx,this.pathCallback=e}applyEffects(A){for(;this.activeEffects.length;)this.popEffect();this.didSave=!1,this.saveAtDepth=-1;const e=n=>sd(n)||oc(n)||od(n),t=A.reduceRight((n,r,s)=>n!==-1?n:e(r)?s:-1,-1);for(let n=0;n<A.length;n++){const r=A[n];e(r)&&(this.didSave||(this.ctx.save(),this.didSave=!0),n===t&&(this.saveAtDepth=this.activeEffects.length)),this.applyEffect(r)}}applyEffect(A){sd(A)?(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)):oc(A)?(this.pathCallback.path(A.path),this.ctx.clip()):od(A)?A.applyClip(this.ctx):nv(A)?this.ctx.globalAlpha*=A.opacity:rv(A)?this.ctx.globalCompositeOperation=A.compositeOperation:sv(A)&&(this.ctx.filter=A.safeFilterString||"none",A.shadow&&(this.ctx.shadowOffsetX=A.shadow.offsetX,this.ctx.shadowOffsetY=A.shadow.offsetY,this.ctx.shadowBlur=A.shadow.blur,this.ctx.shadowColor=A.shadow.color)),this.activeEffects.push(A)}popEffect(){this.activeEffects.length!==0&&(this.didSave&&this.activeEffects.length-1===this.saveAtDepth&&(this.ctx.restore(),this.didSave=!1,this.saveAtDepth=-1),this.activeEffects.pop(),!this.didSave&&this.activeEffects.length===0&&(this.ctx.globalAlpha=1,this.ctx.globalCompositeOperation="source-over",this.ctx.filter="none",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0,this.ctx.shadowColor="rgba(0, 0, 0, 0)"))}getActiveEffectCount(){return this.activeEffects.length}hasActiveEffects(){return this.activeEffects.length>0}};const vv=(A,e,t,n,r)=>{let s=0,o=0,a=A,i=e,c=t.left,u=t.top,h=t.width,f=t.height;const g=h/f,m=a/i,b=r?J(r[0],1):.5,k=r?J(r[1],1):.5;return n===2?m>g?(f=h/m,u+=(t.height-f)*k):(h=f*m,c+=(t.width-h)*b):n===4?m>g?(a=i*g,s+=(A-a)*b):(i=a/g,o+=(e-i)*k):n===8?(a>h?(s+=(a-h)*b,a=h):(c+=(h-a)*b,h=a),i>f?(o+=(i-f)*k,i=f):(u+=(f-i)*k,f=i)):n===16&&((m>g?h:f*m)<(a>h?a:h)?m>g?(f=h/m,u+=(t.height-f)*k):(h=f*m,c+=(t.width-h)*b):(a>h?(s+=(a-h)*b,a=h):(c+=(h-a)*b,h=a),i>f?(o+=(i-f)*k,i=f):(u+=(f-i)*k,f=i))),{sx:s,sy:o,sw:a,sh:i,dx:c,dy:u,dw:h,dh:f}};function _v(A,e,t,n,r,s,o,a){return I(this,null,function*(){var i,c;if(r instanceof xh)try{const u=yield e.cache.match(r.src),h=A.imageSmoothingEnabled;o.imageRendering===2||o.imageRendering===1?A.imageSmoothingEnabled=!1:o.imageRendering===3&&(A.imageSmoothingEnabled=!0),a(r,s,u),A.imageSmoothingEnabled=h}catch(u){e.logger.error(`Error loading image ${r.src}`),(i=e.onError)==null||i.call(e,u instanceof Error?u:new Error(String(u)))}if(r instanceof Sh&&a(r,s,r.canvas),r instanceof Ih)try{a(r,s,yield e.cache.match(r.svg))}catch(u){e.logger.error(`Error loading svg ${r.svg.substring(0,255)}`),(c=e.onError)==null||c.call(e,u instanceof Error?u:new Error(String(u)))}if(r instanceof Dh&&r.tree){const u=yield n(e,{scale:t.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}).render(r.tree);r.width&&r.height&&A.drawImage(u,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height)}})}function xv(A,e,t,n,r){if(n instanceof nr){const s=Math.min(n.bounds.width,n.bounds.height);n.type==="checkbox"&&n.checked?(A.save(),t([new O(n.bounds.left+s*.39363,n.bounds.top+s*.79),new O(n.bounds.left+s*.16,n.bounds.top+s*.5549),new O(n.bounds.left+s*.27347,n.bounds.top+s*.44071),new O(n.bounds.left+s*.39694,n.bounds.top+s*.5649),new O(n.bounds.left+s*.72983,n.bounds.top+s*.23),new O(n.bounds.left+s*.84,n.bounds.top+s*.34085),new O(n.bounds.left+s*.39363,n.bounds.top+s*.79)]),A.fillStyle=bA(nd),A.fill(),A.restore()):n.type==="radio"&&n.checked&&(A.save(),A.beginPath(),A.arc(n.bounds.left+s/2,n.bounds.top+s/2,s/4,0,Math.PI*2,!0),A.fillStyle=bA(nd),A.fill(),A.restore())}if(Hv(n)&&n.value.length){const[s]=e.createFontStyle(r);A.font=s;const o=J(r.fontSize,0),{baseline:a,height:i}=zh(A,o);A.fillStyle=n instanceof nr&&n.isPlaceholder?bA(GF):bA(r.color),A.textBaseline="alphabetic",A.textAlign=Lv(n.styles.textAlign);const c=Cs(n),u=n instanceof nr?Sv(c,Dc(n),i):c;let h=0;switch(n.styles.textAlign){case 1:h+=c.width/2;break;case 2:h+=c.width;break}let f=0;n instanceof nr&&(f=(c.height-i)/2);const g=c.add(h,f,0,0);A.save(),t([new O(u.left,u.top),new O(u.left+u.width,u.top),new O(u.left+u.width,u.top+u.height),new O(u.left,u.top+u.height)]),A.clip();const m=Iv(A,n.value,c.width,r.whiteSpace==="pre"||r.whiteSpace==="nowrap"),b=Ya(r.lineHeight,o);m.forEach((k,E)=>{let v=g.left;const y=A.measureText(k).width;switch(r.textAlign){case 1:v+=(c.width-y)/2;break;case 2:v+=c.width-y;break}const U=new Le(v,g.top+E*b,0,0);e.renderTextWithLetterSpacing(new bn(k,U),r.letterSpacing,a,r.writingMode)}),A.restore(),A.textBaseline="alphabetic",A.textAlign="left"}}const Sv=(A,e,t)=>A.height<t?new Le(A.left,e.top,A.width,e.height):A,Iv=(A,e,t,n)=>{const r=[],s=e.split(`
|
|
1663
|
+
`);for(const o of s){if(n){r.push(o);continue}const a=o.split(/(\s+)/);let i="";for(const c of a){const u=i+c;A.measureText(u).width<=t||i===""?i=u:(r.push(i),i=c)}r.push(i)}return r};function Tv(A,e,t,n,r,s){return I(this,null,function*(){var o;if(Ae(r.styles.display,2048)){if(r.styles.listStyleImage!==null){const a=r.styles.listStyleImage;if(a.type===0){const i=a.url;try{const c=yield e.cache.match(i);A.drawImage(c,r.bounds.left-(c.width+10),r.bounds.top)}catch(c){e.logger.error(`Error loading list-style-image ${i}`),(o=e.onError)==null||o.call(e,c instanceof Error?c:new Error(String(c)))}}}else if(n.listValue&&r.styles.listStyleType!==-1){const[a]=t.createFontStyle(s);A.font=a,A.fillStyle=bA(s.color),A.textBaseline="middle",A.textAlign="right";const i=new Le(r.bounds.left,r.bounds.top+J(r.styles.paddingTop,r.bounds.width),r.bounds.width,Ya(s.lineHeight,s.fontSize.number)/2+1);t.renderTextWithLetterSpacing(new bn(n.listValue,i),s.letterSpacing,Ya(s.lineHeight,s.fontSize.number)/2+2,s.writingMode),A.textBaseline="bottom",A.textAlign="left"}}})}const Hv=A=>A instanceof Lh||A instanceof Hh?!0:A instanceof nr&&A.type!=="radio"&&A.type!=="checkbox",Lv=A=>{switch(A){case 1:return"center";case 2:return"right";default:return"left"}};var Dv=class Xh{constructor(e,t){this.context=e,this.options=t,this.canvas=t.canvas?t.canvas:document.createElement("canvas");const n=this.canvas.getContext("2d");if(!n)throw new Error("Failed to get 2D rendering context from canvas");this.ctx=n,t.canvas||(this.canvas.width=Math.floor(t.width*t.scale),this.canvas.height=Math.floor(t.height*t.scale),this.canvas.style.width=`${t.width}px`,this.canvas.style.height=`${t.height}px`),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-t.x,-t.y),this.ctx.textBaseline="bottom",t.imageSmoothing!==void 0&&(this.ctx.imageSmoothingEnabled=t.imageSmoothing),t.imageSmoothingQuality&&(this.ctx.imageSmoothingQuality=t.imageSmoothingQuality),this.backgroundRenderer=new cd({ctx:this.ctx,context:this.context,canvas:this.canvas,options:{width:t.width,height:t.height,scale:t.scale}}),this.borderRenderer=new Ev({ctx:this.ctx},{path:r=>this.path(r),formatPath:r=>this.formatPath(r)}),this.borderImageRenderer=new kv(this.ctx),this.effectsRenderer=new Fv({ctx:this.ctx},{path:r=>this.path(r)}),this.textRenderer=new Cv({ctx:this.ctx,options:{scale:t.scale}}),this.context.logger.debug(`Canvas renderer initialized (${t.width}x${t.height}) with scale ${t.scale}`)}renderStack(e){return I(this,null,function*(){e.element.container.styles.isVisible()&&(yield this.renderStackContent(e))})}renderNode(e){return I(this,null,function*(){if(e.container.debugRender)debugger;e.container.styles.isVisible()&&(yield this.renderNodeBackgroundAndBorders(e),yield this.renderNodeContent(e))})}renderReplacedElement(e,t,n){const r=n.naturalWidth||e.intrinsicWidth,s=n.naturalHeight||e.intrinsicHeight;if(n&&r>0&&s>0){const o=Cs(e),a=ti(t);this.path(a),this.ctx.save(),this.ctx.clip();const{sx:i,sy:c,sw:u,sh:h,dx:f,dy:g,dw:m,dh:b}=vv(r,s,o,e.styles.objectFit,e.styles.objectPosition);this.ctx.drawImage(n,i,c,u,h,f,g,m,b),this.ctx.restore()}}renderNodeContent(e){return I(this,null,function*(){this.effectsRenderer.applyEffects(e.getEffects(4));const t=e.container,n=e.curves,r=t.styles,s=Cs(t);for(const o of t.textNodes)yield this.textRenderer.renderTextNode(o,r,s);yield _v(this.ctx,this.context,{scale:this.options.scale,backgroundColor:this.options.backgroundColor,x:this.options.x,y:this.options.y,width:this.options.width,height:this.options.height},(o,a)=>new Xh(o,a),t,n,r,(o,a,i)=>this.renderReplacedElement(o,a,i)),xv(this.ctx,this.textRenderer,this.path.bind(this),t,r),yield Tv(this.ctx,this.context,this.textRenderer,e,t,r)})}renderStackContent(e){return I(this,null,function*(){if(e.element.container.debugRender)debugger;const t=this.options.signal;yield this.renderNodeBackgroundAndBorders(e.element);for(const n of e.negativeZIndex){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderNodeContent(e.element);for(const n of e.nonInlineLevel)yield this.renderNode(n);for(const n of e.nonPositionedFloats){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.nonPositionedInlineLevel){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.inlineLevel)yield this.renderNode(n);for(const n of e.zeroOrAutoZIndexOrTransformedOrOpacity){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.positiveZIndex){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}})}mask(e){this.ctx.beginPath();const t=this.options.x,n=this.options.y;this.ctx.moveTo(t,n),this.ctx.lineTo(t+this.options.width,n),this.ctx.lineTo(t+this.options.width,n+this.options.height),this.ctx.lineTo(t,n+this.options.height),this.ctx.lineTo(t,n),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()}path(e){Zh(this.ctx,e)}formatPath(e){Gh(this.ctx,e)}renderNodeBackgroundAndBorders(e){return I(this,null,function*(){this.effectsRenderer.applyEffects(e.getEffects(2));const t=e.container.styles,n=!St(t.backgroundColor)||t.backgroundImage.length,r=Ov(t),s=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],o=dn(t.backgroundClip,0),a=Rv(o,e.curves);if((n||t.boxShadow.length)&&(r&&e.container.textNodes.length>0?yield this.renderTextClippedBackground(e):(this.ctx.save(),this.path(a),this.ctx.clip(),St(t.backgroundColor)||(this.ctx.fillStyle=bA(t.backgroundColor),this.ctx.fill()),yield this.backgroundRenderer.renderBackgroundImage(e.container),this.ctx.restore()),t.boxShadow.slice(0).reverse().forEach(c=>{this.ctx.save();const u=ei(e.curves),h=c.inset?0:_k,f=JF(u,-h+(c.inset?1:-1)*c.spread.number,(c.inset?1:-1)*c.spread.number,c.spread.number*(c.inset?-2:2),c.spread.number*(c.inset?-2:2));c.inset?(this.path(u),this.ctx.clip(),this.mask(f)):(this.mask(u),this.ctx.clip(),this.path(f)),this.ctx.shadowOffsetX=c.offsetX.number+h,this.ctx.shadowOffsetY=c.offsetY.number,this.ctx.shadowColor=bA(c.color),this.ctx.shadowBlur=c.blur.number,this.ctx.fillStyle=c.inset?bA(c.color):"rgba(0,0,0,1)",this.ctx.fill(),this.ctx.restore()})),t.borderImageSource){const c=t.borderImageSource;if(c.type===0){const u=c.url;try{const h=yield this.context.cache.match(u);if(h){const f=e.container.bounds;this.borderImageRenderer.renderBorderImage(f,h,t.borderImageSlice,t.borderImageRepeat,Math.max(0,t.borderTopWidth),Math.max(0,t.borderRightWidth),Math.max(0,t.borderBottomWidth),Math.max(0,t.borderLeftWidth))}}catch(h){this.context.logger.error(`Error loading border-image ${u}`)}}return}let i=0;for(const c of s){if(c.style!==0&&!St(c.color)&&c.width>0){const u=()=>I(this,null,function*(){c.style===2?yield this.borderRenderer.renderDashedDottedBorder(c.color,c.width,i,e.curves,2):c.style===3?yield this.borderRenderer.renderDashedDottedBorder(c.color,c.width,i,e.curves,3):c.style===4?yield this.borderRenderer.renderDoubleBorder(c.color,c.width,i,e.curves):yield this.borderRenderer.renderSolidBorder(c.color,i,e.curves)}),h=e.container.legendBounds;if(i===0&&h){const f=e.container.bounds,g=h.left-f.left,m=h.left+h.width-f.left;g>0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(f.left,f.top,g,f.height),this.ctx.clip(),yield u(),this.ctx.restore());const b=f.left+m,k=f.width-m;k>0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(b,f.top,k,f.height),this.ctx.clip(),yield u(),this.ctx.restore())}else yield u()}i++}})}render(e){return I(this,null,function*(){this.options.backgroundColor&&(this.ctx.fillStyle=bA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height));const t=iv(e);return yield this.renderStack(t),this.effectsRenderer.applyEffects([]),this.canvas})}renderTextClippedBackground(e){return I(this,null,function*(){var m;const t=e.container,n=t.styles,r=t.bounds;if(r.width<=0||r.height<=0)return;const s=((m=this.canvas.ownerDocument)!=null?m:document).createElement("canvas"),o=Math.ceil(r.width),a=Math.ceil(r.height);s.width=o,s.height=a;const i=s.getContext("2d");if(!i)return;const[c]=this.textRenderer.createFontStyle(n);i.font=c,i.textBaseline="alphabetic",i.textAlign="left",i.direction=n.direction===1?"rtl":"ltr";const u=Vh(i,n.fontSize.number),h=new cd({ctx:i,context:this.context,canvas:s,options:{width:o,height:a,scale:1}});St(n.backgroundColor)||(i.fillStyle=bA(n.backgroundColor),i.fillRect(0,0,o,a)),i.save(),i.translate(-r.left,-r.top),yield h.renderBackgroundImage(t),i.restore(),i.globalCompositeOperation="destination-in",i.fillStyle="#000";const f=n.writingMode,g=n.letterSpacing;for(const b of t.textNodes)for(const k of b.textBounds){const E=k.bounds.left-r.left,v=k.bounds.top-r.top+u;g>0?this.renderTextMaskWithLetterSpacing(i,k,g,E,v,f):i.fillText(k.text,E,v)}this.ctx.drawImage(s,r.left,r.top)})}renderTextMaskWithLetterSpacing(e,t,n,r,s,o){const a=Qn(t.text);let i=r;for(const c of a){if(Ai(o)){e.fillText(t.text,r,s);return}e.fillText(c,i,s),i+=e.measureText(c).width+n}}};const Rv=(A,e)=>{switch(A){case 0:return ei(e);case 2:return YF(e);default:return ti(e)}},Ov=A=>A.backgroundClip.some(e=>e===3);var Pv=class{constructor(A,e){this.context=A,this.options=e,this.canvas=e.canvas?e.canvas:document.createElement("canvas");const t=this.canvas.getContext("2d");if(!t)throw new Error("Failed to get 2D rendering context from canvas");this.ctx=t,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`,this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x,-e.y),this.context.logger.debug(`EXPERIMENTAL ForeignObject renderer initialized (${e.width}x${e.height} at ${e.x},${e.y}) with scale ${e.scale}`)}render(A){return I(this,null,function*(){var t;if((t=this.options.signal)!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");const e=yield nc(tc(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A));return this.options.backgroundColor&&(this.ctx.fillStyle=bA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(e,-this.options.x*this.options.scale,-this.options.y*this.options.scale),this.canvas})}},dr,Mv=(dr=class{constructor({id:e,enabled:t}){this.id=e,this.enabled=t,this.start=Date.now()}debug(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug(this.id,`${this.getTime()}ms`,...e):this.info(...e))}getTime(){return Date.now()-this.start}info(...e){this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info(this.id,`${this.getTime()}ms`,...e)}warn(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn(this.id,`${this.getTime()}ms`,...e):this.info(...e))}error(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error(this.id,`${this.getTime()}ms`,...e):this.info(...e))}},dr.instances={},dr),Kv=class{constructor(A,e){var t;if(this.context=A,this._options=e,this._cache=new Map,this._pendingOperations=new Map,this._deferMode=!1,this._collectedUrls=new Set,this.maxSize=(t=e.maxCacheSize)!=null?t:100,this.maxSize<1)throw new Error("Cache maxSize must be at least 1");this.maxSize>1e4&&this.context.logger.warn(`Cache maxSize ${this.maxSize} is very large and may cause memory issues. Consider using a smaller value (recommended: 100-1000).`)}startDefer(){this._deferMode=!0}preloadAll(A=10){return I(this,null,function*(){this._deferMode=!1;const e=Array.from(this._collectedUrls);if(this._collectedUrls.clear(),e.length===0)return;const t=Math.max(1,Math.min(A,100));this.context.logger.debug(`Preloading ${e.length} image(s) with concurrency ${t}`);for(let n=0;n<e.length;n+=t){const r=e.slice(n,n+t).map(s=>this._addImageWithPending(s));yield Promise.allSettled(r)}})}addImage(A){if(this._deferMode)return!this.has(A)&&(Pr(A)||ud(A))&&this._collectedUrls.add(A),Promise.resolve();const e=this._pendingOperations.get(A);if(e)return e;if(this.has(A)){const t=this._cache.get(A);return this._cache.delete(A),this._cache.set(A,t),Promise.resolve()}return Pr(A)||ud(A)?this._addImageWithPending(A):Promise.resolve()}_addImageWithPending(A){const e=this._pendingOperations.get(A);if(e)return e;const t=this._addImageInternal(A);return this._pendingOperations.set(A,t),t.finally(()=>{this._pendingOperations.delete(A)}),t}_addImageInternal(A){return I(this,null,function*(){var n;const e=(n=this._options.imageTimeout)!=null?n:15e3,t=this.withTimeout(this.loadImage(A),e,`Timed out (${e}ms) loading image`);t.catch(r=>{this.context.logger.error(`Failed to load image ${A}: ${r instanceof Error?r.message:"Unknown error"}`)}),this.set(A,t)})}withTimeout(A,e,t){if(e<=0)return A;let n;const r=new Promise((s,o)=>{n=setTimeout(()=>o(new Error(t)),e)});return Promise.race([A,r]).finally(()=>{n!==void 0&&clearTimeout(n)})}match(A){const e=this._cache.get(A);if(e)return this._cache.delete(A),this._cache.set(A,e),e.value}set(A,e){if(this._cache.has(A))this._cache.delete(A);else if(this._cache.size>=this.maxSize){const t=this._cache.keys().next().value;t!==void 0&&(this._cache.delete(t),this.context.logger.debug(`Cache: Evicted LRU entry: ${t}`))}this._cache.set(A,{value:e})}size(){return this._cache.size}getMaxSize(){return this.maxSize}clear(){this._cache.clear()}loadImage(A){return I(this,null,function*(){const e=this.context.originChecker,t=i=>e.isSameOrigin(i),n=typeof this._options.customIsSameOrigin=="function"?yield this._options.customIsSameOrigin(A,t):t(A),r=!n&&this._options.allowTaint===!1&&!go(A)&&!Pr(A)&&typeof this._options.proxy!="string",s=!go(A)&&(this._options.useCORS===!0||r)&&qA.SUPPORT_CORS_IMAGES&&!n,o=!go(A)&&!n&&!Pr(A)&&typeof this._options.proxy=="string"&&qA.SUPPORT_CORS_XHR&&!s;if(!n&&this._options.allowTaint===!1&&!go(A)&&!Pr(A)&&!o&&!s)return;let a=A;return o&&(a=yield this.proxy(a)),this.context.logger.debug(`Added image ${A.substring(0,256)}`),yield new Promise((i,c)=>{const u=new Image;u.onload=()=>i(u),u.onerror=c,(Vv(a)||s)&&(u.crossOrigin="anonymous"),u.src=a,u.complete===!0&&setTimeout(()=>i(u),500)})})}has(A){return this._cache.has(A)}keys(){return Promise.resolve(Array.from(this._cache.keys()))}proxy(A){const e=this._options.proxy;if(!e)throw new Error("No proxy defined");const t=A.substring(0,256);return new Promise((n,r)=>{const s=qA.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=()=>{if(o.status===200)if(s==="text")n(o.response);else{const i=new FileReader;i.addEventListener("load",()=>n(i.result),!1),i.addEventListener("error",c=>r(c),!1),i.readAsDataURL(o.response)}else r(`Failed to proxy resource ${t} with status code ${o.status}`)},o.onerror=r;const a=e.indexOf("?")>-1?"&":"?";if(o.open("GET",`${e}${a}url=${encodeURIComponent(A)}&responseType=${s}`),s!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=s),this._options.imageTimeout){const i=this._options.imageTimeout;o.timeout=i,o.ontimeout=()=>r(`Timed out (${i}ms) proxying ${t}`)}o.send()})}};const Nv=/^data:image\/svg\+xml/i,$v=/^data:image\/.*;base64,/i,zv=/^data:image\/.*/i,ud=A=>qA.SUPPORT_SVG_DRAWING||!Gv(A),go=A=>zv.test(A),Vv=A=>$v.test(A),Pr=A=>A.substring(0,4)==="blob",Gv=A=>A.slice(-3).toLowerCase()==="svg"||Nv.test(A);var Zv=class{constructor(A){if(!A||!A.document)throw new Error("Valid window object required for OriginChecker");if(!A.location||!A.location.href)throw new Error("Window object must have valid location");this.link=A.document.createElement("a"),this.origin=this.getOrigin(A.location.href)}getOrigin(A){return this.link.href=A,this.link.href=this.link.href,this.link.protocol+this.link.hostname+this.link.port}isSameOrigin(A){return this.getOrigin(A)===this.origin}getContextOrigin(){return this.origin}},En,Xv=(En=class{constructor(e,t,n){var r,s;this.windowBounds=t,this.instanceName=`#${En.instanceCount++}`,this.config=n,this.logger=new Mv({id:this.instanceName,enabled:e.logging}),this.originChecker=new Zv(n.window),this.cache=(s=(r=e.cache)!=null?r:n.cache)!=null?s:new Kv(this,e),this.onError=e.onError}},En.instanceCount=1,En);const Bo=A=>{if(A!=null&&A.aborted)throw new DOMException("The operation was aborted.","AbortError")},Wv=A=>{["scale","width","height","imageTimeout","x","y","windowWidth","windowHeight","scrollX","scrollY"].forEach(e=>{const t=A[e];if(t!=null&&typeof t!="number"){const n=Number(t);Number.isNaN(n)||(A[e]=n)}})},Jv=A=>{var e,t,n;return{allowTaint:(e=A.allowTaint)!=null?e:!1,imageTimeout:(t=A.imageTimeout)!=null?t:15e3,proxy:A.proxy,useCORS:(n=A.useCORS)!=null?n:!1,customIsSameOrigin:A.customIsSameOrigin,maxCacheSize:A.maxCacheSize}},jv=(A,e,t)=>{var n,r;return F({logging:(n=A.logging)!=null?n:!0,cache:(r=A.cache)!=null?r:e.cache},t)},Yv=800,qv=600,dd=0,A_=(A,e)=>{var n,r,s,o,a,i,c,u;const t=e;return{windowWidth:(r=(n=A.windowWidth)!=null?n:t.innerWidth)!=null?r:Yv,windowHeight:(o=(s=A.windowHeight)!=null?s:t.innerHeight)!=null?o:qv,scrollX:(i=(a=A.scrollX)!=null?a:t.pageXOffset)!=null?i:dd,scrollY:(u=(c=A.scrollY)!=null?c:t.pageYOffset)!=null?u:dd}},e_=(A,e,t)=>{var n,r;return{allowTaint:(n=A.allowTaint)!=null?n:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,iframeContainer:A.iframeContainer,inlineImages:t,copyStyles:t,cspNonce:(r=A.cspNonce)!=null?r:e.cspNonce}},t_=(A,e,t,n,r,s,o)=>{var a,i,c,u,h,f;return{canvas:A.canvas,backgroundColor:e,signal:A.signal,scale:(i=(a=A.scale)!=null?a:o)!=null?i:1,x:((c=A.x)!=null?c:0)+t,y:((u=A.y)!=null?u:0)+n,width:(h=A.width)!=null?h:Math.ceil(r),height:(f=A.height)!=null?f:Math.ceil(s),imageSmoothing:A.imageSmoothing,imageSmoothingQuality:A.imageSmoothingQuality}},n_=(A,e,t)=>{const n=e.ownerDocument,r=n.documentElement?lr(A,getComputedStyle(n.documentElement).backgroundColor):ft.TRANSPARENT,s=n.body?lr(A,getComputedStyle(n.body).backgroundColor):ft.TRANSPARENT,o=typeof t=="string"?lr(A,t):t===null?ft.TRANSPARENT:4294967295;return e===n.documentElement?St(r)?St(s)?o:s:r:o},r_=(A,e,t)=>I(null,null,function*(){var K,X,N,tA,dA,FA;if(Wv(e),!e.skipValidation){const ZA=e.validator||ly(),se=ZA.validateElement(A);if(!se.valid)throw new Error(se.error);const Oe=ZA.validateOptions(e);if(!Oe.valid)throw new Error(`Invalid options: ${Oe.error}`)}if(!A||typeof A!="object")throw new Error("Invalid element provided as first argument");const n=A.ownerDocument;if(!n)throw new Error("Element is not attached to a Document");const r=n.defaultView;if(!r)throw new Error("Document is not attached to a Window");const s=jv(e,t,Jv(e)),o=A_(e,r),a=new Le(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),i=new Xv(s,a,t),c=(X=(K=e.enablePerformanceMonitoring)!=null?K:e.logging)!=null?X:!1,u=new uy(i,c);u.start("total",{width:o.windowWidth,height:o.windowHeight});const h=e.signal;Bo(h);const f=(N=e.foreignObjectRendering)!=null?N:!1,g=e_(e,t,f);i.logger.debug(`Starting document clone with size ${a.width}x${a.height} scrolled to ${-a.left},${-a.top}`),u.start("clone");const m=new ra(i,A,g),b=m.clonedReferenceElement;if(!b)throw new Error("Unable to find element in cloned iframe");const k=yield m.toIFrame(n,a);u.end("clone"),h!=null&&h.aborted&&(((tA=e.removeContainer)==null||tA)&&ra.destroy(k),Bo(h));const{width:E,height:v,left:y,top:U}=Hc(b)||pU(b)?dy(b.ownerDocument):fs(i,b),x=n_(i,b,e.backgroundColor),D=t_(e,x,y,U,E,v,(dA=r.devicePixelRatio)!=null?dA:1);let H,Z;try{return f?(i.logger.debug("Document cloned, using foreign object rendering"),u.start("render-foreignobject"),H=yield new Pv(i,D).render(b),u.end("render-foreignobject")):(i.logger.debug(`Document cloned, element located at ${y},${U} with size ${E}x${v} using computed rendering`),i.logger.debug("Starting DOM parsing"),u.start("parse"),Bo(h),i.cache.startDefer(),Z=Ph(i,b),u.end("parse"),u.start("preload"),yield i.cache.preloadAll(),u.end("preload"),x===Z.styles.backgroundColor&&(Z.styles.backgroundColor=ft.TRANSPARENT),i.logger.debug(`Starting renderer for element at ${D.x},${D.y} with size ${D.width}x${D.height}`),u.start("render"),Bo(h),H=yield new Dv(i,D).render(Z),u.end("render")),u.start("cleanup"),((FA=e.removeContainer)==null||FA)&&(ra.destroy(k)||i.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),u.end("cleanup"),u.end("total"),i.logger.debug("Finished rendering"),c&&u.logSummary(),H}finally{Z&&Z.restoreTree()}}),s_=(A,e={},t)=>r_(A,e,ay.fromElement(A,{cspNonce:e.cspNonce,cache:e.cache}));function o_(A){return I(this,null,function*(){if(!(A instanceof HTMLElement))return{blob:null,error:null};try{const e=yield s_(A,{backgroundColor:"#ffffff",logging:!1,useCORS:!0,scale:1,ignoreElements:n=>n instanceof Element&&n.hasAttribute("data-ap-sdk"),onclone:(n,r)=>{try{wc(r)}catch(s){}}}),t=yield i_(e);return t?{blob:t,error:null}:{blob:null,error:"canvas.toBlob produced no image data"}}catch(e){return console.error("[Agent Platform SDK] screenshot capture failed:",e),{blob:null,error:e instanceof Error?e.message:String(e)}}})}function i_(A){return new Promise(e=>{A.toBlob(t=>e(t),"image/png")})}const a_={click:"🖱",inputText:"⌨",scroll:"↕",keypress:"⌤"};function c_(A,e){const{needsCredentials:t,canCreateTask:n,canCreatePlanning:r,captureType:s,hasOnReselect:o,hasOnAddAnother:a}=e;return`
|
|
1670
1664
|
<div class="ap-sdk-panel__header">
|
|
1671
1665
|
<span class="ap-sdk-panel__title">
|
|
1672
1666
|
<span class="ap-sdk-panel__logo">AP</span>
|
|
@@ -1680,7 +1674,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
1680
1674
|
</div>
|
|
1681
1675
|
<div class="ap-sdk-pick-list" data-ap-pick-list style="display:none"></div>
|
|
1682
1676
|
<div class="ap-sdk-panel__context" data-ap-context>
|
|
1683
|
-
${
|
|
1677
|
+
${Wh(A)}
|
|
1684
1678
|
</div>
|
|
1685
1679
|
<div class="ap-sdk-panel__screenshot" data-ap-screenshot style="display:none"></div>
|
|
1686
1680
|
<div class="ap-sdk-panel__pick-actions" data-ap-pick-actions>
|
|
@@ -1729,61 +1723,66 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
1729
1723
|
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-submit>Submit</button>
|
|
1730
1724
|
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--ghost" data-ap-cancel>Cancel</button>
|
|
1731
1725
|
</div>
|
|
1732
|
-
`}function
|
|
1726
|
+
`}function Wh(A){var e,t;return(e=A.interactionSteps)!=null&&e.length?`
|
|
1733
1727
|
<div class="ap-sdk-panel__context-label">Recorded steps (${A.interactionSteps.length})</div>
|
|
1734
1728
|
<div class="ap-sdk-panel__context-steps">
|
|
1735
1729
|
${A.interactionSteps.map(n=>`
|
|
1736
1730
|
<div class="ap-sdk-panel__context-step">
|
|
1737
|
-
<span class="ap-sdk-panel__context-step-icon">${
|
|
1738
|
-
<span class="ap-sdk-panel__context-step-text">${
|
|
1731
|
+
<span class="ap-sdk-panel__context-step-icon">${a_[n.action]}</span>
|
|
1732
|
+
<span class="ap-sdk-panel__context-step-text">${ge(n.description)}</span>
|
|
1739
1733
|
</div>
|
|
1740
1734
|
`).join("")}
|
|
1741
1735
|
</div>
|
|
1742
1736
|
`:`
|
|
1743
1737
|
<div class="ap-sdk-panel__context-label">Captured element</div>
|
|
1744
|
-
<div class="ap-sdk-panel__context-text" title="${
|
|
1745
|
-
${A.cssSelector?`<div class="ap-sdk-panel__context-selector" title="${
|
|
1746
|
-
`}function
|
|
1738
|
+
<div class="ap-sdk-panel__context-text" title="${ge((t=A.elementText)!=null?t:"")}">${ge(A.elementText||"(no text)")}</div>
|
|
1739
|
+
${A.cssSelector?`<div class="ap-sdk-panel__context-selector" title="${ge(A.cssSelector)}">${ge(A.cssSelector)}</div>`:""}
|
|
1740
|
+
`}function vt(A,e,t){if(!e){A.style.display="none",A.textContent="",A.innerHTML="";return}A.style.display="block",A.className=`ap-sdk-panel__status ap-sdk-panel__status--${e}`,A.textContent=t}function l_(A,e,t,n,r){const s=e==="task"?"Task":"Planning",o=e==="task"?"Task created successfully!":"Planning session created!",a=e==="task"?"View task →":"View planning session →",i=t.length>55?`${t.slice(0,52)}…`:t;A.style.display="block",A.className="ap-sdk-panel__status",A.innerHTML=`
|
|
1747
1741
|
<div class="ap-sdk-success-card">
|
|
1748
1742
|
<svg class="ap-sdk-success-check" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg">
|
|
1749
1743
|
<circle class="ap-sdk-success-check__circle" cx="24" cy="24" r="22"/>
|
|
1750
1744
|
<path class="ap-sdk-success-check__tick" d="M14 24l7 7 13-14"/>
|
|
1751
1745
|
</svg>
|
|
1752
|
-
<p class="ap-sdk-success-headline">${
|
|
1746
|
+
<p class="ap-sdk-success-headline">${ge(o)}</p>
|
|
1753
1747
|
<div class="ap-sdk-success-meta">
|
|
1754
|
-
<span class="ap-sdk-list-item__badge ap-sdk-list-item__badge--${e}">${
|
|
1755
|
-
<span class="ap-sdk-success-title" title="${
|
|
1748
|
+
<span class="ap-sdk-list-item__badge ap-sdk-list-item__badge--${e}">${ge(s)}</span>
|
|
1749
|
+
<span class="ap-sdk-success-title" title="${ge(t)}">${ge(i)}</span>
|
|
1756
1750
|
</div>
|
|
1757
1751
|
<div class="ap-sdk-success-actions">
|
|
1758
|
-
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-success-view>${
|
|
1752
|
+
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-success-view>${ge(a)}</button>
|
|
1759
1753
|
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--ghost" data-ap-success-close>Close</button>
|
|
1760
1754
|
</div>
|
|
1761
1755
|
</div>
|
|
1762
|
-
`,A.querySelector("[data-ap-success-view]").addEventListener("click",()=>window.open(n,"_blank","noopener,noreferrer")),A.querySelector("[data-ap-success-close]").addEventListener("click",r)}function
|
|
1756
|
+
`,A.querySelector("[data-ap-success-view]").addEventListener("click",()=>window.open(n,"_blank","noopener,noreferrer")),A.querySelector("[data-ap-success-close]").addEventListener("click",r)}function fa(A,e){A.querySelectorAll("button, input, textarea, select").forEach(t=>{t.disabled=e})}function ge(A){return A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function u_(A,e){let t=null,n=null;const r=()=>{if(A.screenshotCapturing){e.style.display="block",e.className="ap-sdk-panel__screenshot",e.innerHTML='<div class="ap-sdk-screenshot__status">📸 Capturing screenshot…</div>';return}if(!A.currentScreenshotBlob){if(A.screenshotError){e.style.display="block",e.className="ap-sdk-panel__screenshot",e.innerHTML=`
|
|
1763
1757
|
<div class="ap-sdk-screenshot__status ap-sdk-screenshot__status--muted">Screenshot unavailable for this element.</div>
|
|
1764
|
-
<div class="ap-sdk-screenshot__error">${
|
|
1765
|
-
|
|
1758
|
+
<div class="ap-sdk-screenshot__error">${ge(A.screenshotError)}</div>
|
|
1759
|
+
`;return}if(!A.currentPickedEl){e.style.display="none",e.innerHTML="";return}e.style.display="block",e.className="ap-sdk-panel__screenshot ap-sdk-screenshot--excluded",e.innerHTML=`
|
|
1760
|
+
<label class="ap-sdk-screenshot__toggle">
|
|
1761
|
+
<input type="checkbox" data-ap-screenshot-include />
|
|
1762
|
+
Attach a screenshot of the selected element
|
|
1763
|
+
</label>
|
|
1764
|
+
`,e.querySelector("[data-ap-screenshot-include]").addEventListener("change",a=>{a.target.checked&&A.currentPickedEl&&s(A.currentPickedEl)});return}t&&URL.revokeObjectURL(t),t=URL.createObjectURL(A.currentScreenshotBlob),e.style.display="block",e.className=`ap-sdk-panel__screenshot${A.screenshotIncluded?"":" ap-sdk-screenshot--excluded"}`,e.innerHTML=`
|
|
1766
1765
|
<label class="ap-sdk-screenshot__toggle">
|
|
1767
1766
|
<input type="checkbox" data-ap-screenshot-include ${A.screenshotIncluded?"checked":""} />
|
|
1768
1767
|
Attach a screenshot of the selected element
|
|
1769
1768
|
</label>
|
|
1770
1769
|
<img class="ap-sdk-screenshot__thumb" src="${t}" alt="Screenshot of the selected element" />
|
|
1771
|
-
`,e.querySelector("[data-ap-screenshot-include]").addEventListener("change",
|
|
1770
|
+
`,e.querySelector("[data-ap-screenshot-include]").addEventListener("change",a=>{A.screenshotIncluded=a.target.checked,e.classList.toggle("ap-sdk-screenshot--excluded",!A.screenshotIncluded)})},s=a=>{const i=Symbol();n=i,A.screenshotCapturing=!0,A.currentScreenshotBlob=null,A.screenshotIncluded=!1,A.screenshotError=null,r(),o_(a).then(({blob:c,error:u})=>{n===i&&(A.currentScreenshotBlob=c,A.screenshotCapturing=!1,A.screenshotError=c?null:u!=null?u:"Unknown error",A.screenshotIncluded=!!c,r())})};return{handleNewPick:a=>{if(A.screenshotIncluded){s(a);return}A.currentScreenshotBlob=null,A.screenshotError=null,r()},renderScreenshotUi:r,invalidateInFlightCapture:()=>{n=null},cleanup:()=>{t&&(URL.revokeObjectURL(t),t=null)}}}function d_({state:A,els:e,screenshotCtl:t,defaultCaptureType:n,updateHighlight:r,onReselect:s,onAddAnother:o}){const{contextEl:a,pickListEl:i,pickActionsEl:c,noteEl:u,addAnotherBtn:h,selectParentBtn:f,reselectBtn:g,clearSelectionsBtn:m,typeButtons:b,allowSubmitCheckbox:k,automateOptionsEl:E,statusEl:v}=e,y=()=>{iy({captureType:A.captureType,note:u.value,completedPicks:A.completedPicks.map(({ctx:K,instruction:X})=>({ctx:K,instruction:X})),allowSubmit:A.allowSubmit,currentCtx:A.currentCtx})},U=K=>{K?(a.innerHTML=Wh(K),u.disabled=!1,u.placeholder="Describe the task or planning session…",setTimeout(()=>u.focus(),50)):(a.innerHTML=`
|
|
1772
1771
|
<div class="ap-sdk-panel__context-label">Next element</div>
|
|
1773
1772
|
<div class="ap-sdk-panel__context-text ap-sdk-awaiting-pick">👆 Hover and click any element on the page</div>
|
|
1774
|
-
`,u.disabled=!0,u.placeholder="Pick an element to continue…")},
|
|
1775
|
-
<div class="ap-sdk-pick-entry" data-pick-index="${
|
|
1773
|
+
`,u.disabled=!0,u.placeholder="Pick an element to continue…")},x=()=>{if(A.completedPicks.length===0){i.style.display="none",i.innerHTML="";return}i.style.display="block",i.innerHTML=A.completedPicks.map((K,X)=>{var N;return`
|
|
1774
|
+
<div class="ap-sdk-pick-entry" data-pick-index="${X}">
|
|
1776
1775
|
<div class="ap-sdk-pick-entry__header">
|
|
1777
|
-
<span class="ap-sdk-pick-entry__number">${
|
|
1778
|
-
<span class="ap-sdk-pick-entry__element" title="${
|
|
1779
|
-
<button class="ap-sdk-pick-entry__remove" data-ap-remove="${
|
|
1776
|
+
<span class="ap-sdk-pick-entry__number">${X+1}</span>
|
|
1777
|
+
<span class="ap-sdk-pick-entry__element" title="${ge((N=K.ctx.elementText)!=null?N:"")}">${ge(K.ctx.elementText||"(no text)")}</span>
|
|
1778
|
+
<button class="ap-sdk-pick-entry__remove" data-ap-remove="${X}" aria-label="Remove pick ${X+1}">×</button>
|
|
1780
1779
|
</div>
|
|
1781
|
-
<div class="ap-sdk-pick-entry__instruction">${
|
|
1780
|
+
<div class="ap-sdk-pick-entry__instruction">${ge(K.instruction)}</div>
|
|
1782
1781
|
</div>
|
|
1783
|
-
`}).join(""),i.querySelectorAll("[data-ap-remove]").forEach(K=>{K.addEventListener("click",()=>{const
|
|
1782
|
+
`}).join(""),i.querySelectorAll("[data-ap-remove]").forEach(K=>{K.addEventListener("click",()=>{const X=parseInt(K.dataset.apRemove,10);A.completedPicks.splice(X,1),x(),y()})})},D=()=>{if(!A.currentPickedEl){c.style.display="none";return}c.style.display="",f.disabled=!A.currentPickedEl.parentElement||A.awaitingPick,g&&(g.disabled=A.awaitingPick)},H=()=>{h&&(h.disabled=!u.value.trim()||A.submitting||A.awaitingPick)},Z=(K,X)=>{A.currentCtx=K,A.currentPickedEl=X,U(K),r(X),D(),y()};return D(),m.addEventListener("click",()=>{A.completedPicks=[],A.allowSubmit=!1,A.captureType=n,u.value="",k.checked=!1,b.forEach(K=>K.classList.toggle("ap-sdk-active",K.dataset.apType===A.captureType)),E.style.display="none",x(),xc(),vt(v,null,""),H(),u.focus()}),f.addEventListener("click",()=>{var X;const K=(X=A.currentPickedEl)==null?void 0:X.parentElement;K&&(Z(Wd(K),K),t.handleNewPick(K))}),g&&s&&g.addEventListener("click",()=>{if(A.awaitingPick)return;const K=A.currentCtx,X=A.currentPickedEl,N=A.currentScreenshotBlob,tA=A.screenshotIncluded,dA=A.screenshotError;A.awaitingPick=!0,D(),H(),U(null),t.invalidateInFlightCapture(),A.screenshotCapturing=!1,A.currentScreenshotBlob=null,A.screenshotError=null,t.renderScreenshotUi(),s((FA,ZA)=>{A.awaitingPick=!1,Z(FA,ZA),t.handleNewPick(ZA),H()},()=>{A.awaitingPick=!1,X&&Z(K,X),A.currentScreenshotBlob=N,A.screenshotIncluded=tA,A.screenshotError=dA,t.renderScreenshotUi(),H()})}),h&&o&&(u.addEventListener("input",H),h.addEventListener("click",()=>{const K=u.value.trim();!K||A.awaitingPick||(A.completedPicks.push({ctx:A.currentCtx,instruction:K,screenshotBlob:A.screenshotIncluded?A.currentScreenshotBlob:null}),x(),u.value="",A.awaitingPick=!0,h.disabled=!0,D(),U(null),t.invalidateInFlightCapture(),A.screenshotCapturing=!1,A.currentScreenshotBlob=null,A.screenshotError=null,t.renderScreenshotUi(),y(),o((X,N)=>{A.awaitingPick=!1,Z(X,N),t.handleNewPick(N),H()}))})),{persistDraft:y,renderPickList:x}}function p_(A,e){A.style.display="block",A.className="ap-sdk-panel__status ap-sdk-panel__status--error",A.innerHTML=`
|
|
1784
1783
|
<p>Your session expired.</p>
|
|
1785
1784
|
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-reconnect type="button">Reconnect</button>
|
|
1786
|
-
`;const t=A.querySelector("[data-ap-reconnect]");t.addEventListener("click",()=>I(null,null,function*(){t.disabled=!0,t.textContent="Connecting…";try{yield e()}catch(n){
|
|
1785
|
+
`;const t=A.querySelector("[data-ap-reconnect]");t.addEventListener("click",()=>I(null,null,function*(){t.disabled=!0,t.textContent="Connecting…";try{yield e()}catch(n){vt(A,"error",n instanceof Error?n.message:"Could not reconnect — please try again.")}}))}let Dt=null;function h_(){const A=new Uint32Array(4);return crypto.getRandomValues(A),Array.from(A,e=>e.toString(16)).join("")}function ac(A){if(Dt){const a=Dt;a.cleanup(),a.popup.closed||a.popup.close(),Dt=null}const e=A.replace(/\/+$/,""),t=new URL(e).origin,n=h_(),r=window.location.origin,s=`${e}/oauth/authorize?origin=${encodeURIComponent(r)}&state=${encodeURIComponent(n)}`,o=window.open(s,"ap-sdk-oauth","width=480,height=640");return o?new Promise((a,i)=>{let c=!1;function u(){window.removeEventListener("message",h),clearInterval(f),(Dt==null?void 0:Dt.popup)===o&&(Dt=null)}function h(g){if(g.origin!==t)return;const m=g.data;!m||m.type!=="ap-sdk-oauth"||m.state!==n||!m.code||(c=!0,u(),a({code:m.code}))}window.addEventListener("message",h);const f=window.setInterval(()=>{o.closed&&(u(),c||i(new Error("Connection cancelled.")))},500);Dt={popup:o,cleanup:u}}):Promise.reject(new Error("Popup blocked — please allow popups for this site and try again."))}const f_="https://agent-platform.tung.engineering",Rc="ap-sdk-config";function g_(){try{const A=sessionStorage.getItem(Rc);if(!A)return null;const e=JSON.parse(A);return!(e!=null&&e.backendUrl)||!(e!=null&&e.token)||!(e!=null&&e.projectCode)||!(e!=null&&e.expiresAt)?null:new Date(e.expiresAt).getTime()<=Date.now()?(Jh(),null):e}catch(A){return null}}function xi(A){sessionStorage.setItem(Rc,JSON.stringify(A)),w_({backendUrl:A.backendUrl,projectCode:A.projectCode})}function Jh(){sessionStorage.removeItem(Rc)}const jh="ap-sdk-last-connection";function B_(){try{const A=localStorage.getItem(jh);if(!A)return null;const e=JSON.parse(A);return!(e!=null&&e.backendUrl)||!(e!=null&&e.projectCode)?null:e}catch(A){return null}}function w_(A){try{localStorage.setItem(jh,JSON.stringify(A))}catch(e){}}let sA=null,es=null;function Ft(){sA&&Bt(sA),sA==null||sA.remove(),sA=null,es==null||es(),es=null}function Oc(A){sA&&Ft(),sA=document.createElement("div"),sA.className="ap-sdk-panel",sA.setAttribute("data-ap-sdk","1"),sA.setAttribute("role","dialog"),sA.setAttribute("aria-modal","true"),sA.setAttribute("aria-label","Connect to Agent Platform");const e=B_();e?t(e):n(f_),document.body.appendChild(sA),gt(sA),es=Us(sA,ys);function t(s){if(!sA)return;sA.innerHTML=`
|
|
1787
1786
|
<div class="ap-sdk-panel__header">
|
|
1788
1787
|
<span class="ap-sdk-panel__title">
|
|
1789
1788
|
<span class="ap-sdk-panel__logo">AP</span>
|
|
@@ -1793,7 +1792,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
1793
1792
|
</div>
|
|
1794
1793
|
<div class="ap-sdk-panel__body">
|
|
1795
1794
|
<p class="ap-sdk-config-hint">
|
|
1796
|
-
Reconnect to <strong>${
|
|
1795
|
+
Reconnect to <strong>${ga(s.backendUrl)}</strong>. You'll be asked to
|
|
1797
1796
|
approve this connection on Agent Platform's own sign-in page.
|
|
1798
1797
|
</p>
|
|
1799
1798
|
</div>
|
|
@@ -1802,7 +1801,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
1802
1801
|
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-reconnect>Reconnect</button>
|
|
1803
1802
|
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-use-different>Use a different connection</button>
|
|
1804
1803
|
</div>
|
|
1805
|
-
`;const o=
|
|
1804
|
+
`;const o=sA.querySelector("[data-ap-cfg-status]"),a=sA.querySelector("[data-ap-reconnect]");sA.querySelector("[data-ap-close]").addEventListener("click",()=>{Ft()}),sA.querySelector("[data-ap-use-different]").addEventListener("click",()=>n(s.backendUrl)),a.addEventListener("click",()=>I(null,null,function*(){a.disabled=!0,a.textContent="Connecting…",Rt(o,null,"");try{const{code:i}=yield ac(s.backendUrl),{token:c,expiresAt:u}=yield Ia({backendUrl:s.backendUrl},i,window.location.origin),h={backendUrl:s.backendUrl,token:c},f=yield jl(h);if(f.length===0){Rt(o,"error","No projects found — check your account permissions."),a.disabled=!1,a.textContent="Reconnect";return}const g=f.find(k=>k.key===s.projectCode);if(g){Ft(),A({backendUrl:s.backendUrl,token:c,projectCode:g.key,expiresAt:u});return}const m=Xl(window.location.href,f),b=m?f.find(k=>k.id===m):void 0;b?(Ft(),A({backendUrl:s.backendUrl,token:c,projectCode:b.key,expiresAt:u})):r(s.backendUrl,c,u,f)}catch(i){Rt(o,"error",`Could not connect — ${i instanceof Error?i.message:"please try again"}`),a.disabled=!1,a.textContent="Reconnect"}}))}function n(s){if(!sA)return;sA.innerHTML=`
|
|
1806
1805
|
<div class="ap-sdk-panel__header">
|
|
1807
1806
|
<span class="ap-sdk-panel__title">
|
|
1808
1807
|
<span class="ap-sdk-panel__logo">AP</span>
|
|
@@ -1815,7 +1814,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
1815
1814
|
<label class="ap-sdk-panel__label" for="ap-sdk-cfg-url">Backend URL</label>
|
|
1816
1815
|
<input id="ap-sdk-cfg-url" class="ap-sdk-panel__input" type="url"
|
|
1817
1816
|
placeholder="https://your-platform.example.com"
|
|
1818
|
-
value="${
|
|
1817
|
+
value="${pd(s)}" autocomplete="off" data-ap-cfg-url />
|
|
1819
1818
|
</div>
|
|
1820
1819
|
<p class="ap-sdk-config-hint">
|
|
1821
1820
|
You'll be asked to approve this connection on Agent Platform's own sign-in page.
|
|
@@ -1826,7 +1825,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
1826
1825
|
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-connect>Connect via Agent Platform</button>
|
|
1827
1826
|
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-cancel>Cancel</button>
|
|
1828
1827
|
</div>
|
|
1829
|
-
`;const o=
|
|
1828
|
+
`;const o=sA.querySelector("[data-ap-cfg-url]"),a=sA.querySelector("[data-ap-cfg-status]"),i=sA.querySelector("[data-ap-connect]");sA.querySelector("[data-ap-close]").addEventListener("click",()=>{Ft()}),sA.querySelector("[data-ap-cancel]").addEventListener("click",()=>{Ft()}),i.addEventListener("click",()=>I(null,null,function*(){const c=o.value.trim();if(!c){Rt(a,"error","Backend URL is required.");return}i.disabled=!0,i.textContent="Connecting…",Rt(a,null,"");try{const{code:u}=yield ac(c),{token:h,expiresAt:f}=yield Ia({backendUrl:c},u,window.location.origin),m=yield jl({backendUrl:c,token:h});if(m.length===0){Rt(a,"error","No projects found — check your account permissions."),i.disabled=!1,i.textContent="Connect via Agent Platform";return}const b=Xl(window.location.href,m),k=b?m.find(E=>E.id===b):void 0;if(k){Ft(),A({backendUrl:c,token:h,projectCode:k.key,expiresAt:f});return}r(c,h,f,m)}catch(u){Rt(a,"error",`Could not connect — ${u instanceof Error?u.message:"please try again"}`),i.disabled=!1,i.textContent="Connect via Agent Platform"}})),setTimeout(()=>o.focus(),50)}function r(s,o,a,i){if(!sA)return;const c=i.map(f=>`<option value="${pd(f.key)}"${f.key===(e==null?void 0:e.projectCode)?" selected":""}>${ga(f.name)} (${ga(f.key)})</option>`).join("");sA.innerHTML=`
|
|
1830
1829
|
<div class="ap-sdk-panel__header">
|
|
1831
1830
|
<span class="ap-sdk-panel__title">
|
|
1832
1831
|
<span class="ap-sdk-panel__logo">AP</span>
|
|
@@ -1848,14 +1847,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
1848
1847
|
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-save>Save</button>
|
|
1849
1848
|
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-back>Back</button>
|
|
1850
1849
|
</div>
|
|
1851
|
-
`;const u=
|
|
1852
|
-
]`).replace("lheading",
|
|
1853
|
-
`),t=e.length-1;for(;t>=0&&
|
|
1854
|
-
`)}function
|
|
1850
|
+
`;const u=sA.querySelector("[data-ap-cfg-project]"),h=sA.querySelector("[data-ap-cfg-status]");sA.querySelector("[data-ap-close]").addEventListener("click",()=>{Ft()}),sA.querySelector("[data-ap-back]").addEventListener("click",()=>n(s)),sA.querySelector("[data-ap-save]").addEventListener("click",()=>{const f=u.value;if(!f){Rt(h,"error","Please select a project.");return}Ft(),A({backendUrl:s,token:o,projectCode:f,expiresAt:a})})}}function Rt(A,e,t){if(!e){A.style.display="none",A.textContent="";return}A.style.display="block",A.className=`ap-sdk-panel__status ap-sdk-panel__status--${e}`,A.textContent=t}function pd(A){return A.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function ga(A){return A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}const Pc="ap-sdk-active-automation";function m_(){try{const A=sessionStorage.getItem(Pc);if(!A)return null;const e=JSON.parse(A);return e!=null&&e.taskId&&(e!=null&&e.backendUrl)&&(e!=null&&e.title)?e:null}catch(A){return null}}function Yh(A){try{sessionStorage.setItem(Pc,JSON.stringify(A))}catch(e){}}function qh(){try{sessionStorage.removeItem(Pc)}catch(A){}}function Mc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Tn=Mc();function Af(A){Tn=A}var pn={exec:()=>null};function Wn(A){let e=[];return t=>{let n=Math.max(0,Math.min(3,t-1)),r=e[n];return r||(r=A(n),e[n]=r),r}}function nA(A,e=""){let t=typeof A=="string"?A:A.source,n={replace:(r,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(re.caret,"$1"),t=t.replace(r,o),n},getRegex:()=>new RegExp(t,e)};return n}var C_=((A="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+A)}catch(e){return!1}})(),re={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:A=>new RegExp(`^( {0,3}${A})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Wn(A=>new RegExp(`^ {0,${A}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Wn(A=>new RegExp(`^ {0,${A}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Wn(A=>new RegExp(`^ {0,${A}}(?:\`\`\`|~~~)`)),headingBeginRegex:Wn(A=>new RegExp(`^ {0,${A}}#`)),htmlBeginRegex:Wn(A=>new RegExp(`^ {0,${A}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Wn(A=>new RegExp(`^ {0,${A}}>`))},b_=/^(?:[ \t]*(?:\n|$))+/,Q_=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,y_=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Fs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,U_=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Kc=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ef=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,tf=nA(ef).replace(/bull/g,Kc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),E_=nA(ef).replace(/bull/g,Kc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Nc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,k_=/^[^\n]+/,$c=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,F_=nA(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",$c).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),v_=nA(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Kc).getRegex(),Si="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",zc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,__=nA("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",zc).replace("tag",Si).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),nf=A=>nA(Nc).replace("hr",Fs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list",A).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Si).getRegex(),x_=nf(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),S_=nf(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),I_=nA(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",S_).getRegex(),Vc={blockquote:I_,code:Q_,def:F_,fences:y_,heading:U_,hr:Fs,html:__,lheading:tf,list:v_,newline:b_,paragraph:x_,table:pn,text:k_},hd=nA("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Fs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Si).getRegex(),T_=z(F({},Vc),{lheading:E_,table:hd,paragraph:nA(Nc).replace("hr",Fs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",hd).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Si).getRegex()}),H_=z(F({},Vc),{html:nA(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",zc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:pn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:nA(Nc).replace("hr",Fs).replace("heading",` *#{1,6} *[^
|
|
1851
|
+
]`).replace("lheading",tf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),L_=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,D_=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,rf=/^( {2,}|\\)\n(?!\s*$)/,R_=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,It=/[\p{P}\p{S}]/u,Cr=/[\s\p{P}\p{S}]/u,vs=/[^\s\p{P}\p{S}]/u,O_=nA(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Cr).getRegex(),P_=/[\p{Pi}\p{Ps}"']/u,sf=/(?!~)[\p{P}\p{S}]/u,M_=/(?!~)[\s\p{P}\p{S}]/u,K_=/(?:[^\s\p{P}\p{S}]|~)/u,N_=nA(/link|precode-code|html/,"g").replace("link",new RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("precode-",C_?"(?<!`)()":"(^^|[^`])").replace("code",new RegExp("(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html",/<(?! )[^<>]*?>/).getRegex(),of=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,$_=nA(of,"u").replace(/punct/g,It).getRegex(),z_=nA(of,"u").replace(/punct/g,sf).getRegex(),V_=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,G_=nA(V_,"u").replace(/openQuote/g,P_).replace(/punct/g,It).getRegex(),af="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Z_=nA(af,"gu").replace(/notPunctSpace/g,vs).replace(/punctSpace/g,Cr).replace(/punct/g,It).getRegex(),X_=nA(af,"gu").replace(/notPunctSpace/g,K_).replace(/punctSpace/g,M_).replace(/punct/g,sf).getRegex(),W_="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",J_=nA(W_,"gu").replace(/notPunctSpace/g,vs).replace(/punctSpace/g,Cr).replace(/punct/g,It).getRegex(),j_=nA("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,vs).replace(/punctSpace/g,Cr).replace(/punct/g,It).getRegex(),Y_="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",q_=nA(Y_,"gu").replace(/notPunctSpace/g,vs).replace(/punctSpace/g,Cr).replace(/punct/g,It).getRegex(),Ax=nA(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,It).getRegex(),ex="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",tx=nA(ex,"gu").replace(/notPunctSpace/g,vs).replace(/punctSpace/g,Cr).replace(/punct/g,It).getRegex(),nx=nA(/\\(punct)/,"gu").replace(/punct/g,It).getRegex(),rx=nA(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),sx=nA(zc).replace("(?:-->|$)","-->").getRegex(),ox=nA("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",sx).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ni=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,ix=nA(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ni).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),cf=nA(/^!?\[(label)\]\[(ref)\]/).replace("label",ni).replace("ref",$c).getRegex(),lf=nA(/^!?\[(ref)\](?:\[\])?/).replace("ref",$c).getRegex(),ax=nA("reflink|nolink(?!\\()","g").replace("reflink",cf).replace("nolink",lf).getRegex(),fd=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Gc={_backpedal:pn,anyPunctuation:nx,autolink:rx,blockSkip:N_,br:rf,code:D_,del:pn,delLDelim:pn,delRDelim:pn,emStrongLDelim:$_,emStrongRDelimAst:Z_,emStrongRDelimUnd:j_,escape:L_,link:ix,nolink:lf,punctuation:O_,reflink:cf,reflinkSearch:ax,tag:ox,text:R_,url:pn},cx=z(F({},Gc),{emStrongLDelim:G_,emStrongRDelimAst:J_,emStrongRDelimUnd:q_,link:nA(/^!?\[(label)\]\((.*?)\)/).replace("label",ni).getRegex(),reflink:nA(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ni).getRegex()}),cc=z(F({},Gc),{emStrongRDelimAst:X_,emStrongLDelim:z_,delLDelim:Ax,delRDelim:tx,url:nA(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",fd).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:nA(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",fd).getRegex()}),lx=z(F({},cc),{br:nA(rf).replace("{2,}","*").getRegex(),text:nA(cc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),wo={normal:Vc,gfm:T_,pedantic:H_},Mr={normal:Gc,gfm:cc,breaks:lx,pedantic:cx},ux={"&":"&","<":"<",">":">",'"':""","'":"'"},gd=A=>ux[A];function at(A,e){if(e){if(re.escapeTest.test(A))return A.replace(re.escapeReplace,gd)}else if(re.escapeTestNoEncode.test(A))return A.replace(re.escapeReplaceNoEncode,gd);return A}function Bd(A){try{A=encodeURI(A).replace(re.percentDecode,"%")}catch(e){return null}return A}function wd(A,e){var s;let t=A.replace(re.findPipe,(o,a,i)=>{let c=!1,u=a;for(;--u>=0&&i[u]==="\\";)c=!c;return c?"|":" |"}),n=t.split(re.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!((s=n.at(-1))!=null&&s.trim())&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(re.slashPipe,"|");return n}function Ot(A,e,t){let n=A.length;if(n===0)return"";let r=0;for(;r<n&&A.charAt(n-r-1)===e;)r++;return A.slice(0,n-r)}function md(A){let e=A.split(`
|
|
1852
|
+
`),t=e.length-1;for(;t>=0&&re.blankLine.test(e[t]);)t--;return e.length-t<=2?A:e.slice(0,t+1).join(`
|
|
1853
|
+
`)}function dx(A,e){if(A.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<A.length;n++)if(A[n]==="\\")n++;else if(A[n]===e[0])t++;else if(A[n]===e[1]&&(t--,t<0))return n;return t>0?-2:-1}function px(A,e=0){let t=e,n="";for(let r of A)if(r===" "){let s=4-t%4;n+=" ".repeat(s),t+=s}else n+=r,t++;return n}function Cd(A,e,t,n,r){let s=e.href,o=e.title||null,a=A[1].replace(r.other.outputLinkReplace,"$1");n.state.inLink=!0;let i={type:A[0].charAt(0)==="!"?"image":"link",raw:t,href:s,title:o,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,i}function hx(A,e,t){let n=A.match(t.other.indentCodeCompensation);if(n===null)return e;let r=n[1];return e.split(`
|
|
1855
1854
|
`).map(s=>{let o=s.match(t.other.beginningSpace);if(o===null)return s;let[a]=o;return a.length>=r.length?s.slice(r.length):s}).join(`
|
|
1856
|
-
`)}var
|
|
1857
|
-
`),depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(A){let e=this.rules.block.hr.exec(A);if(e)return{type:"hr",raw:
|
|
1858
|
-
`)}}blockquote(A){let e=this.rules.block.blockquote.exec(A);if(e){let t=
|
|
1855
|
+
`)}var ri=class{constructor(A){hA(this,"options");hA(this,"rules");hA(this,"lexer");this.options=A||Tn}space(A){let e=this.rules.block.newline.exec(A);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(A){let e=this.rules.block.code.exec(A);if(e){let t=this.options.pedantic?e[0]:md(e[0]),n=t.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t,codeBlockStyle:"indented",text:n}}}fences(A){let e=this.rules.block.fences.exec(A);if(e){let t=e[0],n=hx(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(A){let e=this.rules.block.heading.exec(A);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let n=Ot(t,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(t=n.trim())}return{type:"heading",raw:Ot(e[0],`
|
|
1856
|
+
`),depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(A){let e=this.rules.block.hr.exec(A);if(e)return{type:"hr",raw:Ot(e[0],`
|
|
1857
|
+
`)}}blockquote(A){let e=this.rules.block.blockquote.exec(A);if(e){let t=Ot(e[0],`
|
|
1859
1858
|
`).split(`
|
|
1860
1859
|
`),n="",r="",s=[];for(;t.length>0;){let o=!1,a=[],i;for(i=0;i<t.length;i++)if(this.rules.other.blockquoteStart.test(t[i]))a.push(t[i]),o=!0;else if(!o)a.push(t[i]);else break;t=t.slice(i);let c=a.join(`
|
|
1861
1860
|
`),u=c.replace(this.rules.other.blockquoteSetextReplace,`
|
|
@@ -1863,24 +1862,24 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
1863
1862
|
${c}`:c,r=r?`${r}
|
|
1864
1863
|
${u}`:u;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,s,!0),this.lexer.state.top=h,t.length===0)break;let f=s.at(-1);if((f==null?void 0:f.type)==="code")break;if((f==null?void 0:f.type)==="blockquote"){let g=f,m=t.join(`
|
|
1865
1864
|
`),b=g.raw+`
|
|
1866
|
-
`+m.replace(this.rules.other.blockquoteSetextReplace2,""),
|
|
1867
|
-
${m}`,r=r.substring(0,r.length-g.text.length)+
|
|
1865
|
+
`+m.replace(this.rules.other.blockquoteSetextReplace2,""),k=this.blockquote(b);s[s.length-1]=k,n=`${n}
|
|
1866
|
+
${m}`,r=r.substring(0,r.length-g.text.length)+k.text;break}else if((f==null?void 0:f.type)==="list"){let g=f,m=g.raw+`
|
|
1868
1867
|
`+t.join(`
|
|
1869
1868
|
`),b=this.list(m);s[s.length-1]=b,n=n.substring(0,n.length-f.raw.length)+b.raw,r=r.substring(0,r.length-g.raw.length)+b.raw,t=m.substring(s.at(-1).raw.length).split(`
|
|
1870
|
-
`);continue}}return{type:"blockquote",raw:n,tokens:s,text:r}}}list(A){let e=this.rules.block.list.exec(A);if(e){let t=e[1].trim(),n=t.length>1,r={type:"list",raw:"",ordered:n,start:n?+t.slice(0,-1):"",loose:!1,items:[]};t=n?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=n?t:"[*+-]");let s=this.rules.other.listItemRegex(t),o=!1;for(;A;){let i=!1,c="",u="";if(!(e=s.exec(A))||this.rules.block.hr.test(A))break;c=e[0],A=A.substring(c.length);let h=
|
|
1869
|
+
`);continue}}return{type:"blockquote",raw:n,tokens:s,text:r}}}list(A){let e=this.rules.block.list.exec(A);if(e){let t=e[1].trim(),n=t.length>1,r={type:"list",raw:"",ordered:n,start:n?+t.slice(0,-1):"",loose:!1,items:[]};t=n?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=n?t:"[*+-]");let s=this.rules.other.listItemRegex(t),o=!1;for(;A;){let i=!1,c="",u="";if(!(e=s.exec(A))||this.rules.block.hr.test(A))break;c=e[0],A=A.substring(c.length);let h=px(e[2].split(`
|
|
1871
1870
|
`,1)[0],e[1].length),f=A.split(`
|
|
1872
1871
|
`,1)[0],g=!h.trim(),m=0;if(this.options.pedantic?(m=2,u=h.trimStart()):g?m=e[1].length+1:(m=h.search(this.rules.other.nonSpaceChar),m=m>4?1:m,u=h.slice(m),m+=e[1].length),g&&this.rules.other.blankLine.test(f)&&(c+=f+`
|
|
1873
|
-
`,A=A.substring(f.length+1),i=!0),!i){let b=this.rules.other.nextBulletRegex(m),
|
|
1874
|
-
`,1)[0],
|
|
1875
|
-
`+
|
|
1876
|
-
`+f}g=!f.trim(),c+=
|
|
1877
|
-
`,A=A.substring(
|
|
1878
|
-
`),href:n,title:r}}}table(A){var o;let e=this.rules.block.table.exec(A);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let t=
|
|
1879
|
-
`):[],s={type:"table",raw:
|
|
1880
|
-
`),header:[],align:[],rows:[]};if(t.length===n.length){for(let a of n)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<t.length;a++)s.header.push({text:t[a],tokens:this.lexer.inline(t[a]),header:!0,align:s.align[a]});for(let a of r)s.rows.push(
|
|
1872
|
+
`,A=A.substring(f.length+1),i=!0),!i){let b=this.rules.other.nextBulletRegex(m),k=this.rules.other.hrRegex(m),E=this.rules.other.fencesBeginRegex(m),v=this.rules.other.headingBeginRegex(m),y=this.rules.other.htmlBeginRegex(m),U=this.rules.other.blockquoteBeginRegex(m);for(;A;){let x=A.split(`
|
|
1873
|
+
`,1)[0],D;if(f=x,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),D=f):D=f.replace(this.rules.other.tabCharGlobal," "),E.test(f)||v.test(f)||y.test(f)||U.test(f)||b.test(f)||k.test(f))break;if(D.search(this.rules.other.nonSpaceChar)>=m||!f.trim())u+=`
|
|
1874
|
+
`+D.slice(m);else{if(g||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||E.test(h)||v.test(h)||k.test(h))break;u+=`
|
|
1875
|
+
`+f}g=!f.trim(),c+=x+`
|
|
1876
|
+
`,A=A.substring(x.length+1),h=D.slice(m)}}r.loose||(o?r.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(o=!0)),r.items.push({type:"list_item",raw:c,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),r.raw+=c}let a=r.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let i of r.items){this.lexer.state.top=!1,i.tokens=this.lexer.blockTokens(i.text,[]);let c=i.tokens[0];if(i.task&&((c==null?void 0:c.type)==="text"||(c==null?void 0:c.type)==="paragraph")){i.text=i.text.replace(this.rules.other.listReplaceTask,""),c.raw=c.raw.replace(this.rules.other.listReplaceTask,""),c.text=c.text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}let u=this.rules.other.listTaskCheckbox.exec(i.raw);if(u){let h={type:"checkbox",raw:u[0]+" ",checked:u[0]!=="[ ]"};i.checked=h.checked,r.loose?i.tokens[0]&&["paragraph","text"].includes(i.tokens[0].type)&&"tokens"in i.tokens[0]&&i.tokens[0].tokens?(i.tokens[0].raw=h.raw+i.tokens[0].raw,i.tokens[0].text=h.raw+i.tokens[0].text,i.tokens[0].tokens.unshift(h)):i.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):i.tokens.unshift(h)}}else i.task&&(i.task=!1);if(!r.loose){let u=i.tokens.filter(f=>f.type==="space"),h=u.length>0&&u.some(f=>this.rules.other.anyLine.test(f.raw));r.loose=h}}if(r.loose)for(let i of r.items){i.loose=!0;for(let c of i.tokens)c.type==="text"&&(c.type="paragraph")}return r}}html(A){let e=this.rules.block.html.exec(A);if(e){let t=md(e[0]);return{type:"html",block:!0,raw:t,pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:t}}}def(A){let e=this.rules.block.def.exec(A);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:Ot(e[0],`
|
|
1877
|
+
`),href:n,title:r}}}table(A){var o;let e=this.rules.block.table.exec(A);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let t=wd(e[1]),n=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=(o=e[3])!=null&&o.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
1878
|
+
`):[],s={type:"table",raw:Ot(e[0],`
|
|
1879
|
+
`),header:[],align:[],rows:[]};if(t.length===n.length){for(let a of n)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<t.length;a++)s.header.push({text:t[a],tokens:this.lexer.inline(t[a]),header:!0,align:s.align[a]});for(let a of r)s.rows.push(wd(a,s.header.length).map((i,c)=>({text:i,tokens:this.lexer.inline(i),header:!1,align:s.align[c]})));return s}}lheading(A){let e=this.rules.block.lheading.exec(A);if(e){let t=e[1].trim();return{type:"heading",raw:Ot(e[0],`
|
|
1881
1880
|
`),depth:e[2].charAt(0)==="="?1:2,text:t,tokens:this.lexer.inline(t)}}}paragraph(A){let e=this.rules.block.paragraph.exec(A);if(e){let t=e[1].charAt(e[1].length-1)===`
|
|
1882
|
-
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(A){let e=this.rules.block.text.exec(A);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(A){let e=this.rules.inline.escape.exec(A);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(A){let e=this.rules.inline.tag.exec(A);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(A){let e=this.rules.inline.link.exec(A);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let s=
|
|
1883
|
-
`),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){var s,o,a;this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(
|
|
1881
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(A){let e=this.rules.block.text.exec(A);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(A){let e=this.rules.inline.escape.exec(A);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(A){let e=this.rules.inline.tag.exec(A);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(A){let e=this.rules.inline.link.exec(A);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let s=Ot(t.slice(0,-1),"\\");if((t.length-s.length)%2===0)return}else{let s=dx(e[2],"()");if(s===-2)return;if(s>-1){let o=(e[0].indexOf("!")===0?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,o).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],r=s[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n=n.slice(1):n=n.slice(1,-1)),Cd(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(A,e){let t;if((t=this.rules.inline.reflink.exec(A))||(t=this.rules.inline.nolink.exec(A))){let n=(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[n.toLowerCase()];if(!r){let s=t[0].charAt(0);return{type:"text",raw:s,text:s}}return Cd(t,r,t[0],this.lexer,this.rules)}}emStrong(A,e,t=""){let n=this.rules.inline.emStrongLDelim.exec(A);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&t.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!t||this.rules.inline.punctuation.exec(t))){let r=[...n[0]].length-1,s,o,a=r,i=0,c=n[0][0],u=t===c,h=c==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,e=e.slice(-1*A.length+r);(n=h.exec(e))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(o=[...s].length,n[3]||n[4]){a+=o;continue}else if(n[5]||n[6]){if(r%3&&!((r+o)%3)){i+=o;continue}if(u)break}if(a-=o,a>0)continue;o=Math.min(o,o+a+i);let f=[...n[0]][0].length,g=A.slice(0,r+n.index+f+o);if(Math.min(r,o)%2){let b=g.slice(1,-1);return{type:"em",raw:g,text:b,tokens:this.lexer.inlineTokens(b)}}let m=g.slice(2,-2);return{type:"strong",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(A){let e=this.rules.inline.code.exec(A);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(A){let e=this.rules.inline.br.exec(A);if(e)return{type:"br",raw:e[0]}}del(A,e,t=""){let n=this.rules.inline.delLDelim.exec(A);if(n&&(!n[1]||!t||this.rules.inline.punctuation.exec(t))){let r=[...n[0]].length-1,s,o,a=r,i=this.rules.inline.delRDelim;for(i.lastIndex=0,e=e.slice(-1*A.length+r);(n=i.exec(e))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s||(o=[...s].length,o!==r))continue;if(n[3]||n[4]){a+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a);let c=[...n[0]][0].length,u=A.slice(0,r+n.index+c+o),h=u.slice(r,-r);return{type:"del",raw:u,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(A){let e=this.rules.inline.autolink.exec(A);if(e){let t,n;return e[2]==="@"?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(A){var t,n;let e;if(e=this.rules.inline.url.exec(A)){let r,s;if(e[2]==="@")r=e[0],s="mailto:"+r;else{let o;do o=e[0],e[0]=(n=(t=this.rules.inline._backpedal.exec(e[0]))==null?void 0:t[0])!=null?n:"";while(o!==e[0]);r=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(A){let e=this.rules.inline.text.exec(A);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},Je=class lc{constructor(e){hA(this,"tokens");hA(this,"options");hA(this,"state");hA(this,"inlineQueue");hA(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Tn,this.options.tokenizer=this.options.tokenizer||new ri,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:re,block:wo.normal,inline:Mr.normal};this.options.pedantic?(t.block=wo.pedantic,t.inline=Mr.pedantic):this.options.gfm&&(t.block=wo.gfm,this.options.breaks?t.inline=Mr.breaks:t.inline=Mr.gfm),this.tokenizer.rules=t}static get rules(){return{block:wo,inline:Mr}}static lex(e,t){return new lc(t).lex(e)}static lexInline(e,t){return new lc(t).inlineTokens(e)}lex(e){e=e.replace(re.carriageReturn,`
|
|
1882
|
+
`),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){var s,o,a;this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(re.tabCharGlobal," ").replace(re.spaceLine,""));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if((o=(s=this.options.extensions)==null?void 0:s.block)!=null&&o.some(u=>(i=u.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let u=t.at(-1);i.raw.length===1&&u!==void 0?u.raw+=`
|
|
1884
1883
|
`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let u=t.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
|
|
1885
1884
|
`)?"":`
|
|
1886
1885
|
`)+i.raw,u.text+=`
|
|
@@ -1893,9 +1892,9 @@ ${m}`,r=r.substring(0,r.length-g.text.length)+U.text;break}else if((f==null?void
|
|
|
1893
1892
|
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):t.push(i),n=c.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let u=t.at(-1);(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
|
|
1894
1893
|
`)?"":`
|
|
1895
1894
|
`)+i.raw,u.text+=`
|
|
1896
|
-
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var a,i,c,u,h,f;this.tokenizer.lexer=this;let n=e;if(this.tokens.links){let g=Object.keys(this.tokens.links);g.length>0&&(n=n.replace(this.tokenizer.rules.inline.reflinkSearch,m=>g.includes(m.slice(m.lastIndexOf("[")+1,-1))?"["+"a".repeat(m.length-2)+"]":m))}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,"++"),n=n.replace(this.tokenizer.rules.inline.blockSkip,(g,m,b)=>{let
|
|
1897
|
-
`;return n?'<pre><code class="language-'+
|
|
1898
|
-
`:"<pre><code>"+(t?r:
|
|
1895
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var a,i,c,u,h,f;this.tokenizer.lexer=this;let n=e;if(this.tokens.links){let g=Object.keys(this.tokens.links);g.length>0&&(n=n.replace(this.tokenizer.rules.inline.reflinkSearch,m=>g.includes(m.slice(m.lastIndexOf("[")+1,-1))?"["+"a".repeat(m.length-2)+"]":m))}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,"++"),n=n.replace(this.tokenizer.rules.inline.blockSkip,(g,m,b)=>{let k=b?b.length:0;return g.slice(0,k)+"["+"a".repeat(g.length-k-2)+"]"}),n=(c=(i=(a=this.options.hooks)==null?void 0:a.emStrongMask)==null?void 0:i.call({lexer:this},n))!=null?c:n;let r=!1,s="",o=1/0;for(;e;){if(e.length<o)o=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(s=""),r=!1;let g;if((h=(u=this.options.extensions)==null?void 0:u.inline)!=null&&h.some(b=>(g=b.call({lexer:this},e,t))?(e=e.substring(g.raw.length),t.push(g),!0):!1))continue;if(g=this.tokenizer.escape(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.tag(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.link(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(g.raw.length);let b=t.at(-1);g.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=g.raw,b.text+=g.text):t.push(g);continue}if(g=this.tokenizer.emStrong(e,n,s)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.codespan(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.br(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.del(e,n,s)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.autolink(e)){e=e.substring(g.raw.length),t.push(g);continue}if(!this.state.inLink&&(g=this.tokenizer.url(e))){e=e.substring(g.raw.length),t.push(g);continue}let m=e;if((f=this.options.extensions)!=null&&f.startInline){let b=1/0,k=e.slice(1),E;this.options.extensions.startInline.forEach(v=>{E=v.call({lexer:this},k),typeof E=="number"&&E>=0&&(b=Math.min(b,E))}),b<1/0&&b>=0&&(m=e.substring(0,b+1))}if(g=this.tokenizer.inlineText(m)){e=e.substring(g.raw.length),g.raw.slice(-1)!=="_"&&(s=g.raw.slice(-1)),r=!0;let b=t.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=g.raw,b.text+=g.text):t.push(g);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(this.options.silent)console.error(t);else throw new Error(t)}},si=class{constructor(A){hA(this,"options");hA(this,"parser");this.options=A||Tn}space(A){return""}code({text:A,lang:e,escaped:t}){var s;let n=(s=(e||"").match(re.notSpaceStart))==null?void 0:s[0],r=A.replace(re.endingNewline,"")+`
|
|
1896
|
+
`;return n?'<pre><code class="language-'+at(n)+'">'+(t?r:at(r,!0))+`</code></pre>
|
|
1897
|
+
`:"<pre><code>"+(t?r:at(r,!0))+`</code></pre>
|
|
1899
1898
|
`}blockquote({tokens:A}){return`<blockquote>
|
|
1900
1899
|
${this.parser.parse(A)}</blockquote>
|
|
1901
1900
|
`}html({text:A}){return A}def(A){return""}heading({tokens:A,depth:e}){return`<h${e}>${this.parser.parseInline(A)}</h${e}>
|
|
@@ -1911,22 +1910,22 @@ ${this.parser.parse(A)}</blockquote>
|
|
|
1911
1910
|
`}tablerow({text:A}){return`<tr>
|
|
1912
1911
|
${A}</tr>
|
|
1913
1912
|
`}tablecell(A){let e=this.parser.parseInline(A.tokens),t=A.header?"th":"td";return(A.align?`<${t} align="${A.align}">`:`<${t}>`)+e+`</${t}>
|
|
1914
|
-
`}strong({tokens:A}){return`<strong>${this.parser.parseInline(A)}</strong>`}em({tokens:A}){return`<em>${this.parser.parseInline(A)}</em>`}codespan({text:A}){return`<code>${
|
|
1915
|
-
Please report this to https://github.com/markedjs/marked.`,A){let n="<p>An error occurred:</p><pre>"+st(t.message+"",!0)+"</pre>";return e?Promise.resolve(n):n}if(e)return Promise.reject(t);throw t}}},Un=new ux;function fA(A,e){return Un.parse(A,e)}fA.options=fA.setOptions=function(A){return Un.setOptions(A),fA.defaults=Un.defaults,Xh(fA.defaults),fA};fA.getDefaults=Dc;fA.defaults=Sn;function dx(...A){return Un.use(...A),fA.defaults=Un.defaults,Xh(fA.defaults),fA}fA.use=dx;fA.walkTokens=function(A,e){return Un.walkTokens(A,e)};fA.parseInline=Un.parseInline;fA.Parser=We;fA.parser=We.parse;fA.Renderer=ni;fA.TextRenderer=$c;fA.Lexer=Xe;fA.lexer=Xe.lex;fA.Tokenizer=ti;fA.Hooks=ts;fA.parse=fA;fA.options;fA.setOptions;fA.walkTokens;fA.parseInline;We.parse;Xe.lex;/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:rf,setPrototypeOf:gd,isFrozen:px,getPrototypeOf:hx,getOwnPropertyDescriptor:fx}=Object;let{freeze:le,seal:De,create:cc}=Object,{apply:lc,construct:uc}=typeof Reflect!="undefined"&&Reflect;le||(le=function(e){return e});De||(De=function(e){return e});lc||(lc=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];return e.apply(t,r)});uc||(uc=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const Co=ue(Array.prototype.forEach),gx=ue(Array.prototype.lastIndexOf),Bd=ue(Array.prototype.pop),Kr=ue(Array.prototype.push),Bx=ue(Array.prototype.splice),xo=ue(String.prototype.toLowerCase),ha=ue(String.prototype.toString),fa=ue(String.prototype.match),Nr=ue(String.prototype.replace),wx=ue(String.prototype.indexOf),mx=ue(String.prototype.trim),Ge=ue(Object.prototype.hasOwnProperty),oe=ue(RegExp.prototype.test),$r=Cx(TypeError);function ue(A){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return lc(A,e,n)}}function Cx(A){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return uc(A,t)}}function eA(A,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xo;gd&&gd(A,null);let n=e.length;for(;n--;){let r=e[n];if(typeof r=="string"){const s=t(r);s!==r&&(px(e)||(e[n]=s),r=s)}A[r]=!0}return A}function bx(A){for(let e=0;e<A.length;e++)Ge(A,e)||(A[e]=null);return A}function ot(A){const e=cc(null);for(const[t,n]of rf(A))Ge(A,t)&&(Array.isArray(n)?e[t]=bx(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=ot(n):e[t]=n);return e}function zr(A,e){for(;A!==null;){const n=fx(A,e);if(n){if(n.get)return ue(n.get);if(typeof n.value=="function")return ue(n.value)}A=hx(A)}function t(){return null}return t}const wd=le(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ga=le(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ba=le(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Qx=le(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),wa=le(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),yx=le(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),md=le(["#text"]),Cd=le(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ma=le(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),bd=le(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),bo=le(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ux=De(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ex=De(/<%[\w\W]*|[\w\W]*%>/gm),kx=De(/\$\{[\w\W]*/gm),Fx=De(/^data-[\-\w.\u00B7-\uFFFF]+$/),vx=De(/^aria-[\-\w]+$/),sf=De(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_x=De(/^(?:\w+script|data):/i),xx=De(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),of=De(/^html$/i),Sx=De(/^[a-z][.\w]*(-[.\w]+)+$/i);var Qd=Object.freeze({__proto__:null,ARIA_ATTR:vx,ATTR_WHITESPACE:xx,CUSTOM_ELEMENT:Sx,DATA_ATTR:Fx,DOCTYPE_NAME:of,ERB_EXPR:Ex,IS_ALLOWED_URI:sf,IS_SCRIPT_OR_DATA:_x,MUSTACHE_EXPR:Ux,TMPLIT_EXPR:kx});const Vr={element:1,text:3,progressingInstruction:7,comment:8,document:9},Ix=function(){return typeof window=="undefined"?null:window},Tx=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch(o){return console.warn("TrustedTypes policy "+s+" could not be created."),null}},yd=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function af(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ix();const e=G=>af(G);if(e.version="3.3.1",e.removed=[],!A||!A.document||A.document.nodeType!==Vr.document||!A.Element)return e.isSupported=!1,e;let{document:t}=A;const n=t,r=n.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:a,Element:i,NodeFilter:c,NamedNodeMap:u=A.NamedNodeMap||A.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:g}=A,m=i.prototype,b=zr(m,"cloneNode"),U=zr(m,"remove"),E=zr(m,"nextSibling"),v=zr(m,"childNodes"),F=zr(m,"parentNode");if(typeof o=="function"){const G=t.createElement("template");G.content&&G.content.ownerDocument&&(t=G.content.ownerDocument)}let y,_="";const{implementation:R,createNodeIterator:H,createDocumentFragment:z,getElementsByTagName:K}=t,{importNode:V}=n;let X=yd();e.isSupported=typeof rf=="function"&&typeof F=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:sA,ERB_EXPR:cA,TMPLIT_EXPR:kA,DATA_ATTR:de,ARIA_ATTR:re,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:In,CUSTOM_ELEMENT:br}=Qd;let{IS_ALLOWED_URI:Tn}=Qd,_A=null;const Hn=eA({},[...wd,...ga,...Ba,...wa,...md]);let gA=null;const wt=eA({},[...Cd,...ma,...bd,...bo]);let lA=Object.seal(cc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),MA=null,xt=null;const Oe=Object.seal(cc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let xA=!0,RA=!0,qt=!1,St=!0,KA=!1,et=!0,Qe=!1,ye=!1,mt=!1,Pe=!1,tt=!1,nt=!1,An=!0,NA=!1;const Ln="user-content-";let Qr=!0,en=!1,It={},se=null;const yr=eA({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let BA=null;const _s=eA({},["audio","video","img","source","image","track"]);let Ur=null;const xs=eA({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Dn="http://www.w3.org/1998/Math/MathML",Rn="http://www.w3.org/2000/svg",Me="http://www.w3.org/1999/xhtml";let Tt=Me,tn=!1,nn=null;const Si=eA({},[Dn,Rn,Me],ha);let On=eA({},["mi","mo","mn","ms","mtext"]),Pn=eA({},["annotation-xml"]);const Ii=eA({},["title","style","font","a","script"]);let Ct=null;const Ke=["application/xhtml+xml","text/html"],Ti="text/html";let wA=null,Ht=null;const Ss=t.createElement("form"),Er=function(Q){return Q instanceof RegExp||Q instanceof Function},Mn=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ht&&Ht===Q)){if((!Q||typeof Q!="object")&&(Q={}),Q=ot(Q),Ct=Ke.indexOf(Q.PARSER_MEDIA_TYPE)===-1?Ti:Q.PARSER_MEDIA_TYPE,wA=Ct==="application/xhtml+xml"?ha:xo,_A=Ge(Q,"ALLOWED_TAGS")?eA({},Q.ALLOWED_TAGS,wA):Hn,gA=Ge(Q,"ALLOWED_ATTR")?eA({},Q.ALLOWED_ATTR,wA):wt,nn=Ge(Q,"ALLOWED_NAMESPACES")?eA({},Q.ALLOWED_NAMESPACES,ha):Si,Ur=Ge(Q,"ADD_URI_SAFE_ATTR")?eA(ot(xs),Q.ADD_URI_SAFE_ATTR,wA):xs,BA=Ge(Q,"ADD_DATA_URI_TAGS")?eA(ot(_s),Q.ADD_DATA_URI_TAGS,wA):_s,se=Ge(Q,"FORBID_CONTENTS")?eA({},Q.FORBID_CONTENTS,wA):yr,MA=Ge(Q,"FORBID_TAGS")?eA({},Q.FORBID_TAGS,wA):ot({}),xt=Ge(Q,"FORBID_ATTR")?eA({},Q.FORBID_ATTR,wA):ot({}),It=Ge(Q,"USE_PROFILES")?Q.USE_PROFILES:!1,xA=Q.ALLOW_ARIA_ATTR!==!1,RA=Q.ALLOW_DATA_ATTR!==!1,qt=Q.ALLOW_UNKNOWN_PROTOCOLS||!1,St=Q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,KA=Q.SAFE_FOR_TEMPLATES||!1,et=Q.SAFE_FOR_XML!==!1,Qe=Q.WHOLE_DOCUMENT||!1,Pe=Q.RETURN_DOM||!1,tt=Q.RETURN_DOM_FRAGMENT||!1,nt=Q.RETURN_TRUSTED_TYPE||!1,mt=Q.FORCE_BODY||!1,An=Q.SANITIZE_DOM!==!1,NA=Q.SANITIZE_NAMED_PROPS||!1,Qr=Q.KEEP_CONTENT!==!1,en=Q.IN_PLACE||!1,Tn=Q.ALLOWED_URI_REGEXP||sf,Tt=Q.NAMESPACE||Me,On=Q.MATHML_TEXT_INTEGRATION_POINTS||On,Pn=Q.HTML_INTEGRATION_POINTS||Pn,lA=Q.CUSTOM_ELEMENT_HANDLING||{},Q.CUSTOM_ELEMENT_HANDLING&&Er(Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(lA.tagNameCheck=Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&Er(Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(lA.attributeNameCheck=Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&typeof Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(lA.allowCustomizedBuiltInElements=Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),KA&&(RA=!1),tt&&(Pe=!0),It&&(_A=eA({},md),gA=[],It.html===!0&&(eA(_A,wd),eA(gA,Cd)),It.svg===!0&&(eA(_A,ga),eA(gA,ma),eA(gA,bo)),It.svgFilters===!0&&(eA(_A,Ba),eA(gA,ma),eA(gA,bo)),It.mathMl===!0&&(eA(_A,wa),eA(gA,bd),eA(gA,bo))),Q.ADD_TAGS&&(typeof Q.ADD_TAGS=="function"?Oe.tagCheck=Q.ADD_TAGS:(_A===Hn&&(_A=ot(_A)),eA(_A,Q.ADD_TAGS,wA))),Q.ADD_ATTR&&(typeof Q.ADD_ATTR=="function"?Oe.attributeCheck=Q.ADD_ATTR:(gA===wt&&(gA=ot(gA)),eA(gA,Q.ADD_ATTR,wA))),Q.ADD_URI_SAFE_ATTR&&eA(Ur,Q.ADD_URI_SAFE_ATTR,wA),Q.FORBID_CONTENTS&&(se===yr&&(se=ot(se)),eA(se,Q.FORBID_CONTENTS,wA)),Q.ADD_FORBID_CONTENTS&&(se===yr&&(se=ot(se)),eA(se,Q.ADD_FORBID_CONTENTS,wA)),Qr&&(_A["#text"]=!0),Qe&&eA(_A,["html","head","body"]),_A.table&&(eA(_A,["tbody"]),delete MA.tbody),Q.TRUSTED_TYPES_POLICY){if(typeof Q.TRUSTED_TYPES_POLICY.createHTML!="function")throw $r('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $r('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=Q.TRUSTED_TYPES_POLICY,_=y.createHTML("")}else y===void 0&&(y=Tx(g,r)),y!==null&&typeof _=="string"&&(_=y.createHTML(""));le&&le(Q),Ht=Q}},kr=eA({},[...ga,...Ba,...Qx]),Is=eA({},[...wa,...yx]),Hi=function(Q){let T=F(Q);(!T||!T.tagName)&&(T={namespaceURI:Tt,tagName:"template"});const P=xo(Q.tagName),pA=xo(T.tagName);return nn[Q.namespaceURI]?Q.namespaceURI===Rn?T.namespaceURI===Me?P==="svg":T.namespaceURI===Dn?P==="svg"&&(pA==="annotation-xml"||On[pA]):!!kr[P]:Q.namespaceURI===Dn?T.namespaceURI===Me?P==="math":T.namespaceURI===Rn?P==="math"&&Pn[pA]:!!Is[P]:Q.namespaceURI===Me?T.namespaceURI===Rn&&!Pn[pA]||T.namespaceURI===Dn&&!On[pA]?!1:!Is[P]&&(Ii[P]||!kr[P]):!!(Ct==="application/xhtml+xml"&&nn[Q.namespaceURI]):!1},Ue=function(Q){Kr(e.removed,{element:Q});try{F(Q).removeChild(Q)}catch(T){U(Q)}},Ee=function(Q,T){try{Kr(e.removed,{attribute:T.getAttributeNode(Q),from:T})}catch(P){Kr(e.removed,{attribute:null,from:T})}if(T.removeAttribute(Q),Q==="is")if(Pe||tt)try{Ue(T)}catch(P){}else try{T.setAttribute(Q,"")}catch(P){}},Ts=function(Q){let T=null,P=null;if(mt)Q="<remove></remove>"+Q;else{const SA=fa(Q,/^[\r\n\t ]+/);P=SA&&SA[0]}Ct==="application/xhtml+xml"&&Tt===Me&&(Q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Q+"</body></html>");const pA=y?y.createHTML(Q):Q;if(Tt===Me)try{T=new f().parseFromString(pA,Ct)}catch(SA){}if(!T||!T.documentElement){T=R.createDocument(Tt,"template",null);try{T.documentElement.innerHTML=tn?_:pA}catch(SA){}}const WA=T.body||T.documentElement;return Q&&P&&WA.insertBefore(t.createTextNode(P),WA.childNodes[0]||null),Tt===Me?K.call(T,Qe?"html":"body")[0]:Qe?T.documentElement:WA},Fr=function(Q){return H.call(Q.ownerDocument||Q,Q,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},vr=function(Q){return Q instanceof h&&(typeof Q.nodeName!="string"||typeof Q.textContent!="string"||typeof Q.removeChild!="function"||!(Q.attributes instanceof u)||typeof Q.removeAttribute!="function"||typeof Q.setAttribute!="function"||typeof Q.namespaceURI!="string"||typeof Q.insertBefore!="function"||typeof Q.hasChildNodes!="function")},Hs=function(Q){return typeof a=="function"&&Q instanceof a};function Ne(G,Q,T){Co(G,P=>{P.call(e,Q,T,Ht)})}const Ls=function(Q){let T=null;if(Ne(X.beforeSanitizeElements,Q,null),vr(Q))return Ue(Q),!0;const P=wA(Q.nodeName);if(Ne(X.uponSanitizeElement,Q,{tagName:P,allowedTags:_A}),et&&Q.hasChildNodes()&&!Hs(Q.firstElementChild)&&oe(/<[/\w!]/g,Q.innerHTML)&&oe(/<[/\w!]/g,Q.textContent)||Q.nodeType===Vr.progressingInstruction||et&&Q.nodeType===Vr.comment&&oe(/<[/\w]/g,Q.data))return Ue(Q),!0;if(!(Oe.tagCheck instanceof Function&&Oe.tagCheck(P))&&(!_A[P]||MA[P])){if(!MA[P]&&Rs(P)&&(lA.tagNameCheck instanceof RegExp&&oe(lA.tagNameCheck,P)||lA.tagNameCheck instanceof Function&&lA.tagNameCheck(P)))return!1;if(Qr&&!se[P]){const pA=F(Q)||Q.parentNode,WA=v(Q)||Q.childNodes;if(WA&&pA){const SA=WA.length;for(let Ae=SA-1;Ae>=0;--Ae){const $e=b(WA[Ae],!0);$e.__removalCount=(Q.__removalCount||0)+1,pA.insertBefore($e,E(Q))}}}return Ue(Q),!0}return Q instanceof i&&!Hi(Q)||(P==="noscript"||P==="noembed"||P==="noframes")&&oe(/<\/no(script|embed|frames)/i,Q.innerHTML)?(Ue(Q),!0):(KA&&Q.nodeType===Vr.text&&(T=Q.textContent,Co([sA,cA,kA],pA=>{T=Nr(T,pA," ")}),Q.textContent!==T&&(Kr(e.removed,{element:Q.cloneNode()}),Q.textContent=T)),Ne(X.afterSanitizeElements,Q,null),!1)},Ds=function(Q,T,P){if(An&&(T==="id"||T==="name")&&(P in t||P in Ss))return!1;if(!(RA&&!xt[T]&&oe(de,T))){if(!(xA&&oe(re,T))){if(!(Oe.attributeCheck instanceof Function&&Oe.attributeCheck(T,Q))){if(!gA[T]||xt[T]){if(!(Rs(Q)&&(lA.tagNameCheck instanceof RegExp&&oe(lA.tagNameCheck,Q)||lA.tagNameCheck instanceof Function&&lA.tagNameCheck(Q))&&(lA.attributeNameCheck instanceof RegExp&&oe(lA.attributeNameCheck,T)||lA.attributeNameCheck instanceof Function&&lA.attributeNameCheck(T,Q))||T==="is"&&lA.allowCustomizedBuiltInElements&&(lA.tagNameCheck instanceof RegExp&&oe(lA.tagNameCheck,P)||lA.tagNameCheck instanceof Function&&lA.tagNameCheck(P))))return!1}else if(!Ur[T]){if(!oe(Tn,Nr(P,In,""))){if(!((T==="src"||T==="xlink:href"||T==="href")&&Q!=="script"&&wx(P,"data:")===0&&BA[Q])){if(!(qt&&!oe(be,Nr(P,In,"")))){if(P)return!1}}}}}}}return!0},Rs=function(Q){return Q!=="annotation-xml"&&fa(Q,br)},_r=function(Q){Ne(X.beforeSanitizeAttributes,Q,null);const{attributes:T}=Q;if(!T||vr(Q))return;const P={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:gA,forceKeepAttr:void 0};let pA=T.length;for(;pA--;){const WA=T[pA],{name:SA,namespaceURI:Ae,value:$e}=WA,rt=wA(SA),xr=$e;let $A=SA==="value"?xr:mx(xr);if(P.attrName=rt,P.attrValue=$A,P.keepAttr=!0,P.forceKeepAttr=void 0,Ne(X.uponSanitizeAttribute,Q,P),$A=P.attrValue,NA&&(rt==="id"||rt==="name")&&(Ee(SA,Q),$A=Ln+$A),et&&oe(/((--!?|])>)|<\/(style|title|textarea)/i,$A)){Ee(SA,Q);continue}if(rt==="attributename"&&fa($A,"href")){Ee(SA,Q);continue}if(P.forceKeepAttr)continue;if(!P.keepAttr){Ee(SA,Q);continue}if(!St&&oe(/\/>/i,$A)){Ee(SA,Q);continue}KA&&Co([sA,cA,kA],Ps=>{$A=Nr($A,Ps," ")});const Os=wA(Q.nodeName);if(!Ds(Os,rt,$A)){Ee(SA,Q);continue}if(y&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Ae)switch(g.getAttributeType(Os,rt)){case"TrustedHTML":{$A=y.createHTML($A);break}case"TrustedScriptURL":{$A=y.createScriptURL($A);break}}if($A!==xr)try{Ae?Q.setAttributeNS(Ae,SA,$A):Q.setAttribute(SA,$A),vr(Q)?Ue(Q):Bd(e.removed)}catch(Ps){Ee(SA,Q)}}Ne(X.afterSanitizeAttributes,Q,null)},bt=function G(Q){let T=null;const P=Fr(Q);for(Ne(X.beforeSanitizeShadowDOM,Q,null);T=P.nextNode();)Ne(X.uponSanitizeShadowNode,T,null),Ls(T),_r(T),T.content instanceof s&&G(T.content);Ne(X.afterSanitizeShadowDOM,Q,null)};return e.sanitize=function(G){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=null,P=null,pA=null,WA=null;if(tn=!G,tn&&(G="<!-->"),typeof G!="string"&&!Hs(G))if(typeof G.toString=="function"){if(G=G.toString(),typeof G!="string")throw $r("dirty is not a string, aborting")}else throw $r("toString is not a function");if(!e.isSupported)return G;if(ye||Mn(Q),e.removed=[],typeof G=="string"&&(en=!1),en){if(G.nodeName){const $e=wA(G.nodeName);if(!_A[$e]||MA[$e])throw $r("root node is forbidden and cannot be sanitized in-place")}}else if(G instanceof a)T=Ts("<!---->"),P=T.ownerDocument.importNode(G,!0),P.nodeType===Vr.element&&P.nodeName==="BODY"||P.nodeName==="HTML"?T=P:T.appendChild(P);else{if(!Pe&&!KA&&!Qe&&G.indexOf("<")===-1)return y&&nt?y.createHTML(G):G;if(T=Ts(G),!T)return Pe?null:nt?_:""}T&&mt&&Ue(T.firstChild);const SA=Fr(en?G:T);for(;pA=SA.nextNode();)Ls(pA),_r(pA),pA.content instanceof s&&bt(pA.content);if(en)return G;if(Pe){if(tt)for(WA=z.call(T.ownerDocument);T.firstChild;)WA.appendChild(T.firstChild);else WA=T;return(gA.shadowroot||gA.shadowrootmode)&&(WA=V.call(n,WA,!0)),WA}let Ae=Qe?T.outerHTML:T.innerHTML;return Qe&&_A["!doctype"]&&T.ownerDocument&&T.ownerDocument.doctype&&T.ownerDocument.doctype.name&&oe(of,T.ownerDocument.doctype.name)&&(Ae="<!DOCTYPE "+T.ownerDocument.doctype.name+`>
|
|
1916
|
-
`+
|
|
1913
|
+
`}strong({tokens:A}){return`<strong>${this.parser.parseInline(A)}</strong>`}em({tokens:A}){return`<em>${this.parser.parseInline(A)}</em>`}codespan({text:A}){return`<code>${at(A,!0)}</code>`}br(A){return"<br>"}del({tokens:A}){return`<del>${this.parser.parseInline(A)}</del>`}link({href:A,title:e,tokens:t}){let n=this.parser.parseInline(t),r=Bd(A);if(r===null)return n;A=r;let s='<a href="'+A+'"';return e&&(s+=' title="'+at(e)+'"'),s+=">"+n+"</a>",s}image({href:A,title:e,text:t,tokens:n}){n&&(t=this.parser.parseInline(n,this.parser.textRenderer));let r=Bd(A);if(r===null)return at(t);A=r;let s=`<img src="${A}" alt="${at(t)}"`;return e&&(s+=` title="${at(e)}"`),s+=">",s}text(A){return"tokens"in A&&A.tokens?this.parser.parseInline(A.tokens):"escaped"in A&&A.escaped?A.text:at(A.text)}},Zc=class{strong({text:A}){return A}em({text:A}){return A}codespan({text:A}){return A}del({text:A}){return A}html({text:A}){return A}text({text:A}){return A}link({text:A}){return""+A}image({text:A}){return""+A}br(){return""}checkbox({raw:A}){return A}},je=class uc{constructor(e){hA(this,"options");hA(this,"renderer");hA(this,"textRenderer");this.options=e||Tn,this.options.renderer=this.options.renderer||new si,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Zc}static parse(e,t){return new uc(t).parse(e)}static parseInline(e,t){return new uc(t).parseInline(e)}parse(e){var n,r;this.renderer.parser=this;let t="";for(let s=0;s<e.length;s++){let o=e[s];if((r=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&r[o.type]){let i=o,c=this.options.extensions.renderers[i.type].call({parser:this},i);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(i.type)){t+=c||"";continue}}let a=o;switch(a.type){case"space":{t+=this.renderer.space(a);break}case"hr":{t+=this.renderer.hr(a);break}case"heading":{t+=this.renderer.heading(a);break}case"code":{t+=this.renderer.code(a);break}case"table":{t+=this.renderer.table(a);break}case"blockquote":{t+=this.renderer.blockquote(a);break}case"list":{t+=this.renderer.list(a);break}case"checkbox":{t+=this.renderer.checkbox(a);break}case"html":{t+=this.renderer.html(a);break}case"def":{t+=this.renderer.def(a);break}case"paragraph":{t+=this.renderer.paragraph(a);break}case"text":{t+=this.renderer.text(a);break}default:{let i='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return t}parseInline(e,t=this.renderer){var r,s;this.renderer.parser=this;let n="";for(let o=0;o<e.length;o++){let a=e[o];if((s=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&s[a.type]){let c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(a.type)){n+=c||"";continue}}let i=a;switch(i.type){case"escape":{n+=t.text(i);break}case"html":{n+=t.html(i);break}case"link":{n+=t.link(i);break}case"image":{n+=t.image(i);break}case"checkbox":{n+=t.checkbox(i);break}case"strong":{n+=t.strong(i);break}case"em":{n+=t.em(i);break}case"codespan":{n+=t.codespan(i);break}case"br":{n+=t.br(i);break}case"del":{n+=t.del(i);break}case"text":{n+=t.text(i);break}default:{let c='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return n}},Uo,ts=(Uo=class{constructor(A){hA(this,"options");hA(this,"block");this.options=A||Tn}preprocess(A){return A}postprocess(A){return A}processAllTokens(A){return A}emStrongMask(A){return A}provideLexer(A=this.block){return A?Je.lex:Je.lexInline}provideParser(A=this.block){return A?je.parse:je.parseInline}},hA(Uo,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),hA(Uo,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Uo),fx=class{constructor(...A){hA(this,"defaults",Mc());hA(this,"options",this.setOptions);hA(this,"parse",this.parseMarkdown(!0));hA(this,"parseInline",this.parseMarkdown(!1));hA(this,"Parser",je);hA(this,"Renderer",si);hA(this,"TextRenderer",Zc);hA(this,"Lexer",Je);hA(this,"Tokenizer",ri);hA(this,"Hooks",ts);this.use(...A)}walkTokens(A,e){var n,r;let t=[];for(let s of A)switch(t=t.concat(e.call(this,s)),s.type){case"table":{let o=s;for(let a of o.header)t=t.concat(this.walkTokens(a.tokens,e));for(let a of o.rows)for(let i of a)t=t.concat(this.walkTokens(i.tokens,e));break}case"list":{let o=s;t=t.concat(this.walkTokens(o.items,e));break}default:{let o=s;(r=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&r[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{let i=o[a].flat(1/0);t=t.concat(this.walkTokens(i,e))}):o.tokens&&(t=t.concat(this.walkTokens(o.tokens,e)))}}return t}use(...A){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return A.forEach(t=>{let n=F({},t);if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let s=e.renderers[r.name];s?e.renderers[r.name]=function(...o){let a=r.renderer.apply(this,o);return a===!1&&(a=s.apply(this,o)),a}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=e[r.level];s?s.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),n.extensions=e),t.renderer){let r=this.defaults.renderer||new si(this.defaults);for(let s in t.renderer){if(!(s in r))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,a=t.renderer[o],i=r[o];r[o]=(...c)=>{let u=a.apply(r,c);return u===!1&&(u=i.apply(r,c)),u||""}}n.renderer=r}if(t.tokenizer){let r=this.defaults.tokenizer||new ri(this.defaults);for(let s in t.tokenizer){if(!(s in r))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,a=t.tokenizer[o],i=r[o];r[o]=(...c)=>{let u=a.apply(r,c);return u===!1&&(u=i.apply(r,c)),u}}n.tokenizer=r}if(t.hooks){let r=this.defaults.hooks||new ts;for(let s in t.hooks){if(!(s in r))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,a=t.hooks[o],i=r[o];ts.passThroughHooks.has(s)?r[o]=c=>{if(this.defaults.async&&ts.passThroughHooksRespectAsync.has(s))return I(this,null,function*(){let h=yield a.call(r,c);return i.call(r,h)});let u=a.call(r,c);return i.call(r,u)}:r[o]=(...c)=>{if(this.defaults.async)return I(this,null,function*(){let h=yield a.apply(r,c);return h===!1&&(h=yield i.apply(r,c)),h});let u=a.apply(r,c);return u===!1&&(u=i.apply(r,c)),u}}n.hooks=r}if(t.walkTokens){let r=this.defaults.walkTokens,s=t.walkTokens;n.walkTokens=function(o){let a=[];return a.push(s.call(this,o)),r&&(a=a.concat(r.call(this,o))),a}}this.defaults=F(F({},this.defaults),n)}),this}setOptions(A){return this.defaults=F(F({},this.defaults),A),this}lexer(A,e){return Je.lex(A,e!=null?e:this.defaults)}parser(A,e){return je.parse(A,e!=null?e:this.defaults)}parseMarkdown(A){return(e,t)=>{let n=F({},t),r=F(F({},this.defaults),n),s=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&n.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=A),r.async)return I(this,null,function*(){let o=r.hooks?yield r.hooks.preprocess(e):e,a=yield(r.hooks?yield r.hooks.provideLexer(A):A?Je.lex:Je.lexInline)(o,r),i=r.hooks?yield r.hooks.processAllTokens(a):a;r.walkTokens&&(yield Promise.all(this.walkTokens(i,r.walkTokens)));let c=yield(r.hooks?yield r.hooks.provideParser(A):A?je.parse:je.parseInline)(i,r);return r.hooks?yield r.hooks.postprocess(c):c}).catch(s);try{r.hooks&&(e=r.hooks.preprocess(e));let o=(r.hooks?r.hooks.provideLexer(A):A?Je.lex:Je.lexInline)(e,r);r.hooks&&(o=r.hooks.processAllTokens(o)),r.walkTokens&&this.walkTokens(o,r.walkTokens);let a=(r.hooks?r.hooks.provideParser(A):A?je.parse:je.parseInline)(o,r);return r.hooks&&(a=r.hooks.postprocess(a)),a}catch(o){return s(o)}}}onError(A,e){return t=>{if(t.message+=`
|
|
1914
|
+
Please report this to https://github.com/markedjs/marked.`,A){let n="<p>An error occurred:</p><pre>"+at(t.message+"",!0)+"</pre>";return e?Promise.resolve(n):n}if(e)return Promise.reject(t);throw t}}},kn=new fx;function fA(A,e){return kn.parse(A,e)}fA.options=fA.setOptions=function(A){return kn.setOptions(A),fA.defaults=kn.defaults,Af(fA.defaults),fA};fA.getDefaults=Mc;fA.defaults=Tn;function gx(...A){return kn.use(...A),fA.defaults=kn.defaults,Af(fA.defaults),fA}fA.use=gx;fA.walkTokens=function(A,e){return kn.walkTokens(A,e)};fA.parseInline=kn.parseInline;fA.Parser=je;fA.parser=je.parse;fA.Renderer=si;fA.TextRenderer=Zc;fA.Lexer=Je;fA.lexer=Je.lex;fA.Tokenizer=ri;fA.Hooks=ts;fA.parse=fA;fA.options;fA.setOptions;fA.walkTokens;fA.parseInline;je.parse;Je.lex;/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:uf,setPrototypeOf:bd,isFrozen:Bx,getPrototypeOf:wx,getOwnPropertyDescriptor:mx}=Object;let{freeze:ue,seal:De,create:dc}=Object,{apply:pc,construct:hc}=typeof Reflect!="undefined"&&Reflect;ue||(ue=function(e){return e});De||(De=function(e){return e});pc||(pc=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];return e.apply(t,r)});hc||(hc=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const mo=de(Array.prototype.forEach),Cx=de(Array.prototype.lastIndexOf),Qd=de(Array.prototype.pop),Kr=de(Array.prototype.push),bx=de(Array.prototype.splice),Io=de(String.prototype.toLowerCase),Ba=de(String.prototype.toString),wa=de(String.prototype.match),Nr=de(String.prototype.replace),Qx=de(String.prototype.indexOf),yx=de(String.prototype.trim),Xe=de(Object.prototype.hasOwnProperty),ie=de(RegExp.prototype.test),$r=Ux(TypeError);function de(A){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return pc(A,e,n)}}function Ux(A){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return hc(A,t)}}function eA(A,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Io;bd&&bd(A,null);let n=e.length;for(;n--;){let r=e[n];if(typeof r=="string"){const s=t(r);s!==r&&(Bx(e)||(e[n]=s),r=s)}A[r]=!0}return A}function Ex(A){for(let e=0;e<A.length;e++)Xe(A,e)||(A[e]=null);return A}function ct(A){const e=dc(null);for(const[t,n]of uf(A))Xe(A,t)&&(Array.isArray(n)?e[t]=Ex(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=ct(n):e[t]=n);return e}function zr(A,e){for(;A!==null;){const n=mx(A,e);if(n){if(n.get)return de(n.get);if(typeof n.value=="function")return de(n.value)}A=wx(A)}function t(){return null}return t}const yd=ue(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ma=ue(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ca=ue(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),kx=ue(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ba=ue(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Fx=ue(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ud=ue(["#text"]),Ed=ue(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Qa=ue(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kd=ue(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Co=ue(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),vx=De(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_x=De(/<%[\w\W]*|[\w\W]*%>/gm),xx=De(/\$\{[\w\W]*/gm),Sx=De(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ix=De(/^aria-[\-\w]+$/),df=De(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Tx=De(/^(?:\w+script|data):/i),Hx=De(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pf=De(/^html$/i),Lx=De(/^[a-z][.\w]*(-[.\w]+)+$/i);var Fd=Object.freeze({__proto__:null,ARIA_ATTR:Ix,ATTR_WHITESPACE:Hx,CUSTOM_ELEMENT:Lx,DATA_ATTR:Sx,DOCTYPE_NAME:pf,ERB_EXPR:_x,IS_ALLOWED_URI:df,IS_SCRIPT_OR_DATA:Tx,MUSTACHE_EXPR:vx,TMPLIT_EXPR:xx});const Vr={element:1,text:3,progressingInstruction:7,comment:8,document:9},Dx=function(){return typeof window=="undefined"?null:window},Rx=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch(o){return console.warn("TrustedTypes policy "+s+" could not be created."),null}},vd=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function hf(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Dx();const e=V=>hf(V);if(e.version="3.3.1",e.removed=[],!A||!A.document||A.document.nodeType!==Vr.document||!A.Element)return e.isSupported=!1,e;let{document:t}=A;const n=t,r=n.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:a,Element:i,NodeFilter:c,NamedNodeMap:u=A.NamedNodeMap||A.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:g}=A,m=i.prototype,b=zr(m,"cloneNode"),k=zr(m,"remove"),E=zr(m,"nextSibling"),v=zr(m,"childNodes"),y=zr(m,"parentNode");if(typeof o=="function"){const V=t.createElement("template");V.content&&V.content.ownerDocument&&(t=V.content.ownerDocument)}let U,x="";const{implementation:D,createNodeIterator:H,createDocumentFragment:Z,getElementsByTagName:K}=t,{importNode:X}=n;let N=vd();e.isSupported=typeof uf=="function"&&typeof y=="function"&&D&&D.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:tA,ERB_EXPR:dA,TMPLIT_EXPR:FA,DATA_ATTR:ZA,ARIA_ATTR:se,IS_SCRIPT_OR_DATA:Oe,ATTR_WHITESPACE:An,CUSTOM_ELEMENT:Qr}=Fd;let{IS_ALLOWED_URI:Hn}=Fd,vA=null;const Ln=eA({},[...yd,...ma,...Ca,...ba,...Ud]);let _A=null;const Ct=eA({},[...Ed,...Qa,...kd,...Co]);let cA=Object.seal(dc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),XA=null,Pe=null;const pe=Object.seal(dc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let xA=!0,TA=!0,en=!1,tn=!0,MA=!1,nt=!0,Qe=!1,ye=!1,bt=!1,Me=!1,rt=!1,st=!1,nn=!0,Tt=!1;const Dn="user-content-";let KA=!0,ot=!1,Ke={},oe=null;const yr=eA({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let gA=null;const _s=eA({},["audio","video","img","source","image","track"]);let Ur=null;const xs=eA({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rn="http://www.w3.org/1998/Math/MathML",On="http://www.w3.org/2000/svg",Ne="http://www.w3.org/1999/xhtml";let Ht=Ne,rn=!1,sn=null;const Ti=eA({},[Rn,On,Ne],Ba);let Pn=eA({},["mi","mo","mn","ms","mtext"]),Mn=eA({},["annotation-xml"]);const Hi=eA({},["title","style","font","a","script"]);let Qt=null;const $e=["application/xhtml+xml","text/html"],Li="text/html";let BA=null,Lt=null;const Ss=t.createElement("form"),Er=function(Q){return Q instanceof RegExp||Q instanceof Function},Kn=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Lt&&Lt===Q)){if((!Q||typeof Q!="object")&&(Q={}),Q=ct(Q),Qt=$e.indexOf(Q.PARSER_MEDIA_TYPE)===-1?Li:Q.PARSER_MEDIA_TYPE,BA=Qt==="application/xhtml+xml"?Ba:Io,vA=Xe(Q,"ALLOWED_TAGS")?eA({},Q.ALLOWED_TAGS,BA):Ln,_A=Xe(Q,"ALLOWED_ATTR")?eA({},Q.ALLOWED_ATTR,BA):Ct,sn=Xe(Q,"ALLOWED_NAMESPACES")?eA({},Q.ALLOWED_NAMESPACES,Ba):Ti,Ur=Xe(Q,"ADD_URI_SAFE_ATTR")?eA(ct(xs),Q.ADD_URI_SAFE_ATTR,BA):xs,gA=Xe(Q,"ADD_DATA_URI_TAGS")?eA(ct(_s),Q.ADD_DATA_URI_TAGS,BA):_s,oe=Xe(Q,"FORBID_CONTENTS")?eA({},Q.FORBID_CONTENTS,BA):yr,XA=Xe(Q,"FORBID_TAGS")?eA({},Q.FORBID_TAGS,BA):ct({}),Pe=Xe(Q,"FORBID_ATTR")?eA({},Q.FORBID_ATTR,BA):ct({}),Ke=Xe(Q,"USE_PROFILES")?Q.USE_PROFILES:!1,xA=Q.ALLOW_ARIA_ATTR!==!1,TA=Q.ALLOW_DATA_ATTR!==!1,en=Q.ALLOW_UNKNOWN_PROTOCOLS||!1,tn=Q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,MA=Q.SAFE_FOR_TEMPLATES||!1,nt=Q.SAFE_FOR_XML!==!1,Qe=Q.WHOLE_DOCUMENT||!1,Me=Q.RETURN_DOM||!1,rt=Q.RETURN_DOM_FRAGMENT||!1,st=Q.RETURN_TRUSTED_TYPE||!1,bt=Q.FORCE_BODY||!1,nn=Q.SANITIZE_DOM!==!1,Tt=Q.SANITIZE_NAMED_PROPS||!1,KA=Q.KEEP_CONTENT!==!1,ot=Q.IN_PLACE||!1,Hn=Q.ALLOWED_URI_REGEXP||df,Ht=Q.NAMESPACE||Ne,Pn=Q.MATHML_TEXT_INTEGRATION_POINTS||Pn,Mn=Q.HTML_INTEGRATION_POINTS||Mn,cA=Q.CUSTOM_ELEMENT_HANDLING||{},Q.CUSTOM_ELEMENT_HANDLING&&Er(Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(cA.tagNameCheck=Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&Er(Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(cA.attributeNameCheck=Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&typeof Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(cA.allowCustomizedBuiltInElements=Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),MA&&(TA=!1),rt&&(Me=!0),Ke&&(vA=eA({},Ud),_A=[],Ke.html===!0&&(eA(vA,yd),eA(_A,Ed)),Ke.svg===!0&&(eA(vA,ma),eA(_A,Qa),eA(_A,Co)),Ke.svgFilters===!0&&(eA(vA,Ca),eA(_A,Qa),eA(_A,Co)),Ke.mathMl===!0&&(eA(vA,ba),eA(_A,kd),eA(_A,Co))),Q.ADD_TAGS&&(typeof Q.ADD_TAGS=="function"?pe.tagCheck=Q.ADD_TAGS:(vA===Ln&&(vA=ct(vA)),eA(vA,Q.ADD_TAGS,BA))),Q.ADD_ATTR&&(typeof Q.ADD_ATTR=="function"?pe.attributeCheck=Q.ADD_ATTR:(_A===Ct&&(_A=ct(_A)),eA(_A,Q.ADD_ATTR,BA))),Q.ADD_URI_SAFE_ATTR&&eA(Ur,Q.ADD_URI_SAFE_ATTR,BA),Q.FORBID_CONTENTS&&(oe===yr&&(oe=ct(oe)),eA(oe,Q.FORBID_CONTENTS,BA)),Q.ADD_FORBID_CONTENTS&&(oe===yr&&(oe=ct(oe)),eA(oe,Q.ADD_FORBID_CONTENTS,BA)),KA&&(vA["#text"]=!0),Qe&&eA(vA,["html","head","body"]),vA.table&&(eA(vA,["tbody"]),delete XA.tbody),Q.TRUSTED_TYPES_POLICY){if(typeof Q.TRUSTED_TYPES_POLICY.createHTML!="function")throw $r('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $r('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');U=Q.TRUSTED_TYPES_POLICY,x=U.createHTML("")}else U===void 0&&(U=Rx(g,r)),U!==null&&typeof x=="string"&&(x=U.createHTML(""));ue&&ue(Q),Lt=Q}},kr=eA({},[...ma,...Ca,...kx]),Is=eA({},[...ba,...Fx]),Di=function(Q){let T=y(Q);(!T||!T.tagName)&&(T={namespaceURI:Ht,tagName:"template"});const P=Io(Q.tagName),pA=Io(T.tagName);return sn[Q.namespaceURI]?Q.namespaceURI===On?T.namespaceURI===Ne?P==="svg":T.namespaceURI===Rn?P==="svg"&&(pA==="annotation-xml"||Pn[pA]):!!kr[P]:Q.namespaceURI===Rn?T.namespaceURI===Ne?P==="math":T.namespaceURI===On?P==="math"&&Mn[pA]:!!Is[P]:Q.namespaceURI===Ne?T.namespaceURI===On&&!Mn[pA]||T.namespaceURI===Rn&&!Pn[pA]?!1:!Is[P]&&(Hi[P]||!kr[P]):!!(Qt==="application/xhtml+xml"&&sn[Q.namespaceURI]):!1},Ue=function(Q){Kr(e.removed,{element:Q});try{y(Q).removeChild(Q)}catch(T){k(Q)}},Ee=function(Q,T){try{Kr(e.removed,{attribute:T.getAttributeNode(Q),from:T})}catch(P){Kr(e.removed,{attribute:null,from:T})}if(T.removeAttribute(Q),Q==="is")if(Me||rt)try{Ue(T)}catch(P){}else try{T.setAttribute(Q,"")}catch(P){}},Ts=function(Q){let T=null,P=null;if(bt)Q="<remove></remove>"+Q;else{const SA=wa(Q,/^[\r\n\t ]+/);P=SA&&SA[0]}Qt==="application/xhtml+xml"&&Ht===Ne&&(Q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Q+"</body></html>");const pA=U?U.createHTML(Q):Q;if(Ht===Ne)try{T=new f().parseFromString(pA,Qt)}catch(SA){}if(!T||!T.documentElement){T=D.createDocument(Ht,"template",null);try{T.documentElement.innerHTML=rn?x:pA}catch(SA){}}const WA=T.body||T.documentElement;return Q&&P&&WA.insertBefore(t.createTextNode(P),WA.childNodes[0]||null),Ht===Ne?K.call(T,Qe?"html":"body")[0]:Qe?T.documentElement:WA},Fr=function(Q){return H.call(Q.ownerDocument||Q,Q,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},vr=function(Q){return Q instanceof h&&(typeof Q.nodeName!="string"||typeof Q.textContent!="string"||typeof Q.removeChild!="function"||!(Q.attributes instanceof u)||typeof Q.removeAttribute!="function"||typeof Q.setAttribute!="function"||typeof Q.namespaceURI!="string"||typeof Q.insertBefore!="function"||typeof Q.hasChildNodes!="function")},Hs=function(Q){return typeof a=="function"&&Q instanceof a};function ze(V,Q,T){mo(V,P=>{P.call(e,Q,T,Lt)})}const Ls=function(Q){let T=null;if(ze(N.beforeSanitizeElements,Q,null),vr(Q))return Ue(Q),!0;const P=BA(Q.nodeName);if(ze(N.uponSanitizeElement,Q,{tagName:P,allowedTags:vA}),nt&&Q.hasChildNodes()&&!Hs(Q.firstElementChild)&&ie(/<[/\w!]/g,Q.innerHTML)&&ie(/<[/\w!]/g,Q.textContent)||Q.nodeType===Vr.progressingInstruction||nt&&Q.nodeType===Vr.comment&&ie(/<[/\w]/g,Q.data))return Ue(Q),!0;if(!(pe.tagCheck instanceof Function&&pe.tagCheck(P))&&(!vA[P]||XA[P])){if(!XA[P]&&Rs(P)&&(cA.tagNameCheck instanceof RegExp&&ie(cA.tagNameCheck,P)||cA.tagNameCheck instanceof Function&&cA.tagNameCheck(P)))return!1;if(KA&&!oe[P]){const pA=y(Q)||Q.parentNode,WA=v(Q)||Q.childNodes;if(WA&&pA){const SA=WA.length;for(let ee=SA-1;ee>=0;--ee){const Ve=b(WA[ee],!0);Ve.__removalCount=(Q.__removalCount||0)+1,pA.insertBefore(Ve,E(Q))}}}return Ue(Q),!0}return Q instanceof i&&!Di(Q)||(P==="noscript"||P==="noembed"||P==="noframes")&&ie(/<\/no(script|embed|frames)/i,Q.innerHTML)?(Ue(Q),!0):(MA&&Q.nodeType===Vr.text&&(T=Q.textContent,mo([tA,dA,FA],pA=>{T=Nr(T,pA," ")}),Q.textContent!==T&&(Kr(e.removed,{element:Q.cloneNode()}),Q.textContent=T)),ze(N.afterSanitizeElements,Q,null),!1)},Ds=function(Q,T,P){if(nn&&(T==="id"||T==="name")&&(P in t||P in Ss))return!1;if(!(TA&&!Pe[T]&&ie(ZA,T))){if(!(xA&&ie(se,T))){if(!(pe.attributeCheck instanceof Function&&pe.attributeCheck(T,Q))){if(!_A[T]||Pe[T]){if(!(Rs(Q)&&(cA.tagNameCheck instanceof RegExp&&ie(cA.tagNameCheck,Q)||cA.tagNameCheck instanceof Function&&cA.tagNameCheck(Q))&&(cA.attributeNameCheck instanceof RegExp&&ie(cA.attributeNameCheck,T)||cA.attributeNameCheck instanceof Function&&cA.attributeNameCheck(T,Q))||T==="is"&&cA.allowCustomizedBuiltInElements&&(cA.tagNameCheck instanceof RegExp&&ie(cA.tagNameCheck,P)||cA.tagNameCheck instanceof Function&&cA.tagNameCheck(P))))return!1}else if(!Ur[T]){if(!ie(Hn,Nr(P,An,""))){if(!((T==="src"||T==="xlink:href"||T==="href")&&Q!=="script"&&Qx(P,"data:")===0&&gA[Q])){if(!(en&&!ie(Oe,Nr(P,An,"")))){if(P)return!1}}}}}}}return!0},Rs=function(Q){return Q!=="annotation-xml"&&wa(Q,Qr)},_r=function(Q){ze(N.beforeSanitizeAttributes,Q,null);const{attributes:T}=Q;if(!T||vr(Q))return;const P={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_A,forceKeepAttr:void 0};let pA=T.length;for(;pA--;){const WA=T[pA],{name:SA,namespaceURI:ee,value:Ve}=WA,it=BA(SA),xr=Ve;let NA=SA==="value"?xr:yx(xr);if(P.attrName=it,P.attrValue=NA,P.keepAttr=!0,P.forceKeepAttr=void 0,ze(N.uponSanitizeAttribute,Q,P),NA=P.attrValue,Tt&&(it==="id"||it==="name")&&(Ee(SA,Q),NA=Dn+NA),nt&&ie(/((--!?|])>)|<\/(style|title|textarea)/i,NA)){Ee(SA,Q);continue}if(it==="attributename"&&wa(NA,"href")){Ee(SA,Q);continue}if(P.forceKeepAttr)continue;if(!P.keepAttr){Ee(SA,Q);continue}if(!tn&&ie(/\/>/i,NA)){Ee(SA,Q);continue}MA&&mo([tA,dA,FA],Ps=>{NA=Nr(NA,Ps," ")});const Os=BA(Q.nodeName);if(!Ds(Os,it,NA)){Ee(SA,Q);continue}if(U&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!ee)switch(g.getAttributeType(Os,it)){case"TrustedHTML":{NA=U.createHTML(NA);break}case"TrustedScriptURL":{NA=U.createScriptURL(NA);break}}if(NA!==xr)try{ee?Q.setAttributeNS(ee,SA,NA):Q.setAttribute(SA,NA),vr(Q)?Ue(Q):Qd(e.removed)}catch(Ps){Ee(SA,Q)}}ze(N.afterSanitizeAttributes,Q,null)},yt=function V(Q){let T=null;const P=Fr(Q);for(ze(N.beforeSanitizeShadowDOM,Q,null);T=P.nextNode();)ze(N.uponSanitizeShadowNode,T,null),Ls(T),_r(T),T.content instanceof s&&V(T.content);ze(N.afterSanitizeShadowDOM,Q,null)};return e.sanitize=function(V){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=null,P=null,pA=null,WA=null;if(rn=!V,rn&&(V="<!-->"),typeof V!="string"&&!Hs(V))if(typeof V.toString=="function"){if(V=V.toString(),typeof V!="string")throw $r("dirty is not a string, aborting")}else throw $r("toString is not a function");if(!e.isSupported)return V;if(ye||Kn(Q),e.removed=[],typeof V=="string"&&(ot=!1),ot){if(V.nodeName){const Ve=BA(V.nodeName);if(!vA[Ve]||XA[Ve])throw $r("root node is forbidden and cannot be sanitized in-place")}}else if(V instanceof a)T=Ts("<!---->"),P=T.ownerDocument.importNode(V,!0),P.nodeType===Vr.element&&P.nodeName==="BODY"||P.nodeName==="HTML"?T=P:T.appendChild(P);else{if(!Me&&!MA&&!Qe&&V.indexOf("<")===-1)return U&&st?U.createHTML(V):V;if(T=Ts(V),!T)return Me?null:st?x:""}T&&bt&&Ue(T.firstChild);const SA=Fr(ot?V:T);for(;pA=SA.nextNode();)Ls(pA),_r(pA),pA.content instanceof s&&yt(pA.content);if(ot)return V;if(Me){if(rt)for(WA=Z.call(T.ownerDocument);T.firstChild;)WA.appendChild(T.firstChild);else WA=T;return(_A.shadowroot||_A.shadowrootmode)&&(WA=X.call(n,WA,!0)),WA}let ee=Qe?T.outerHTML:T.innerHTML;return Qe&&vA["!doctype"]&&T.ownerDocument&&T.ownerDocument.doctype&&T.ownerDocument.doctype.name&&ie(pf,T.ownerDocument.doctype.name)&&(ee="<!DOCTYPE "+T.ownerDocument.doctype.name+`>
|
|
1915
|
+
`+ee),MA&&mo([tA,dA,FA],Ve=>{ee=Nr(ee,Ve," ")}),U&&st?U.createHTML(ee):ee},e.setConfig=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Kn(V),ye=!0},e.clearConfig=function(){Lt=null,ye=!1},e.isValidAttribute=function(V,Q,T){Lt||Kn({});const P=BA(V),pA=BA(Q);return Ds(P,pA,T)},e.addHook=function(V,Q){typeof Q=="function"&&Kr(N[V],Q)},e.removeHook=function(V,Q){if(Q!==void 0){const T=Cx(N[V],Q);return T===-1?void 0:bx(N[V],T,1)[0]}return Qd(N[V])},e.removeHooks=function(V){N[V]=[]},e.removeAllHooks=function(){N=vd()},e}var Ox=hf();function ff(A){const e=fA.parse(A,{gfm:!0,breaks:!0,async:!1});return Ox.sanitize(e)}function Px(A){return I(this,null,function*(){var s;try{(s=A.focus)==null||s.call(A)}catch(o){}A.scrollIntoView({block:"center",inline:"center",behavior:"instant"});let e=A.getBoundingClientRect();e.width===0&&e.height===0&&(yield Mx(),e=A.getBoundingClientRect());const t=e.left+e.width/2,n=e.top+e.height/2,r={bubbles:!0,cancelable:!0,clientX:t,clientY:n};typeof PointerEvent=="function"&&A.dispatchEvent(new PointerEvent("pointerdown",r)),A.dispatchEvent(new MouseEvent("mousedown",r)),typeof PointerEvent=="function"&&A.dispatchEvent(new PointerEvent("pointerup",r)),A.dispatchEvent(new MouseEvent("mouseup",r)),A.click()})}function Mx(){return new Promise(A=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>A()):setTimeout(A,16)})}function Kx(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var ya={exports:{}};/*!
|
|
1917
1916
|
* Pusher JavaScript Library v8.5.0
|
|
1918
1917
|
* https://pusher.com/
|
|
1919
1918
|
*
|
|
1920
1919
|
* Copyright 2020, Pusher
|
|
1921
1920
|
* Released under the MIT licence.
|
|
1922
|
-
*/var Ud;function Ox(){return Ud||(Ud=1,(function(A,e){(function(n,r){A.exports=r()})(self,()=>(()=>{var t={594(o,a){var i=this&&this.__extends||(function(){var v=function(F,y){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,R){_.__proto__=R}||function(_,R){for(var H in R)R.hasOwnProperty(H)&&(_[H]=R[H])},v(F,y)};return function(F,y){v(F,y);function _(){this.constructor=F}F.prototype=y===null?Object.create(y):(_.prototype=y.prototype,new _)}})();Object.defineProperty(a,"__esModule",{value:!0});var c=256,u=(function(){function v(F){F===void 0&&(F="="),this._paddingCharacter=F}return v.prototype.encodedLength=function(F){return this._paddingCharacter?(F+2)/3*4|0:(F*8+5)/6|0},v.prototype.encode=function(F){for(var y="",_=0;_<F.length-2;_+=3){var R=F[_]<<16|F[_+1]<<8|F[_+2];y+=this._encodeByte(R>>>18&63),y+=this._encodeByte(R>>>12&63),y+=this._encodeByte(R>>>6&63),y+=this._encodeByte(R>>>0&63)}var H=F.length-_;if(H>0){var R=F[_]<<16|(H===2?F[_+1]<<8:0);y+=this._encodeByte(R>>>18&63),y+=this._encodeByte(R>>>12&63),H===2?y+=this._encodeByte(R>>>6&63):y+=this._paddingCharacter||"",y+=this._paddingCharacter||""}return y},v.prototype.maxDecodedLength=function(F){return this._paddingCharacter?F/4*3|0:(F*6+7)/8|0},v.prototype.decodedLength=function(F){return this.maxDecodedLength(F.length-this._getPaddingLength(F))},v.prototype.decode=function(F){if(F.length===0)return new Uint8Array(0);for(var y=this._getPaddingLength(F),_=F.length-y,R=new Uint8Array(this.maxDecodedLength(_)),H=0,z=0,K=0,V=0,X=0,sA=0,cA=0;z<_-4;z+=4)V=this._decodeChar(F.charCodeAt(z+0)),X=this._decodeChar(F.charCodeAt(z+1)),sA=this._decodeChar(F.charCodeAt(z+2)),cA=this._decodeChar(F.charCodeAt(z+3)),R[H++]=V<<2|X>>>4,R[H++]=X<<4|sA>>>2,R[H++]=sA<<6|cA,K|=V&c,K|=X&c,K|=sA&c,K|=cA&c;if(z<_-1&&(V=this._decodeChar(F.charCodeAt(z)),X=this._decodeChar(F.charCodeAt(z+1)),R[H++]=V<<2|X>>>4,K|=V&c,K|=X&c),z<_-2&&(sA=this._decodeChar(F.charCodeAt(z+2)),R[H++]=X<<4|sA>>>2,K|=sA&c),z<_-3&&(cA=this._decodeChar(F.charCodeAt(z+3)),R[H++]=sA<<6|cA,K|=cA&c),K!==0)throw new Error("Base64Coder: incorrect characters for decoding");return R},v.prototype._encodeByte=function(F){var y=F;return y+=65,y+=25-F>>>8&6,y+=51-F>>>8&-75,y+=61-F>>>8&-15,y+=62-F>>>8&3,String.fromCharCode(y)},v.prototype._decodeChar=function(F){var y=c;return y+=(42-F&F-44)>>>8&-c+F-43+62,y+=(46-F&F-48)>>>8&-c+F-47+63,y+=(47-F&F-58)>>>8&-c+F-48+52,y+=(64-F&F-91)>>>8&-c+F-65+0,y+=(96-F&F-123)>>>8&-c+F-97+26,y},v.prototype._getPaddingLength=function(F){var y=0;if(this._paddingCharacter){for(var _=F.length-1;_>=0&&F[_]===this._paddingCharacter;_--)y++;if(F.length<4||y>2)throw new Error("Base64Coder: incorrect padding")}return y},v})();a.Coder=u;var h=new u;function f(v){return h.encode(v)}a.encode=f;function g(v){return h.decode(v)}a.decode=g;var m=(function(v){i(F,v);function F(){return v!==null&&v.apply(this,arguments)||this}return F.prototype._encodeByte=function(y){var _=y;return _+=65,_+=25-y>>>8&6,_+=51-y>>>8&-75,_+=61-y>>>8&-13,_+=62-y>>>8&49,String.fromCharCode(_)},F.prototype._decodeChar=function(y){var _=c;return _+=(44-y&y-46)>>>8&-c+y-45+62,_+=(94-y&y-96)>>>8&-c+y-95+63,_+=(47-y&y-58)>>>8&-c+y-48+52,_+=(64-y&y-91)>>>8&-c+y-65+0,_+=(96-y&y-123)>>>8&-c+y-97+26,_},F})(u);a.URLSafeCoder=m;var b=new m;function U(v){return b.encode(v)}a.encodeURLSafe=U;function E(v){return b.decode(v)}a.decodeURLSafe=E,a.encodedLength=function(v){return h.encodedLength(v)},a.maxDecodedLength=function(v){return h.maxDecodedLength(v)},a.decodedLength=function(v){return h.decodedLength(v)}},978(o,a){var i="utf8: invalid source encoding";function c(u){for(var h=[],f=0;f<u.length;f++){var g=u[f];if(g&128){var m=void 0;if(g<224){if(f>=u.length)throw new Error(i);var b=u[++f];if((b&192)!==128)throw new Error(i);g=(g&31)<<6|b&63,m=128}else if(g<240){if(f>=u.length-1)throw new Error(i);var b=u[++f],U=u[++f];if((b&192)!==128||(U&192)!==128)throw new Error(i);g=(g&15)<<12|(b&63)<<6|U&63,m=2048}else if(g<248){if(f>=u.length-2)throw new Error(i);var b=u[++f],U=u[++f],E=u[++f];if((b&192)!==128||(U&192)!==128||(E&192)!==128)throw new Error(i);g=(g&15)<<18|(b&63)<<12|(U&63)<<6|E&63,m=65536}else throw new Error(i);if(g<m||g>=55296&&g<=57343)throw new Error(i);if(g>=65536){if(g>1114111)throw new Error(i);g-=65536,h.push(String.fromCharCode(55296|g>>10)),g=56320|g&1023}}h.push(String.fromCharCode(g))}return h.join("")}a.D4=c},721(o,a,i){o.exports=i(207).default},207(o,a,i){i.d(a,{default:()=>Ns});class c{constructor(l,d){this.lastId=0,this.prefix=l,this.name=d}create(l){this.lastId++;var d=this.lastId,B=this.prefix+d,C=this.name+"["+d+"]",S=!1,D=function(){S||(l.apply(null,arguments),S=!0)};return this[d]=D,{number:d,id:B,name:C,callback:D}}remove(l){delete this[l.number]}}var u=new c("_pusher_script_","Pusher.ScriptReceivers"),h={VERSION:"8.5.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""};const f=h;class g{constructor(l){this.options=l,this.receivers=l.receivers||u,this.loading={}}load(l,d,B){var C=this;if(C.loading[l]&&C.loading[l].length>0)C.loading[l].push(B);else{C.loading[l]=[B];var S=q.createScriptRequest(C.getPath(l,d)),D=C.receivers.create(function(N){if(C.receivers.remove(D),C.loading[l]){var Y=C.loading[l];delete C.loading[l];for(var oA=function(OA){OA||S.cleanup()},uA=0;uA<Y.length;uA++)Y[uA](N,oA)}});S.send(D)}}getRoot(l){var d,B=q.getDocument().location.protocol;return l&&l.useTLS||B==="https:"?d=this.options.cdn_https:d=this.options.cdn_http,d.replace(/\/*$/,"")+"/"+this.options.version}getPath(l,d){return this.getRoot(d)+"/"+l+this.options.suffix+".js"}}var m=new c("_pusher_dependencies","Pusher.DependenciesReceivers"),b=new g({cdn_http:f.cdn_http,cdn_https:f.cdn_https,version:f.VERSION,suffix:f.dependency_suffix,receivers:m});const U={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}},v={buildLogSuffix:function(p){const l="See:",d=U.urls[p];if(!d)return"";let B;return d.fullUrl?B=d.fullUrl:d.path&&(B=U.baseUrl+d.path),B?`${l} ${B}`:""}};var F;(function(p){p.UserAuthentication="user-authentication",p.ChannelAuthorization="channel-authorization"})(F||(F={}));class y extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class R extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class H extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class z extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class K extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class V extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class X extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class sA extends Error{constructor(l,d){super(d),this.status=l,Object.setPrototypeOf(this,new.target.prototype)}}const kA=function(p,l,d,B,C){const S=q.createXHR();S.open("POST",d.endpoint,!0),S.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var D in d.headers)S.setRequestHeader(D,d.headers[D]);if(d.headersProvider!=null){let N=d.headersProvider();for(var D in N)S.setRequestHeader(D,N[D])}return S.onreadystatechange=function(){if(S.readyState===4)if(S.status===200){let N,Y=!1;try{N=JSON.parse(S.responseText),Y=!0}catch(oA){C(new sA(200,`JSON returned from ${B.toString()} endpoint was invalid, yet status code was 200. Data was: ${S.responseText}`),null)}Y&&C(null,N)}else{let N="";switch(B){case F.UserAuthentication:N=v.buildLogSuffix("authenticationEndpoint");break;case F.ChannelAuthorization:N=`Clients must be authorized to join private or presence channels. ${v.buildLogSuffix("authorizationEndpoint")}`;break}C(new sA(S.status,`Unable to retrieve auth string from ${B.toString()} endpoint - received status: ${S.status} from ${d.endpoint}. ${N}`),null)}},S.send(l),S};function de(p){return _A(br(p))}var re=String.fromCharCode,be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",In=function(p){var l=p.charCodeAt(0);return l<128?p:l<2048?re(192|l>>>6)+re(128|l&63):re(224|l>>>12&15)+re(128|l>>>6&63)+re(128|l&63)},br=function(p){return p.replace(/[^\x00-\x7F]/g,In)},Tn=function(p){var l=[0,2,1][p.length%3],d=p.charCodeAt(0)<<16|(p.length>1?p.charCodeAt(1):0)<<8|(p.length>2?p.charCodeAt(2):0),B=[be.charAt(d>>>18),be.charAt(d>>>12&63),l>=2?"=":be.charAt(d>>>6&63),l>=1?"=":be.charAt(d&63)];return B.join("")},_A=window.btoa||function(p){return p.replace(/[\s\S]{1,3}/g,Tn)};class Hn{constructor(l,d,B,C){this.clear=d,this.timer=l(()=>{this.timer&&(this.timer=C(this.timer))},B)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}const gA=Hn;function wt(p){window.clearTimeout(p)}function lA(p){window.clearInterval(p)}class MA extends gA{constructor(l,d){super(setTimeout,wt,l,function(B){return d(),null})}}class xt extends gA{constructor(l,d){super(setInterval,lA,l,function(B){return d(),B})}}var Oe={now(){return Date.now?Date.now():new Date().valueOf()},defer(p){return new MA(0,p)},method(p,...l){var d=Array.prototype.slice.call(arguments,1);return function(B){return B[p].apply(B,d.concat(arguments))}}};const xA=Oe;function RA(p,...l){for(var d=0;d<l.length;d++){var B=l[d];for(var C in B)B[C]&&B[C].constructor&&B[C].constructor===Object?p[C]=RA(p[C]||{},B[C]):p[C]=B[C]}return p}function qt(){for(var p=["Pusher"],l=0;l<arguments.length;l++)typeof arguments[l]=="string"?p.push(arguments[l]):p.push(se(arguments[l]));return p.join(" : ")}function St(p,l){var d=Array.prototype.indexOf;if(p===null)return-1;if(d&&p.indexOf===d)return p.indexOf(l);for(var B=0,C=p.length;B<C;B++)if(p[B]===l)return B;return-1}function KA(p,l){for(var d in p)Object.prototype.hasOwnProperty.call(p,d)&&l(p[d],d,p)}function et(p){var l=[];return KA(p,function(d,B){l.push(B)}),l}function Qe(p){var l=[];return KA(p,function(d){l.push(d)}),l}function ye(p,l,d){for(var B=0;B<p.length;B++)l.call(d||window,p[B],B,p)}function mt(p,l){for(var d=[],B=0;B<p.length;B++)d.push(l(p[B],B,p,d));return d}function Pe(p,l){var d={};return KA(p,function(B,C){d[C]=l(B)}),d}function tt(p,l){l=l||function(C){return!!C};for(var d=[],B=0;B<p.length;B++)l(p[B],B,p,d)&&d.push(p[B]);return d}function nt(p,l){var d={};return KA(p,function(B,C){(l&&l(B,C,p,d)||B)&&(d[C]=B)}),d}function An(p){var l=[];return KA(p,function(d,B){l.push([B,d])}),l}function NA(p,l){for(var d=0;d<p.length;d++)if(l(p[d],d,p))return!0;return!1}function Ln(p,l){for(var d=0;d<p.length;d++)if(!l(p[d],d,p))return!1;return!0}function Qr(p){return Pe(p,function(l){return typeof l=="object"&&(l=se(l)),encodeURIComponent(de(l.toString()))})}function en(p){var l=nt(p,function(B){return B!==void 0}),d=mt(An(Qr(l)),xA.method("join","=")).join("&");return d}function It(p){var l=[],d=[];return(function B(C,S){var D,N,Y;switch(typeof C){case"object":if(!C)return null;for(D=0;D<l.length;D+=1)if(l[D]===C)return{$ref:d[D]};if(l.push(C),d.push(S),Object.prototype.toString.apply(C)==="[object Array]")for(Y=[],D=0;D<C.length;D+=1)Y[D]=B(C[D],S+"["+D+"]");else{Y={};for(N in C)Object.prototype.hasOwnProperty.call(C,N)&&(Y[N]=B(C[N],S+"["+JSON.stringify(N)+"]"))}return Y;case"number":case"string":case"boolean":return C}})(p,"$")}function se(p){try{return JSON.stringify(p)}catch(l){return JSON.stringify(It(p))}}class yr{constructor(){this.globalLog=l=>{window.console&&window.console.log&&window.console.log(l)}}debug(...l){this.log(this.globalLog,l)}warn(...l){this.log(this.globalLogWarn,l)}error(...l){this.log(this.globalLogError,l)}globalLogWarn(l){window.console&&window.console.warn?window.console.warn(l):this.globalLog(l)}globalLogError(l){window.console&&window.console.error?window.console.error(l):this.globalLogWarn(l)}log(l,...d){var B=qt.apply(this,arguments);Ns.log?Ns.log(B):Ns.logToConsole&&l.bind(this)(B)}}const BA=new yr;var _s=function(p,l,d,B,C){(d.headers!==void 0||d.headersProvider!=null)&&BA.warn(`To send headers with the ${B.toString()} request, you must use AJAX, rather than JSONP.`);var S=p.nextAuthCallbackID.toString();p.nextAuthCallbackID++;var D=p.getDocument(),N=D.createElement("script");p.auth_callbacks[S]=function(uA){C(null,uA)};var Y="Pusher.auth_callbacks['"+S+"']";N.src=d.endpoint+"?callback="+encodeURIComponent(Y)+"&"+l;var oA=D.getElementsByTagName("head")[0]||D.documentElement;oA.insertBefore(N,oA.firstChild)};const Ur=_s;class xs{constructor(l){this.src=l}send(l){var d=this,B="Error loading "+d.src;d.script=document.createElement("script"),d.script.id=l.id,d.script.src=d.src,d.script.type="text/javascript",d.script.charset="UTF-8",d.script.addEventListener?(d.script.onerror=function(){l.callback(B)},d.script.onload=function(){l.callback(null)}):d.script.onreadystatechange=function(){(d.script.readyState==="loaded"||d.script.readyState==="complete")&&l.callback(null)},d.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(d.errorScript=document.createElement("script"),d.errorScript.id=l.id+"_error",d.errorScript.text=l.name+"('"+B+"');",d.script.async=d.errorScript.async=!1):d.script.async=!0;var C=document.getElementsByTagName("head")[0];C.insertBefore(d.script,C.firstChild),d.errorScript&&C.insertBefore(d.errorScript,d.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class Dn{constructor(l,d){this.url=l,this.data=d}send(l){if(!this.request){var d=en(this.data),B=this.url+"/"+l.number+"?"+d;this.request=q.createScriptRequest(B),this.request.send(l)}}cleanup(){this.request&&this.request.cleanup()}}var Rn=function(p,l){return function(d,B){var C="http"+(l?"s":"")+"://",S=C+(p.host||p.options.host)+p.options.path,D=q.createJSONPRequest(S,d),N=q.ScriptReceivers.create(function(Y,oA){u.remove(N),D.cleanup(),oA&&oA.host&&(p.host=oA.host),B&&B(Y,oA)});D.send(N)}},Me={name:"jsonp",getAgent:Rn};const Tt=Me;function tn(p,l,d){var B=p+(l.useTLS?"s":""),C=l.useTLS?l.hostTLS:l.hostNonTLS;return B+"://"+C+d}function nn(p,l){var d="/app/"+p,B="?protocol="+f.PROTOCOL+"&client=js&version="+f.VERSION+(l?"&"+l:"");return d+B}var Si={getInitial:function(p,l){var d=(l.httpPath||"")+nn(p,"flash=false");return tn("ws",l,d)}},On={getInitial:function(p,l){var d=(l.httpPath||"/pusher")+nn(p);return tn("http",l,d)}},Pn={getInitial:function(p,l){return tn("http",l,l.httpPath||"/pusher")},getPath:function(p,l){return nn(p)}};class Ii{constructor(){this._callbacks={}}get(l){return this._callbacks[Ct(l)]}add(l,d,B){var C=Ct(l);this._callbacks[C]=this._callbacks[C]||[],this._callbacks[C].push({fn:d,context:B})}remove(l,d,B){if(!l&&!d&&!B){this._callbacks={};return}var C=l?[Ct(l)]:et(this._callbacks);d||B?this.removeCallback(C,d,B):this.removeAllCallbacks(C)}removeCallback(l,d,B){ye(l,function(C){this._callbacks[C]=tt(this._callbacks[C]||[],function(S){return d&&d!==S.fn||B&&B!==S.context}),this._callbacks[C].length===0&&delete this._callbacks[C]},this)}removeAllCallbacks(l){ye(l,function(d){delete this._callbacks[d]},this)}}function Ct(p){return"_"+p}class Ke{constructor(l){this.callbacks=new Ii,this.global_callbacks=[],this.failThrough=l}bind(l,d,B){return this.callbacks.add(l,d,B),this}bind_global(l){return this.global_callbacks.push(l),this}unbind(l,d,B){return this.callbacks.remove(l,d,B),this}unbind_global(l){return l?(this.global_callbacks=tt(this.global_callbacks||[],d=>d!==l),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(l,d,B){for(var C=0;C<this.global_callbacks.length;C++)this.global_callbacks[C](l,d);var S=this.callbacks.get(l),D=[];if(B?D.push(d,B):d&&D.push(d),S&&S.length>0)for(var C=0;C<S.length;C++)S[C].fn.apply(S[C].context||window,D);else this.failThrough&&this.failThrough(l,d);return this}}class Ti extends Ke{constructor(l,d,B,C,S){super(),this.initialize=q.transportConnectionInitializer,this.hooks=l,this.name=d,this.priority=B,this.key=C,this.options=S,this.state="new",this.timeline=S.timeline,this.activityTimeout=S.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var l=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(l,this.options)}catch(d){return xA.defer(()=>{this.onError(d),this.changeState("closed")}),!1}return this.bindListeners(),BA.debug("Connecting",{transport:this.name,url:l}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(l){return this.state==="open"?(xA.defer(()=>{this.socket&&this.socket.send(l)}),!0):!1}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(l){this.emit("error",{type:"WebSocketError",error:l}),this.timeline.error(this.buildTimelineMessage({error:l.toString()}))}onClose(l){l?this.changeState("closed",{code:l.code,reason:l.reason,wasClean:l.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(l){this.emit("message",l)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=l=>{this.onError(l)},this.socket.onclose=l=>{this.onClose(l)},this.socket.onmessage=l=>{this.onMessage(l)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(l,d){this.state=l,this.timeline.info(this.buildTimelineMessage({state:l,params:d})),this.emit(l,d)}buildTimelineMessage(l){return RA({cid:this.id},l)}}class wA{constructor(l){this.hooks=l}isSupported(l){return this.hooks.isSupported(l)}createConnection(l,d,B,C){return new Ti(this.hooks,l,d,B,C)}}var Ht=new wA({urls:Si,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!q.getWebSocketAPI()},isSupported:function(){return!!q.getWebSocketAPI()},getSocket:function(p){return q.createWebSocket(p)}}),Ss={urls:On,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Er=RA({getSocket:function(p){return q.HTTPFactory.createStreamingSocket(p)}},Ss),Mn=RA({getSocket:function(p){return q.HTTPFactory.createPollingSocket(p)}},Ss),kr={isSupported:function(){return q.isXHRSupported()}},Is=new wA(RA({},Er,kr)),Hi=new wA(RA({},Mn,kr)),Ue={ws:Ht,xhr_streaming:Is,xhr_polling:Hi};const Ee=Ue;var Ts=new wA({file:"sockjs",urls:Pn,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(p,l){return new window.SockJS(p,null,{js_path:b.getPath("sockjs",{useTLS:l.useTLS}),ignore_null_origin:l.ignoreNullOrigin})},beforeOpen:function(p,l){p.send(JSON.stringify({path:l}))}}),Fr={isSupported:function(p){var l=q.isXDRSupported(p.useTLS);return l}},vr=new wA(RA({},Er,Fr)),Hs=new wA(RA({},Mn,Fr));Ee.xdr_streaming=vr,Ee.xdr_polling=Hs,Ee.sockjs=Ts;const Ne=Ee;class Ls extends Ke{constructor(){super();var l=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){l.emit("online")},!1),window.addEventListener("offline",function(){l.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var Ds=new Ls;class Rs{constructor(l,d,B){this.manager=l,this.transport=d,this.minPingDelay=B.minPingDelay,this.maxPingDelay=B.maxPingDelay,this.pingDelay=void 0}createConnection(l,d,B,C){C=RA({},C,{activityTimeout:this.pingDelay});var S=this.transport.createConnection(l,d,B,C),D=null,N=function(){S.unbind("open",N),S.bind("closed",Y),D=xA.now()},Y=oA=>{if(S.unbind("closed",Y),oA.code===1002||oA.code===1003)this.manager.reportDeath();else if(!oA.wasClean&&D){var uA=xA.now()-D;uA<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(uA/2,this.minPingDelay))}};return S.bind("open",N),S}isSupported(l){return this.manager.isAlive()&&this.transport.isSupported(l)}}const _r={decodeMessage:function(p){try{var l=JSON.parse(p.data),d=l.data;if(typeof d=="string")try{d=JSON.parse(l.data)}catch(C){}var B={event:l.event,channel:l.channel,data:d};return l.user_id&&(B.user_id=l.user_id),B}catch(C){throw{type:"MessageParseError",error:C,data:p.data}}},encodeMessage:function(p){return JSON.stringify(p)},processHandshake:function(p){var l=_r.decodeMessage(p);if(l.event==="pusher:connection_established"){if(!l.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:l.data.socket_id,activityTimeout:l.data.activity_timeout*1e3}}else{if(l.event==="pusher:error")return{action:this.getCloseAction(l.data),error:this.getCloseError(l.data)};throw"Invalid handshake"}},getCloseAction:function(p){return p.code<4e3?p.code>=1002&&p.code<=1004?"backoff":null:p.code===4e3?"tls_only":p.code<4100?"refused":p.code<4200?"backoff":p.code<4300?"retry":"refused"},getCloseError:function(p){return p.code!==1e3&&p.code!==1001?{type:"PusherError",data:{code:p.code,message:p.reason||p.message}}:null}},bt=_r;class G extends Ke{constructor(l,d){super(),this.id=l,this.transport=d,this.activityTimeout=d.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(l){return this.transport.send(l)}send_event(l,d,B){var C={event:l,data:d};return B&&(C.channel=B),BA.debug("Event sent",C),this.send(bt.encodeMessage(C))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var l={message:B=>{var C;try{C=bt.decodeMessage(B)}catch(S){this.emit("error",{type:"MessageParseError",error:S,data:B.data})}if(C!==void 0){switch(BA.debug("Event recd",C),C.event){case"pusher:error":this.emit("error",{type:"PusherError",data:C.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",C)}},activity:()=>{this.emit("activity")},error:B=>{this.emit("error",B)},closed:B=>{d(),B&&B.code&&this.handleCloseEvent(B),this.transport=null,this.emit("closed")}},d=()=>{KA(l,(B,C)=>{this.transport.unbind(C,B)})};KA(l,(B,C)=>{this.transport.bind(C,B)})}handleCloseEvent(l){var d=bt.getCloseAction(l),B=bt.getCloseError(l);B&&this.emit("error",B),d&&this.emit(d,{action:d,error:B})}}class Q{constructor(l,d){this.transport=l,this.callback=d,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=l=>{this.unbindListeners();var d;try{d=bt.processHandshake(l)}catch(B){this.finish("error",{error:B}),this.transport.close();return}d.action==="connected"?this.finish("connected",{connection:new G(d.id,this.transport),activityTimeout:d.activityTimeout}):(this.finish(d.action,{error:d.error}),this.transport.close())},this.onClosed=l=>{this.unbindListeners();var d=bt.getCloseAction(l)||"backoff",B=bt.getCloseError(l);this.finish(d,{error:B})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(l,d){this.callback(RA({transport:this.transport,action:l},d))}}class T{constructor(l,d){this.timeline=l,this.options=d||{}}send(l,d){this.timeline.isEmpty()||this.timeline.send(q.TimelineTransport.getAgent(this,l),d)}}class P extends Ke{constructor(l,d){super(function(B,C){BA.debug("No callbacks on "+l+" for "+B)}),this.name=l,this.pusher=d,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(l,d){return d(null,{auth:""})}trigger(l,d){if(l.indexOf("client-")!==0)throw new y("Event '"+l+"' does not start with 'client-'");if(!this.subscribed){var B=v.buildLogSuffix("triggeringClientEvents");BA.warn(`Client event triggered before channel 'subscription_succeeded' event . ${B}`)}return this.pusher.send_event(l,d,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(l){var d=l.event,B=l.data;if(d==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(l);else if(d==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(l);else if(d.indexOf("pusher_internal:")!==0){var C={};this.emit(d,B,C)}}handleSubscriptionSucceededEvent(l){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",l.data)}handleSubscriptionCountEvent(l){l.data.subscription_count&&(this.subscriptionCount=l.data.subscription_count),this.emit("pusher:subscription_count",l.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(l,d)=>{l?(this.subscriptionPending=!1,BA.error(l.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:l.message},l instanceof sA?{status:l.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:d.auth,channel_data:d.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class pA extends P{authorize(l,d){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:l},d)}}class WA{constructor(){this.reset()}get(l){return Object.prototype.hasOwnProperty.call(this.members,l)?{id:l,info:this.members[l]}:null}each(l){KA(this.members,(d,B)=>{l(this.get(B))})}setMyID(l){this.myID=l}onSubscription(l){this.members=l.presence.hash,this.count=l.presence.count,this.me=this.get(this.myID)}addMember(l){return this.get(l.user_id)===null&&this.count++,this.members[l.user_id]=l.user_info,this.get(l.user_id)}removeMember(l){var d=this.get(l.user_id);return d&&(delete this.members[l.user_id],this.count--),d}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var SA=function(p,l,d,B){function C(S){return S instanceof d?S:new d(function(D){D(S)})}return new(d||(d=Promise))(function(S,D){function N(uA){try{oA(B.next(uA))}catch(OA){D(OA)}}function Y(uA){try{oA(B.throw(uA))}catch(OA){D(OA)}}function oA(uA){uA.done?S(uA.value):C(uA.value).then(N,Y)}oA((B=B.apply(p,l||[])).next())})};class Ae extends pA{constructor(l,d){super(l,d),this.members=new WA}authorize(l,d){super.authorize(l,(B,C)=>SA(this,void 0,void 0,function*(){if(!B)if(C=C,C.channel_data!=null){var S=JSON.parse(C.channel_data);this.members.setMyID(S.user_id)}else if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else{let D=v.buildLogSuffix("authorizationEndpoint");BA.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${D}, or the user should be signed in.`),d("Invalid auth response");return}d(B,C)}))}handleEvent(l){var d=l.event;if(d.indexOf("pusher_internal:")===0)this.handleInternalEvent(l);else{var B=l.data,C={};l.user_id&&(C.user_id=l.user_id),this.emit(d,B,C)}}handleInternalEvent(l){var d=l.event,B=l.data;switch(d){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(l);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(l);break;case"pusher_internal:member_added":var C=this.members.addMember(B);this.emit("pusher:member_added",C);break;case"pusher_internal:member_removed":var S=this.members.removeMember(B);S&&this.emit("pusher:member_removed",S);break}}handleSubscriptionSucceededEvent(l){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(l.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var $e=i(978),rt=i(594);class xr extends pA{constructor(l,d,B){super(l,d),this.key=null,this.nacl=B}authorize(l,d){super.authorize(l,(B,C)=>{if(B){d(B,C);return}let S=C.shared_secret;if(!S){d(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=(0,rt.decode)(S),delete C.shared_secret,d(null,C)})}trigger(l,d){throw new K("Client events are not currently supported for encrypted channels")}handleEvent(l){var d=l.event,B=l.data;if(d.indexOf("pusher_internal:")===0||d.indexOf("pusher:")===0){super.handleEvent(l);return}this.handleEncryptedEvent(d,B)}handleEncryptedEvent(l,d){if(!this.key){BA.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!d.ciphertext||!d.nonce){BA.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+d);return}let B=(0,rt.decode)(d.ciphertext);if(B.length<this.nacl.secretbox.overheadLength){BA.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${B.length}`);return}let C=(0,rt.decode)(d.nonce);if(C.length<this.nacl.secretbox.nonceLength){BA.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${C.length}`);return}let S=this.nacl.secretbox.open(B,C,this.key);if(S===null){BA.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(D,N)=>{if(D){BA.error(`Failed to make a request to the authEndpoint: ${N}. Unable to fetch new key, so dropping encrypted event`);return}if(S=this.nacl.secretbox.open(B,C,this.key),S===null){BA.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(l,this.getDataToEmit(S))});return}this.emit(l,this.getDataToEmit(S))}getDataToEmit(l){let d=(0,$e.D4)(l);try{return JSON.parse(d)}catch(B){return d}}}class $A extends Ke{constructor(l,d){super(),this.state="initialized",this.connection=null,this.key=l,this.options=d,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var B=q.getNetwork();B.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),B.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}switchCluster(l){this.key=l,this.updateStrategy(),this.retryIn(0)}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(l){return this.connection?this.connection.send(l):!1}send_event(l,d,B){return this.connection?this.connection.send_event(l,d,B):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var l=(d,B)=>{d?this.runner=this.strategy.connect(0,l):B.action==="error"?(this.emit("error",{type:"HandshakeError",error:B.error}),this.timeline.error({handshakeError:B.error})):(this.abortConnecting(),this.handshakeCallbacks[B.action](B))};this.runner=this.strategy.connect(0,l)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var l=this.abandonConnection();l.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(l){this.timeline.info({action:"retry",delay:l}),l>0&&this.emit("connecting_in",Math.round(l/1e3)),this.retryTimer=new MA(l||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new MA(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new MA(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new MA(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(l){return RA({},l,{message:d=>{this.resetActivityCheck(),this.emit("message",d)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:d=>{this.emit("error",d)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(l){return RA({},l,{connected:d=>{this.activityTimeout=Math.min(this.options.activityTimeout,d.activityTimeout,d.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(d.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let l=d=>B=>{B.error&&this.emit("error",{type:"WebSocketError",error:B.error}),d(B)};return{tls_only:l(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:l(()=>{this.disconnect()}),backoff:l(()=>{this.retryIn(1e3)}),retry:l(()=>{this.retryIn(0)})}}setConnection(l){this.connection=l;for(var d in this.connectionCallbacks)this.connection.bind(d,this.connectionCallbacks[d]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var l in this.connectionCallbacks)this.connection.unbind(l,this.connectionCallbacks[l]);var d=this.connection;return this.connection=null,d}}updateState(l,d){var B=this.state;if(this.state=l,B!==l){var C=l;C==="connected"&&(C+=" with new socket ID "+d.socket_id),BA.debug("State changed",B+" -> "+C),this.timeline.info({state:l,params:d}),this.emit("state_change",{previous:B,current:l}),this.emit(l,d)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class Os{constructor(){this.channels={}}add(l,d){return this.channels[l]||(this.channels[l]=Ps(l,d)),this.channels[l]}all(){return Qe(this.channels)}find(l){return this.channels[l]}remove(l){var d=this.channels[l];return delete this.channels[l],d}disconnect(){KA(this.channels,function(l){l.disconnect()})}}function Ps(p,l){if(p.indexOf("private-encrypted-")===0){if(l.config.nacl)return Qt.createEncryptedChannel(p,l,l.config.nacl);let d="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",B=v.buildLogSuffix("encryptedChannelSupport");throw new K(`${d}. ${B}`)}else{if(p.indexOf("private-")===0)return Qt.createPrivateChannel(p,l);if(p.indexOf("presence-")===0)return Qt.createPresenceChannel(p,l);if(p.indexOf("#")===0)throw new _('Cannot create a channel with name "'+p+'".');return Qt.createChannel(p,l)}}var zf={createChannels(){return new Os},createConnectionManager(p,l){return new $A(p,l)},createChannel(p,l){return new P(p,l)},createPrivateChannel(p,l){return new pA(p,l)},createPresenceChannel(p,l){return new Ae(p,l)},createEncryptedChannel(p,l,d){return new xr(p,l,d)},createTimelineSender(p,l){return new T(p,l)},createHandshake(p,l){return new Q(p,l)},createAssistantToTheTransportManager(p,l,d){return new Rs(p,l,d)}};const Qt=zf;class Al{constructor(l){this.options=l||{},this.livesLeft=this.options.lives||1/0}getAssistant(l){return Qt.createAssistantToTheTransportManager(this,l,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class rn{constructor(l,d){this.strategies=l,this.loop=!!d.loop,this.failFast=!!d.failFast,this.timeout=d.timeout,this.timeoutLimit=d.timeoutLimit}isSupported(){return NA(this.strategies,xA.method("isSupported"))}connect(l,d){var B=this.strategies,C=0,S=this.timeout,D=null,N=(Y,oA)=>{oA?d(null,oA):(C=C+1,this.loop&&(C=C%B.length),C<B.length?(S&&(S=S*2,this.timeoutLimit&&(S=Math.min(S,this.timeoutLimit))),D=this.tryStrategy(B[C],l,{timeout:S,failFast:this.failFast},N)):d(!0))};return D=this.tryStrategy(B[C],l,{timeout:S,failFast:this.failFast},N),{abort:function(){D.abort()},forceMinPriority:function(Y){l=Y,D&&D.forceMinPriority(Y)}}}tryStrategy(l,d,B,C){var S=null,D=null;return B.timeout>0&&(S=new MA(B.timeout,function(){D.abort(),C(!0)})),D=l.connect(d,function(N,Y){N&&S&&S.isRunning()&&!B.failFast||(S&&S.ensureAborted(),C(N,Y))}),{abort:function(){S&&S.ensureAborted(),D.abort()},forceMinPriority:function(N){D.forceMinPriority(N)}}}}class Li{constructor(l){this.strategies=l}isSupported(){return NA(this.strategies,xA.method("isSupported"))}connect(l,d){return Vf(this.strategies,l,function(B,C){return function(S,D){if(C[B].error=S,S){Gf(C)&&d(!0);return}ye(C,function(N){N.forceMinPriority(D.transport.priority)}),d(null,D)}})}}function Vf(p,l,d){var B=mt(p,function(C,S,D,N){return C.connect(l,d(S,N))});return{abort:function(){ye(B,Zf)},forceMinPriority:function(C){ye(B,function(S){S.forceMinPriority(C)})}}}function Gf(p){return Ln(p,function(l){return!!l.error})}function Zf(p){!p.error&&!p.aborted&&(p.abort(),p.aborted=!0)}class Xf{constructor(l,d,B){this.strategy=l,this.transports=d,this.ttl=B.ttl||18e5,this.usingTLS=B.useTLS,this.timeline=B.timeline}isSupported(){return this.strategy.isSupported()}connect(l,d){var B=this.usingTLS,C=Wf(B),S=C&&C.cacheSkipCount?C.cacheSkipCount:0,D=[this.strategy];if(C&&C.timestamp+this.ttl>=xA.now()){var N=this.transports[C.transport];N&&(["ws","wss"].includes(C.transport)||S>3?(this.timeline.info({cached:!0,transport:C.transport,latency:C.latency}),D.push(new rn([N],{timeout:C.latency*2+1e3,failFast:!0}))):S++)}var Y=xA.now(),oA=D.pop().connect(l,function uA(OA,$s){OA?(el(B),D.length>0?(Y=xA.now(),oA=D.pop().connect(l,uA)):d(OA)):(Jf(B,$s.transport.name,xA.now()-Y,S),d(null,$s))});return{abort:function(){oA.abort()},forceMinPriority:function(uA){l=uA,oA&&oA.forceMinPriority(uA)}}}}function Di(p){return"pusherTransport"+(p?"TLS":"NonTLS")}function Wf(p){var l=q.getLocalStorage();if(l)try{var d=l[Di(p)];if(d)return JSON.parse(d)}catch(B){el(p)}return null}function Jf(p,l,d,B){var C=q.getLocalStorage();if(C)try{C[Di(p)]=se({timestamp:xA.now(),transport:l,latency:d,cacheSkipCount:B})}catch(S){}}function el(p){var l=q.getLocalStorage();if(l)try{delete l[Di(p)]}catch(d){}}class Ms{constructor(l,{delay:d}){this.strategy=l,this.options={delay:d}}isSupported(){return this.strategy.isSupported()}connect(l,d){var B=this.strategy,C,S=new MA(this.options.delay,function(){C=B.connect(l,d)});return{abort:function(){S.ensureAborted(),C&&C.abort()},forceMinPriority:function(D){l=D,C&&C.forceMinPriority(D)}}}}class Sr{constructor(l,d,B){this.test=l,this.trueBranch=d,this.falseBranch=B}isSupported(){var l=this.test()?this.trueBranch:this.falseBranch;return l.isSupported()}connect(l,d){var B=this.test()?this.trueBranch:this.falseBranch;return B.connect(l,d)}}class jf{constructor(l){this.strategy=l}isSupported(){return this.strategy.isSupported()}connect(l,d){var B=this.strategy.connect(l,function(C,S){S&&B.abort(),d(C,S)});return B}}function Ir(p){return function(){return p.isSupported()}}var Yf=function(p,l,d){var B={};function C(hl,Wg,Jg,jg,Yg){var fl=d(p,hl,Wg,Jg,jg,Yg);return B[hl]=fl,fl}var S=Object.assign({},l,{hostNonTLS:p.wsHost+":"+p.wsPort,hostTLS:p.wsHost+":"+p.wssPort,httpPath:p.wsPath}),D=Object.assign({},S,{useTLS:!0}),N=Object.assign({},l,{hostNonTLS:p.httpHost+":"+p.httpPort,hostTLS:p.httpHost+":"+p.httpsPort,httpPath:p.httpPath}),Y={loop:!0,timeout:15e3,timeoutLimit:6e4},oA=new Al({minPingDelay:1e4,maxPingDelay:p.activityTimeout}),uA=new Al({lives:2,minPingDelay:1e4,maxPingDelay:p.activityTimeout}),OA=C("ws","ws",3,S,oA),$s=C("wss","ws",3,D,oA),zg=C("sockjs","sockjs",1,N),al=C("xhr_streaming","xhr_streaming",1,N,uA),Vg=C("xdr_streaming","xdr_streaming",1,N,uA),cl=C("xhr_polling","xhr_polling",1,N),Gg=C("xdr_polling","xdr_polling",1,N),ll=new rn([OA],Y),Zg=new rn([$s],Y),Xg=new rn([zg],Y),ul=new rn([new Sr(Ir(al),al,Vg)],Y),dl=new rn([new Sr(Ir(cl),cl,Gg)],Y),pl=new rn([new Sr(Ir(ul),new Li([ul,new Ms(dl,{delay:4e3})]),dl)],Y),Pi=new Sr(Ir(pl),pl,Xg),Mi;return l.useTLS?Mi=new Li([ll,new Ms(Pi,{delay:2e3})]):Mi=new Li([ll,new Ms(Zg,{delay:2e3}),new Ms(Pi,{delay:5e3})]),new Xf(new jf(new Sr(Ir(OA),Mi,Pi)),B,{ttl:18e5,timeline:l.timeline,useTLS:l.useTLS})};const qf=Yf;function Ag(){var p=this;p.timeline.info(p.buildTimelineMessage({transport:p.name+(p.options.useTLS?"s":"")})),p.hooks.isInitialized()?p.changeState("initialized"):p.hooks.file?(p.changeState("initializing"),b.load(p.hooks.file,{useTLS:p.options.useTLS},function(l,d){p.hooks.isInitialized()?(p.changeState("initialized"),d(!0)):(l&&p.onError(l),p.onClose(),d(!1))})):p.onClose()}var eg={getRequest:function(p){var l=new window.XDomainRequest;return l.ontimeout=function(){p.emit("error",new R),p.close()},l.onerror=function(d){p.emit("error",d),p.close()},l.onprogress=function(){l.responseText&&l.responseText.length>0&&p.onChunk(200,l.responseText)},l.onload=function(){l.responseText&&l.responseText.length>0&&p.onChunk(200,l.responseText),p.emit("finished",200),p.close()},l},abortRequest:function(p){p.ontimeout=p.onerror=p.onprogress=p.onload=null,p.abort()}};const tg=eg,ng=256*1024;class rg extends Ke{constructor(l,d,B){super(),this.hooks=l,this.method=d,this.url=B}start(l){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},q.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(l)}close(){this.unloader&&(q.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(l,d){for(;;){var B=this.advanceBuffer(d);if(B)this.emit("chunk",{status:l,data:B});else break}this.isBufferTooLong(d)&&this.emit("buffer_too_long")}advanceBuffer(l){var d=l.slice(this.position),B=d.indexOf(`
|
|
1923
|
-
`);return B!==-1?(this.position+=B+1,d.slice(0,B)):null}isBufferTooLong(l){return this.position===l.length&&l.length>ng}}var Ri;(function(p){p[p.CONNECTING=0]="CONNECTING",p[p.OPEN=1]="OPEN",p[p.CLOSED=3]="CLOSED"})(Ri||(Ri={}));const sn=Ri;var sg=1;class og{constructor(l,d){this.hooks=l,this.session=nl(1e3)+"/"+lg(8),this.location=ig(d),this.readyState=sn.CONNECTING,this.openStream()}send(l){return this.sendRaw(JSON.stringify([l]))}ping(){this.hooks.sendHeartbeat(this)}close(l,d){this.onClose(l,d,!0)}sendRaw(l){if(this.readyState===sn.OPEN)try{return q.createSocketRequest("POST",tl(ag(this.location,this.session))).start(l),!0}catch(d){return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(l,d,B){this.closeStream(),this.readyState=sn.CLOSED,this.onclose&&this.onclose({code:l,reason:d,wasClean:B})}onChunk(l){if(l.status===200){this.readyState===sn.OPEN&&this.onActivity();var d,B=l.data.slice(0,1);switch(B){case"o":d=JSON.parse(l.data.slice(1)||"{}"),this.onOpen(d);break;case"a":d=JSON.parse(l.data.slice(1)||"[]");for(var C=0;C<d.length;C++)this.onEvent(d[C]);break;case"m":d=JSON.parse(l.data.slice(1)||"null"),this.onEvent(d);break;case"h":this.hooks.onHeartbeat(this);break;case"c":d=JSON.parse(l.data.slice(1)||"[]"),this.onClose(d[0],d[1],!0);break}}}onOpen(l){this.readyState===sn.CONNECTING?(l&&l.hostname&&(this.location.base=cg(this.location.base,l.hostname)),this.readyState=sn.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(l){this.readyState===sn.OPEN&&this.onmessage&&this.onmessage({data:l})}onActivity(){this.onactivity&&this.onactivity()}onError(l){this.onerror&&this.onerror(l)}openStream(){this.stream=q.createSocketRequest("POST",tl(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",l=>{this.onChunk(l)}),this.stream.bind("finished",l=>{this.hooks.onFinished(this,l)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(l){xA.defer(()=>{this.onError(l),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function ig(p){var l=/([^\?]*)\/*(\??.*)/.exec(p);return{base:l[1],queryString:l[2]}}function ag(p,l){return p.base+"/"+l+"/xhr_send"}function tl(p){var l=p.indexOf("?")===-1?"?":"&";return p+l+"t="+ +new Date+"&n="+sg++}function cg(p,l){var d=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(p);return d[1]+l+d[3]}function nl(p){return q.randomInt(p)}function lg(p){for(var l=[],d=0;d<p;d++)l.push(nl(32).toString(32));return l.join("")}const ug=og;var dg={getReceiveURL:function(p,l){return p.base+"/"+l+"/xhr_streaming"+p.queryString},onHeartbeat:function(p){p.sendRaw("[]")},sendHeartbeat:function(p){p.sendRaw("[]")},onFinished:function(p,l){p.onClose(1006,"Connection interrupted ("+l+")",!1)}};const pg=dg;var hg={getReceiveURL:function(p,l){return p.base+"/"+l+"/xhr"+p.queryString},onHeartbeat:function(){},sendHeartbeat:function(p){p.sendRaw("[]")},onFinished:function(p,l){l===200?p.reconnect():p.onClose(1006,"Connection interrupted ("+l+")",!1)}};const fg=hg;var gg={getRequest:function(p){var l=q.getXHRAPI(),d=new l;return d.onreadystatechange=d.onprogress=function(){switch(d.readyState){case 3:d.responseText&&d.responseText.length>0&&p.onChunk(d.status,d.responseText);break;case 4:d.responseText&&d.responseText.length>0&&p.onChunk(d.status,d.responseText),p.emit("finished",d.status),p.close();break}},d},abortRequest:function(p){p.onreadystatechange=null,p.abort()}};const Bg=gg;var wg={createStreamingSocket(p){return this.createSocket(pg,p)},createPollingSocket(p){return this.createSocket(fg,p)},createSocket(p,l){return new ug(p,l)},createXHR(p,l){return this.createRequest(Bg,p,l)},createRequest(p,l,d){return new rg(p,l,d)}};const rl=wg;rl.createXDR=function(p,l){return this.createRequest(tg,p,l)};var mg={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:u,DependenciesReceivers:m,getDefaultStrategy:qf,Transports:Ne,transportConnectionInitializer:Ag,HTTPFactory:rl,TimelineTransport:Tt,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(p){window.Pusher=p;var l=()=>{this.onDocumentBody(p.ready)};window.JSON?l():b.load("json2",{},l)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:kA,jsonp:Ur}},onDocumentBody(p){document.body?p():setTimeout(()=>{this.onDocumentBody(p)},0)},createJSONPRequest(p,l){return new Dn(p,l)},createScriptRequest(p){return new xs(p)},getLocalStorage(){try{return window.localStorage}catch(p){return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var p=this.getXHRAPI();return new p},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return Ds},createWebSocket(p){var l=this.getWebSocketAPI();return new l(p)},createSocketRequest(p,l){if(this.isXHRSupported())return this.HTTPFactory.createXHR(p,l);if(this.isXDRSupported(l.indexOf("https:")===0))return this.HTTPFactory.createXDR(p,l);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var p=this.getXHRAPI();return!!p&&new p().withCredentials!==void 0},isXDRSupported(p){var l=p?"https:":"http:",d=this.getProtocol();return!!window.XDomainRequest&&d===l},addUnloadListener(p){window.addEventListener!==void 0?window.addEventListener("unload",p,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",p)},removeUnloadListener(p){window.addEventListener!==void 0?window.removeEventListener("unload",p,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",p)},randomInt(p){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*p)}};const q=mg;var Oi;(function(p){p[p.ERROR=3]="ERROR",p[p.INFO=6]="INFO",p[p.DEBUG=7]="DEBUG"})(Oi||(Oi={}));const Ks=Oi;class Cg{constructor(l,d,B){this.key=l,this.session=d,this.events=[],this.options=B||{},this.sent=0,this.uniqueID=0}log(l,d){l<=this.options.level&&(this.events.push(RA({},d,{timestamp:xA.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(l){this.log(Ks.ERROR,l)}info(l){this.log(Ks.INFO,l)}debug(l){this.log(Ks.DEBUG,l)}isEmpty(){return this.events.length===0}send(l,d){var B=RA({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],l(B,(C,S)=>{C||this.sent++,d&&d(C,S)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class bg{constructor(l,d,B,C){this.name=l,this.priority=d,this.transport=B,this.options=C||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(l,d){if(this.isSupported()){if(this.priority<l)return sl(new H,d)}else return sl(new X,d);var B=!1,C=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),S=null,D=function(){C.unbind("initialized",D),C.connect()},N=function(){S=Qt.createHandshake(C,function(OA){B=!0,uA(),d(null,OA)})},Y=function(OA){uA(),d(OA)},oA=function(){uA();var OA;OA=se(C),d(new z(OA))},uA=function(){C.unbind("initialized",D),C.unbind("open",N),C.unbind("error",Y),C.unbind("closed",oA)};return C.bind("initialized",D),C.bind("open",N),C.bind("error",Y),C.bind("closed",oA),C.initialize(),{abort:()=>{B||(uA(),S?S.close():C.close())},forceMinPriority:OA=>{B||this.priority<OA&&(S?S.close():C.close())}}}}function sl(p,l){return xA.defer(function(){l(p)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:Qg}=q;var yg=function(p,l,d,B,C,S){var D=Qg[d];if(!D)throw new V(d);var N=(!p.enabledTransports||St(p.enabledTransports,l)!==-1)&&(!p.disabledTransports||St(p.disabledTransports,l)===-1),Y;return N?(C=Object.assign({ignoreNullOrigin:p.ignoreNullOrigin},C),Y=new bg(l,B,S?S.getAssistant(D):D,C)):Y=Ug,Y},Ug={isSupported:function(){return!1},connect:function(p,l){var d=xA.defer(function(){l(new X)});return{abort:function(){d.ensureAborted()},forceMinPriority:function(){}}}};function Eg(p){if(p==null)throw"You must pass an options object";if(p.cluster==null)throw"Options object must provide a cluster";"disableStats"in p&&BA.warn("The disableStats option is deprecated in favor of enableStats")}const kg=(p,l)=>{var d="socket_id="+encodeURIComponent(p.socketId);for(var B in l.params)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(l.params[B]);if(l.paramsProvider!=null){let C=l.paramsProvider();for(var B in C)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(C[B])}return d},Fg=p=>{if(typeof q.getAuthorizers()[p.transport]=="undefined")throw`'${p.transport}' is not a recognized auth transport`;return(l,d)=>{const B=kg(l,p);q.getAuthorizers()[p.transport](q,B,p,F.UserAuthentication,d)}},vg=(p,l)=>{var d="socket_id="+encodeURIComponent(p.socketId);d+="&channel_name="+encodeURIComponent(p.channelName);for(var B in l.params)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(l.params[B]);if(l.paramsProvider!=null){let C=l.paramsProvider();for(var B in C)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(C[B])}return d},_g=p=>{if(typeof q.getAuthorizers()[p.transport]=="undefined")throw`'${p.transport}' is not a recognized auth transport`;return(l,d)=>{const B=vg(l,p);q.getAuthorizers()[p.transport](q,B,p,F.ChannelAuthorization,d)}},xg=(p,l,d)=>{const B={authTransport:l.transport,authEndpoint:l.endpoint,auth:{params:l.params,headers:l.headers}};return(C,S)=>{const D=p.channel(C.channelName);d(D,B).authorize(C.socketId,S)}};function ol(p,l){let d={activityTimeout:p.activityTimeout||f.activityTimeout,cluster:p.cluster,httpPath:p.httpPath||f.httpPath,httpPort:p.httpPort||f.httpPort,httpsPort:p.httpsPort||f.httpsPort,pongTimeout:p.pongTimeout||f.pongTimeout,statsHost:p.statsHost||f.stats_host,unavailableTimeout:p.unavailableTimeout||f.unavailableTimeout,wsPath:p.wsPath||f.wsPath,wsPort:p.wsPort||f.wsPort,wssPort:p.wssPort||f.wssPort,enableStats:Lg(p),httpHost:Sg(p),useTLS:Hg(p),wsHost:Ig(p),userAuthenticator:Dg(p),channelAuthorizer:Og(p,l)};return"disabledTransports"in p&&(d.disabledTransports=p.disabledTransports),"enabledTransports"in p&&(d.enabledTransports=p.enabledTransports),"ignoreNullOrigin"in p&&(d.ignoreNullOrigin=p.ignoreNullOrigin),"timelineParams"in p&&(d.timelineParams=p.timelineParams),"nacl"in p&&(d.nacl=p.nacl),d}function Sg(p){return p.httpHost?p.httpHost:p.cluster?`sockjs-${p.cluster}.pusher.com`:f.httpHost}function Ig(p){return p.wsHost?p.wsHost:Tg(p.cluster)}function Tg(p){return`ws-${p}.pusher.com`}function Hg(p){return q.getProtocol()==="https:"?!0:p.forceTLS!==!1}function Lg(p){return"enableStats"in p?p.enableStats:"disableStats"in p?!p.disableStats:!1}const il=p=>"customHandler"in p&&p.customHandler!=null;function Dg(p){const l=Object.assign(Object.assign({},f.userAuthentication),p.userAuthentication);return il(l)?l.customHandler:Fg(l)}function Rg(p,l){let d;if("channelAuthorization"in p)d=Object.assign(Object.assign({},f.channelAuthorization),p.channelAuthorization);else if(d={transport:p.authTransport||f.authTransport,endpoint:p.authEndpoint||f.authEndpoint},"auth"in p&&("params"in p.auth&&(d.params=p.auth.params),"headers"in p.auth&&(d.headers=p.auth.headers)),"authorizer"in p)return{customHandler:xg(l,d,p.authorizer)};return d}function Og(p,l){const d=Rg(p,l);return il(d)?d.customHandler:_g(d)}class Pg extends Ke{constructor(l){super(function(d,B){BA.debug(`No callbacks on watchlist events for ${d}`)}),this.pusher=l,this.bindWatchlistInternalEvent()}handleEvent(l){l.data.events.forEach(d=>{this.emit(d.name,d)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",l=>{var d=l.event;d==="pusher_internal:watchlist_events"&&this.handleEvent(l)})}}function Mg(){let p,l;return{promise:new Promise((B,C)=>{p=B,l=C}),resolve:p,reject:l}}const Kg=Mg;class Ng extends Ke{constructor(l){super(function(d,B){BA.debug("No callbacks on user for "+d)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(d,B)=>{if(d){BA.warn(`Error during signin: ${d}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:B.auth,user_data:B.user_data})},this.pusher=l,this.pusher.connection.bind("state_change",({previous:d,current:B})=>{d!=="connected"&&B==="connected"&&this._signin(),d==="connected"&&B!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new Pg(l),this.pusher.connection.bind("message",d=>{var B=d.event;B==="pusher:signin_success"&&this._onSigninSuccess(d.data),this.serverToUserChannel&&this.serverToUserChannel.name===d.channel&&this.serverToUserChannel.handleEvent(d)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(l){try{this.user_data=JSON.parse(l.user_data)}catch(d){BA.error(`Failed parsing user data after signin: ${l.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){BA.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const l=d=>{d.subscriptionPending&&d.subscriptionCancelled?d.reinstateSubscription():!d.subscriptionPending&&this.pusher.connection.state==="connected"&&d.subscribe()};this.serverToUserChannel=new P(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((d,B)=>{d.indexOf("pusher_internal:")===0||d.indexOf("pusher:")===0||this.emit(d,B)}),l(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:l,resolve:d}=Kg();l.done=!1;const B=()=>{l.done=!0};l.then(B).catch(B),this.signinDonePromise=l,this._signinDoneResolve=d}}class JA{static ready(){JA.isReady=!0;for(var l=0,d=JA.instances.length;l<d;l++)JA.instances[l].connect()}static getClientFeatures(){return et(nt({ws:q.Transports.ws},function(l){return l.isSupported({})}))}constructor(l,d){$g(l),Eg(d),this.key=l,this.options=d,this.config=ol(this.options,this),this.channels=Qt.createChannels(),this.global_emitter=new Ke,this.sessionID=q.randomInt(1e9),this.timeline=new Cg(this.key,this.sessionID,{cluster:this.config.cluster,features:JA.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:Ks.INFO,version:f.VERSION}),this.config.enableStats&&(this.timelineSender=Qt.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+q.TimelineTransport.name}));var B=C=>q.getDefaultStrategy(this.config,C,yg);this.connection=Qt.createConnectionManager(this.key,{getStrategy:B,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",C=>{var S=C.event,D=S.indexOf("pusher_internal:")===0;if(C.channel){var N=this.channel(C.channel);N&&N.handleEvent(C)}D||this.global_emitter.emit(C.event,C.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",C=>{BA.warn(C)}),JA.instances.push(this),this.timeline.info({instances:JA.instances.length}),this.user=new Ng(this),JA.isReady&&this.connect()}switchCluster(l){const{appKey:d,cluster:B}=l;this.key=d,this.options=Object.assign(Object.assign({},this.options),{cluster:B}),this.config=ol(this.options,this),this.connection.switchCluster(this.key)}channel(l){return this.channels.find(l)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var l=this.connection.isUsingTLS(),d=this.timelineSender;this.timelineSenderTimer=new xt(6e4,function(){d.send(l)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(l,d,B){return this.global_emitter.bind(l,d,B),this}unbind(l,d,B){return this.global_emitter.unbind(l,d,B),this}bind_global(l){return this.global_emitter.bind_global(l),this}unbind_global(l){return this.global_emitter.unbind_global(l),this}unbind_all(l){return this.global_emitter.unbind_all(),this}subscribeAll(){var l;for(l in this.channels.channels)this.channels.channels.hasOwnProperty(l)&&this.subscribe(l)}subscribe(l){var d=this.channels.add(l,this);return d.subscriptionPending&&d.subscriptionCancelled?d.reinstateSubscription():!d.subscriptionPending&&this.connection.state==="connected"&&d.subscribe(),d}unsubscribe(l){var d=this.channels.find(l);d&&d.subscriptionPending?d.cancelSubscription():(d=this.channels.remove(l),d&&d.subscribed&&d.unsubscribe())}send_event(l,d,B){return this.connection.send_event(l,d,B)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}JA.instances=[],JA.isReady=!1,JA.logToConsole=!1,JA.Runtime=q,JA.ScriptReceivers=q.ScriptReceivers,JA.DependenciesReceivers=q.DependenciesReceivers,JA.auth_callbacks=q.auth_callbacks;const Ns=JA;function $g(p){if(p==null)throw"You must pass your app key when you instantiate Pusher."}q.setup(JA)}},n={};function r(o){var a=n[o];if(a!==void 0)return a.exports;var i=n[o]={exports:{}};return t[o].call(i.exports,i,i.exports,r),i.exports}r.d=(o,a)=>{for(var i in a)r.o(a,i)&&!r.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:a[i]})},r.o=(o,a)=>Object.prototype.hasOwnProperty.call(o,a);var s=r(721);return s})())})(Ca)),Ca.exports}var Px=Ox();const Mx=Rx(Px);let je=null,Wn=null;function Kx(A){return I(this,null,function*(){return Wn||(Wn=I(null,null,function*(){const e=A.backendUrl.replace(/\/+$/,""),t=yield hs(`${e}/api/settings`,{headers:{Authorization:`Bearer ${A.token}`}});if(!t.ok)throw new Error(`Failed to fetch settings: HTTP ${t.status}`);const n=yield t.json();je=new Mx(n.pusher.key,{cluster:n.pusher.cluster||"local",forceTLS:!0,wsHost:n.pusher.wsHost||void 0,wsPort:n.pusher.wssPort,wssPort:n.pusher.wssPort,enabledTransports:n.pusher.wsHost?["ws"]:void 0,channelAuthorization:{customHandler:({socketId:r,channelName:s},o)=>{hs(`${e}/api/pusher/auth`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${A.token}`},body:JSON.stringify({socket_id:r,channel_name:s})}).then(a=>a.json()).then(a=>o(null,a)).catch(a=>o(a instanceof Error?a:new Error(String(a)),null))}}})}),Wn.catch(()=>{Wn=null}),Wn)})}function Nx(A){if(!A||!je)return null;let e=!1;const t=({current:n})=>{n==="connected"&&e?(e=!1,A()):n!=="connected"&&(e=!0)};return je.connection.bind("state_change",t),()=>je==null?void 0:je.connection.unbind("state_change",t)}function $x(A,e,t){return I(this,null,function*(){if(yield Kx(A),!je)return()=>{};const n=je.subscribe(`private-task-${e}`);t.onStatusUpdate&&n.bind(Vs.TASK_STATUS_UPDATED,t.onStatusUpdate),t.onInteractionCreated&&n.bind(Vs.TASK_INTERACTION_CREATED,t.onInteractionCreated),t.onInteractionAnswered&&n.bind(Vs.TASK_INTERACTION_ANSWERED,t.onInteractionAnswered),t.onBrowserCommandCreated&&n.bind(Vs.TASK_BROWSER_COMMAND_CREATED,t.onBrowserCommandCreated);const r=Nx(t.onReconnect);return()=>{n.unbind_all(),je==null||je.unsubscribe(`private-task-${e}`),r==null||r()}})}function lf(A,e){const t=a=>I(null,null,function*(){if(w.currentTaskId!==A||!w.runnerEl||w.state.kind!=="idle"&&w.state.kind!=="connecting"||w.handledCommandIds.has(a.commandId))return;w.handledCommandIds.add(a.commandId);const i={id:a.commandId,taskId:a.taskId,action:a.action,selector:a.selector,value:a.value,description:a.description,status:"pending",createdAt:new Date().toISOString()};dn({kind:"executing",command:i,actionsRun:w.state.kind==="idle"?w.state.actionsRun:0}),yield Ed(i,e,A)}),n=a=>{if(!(w.currentTaskId!==A||!w.runnerEl)&&nS.has(a)){if(w.state.kind==="executing")dn({kind:"finishing",status:a,actionsRun:w.state.actionsRun});else if(w.state.kind==="connecting"||w.state.kind==="idle"){const i=w.state.kind==="idle"?w.state.actionsRun:0;dn({kind:"finished",status:a,actionsRun:i})}}},r=a=>{w.currentTaskId!==A||!w.runnerEl||(a.outputChunk&&Fd([a.outputChunk]),n(a.status))},s=()=>I(null,null,function*(){var a;if(!(w.currentTaskId!==A||!w.runnerEl))try{const i=yield Go(e,A);w.currentTaskId===A&&w.runnerEl&&(w.currentQuestion=(a=i[0])!=null?a:null,En())}catch(i){}}),o=()=>I(null,null,function*(){var a;try{const[i,c,u,h]=yield Promise.all([Fp(e,A),$Q(e,A),Go(e,A),KQ(e,A)]);if(w.currentTaskId!==A||!w.runnerEl)return;Fd(c),w.currentQuestion=(a=u[0])!=null?a:null,En(),n(i.status),h&&h.status==="pending"&&(w.state.kind==="idle"||w.state.kind==="connecting")&&!w.handledCommandIds.has(h.id)?(w.handledCommandIds.add(h.id),dn({kind:"executing",command:h,actionsRun:w.state.kind==="idle"?w.state.actionsRun:0}),yield Ed(h,e,A)):w.state.kind==="connecting"&&dn({kind:"idle",actionsRun:0})}catch(i){}});o(),$x(e,A,{onStatusUpdate:r,onInteractionCreated:s,onInteractionAnswered:s,onBrowserCommandCreated:t,onReconnect:()=>{o()}}).then(a=>{if(w.currentTaskId!==A||w.state.kind==="finished"){a();return}w.unsubscribeTaskChannel=a})}function So(){var e;w.cancelArmed=!1,w.cancelArmTimeout&&(clearTimeout(w.cancelArmTimeout),w.cancelArmTimeout=null),w.cancelDisarmDocListener&&(document.removeEventListener("click",w.cancelDisarmDocListener,!0),w.cancelDisarmDocListener=null);const A=(e=w.runnerEl)==null?void 0:e.querySelector("[data-ap-runner-cancel]");A&&(A.textContent="Cancel task")}function zx(A,e){return I(this,null,function*(){if(w.currentTaskId!==e||!w.runnerEl)return;const t=w.runnerEl.querySelector("[data-ap-runner-cancel]");t&&(t.disabled=!0);try{yield VQ(A,e)}catch(n){t&&(t.disabled=!1)}})}function uf(){if(!w.currentTaskId||!w.currentApiOpts||!w.currentBackendUrl||!w.currentCaptureTitle)return;const A=w.currentTaskId,e=w.currentApiOpts;Gh({taskId:A,backendUrl:w.currentBackendUrl,title:w.currentCaptureTitle}),w.timerHandle&&clearInterval(w.timerHandle),ri(),w.timerHandle=setInterval(ri,df);const t=w.state.kind==="finished"?w.state.actionsRun:0;w.handledCommandIds=new Set,w.state={kind:"idle",actionsRun:t},zc(),lf(A,e)}function Ed(A,e,t){return I(this,null,function*(){var o,a,i;let n="done",r;try{if(A.action==="getContext"){const c=A.selector?document.querySelector(A.selector):document.body;if(!c)throw new Error(`element not found (${A.selector})`);if(ml(c))throw new Error("Target element is in a sensitive or excluded region and cannot be automated");(o=w.highlightOverlay)==null||o.update(c),r=Xx(c)}else{if(!A.selector)throw new Error(`${A.action} command is missing a selector`);const c=document.querySelector(A.selector);if(!c)throw new Error(`element not found (${A.selector})`);if(ml(c))throw new Error("Target element is in a sensitive or excluded region and cannot be automated");if((a=w.highlightOverlay)==null||a.update(c),A.action==="click")yield Lx(c),r="Clicked";else{if(A.value===void 0)throw new Error("inputText command is missing a value");Wx(c,A.value),r="Entered text"}}}catch(c){n="error",r=c instanceof Error?c.message:"Unknown error executing command"}if(w.currentTaskId===t&&w.runnerEl&&Yx(n,A,r),yield Zx(e,t,A.id,n,r),w.currentTaskId!==t||!w.runnerEl)return;(i=w.highlightOverlay)==null||i.hide();const s=(w.state.kind==="executing"||w.state.kind==="finishing"?w.state.actionsRun:0)+1;w.state.kind==="finishing"?dn({kind:"finished",status:w.state.status,actionsRun:s}):w.state.kind==="executing"&&dn({kind:"idle",actionsRun:s})})}function Vx(A){return I(this,null,function*(){var n;if(!w.runnerEl||!w.currentQuestion||!w.currentTaskId||w.chatSubmitInFlight)return;const e=w.currentTaskId,t=w.currentApiOpts;if(t){w.chatSubmitInFlight=!0;try{const r={selectedOption:A};yield vp(t,e,w.currentQuestion.id,r),w.currentQuestion=null,En();const s=yield Go(t,e);w.currentTaskId===e&&w.runnerEl&&(w.currentQuestion=(n=s[0])!=null?n:null,En())}catch(r){const s=w.runnerEl.querySelector("[data-ap-runner-chat-error]");s&&(s.textContent="Failed to send your answer — try again.",s.style.display="block")}finally{w.chatSubmitInFlight=!1}}})}function Gx(A,e){return I(this,null,function*(){var o;if(!w.runnerEl||w.chatSubmitInFlight||w.state.kind==="finished"&&w.state.status==="failed")return;const t=w.runnerEl.querySelector("[data-ap-runner-chat-input]"),n=w.runnerEl.querySelector("[data-ap-runner-chat-error]"),r=w.runnerEl.querySelector("[data-ap-runner-chat-send]");if(!t||!n||!r)return;const s=t.value.trim();if(s){w.chatSubmitInFlight=!0,r.disabled=!0,n.style.display="none";try{if(w.currentQuestion){yield vp(A,e,w.currentQuestion.id,s),w.currentQuestion=null,En();try{const a=yield Go(A,e);w.currentTaskId===e&&w.runnerEl&&(w.currentQuestion=(o=a[0])!=null?o:null,En())}catch(a){}}else yield zQ(A,e,s),w.state.kind==="finished"&&uf();t.value=""}catch(a){n.textContent=a instanceof Error?a.message:"Failed to send — try again.",n.style.display="block"}finally{w.chatSubmitInFlight=!1,r.disabled=!1}}})}function Zx(A,e,t,n,r){return I(this,null,function*(){try{yield NQ(A,e,t,n,r)}catch(s){}})}function Xx(A){const e=A.cloneNode(!0);e.querySelectorAll("script, style, noscript").forEach(r=>r.remove()),Nd(e),fc(e);let t=e.outerHTML,n=!1;return t.length>vd&&(t=t.slice(0,vd),n=!0),`URL: ${location.href}
|
|
1921
|
+
*/var _d;function Nx(){return _d||(_d=1,(function(A,e){(function(n,r){A.exports=r()})(self,()=>(()=>{var t={594(o,a){var i=this&&this.__extends||(function(){var v=function(y,U){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,D){x.__proto__=D}||function(x,D){for(var H in D)D.hasOwnProperty(H)&&(x[H]=D[H])},v(y,U)};return function(y,U){v(y,U);function x(){this.constructor=y}y.prototype=U===null?Object.create(U):(x.prototype=U.prototype,new x)}})();Object.defineProperty(a,"__esModule",{value:!0});var c=256,u=(function(){function v(y){y===void 0&&(y="="),this._paddingCharacter=y}return v.prototype.encodedLength=function(y){return this._paddingCharacter?(y+2)/3*4|0:(y*8+5)/6|0},v.prototype.encode=function(y){for(var U="",x=0;x<y.length-2;x+=3){var D=y[x]<<16|y[x+1]<<8|y[x+2];U+=this._encodeByte(D>>>18&63),U+=this._encodeByte(D>>>12&63),U+=this._encodeByte(D>>>6&63),U+=this._encodeByte(D>>>0&63)}var H=y.length-x;if(H>0){var D=y[x]<<16|(H===2?y[x+1]<<8:0);U+=this._encodeByte(D>>>18&63),U+=this._encodeByte(D>>>12&63),H===2?U+=this._encodeByte(D>>>6&63):U+=this._paddingCharacter||"",U+=this._paddingCharacter||""}return U},v.prototype.maxDecodedLength=function(y){return this._paddingCharacter?y/4*3|0:(y*6+7)/8|0},v.prototype.decodedLength=function(y){return this.maxDecodedLength(y.length-this._getPaddingLength(y))},v.prototype.decode=function(y){if(y.length===0)return new Uint8Array(0);for(var U=this._getPaddingLength(y),x=y.length-U,D=new Uint8Array(this.maxDecodedLength(x)),H=0,Z=0,K=0,X=0,N=0,tA=0,dA=0;Z<x-4;Z+=4)X=this._decodeChar(y.charCodeAt(Z+0)),N=this._decodeChar(y.charCodeAt(Z+1)),tA=this._decodeChar(y.charCodeAt(Z+2)),dA=this._decodeChar(y.charCodeAt(Z+3)),D[H++]=X<<2|N>>>4,D[H++]=N<<4|tA>>>2,D[H++]=tA<<6|dA,K|=X&c,K|=N&c,K|=tA&c,K|=dA&c;if(Z<x-1&&(X=this._decodeChar(y.charCodeAt(Z)),N=this._decodeChar(y.charCodeAt(Z+1)),D[H++]=X<<2|N>>>4,K|=X&c,K|=N&c),Z<x-2&&(tA=this._decodeChar(y.charCodeAt(Z+2)),D[H++]=N<<4|tA>>>2,K|=tA&c),Z<x-3&&(dA=this._decodeChar(y.charCodeAt(Z+3)),D[H++]=tA<<6|dA,K|=dA&c),K!==0)throw new Error("Base64Coder: incorrect characters for decoding");return D},v.prototype._encodeByte=function(y){var U=y;return U+=65,U+=25-y>>>8&6,U+=51-y>>>8&-75,U+=61-y>>>8&-15,U+=62-y>>>8&3,String.fromCharCode(U)},v.prototype._decodeChar=function(y){var U=c;return U+=(42-y&y-44)>>>8&-c+y-43+62,U+=(46-y&y-48)>>>8&-c+y-47+63,U+=(47-y&y-58)>>>8&-c+y-48+52,U+=(64-y&y-91)>>>8&-c+y-65+0,U+=(96-y&y-123)>>>8&-c+y-97+26,U},v.prototype._getPaddingLength=function(y){var U=0;if(this._paddingCharacter){for(var x=y.length-1;x>=0&&y[x]===this._paddingCharacter;x--)U++;if(y.length<4||U>2)throw new Error("Base64Coder: incorrect padding")}return U},v})();a.Coder=u;var h=new u;function f(v){return h.encode(v)}a.encode=f;function g(v){return h.decode(v)}a.decode=g;var m=(function(v){i(y,v);function y(){return v!==null&&v.apply(this,arguments)||this}return y.prototype._encodeByte=function(U){var x=U;return x+=65,x+=25-U>>>8&6,x+=51-U>>>8&-75,x+=61-U>>>8&-13,x+=62-U>>>8&49,String.fromCharCode(x)},y.prototype._decodeChar=function(U){var x=c;return x+=(44-U&U-46)>>>8&-c+U-45+62,x+=(94-U&U-96)>>>8&-c+U-95+63,x+=(47-U&U-58)>>>8&-c+U-48+52,x+=(64-U&U-91)>>>8&-c+U-65+0,x+=(96-U&U-123)>>>8&-c+U-97+26,x},y})(u);a.URLSafeCoder=m;var b=new m;function k(v){return b.encode(v)}a.encodeURLSafe=k;function E(v){return b.decode(v)}a.decodeURLSafe=E,a.encodedLength=function(v){return h.encodedLength(v)},a.maxDecodedLength=function(v){return h.maxDecodedLength(v)},a.decodedLength=function(v){return h.decodedLength(v)}},978(o,a){var i="utf8: invalid source encoding";function c(u){for(var h=[],f=0;f<u.length;f++){var g=u[f];if(g&128){var m=void 0;if(g<224){if(f>=u.length)throw new Error(i);var b=u[++f];if((b&192)!==128)throw new Error(i);g=(g&31)<<6|b&63,m=128}else if(g<240){if(f>=u.length-1)throw new Error(i);var b=u[++f],k=u[++f];if((b&192)!==128||(k&192)!==128)throw new Error(i);g=(g&15)<<12|(b&63)<<6|k&63,m=2048}else if(g<248){if(f>=u.length-2)throw new Error(i);var b=u[++f],k=u[++f],E=u[++f];if((b&192)!==128||(k&192)!==128||(E&192)!==128)throw new Error(i);g=(g&15)<<18|(b&63)<<12|(k&63)<<6|E&63,m=65536}else throw new Error(i);if(g<m||g>=55296&&g<=57343)throw new Error(i);if(g>=65536){if(g>1114111)throw new Error(i);g-=65536,h.push(String.fromCharCode(55296|g>>10)),g=56320|g&1023}}h.push(String.fromCharCode(g))}return h.join("")}a.D4=c},721(o,a,i){o.exports=i(207).default},207(o,a,i){i.d(a,{default:()=>Ns});class c{constructor(l,d){this.lastId=0,this.prefix=l,this.name=d}create(l){this.lastId++;var d=this.lastId,B=this.prefix+d,C=this.name+"["+d+"]",S=!1,R=function(){S||(l.apply(null,arguments),S=!0)};return this[d]=R,{number:d,id:B,name:C,callback:R}}remove(l){delete this[l.number]}}var u=new c("_pusher_script_","Pusher.ScriptReceivers"),h={VERSION:"8.5.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""};const f=h;class g{constructor(l){this.options=l,this.receivers=l.receivers||u,this.loading={}}load(l,d,B){var C=this;if(C.loading[l]&&C.loading[l].length>0)C.loading[l].push(B);else{C.loading[l]=[B];var S=q.createScriptRequest(C.getPath(l,d)),R=C.receivers.create(function($){if(C.receivers.remove(R),C.loading[l]){var Y=C.loading[l];delete C.loading[l];for(var oA=function(OA){OA||S.cleanup()},lA=0;lA<Y.length;lA++)Y[lA]($,oA)}});S.send(R)}}getRoot(l){var d,B=q.getDocument().location.protocol;return l&&l.useTLS||B==="https:"?d=this.options.cdn_https:d=this.options.cdn_http,d.replace(/\/*$/,"")+"/"+this.options.version}getPath(l,d){return this.getRoot(d)+"/"+l+this.options.suffix+".js"}}var m=new c("_pusher_dependencies","Pusher.DependenciesReceivers"),b=new g({cdn_http:f.cdn_http,cdn_https:f.cdn_https,version:f.VERSION,suffix:f.dependency_suffix,receivers:m});const k={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}},v={buildLogSuffix:function(p){const l="See:",d=k.urls[p];if(!d)return"";let B;return d.fullUrl?B=d.fullUrl:d.path&&(B=k.baseUrl+d.path),B?`${l} ${B}`:""}};var y;(function(p){p.UserAuthentication="user-authentication",p.ChannelAuthorization="channel-authorization"})(y||(y={}));class U extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class x extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class D extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class H extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class Z extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class K extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class X extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class N extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class tA extends Error{constructor(l,d){super(d),this.status=l,Object.setPrototypeOf(this,new.target.prototype)}}const FA=function(p,l,d,B,C){const S=q.createXHR();S.open("POST",d.endpoint,!0),S.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var R in d.headers)S.setRequestHeader(R,d.headers[R]);if(d.headersProvider!=null){let $=d.headersProvider();for(var R in $)S.setRequestHeader(R,$[R])}return S.onreadystatechange=function(){if(S.readyState===4)if(S.status===200){let $,Y=!1;try{$=JSON.parse(S.responseText),Y=!0}catch(oA){C(new tA(200,`JSON returned from ${B.toString()} endpoint was invalid, yet status code was 200. Data was: ${S.responseText}`),null)}Y&&C(null,$)}else{let $="";switch(B){case y.UserAuthentication:$=v.buildLogSuffix("authenticationEndpoint");break;case y.ChannelAuthorization:$=`Clients must be authorized to join private or presence channels. ${v.buildLogSuffix("authorizationEndpoint")}`;break}C(new tA(S.status,`Unable to retrieve auth string from ${B.toString()} endpoint - received status: ${S.status} from ${d.endpoint}. ${$}`),null)}},S.send(l),S};function ZA(p){return vA(Qr(p))}var se=String.fromCharCode,Oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",An=function(p){var l=p.charCodeAt(0);return l<128?p:l<2048?se(192|l>>>6)+se(128|l&63):se(224|l>>>12&15)+se(128|l>>>6&63)+se(128|l&63)},Qr=function(p){return p.replace(/[^\x00-\x7F]/g,An)},Hn=function(p){var l=[0,2,1][p.length%3],d=p.charCodeAt(0)<<16|(p.length>1?p.charCodeAt(1):0)<<8|(p.length>2?p.charCodeAt(2):0),B=[Oe.charAt(d>>>18),Oe.charAt(d>>>12&63),l>=2?"=":Oe.charAt(d>>>6&63),l>=1?"=":Oe.charAt(d&63)];return B.join("")},vA=window.btoa||function(p){return p.replace(/[\s\S]{1,3}/g,Hn)};class Ln{constructor(l,d,B,C){this.clear=d,this.timer=l(()=>{this.timer&&(this.timer=C(this.timer))},B)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}const _A=Ln;function Ct(p){window.clearTimeout(p)}function cA(p){window.clearInterval(p)}class XA extends _A{constructor(l,d){super(setTimeout,Ct,l,function(B){return d(),null})}}class Pe extends _A{constructor(l,d){super(setInterval,cA,l,function(B){return d(),B})}}var pe={now(){return Date.now?Date.now():new Date().valueOf()},defer(p){return new XA(0,p)},method(p,...l){var d=Array.prototype.slice.call(arguments,1);return function(B){return B[p].apply(B,d.concat(arguments))}}};const xA=pe;function TA(p,...l){for(var d=0;d<l.length;d++){var B=l[d];for(var C in B)B[C]&&B[C].constructor&&B[C].constructor===Object?p[C]=TA(p[C]||{},B[C]):p[C]=B[C]}return p}function en(){for(var p=["Pusher"],l=0;l<arguments.length;l++)typeof arguments[l]=="string"?p.push(arguments[l]):p.push(oe(arguments[l]));return p.join(" : ")}function tn(p,l){var d=Array.prototype.indexOf;if(p===null)return-1;if(d&&p.indexOf===d)return p.indexOf(l);for(var B=0,C=p.length;B<C;B++)if(p[B]===l)return B;return-1}function MA(p,l){for(var d in p)Object.prototype.hasOwnProperty.call(p,d)&&l(p[d],d,p)}function nt(p){var l=[];return MA(p,function(d,B){l.push(B)}),l}function Qe(p){var l=[];return MA(p,function(d){l.push(d)}),l}function ye(p,l,d){for(var B=0;B<p.length;B++)l.call(d||window,p[B],B,p)}function bt(p,l){for(var d=[],B=0;B<p.length;B++)d.push(l(p[B],B,p,d));return d}function Me(p,l){var d={};return MA(p,function(B,C){d[C]=l(B)}),d}function rt(p,l){l=l||function(C){return!!C};for(var d=[],B=0;B<p.length;B++)l(p[B],B,p,d)&&d.push(p[B]);return d}function st(p,l){var d={};return MA(p,function(B,C){(l&&l(B,C,p,d)||B)&&(d[C]=B)}),d}function nn(p){var l=[];return MA(p,function(d,B){l.push([B,d])}),l}function Tt(p,l){for(var d=0;d<p.length;d++)if(l(p[d],d,p))return!0;return!1}function Dn(p,l){for(var d=0;d<p.length;d++)if(!l(p[d],d,p))return!1;return!0}function KA(p){return Me(p,function(l){return typeof l=="object"&&(l=oe(l)),encodeURIComponent(ZA(l.toString()))})}function ot(p){var l=st(p,function(B){return B!==void 0}),d=bt(nn(KA(l)),xA.method("join","=")).join("&");return d}function Ke(p){var l=[],d=[];return(function B(C,S){var R,$,Y;switch(typeof C){case"object":if(!C)return null;for(R=0;R<l.length;R+=1)if(l[R]===C)return{$ref:d[R]};if(l.push(C),d.push(S),Object.prototype.toString.apply(C)==="[object Array]")for(Y=[],R=0;R<C.length;R+=1)Y[R]=B(C[R],S+"["+R+"]");else{Y={};for($ in C)Object.prototype.hasOwnProperty.call(C,$)&&(Y[$]=B(C[$],S+"["+JSON.stringify($)+"]"))}return Y;case"number":case"string":case"boolean":return C}})(p,"$")}function oe(p){try{return JSON.stringify(p)}catch(l){return JSON.stringify(Ke(p))}}class yr{constructor(){this.globalLog=l=>{window.console&&window.console.log&&window.console.log(l)}}debug(...l){this.log(this.globalLog,l)}warn(...l){this.log(this.globalLogWarn,l)}error(...l){this.log(this.globalLogError,l)}globalLogWarn(l){window.console&&window.console.warn?window.console.warn(l):this.globalLog(l)}globalLogError(l){window.console&&window.console.error?window.console.error(l):this.globalLogWarn(l)}log(l,...d){var B=en.apply(this,arguments);Ns.log?Ns.log(B):Ns.logToConsole&&l.bind(this)(B)}}const gA=new yr;var _s=function(p,l,d,B,C){(d.headers!==void 0||d.headersProvider!=null)&&gA.warn(`To send headers with the ${B.toString()} request, you must use AJAX, rather than JSONP.`);var S=p.nextAuthCallbackID.toString();p.nextAuthCallbackID++;var R=p.getDocument(),$=R.createElement("script");p.auth_callbacks[S]=function(lA){C(null,lA)};var Y="Pusher.auth_callbacks['"+S+"']";$.src=d.endpoint+"?callback="+encodeURIComponent(Y)+"&"+l;var oA=R.getElementsByTagName("head")[0]||R.documentElement;oA.insertBefore($,oA.firstChild)};const Ur=_s;class xs{constructor(l){this.src=l}send(l){var d=this,B="Error loading "+d.src;d.script=document.createElement("script"),d.script.id=l.id,d.script.src=d.src,d.script.type="text/javascript",d.script.charset="UTF-8",d.script.addEventListener?(d.script.onerror=function(){l.callback(B)},d.script.onload=function(){l.callback(null)}):d.script.onreadystatechange=function(){(d.script.readyState==="loaded"||d.script.readyState==="complete")&&l.callback(null)},d.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(d.errorScript=document.createElement("script"),d.errorScript.id=l.id+"_error",d.errorScript.text=l.name+"('"+B+"');",d.script.async=d.errorScript.async=!1):d.script.async=!0;var C=document.getElementsByTagName("head")[0];C.insertBefore(d.script,C.firstChild),d.errorScript&&C.insertBefore(d.errorScript,d.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class Rn{constructor(l,d){this.url=l,this.data=d}send(l){if(!this.request){var d=ot(this.data),B=this.url+"/"+l.number+"?"+d;this.request=q.createScriptRequest(B),this.request.send(l)}}cleanup(){this.request&&this.request.cleanup()}}var On=function(p,l){return function(d,B){var C="http"+(l?"s":"")+"://",S=C+(p.host||p.options.host)+p.options.path,R=q.createJSONPRequest(S,d),$=q.ScriptReceivers.create(function(Y,oA){u.remove($),R.cleanup(),oA&&oA.host&&(p.host=oA.host),B&&B(Y,oA)});R.send($)}},Ne={name:"jsonp",getAgent:On};const Ht=Ne;function rn(p,l,d){var B=p+(l.useTLS?"s":""),C=l.useTLS?l.hostTLS:l.hostNonTLS;return B+"://"+C+d}function sn(p,l){var d="/app/"+p,B="?protocol="+f.PROTOCOL+"&client=js&version="+f.VERSION+(l?"&"+l:"");return d+B}var Ti={getInitial:function(p,l){var d=(l.httpPath||"")+sn(p,"flash=false");return rn("ws",l,d)}},Pn={getInitial:function(p,l){var d=(l.httpPath||"/pusher")+sn(p);return rn("http",l,d)}},Mn={getInitial:function(p,l){return rn("http",l,l.httpPath||"/pusher")},getPath:function(p,l){return sn(p)}};class Hi{constructor(){this._callbacks={}}get(l){return this._callbacks[Qt(l)]}add(l,d,B){var C=Qt(l);this._callbacks[C]=this._callbacks[C]||[],this._callbacks[C].push({fn:d,context:B})}remove(l,d,B){if(!l&&!d&&!B){this._callbacks={};return}var C=l?[Qt(l)]:nt(this._callbacks);d||B?this.removeCallback(C,d,B):this.removeAllCallbacks(C)}removeCallback(l,d,B){ye(l,function(C){this._callbacks[C]=rt(this._callbacks[C]||[],function(S){return d&&d!==S.fn||B&&B!==S.context}),this._callbacks[C].length===0&&delete this._callbacks[C]},this)}removeAllCallbacks(l){ye(l,function(d){delete this._callbacks[d]},this)}}function Qt(p){return"_"+p}class $e{constructor(l){this.callbacks=new Hi,this.global_callbacks=[],this.failThrough=l}bind(l,d,B){return this.callbacks.add(l,d,B),this}bind_global(l){return this.global_callbacks.push(l),this}unbind(l,d,B){return this.callbacks.remove(l,d,B),this}unbind_global(l){return l?(this.global_callbacks=rt(this.global_callbacks||[],d=>d!==l),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(l,d,B){for(var C=0;C<this.global_callbacks.length;C++)this.global_callbacks[C](l,d);var S=this.callbacks.get(l),R=[];if(B?R.push(d,B):d&&R.push(d),S&&S.length>0)for(var C=0;C<S.length;C++)S[C].fn.apply(S[C].context||window,R);else this.failThrough&&this.failThrough(l,d);return this}}class Li extends $e{constructor(l,d,B,C,S){super(),this.initialize=q.transportConnectionInitializer,this.hooks=l,this.name=d,this.priority=B,this.key=C,this.options=S,this.state="new",this.timeline=S.timeline,this.activityTimeout=S.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var l=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(l,this.options)}catch(d){return xA.defer(()=>{this.onError(d),this.changeState("closed")}),!1}return this.bindListeners(),gA.debug("Connecting",{transport:this.name,url:l}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(l){return this.state==="open"?(xA.defer(()=>{this.socket&&this.socket.send(l)}),!0):!1}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(l){this.emit("error",{type:"WebSocketError",error:l}),this.timeline.error(this.buildTimelineMessage({error:l.toString()}))}onClose(l){l?this.changeState("closed",{code:l.code,reason:l.reason,wasClean:l.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(l){this.emit("message",l)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=l=>{this.onError(l)},this.socket.onclose=l=>{this.onClose(l)},this.socket.onmessage=l=>{this.onMessage(l)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(l,d){this.state=l,this.timeline.info(this.buildTimelineMessage({state:l,params:d})),this.emit(l,d)}buildTimelineMessage(l){return TA({cid:this.id},l)}}class BA{constructor(l){this.hooks=l}isSupported(l){return this.hooks.isSupported(l)}createConnection(l,d,B,C){return new Li(this.hooks,l,d,B,C)}}var Lt=new BA({urls:Ti,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!q.getWebSocketAPI()},isSupported:function(){return!!q.getWebSocketAPI()},getSocket:function(p){return q.createWebSocket(p)}}),Ss={urls:Pn,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Er=TA({getSocket:function(p){return q.HTTPFactory.createStreamingSocket(p)}},Ss),Kn=TA({getSocket:function(p){return q.HTTPFactory.createPollingSocket(p)}},Ss),kr={isSupported:function(){return q.isXHRSupported()}},Is=new BA(TA({},Er,kr)),Di=new BA(TA({},Kn,kr)),Ue={ws:Lt,xhr_streaming:Is,xhr_polling:Di};const Ee=Ue;var Ts=new BA({file:"sockjs",urls:Mn,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(p,l){return new window.SockJS(p,null,{js_path:b.getPath("sockjs",{useTLS:l.useTLS}),ignore_null_origin:l.ignoreNullOrigin})},beforeOpen:function(p,l){p.send(JSON.stringify({path:l}))}}),Fr={isSupported:function(p){var l=q.isXDRSupported(p.useTLS);return l}},vr=new BA(TA({},Er,Fr)),Hs=new BA(TA({},Kn,Fr));Ee.xdr_streaming=vr,Ee.xdr_polling=Hs,Ee.sockjs=Ts;const ze=Ee;class Ls extends $e{constructor(){super();var l=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){l.emit("online")},!1),window.addEventListener("offline",function(){l.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var Ds=new Ls;class Rs{constructor(l,d,B){this.manager=l,this.transport=d,this.minPingDelay=B.minPingDelay,this.maxPingDelay=B.maxPingDelay,this.pingDelay=void 0}createConnection(l,d,B,C){C=TA({},C,{activityTimeout:this.pingDelay});var S=this.transport.createConnection(l,d,B,C),R=null,$=function(){S.unbind("open",$),S.bind("closed",Y),R=xA.now()},Y=oA=>{if(S.unbind("closed",Y),oA.code===1002||oA.code===1003)this.manager.reportDeath();else if(!oA.wasClean&&R){var lA=xA.now()-R;lA<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(lA/2,this.minPingDelay))}};return S.bind("open",$),S}isSupported(l){return this.manager.isAlive()&&this.transport.isSupported(l)}}const _r={decodeMessage:function(p){try{var l=JSON.parse(p.data),d=l.data;if(typeof d=="string")try{d=JSON.parse(l.data)}catch(C){}var B={event:l.event,channel:l.channel,data:d};return l.user_id&&(B.user_id=l.user_id),B}catch(C){throw{type:"MessageParseError",error:C,data:p.data}}},encodeMessage:function(p){return JSON.stringify(p)},processHandshake:function(p){var l=_r.decodeMessage(p);if(l.event==="pusher:connection_established"){if(!l.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:l.data.socket_id,activityTimeout:l.data.activity_timeout*1e3}}else{if(l.event==="pusher:error")return{action:this.getCloseAction(l.data),error:this.getCloseError(l.data)};throw"Invalid handshake"}},getCloseAction:function(p){return p.code<4e3?p.code>=1002&&p.code<=1004?"backoff":null:p.code===4e3?"tls_only":p.code<4100?"refused":p.code<4200?"backoff":p.code<4300?"retry":"refused"},getCloseError:function(p){return p.code!==1e3&&p.code!==1001?{type:"PusherError",data:{code:p.code,message:p.reason||p.message}}:null}},yt=_r;class V extends $e{constructor(l,d){super(),this.id=l,this.transport=d,this.activityTimeout=d.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(l){return this.transport.send(l)}send_event(l,d,B){var C={event:l,data:d};return B&&(C.channel=B),gA.debug("Event sent",C),this.send(yt.encodeMessage(C))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var l={message:B=>{var C;try{C=yt.decodeMessage(B)}catch(S){this.emit("error",{type:"MessageParseError",error:S,data:B.data})}if(C!==void 0){switch(gA.debug("Event recd",C),C.event){case"pusher:error":this.emit("error",{type:"PusherError",data:C.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",C)}},activity:()=>{this.emit("activity")},error:B=>{this.emit("error",B)},closed:B=>{d(),B&&B.code&&this.handleCloseEvent(B),this.transport=null,this.emit("closed")}},d=()=>{MA(l,(B,C)=>{this.transport.unbind(C,B)})};MA(l,(B,C)=>{this.transport.bind(C,B)})}handleCloseEvent(l){var d=yt.getCloseAction(l),B=yt.getCloseError(l);B&&this.emit("error",B),d&&this.emit(d,{action:d,error:B})}}class Q{constructor(l,d){this.transport=l,this.callback=d,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=l=>{this.unbindListeners();var d;try{d=yt.processHandshake(l)}catch(B){this.finish("error",{error:B}),this.transport.close();return}d.action==="connected"?this.finish("connected",{connection:new V(d.id,this.transport),activityTimeout:d.activityTimeout}):(this.finish(d.action,{error:d.error}),this.transport.close())},this.onClosed=l=>{this.unbindListeners();var d=yt.getCloseAction(l)||"backoff",B=yt.getCloseError(l);this.finish(d,{error:B})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(l,d){this.callback(TA({transport:this.transport,action:l},d))}}class T{constructor(l,d){this.timeline=l,this.options=d||{}}send(l,d){this.timeline.isEmpty()||this.timeline.send(q.TimelineTransport.getAgent(this,l),d)}}class P extends $e{constructor(l,d){super(function(B,C){gA.debug("No callbacks on "+l+" for "+B)}),this.name=l,this.pusher=d,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(l,d){return d(null,{auth:""})}trigger(l,d){if(l.indexOf("client-")!==0)throw new U("Event '"+l+"' does not start with 'client-'");if(!this.subscribed){var B=v.buildLogSuffix("triggeringClientEvents");gA.warn(`Client event triggered before channel 'subscription_succeeded' event . ${B}`)}return this.pusher.send_event(l,d,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(l){var d=l.event,B=l.data;if(d==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(l);else if(d==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(l);else if(d.indexOf("pusher_internal:")!==0){var C={};this.emit(d,B,C)}}handleSubscriptionSucceededEvent(l){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",l.data)}handleSubscriptionCountEvent(l){l.data.subscription_count&&(this.subscriptionCount=l.data.subscription_count),this.emit("pusher:subscription_count",l.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(l,d)=>{l?(this.subscriptionPending=!1,gA.error(l.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:l.message},l instanceof tA?{status:l.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:d.auth,channel_data:d.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class pA extends P{authorize(l,d){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:l},d)}}class WA{constructor(){this.reset()}get(l){return Object.prototype.hasOwnProperty.call(this.members,l)?{id:l,info:this.members[l]}:null}each(l){MA(this.members,(d,B)=>{l(this.get(B))})}setMyID(l){this.myID=l}onSubscription(l){this.members=l.presence.hash,this.count=l.presence.count,this.me=this.get(this.myID)}addMember(l){return this.get(l.user_id)===null&&this.count++,this.members[l.user_id]=l.user_info,this.get(l.user_id)}removeMember(l){var d=this.get(l.user_id);return d&&(delete this.members[l.user_id],this.count--),d}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var SA=function(p,l,d,B){function C(S){return S instanceof d?S:new d(function(R){R(S)})}return new(d||(d=Promise))(function(S,R){function $(lA){try{oA(B.next(lA))}catch(OA){R(OA)}}function Y(lA){try{oA(B.throw(lA))}catch(OA){R(OA)}}function oA(lA){lA.done?S(lA.value):C(lA.value).then($,Y)}oA((B=B.apply(p,l||[])).next())})};class ee extends pA{constructor(l,d){super(l,d),this.members=new WA}authorize(l,d){super.authorize(l,(B,C)=>SA(this,void 0,void 0,function*(){if(!B)if(C=C,C.channel_data!=null){var S=JSON.parse(C.channel_data);this.members.setMyID(S.user_id)}else if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else{let R=v.buildLogSuffix("authorizationEndpoint");gA.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${R}, or the user should be signed in.`),d("Invalid auth response");return}d(B,C)}))}handleEvent(l){var d=l.event;if(d.indexOf("pusher_internal:")===0)this.handleInternalEvent(l);else{var B=l.data,C={};l.user_id&&(C.user_id=l.user_id),this.emit(d,B,C)}}handleInternalEvent(l){var d=l.event,B=l.data;switch(d){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(l);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(l);break;case"pusher_internal:member_added":var C=this.members.addMember(B);this.emit("pusher:member_added",C);break;case"pusher_internal:member_removed":var S=this.members.removeMember(B);S&&this.emit("pusher:member_removed",S);break}}handleSubscriptionSucceededEvent(l){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(l.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var Ve=i(978),it=i(594);class xr extends pA{constructor(l,d,B){super(l,d),this.key=null,this.nacl=B}authorize(l,d){super.authorize(l,(B,C)=>{if(B){d(B,C);return}let S=C.shared_secret;if(!S){d(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=(0,it.decode)(S),delete C.shared_secret,d(null,C)})}trigger(l,d){throw new K("Client events are not currently supported for encrypted channels")}handleEvent(l){var d=l.event,B=l.data;if(d.indexOf("pusher_internal:")===0||d.indexOf("pusher:")===0){super.handleEvent(l);return}this.handleEncryptedEvent(d,B)}handleEncryptedEvent(l,d){if(!this.key){gA.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!d.ciphertext||!d.nonce){gA.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+d);return}let B=(0,it.decode)(d.ciphertext);if(B.length<this.nacl.secretbox.overheadLength){gA.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${B.length}`);return}let C=(0,it.decode)(d.nonce);if(C.length<this.nacl.secretbox.nonceLength){gA.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${C.length}`);return}let S=this.nacl.secretbox.open(B,C,this.key);if(S===null){gA.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(R,$)=>{if(R){gA.error(`Failed to make a request to the authEndpoint: ${$}. Unable to fetch new key, so dropping encrypted event`);return}if(S=this.nacl.secretbox.open(B,C,this.key),S===null){gA.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(l,this.getDataToEmit(S))});return}this.emit(l,this.getDataToEmit(S))}getDataToEmit(l){let d=(0,Ve.D4)(l);try{return JSON.parse(d)}catch(B){return d}}}class NA extends $e{constructor(l,d){super(),this.state="initialized",this.connection=null,this.key=l,this.options=d,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var B=q.getNetwork();B.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),B.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}switchCluster(l){this.key=l,this.updateStrategy(),this.retryIn(0)}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(l){return this.connection?this.connection.send(l):!1}send_event(l,d,B){return this.connection?this.connection.send_event(l,d,B):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var l=(d,B)=>{d?this.runner=this.strategy.connect(0,l):B.action==="error"?(this.emit("error",{type:"HandshakeError",error:B.error}),this.timeline.error({handshakeError:B.error})):(this.abortConnecting(),this.handshakeCallbacks[B.action](B))};this.runner=this.strategy.connect(0,l)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var l=this.abandonConnection();l.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(l){this.timeline.info({action:"retry",delay:l}),l>0&&this.emit("connecting_in",Math.round(l/1e3)),this.retryTimer=new XA(l||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new XA(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new XA(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new XA(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(l){return TA({},l,{message:d=>{this.resetActivityCheck(),this.emit("message",d)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:d=>{this.emit("error",d)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(l){return TA({},l,{connected:d=>{this.activityTimeout=Math.min(this.options.activityTimeout,d.activityTimeout,d.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(d.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let l=d=>B=>{B.error&&this.emit("error",{type:"WebSocketError",error:B.error}),d(B)};return{tls_only:l(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:l(()=>{this.disconnect()}),backoff:l(()=>{this.retryIn(1e3)}),retry:l(()=>{this.retryIn(0)})}}setConnection(l){this.connection=l;for(var d in this.connectionCallbacks)this.connection.bind(d,this.connectionCallbacks[d]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var l in this.connectionCallbacks)this.connection.unbind(l,this.connectionCallbacks[l]);var d=this.connection;return this.connection=null,d}}updateState(l,d){var B=this.state;if(this.state=l,B!==l){var C=l;C==="connected"&&(C+=" with new socket ID "+d.socket_id),gA.debug("State changed",B+" -> "+C),this.timeline.info({state:l,params:d}),this.emit("state_change",{previous:B,current:l}),this.emit(l,d)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class Os{constructor(){this.channels={}}add(l,d){return this.channels[l]||(this.channels[l]=Ps(l,d)),this.channels[l]}all(){return Qe(this.channels)}find(l){return this.channels[l]}remove(l){var d=this.channels[l];return delete this.channels[l],d}disconnect(){MA(this.channels,function(l){l.disconnect()})}}function Ps(p,l){if(p.indexOf("private-encrypted-")===0){if(l.config.nacl)return Ut.createEncryptedChannel(p,l,l.config.nacl);let d="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",B=v.buildLogSuffix("encryptedChannelSupport");throw new K(`${d}. ${B}`)}else{if(p.indexOf("private-")===0)return Ut.createPrivateChannel(p,l);if(p.indexOf("presence-")===0)return Ut.createPresenceChannel(p,l);if(p.indexOf("#")===0)throw new x('Cannot create a channel with name "'+p+'".');return Ut.createChannel(p,l)}}var Jf={createChannels(){return new Os},createConnectionManager(p,l){return new NA(p,l)},createChannel(p,l){return new P(p,l)},createPrivateChannel(p,l){return new pA(p,l)},createPresenceChannel(p,l){return new ee(p,l)},createEncryptedChannel(p,l,d){return new xr(p,l,d)},createTimelineSender(p,l){return new T(p,l)},createHandshake(p,l){return new Q(p,l)},createAssistantToTheTransportManager(p,l,d){return new Rs(p,l,d)}};const Ut=Jf;class rl{constructor(l){this.options=l||{},this.livesLeft=this.options.lives||1/0}getAssistant(l){return Ut.createAssistantToTheTransportManager(this,l,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class on{constructor(l,d){this.strategies=l,this.loop=!!d.loop,this.failFast=!!d.failFast,this.timeout=d.timeout,this.timeoutLimit=d.timeoutLimit}isSupported(){return Tt(this.strategies,xA.method("isSupported"))}connect(l,d){var B=this.strategies,C=0,S=this.timeout,R=null,$=(Y,oA)=>{oA?d(null,oA):(C=C+1,this.loop&&(C=C%B.length),C<B.length?(S&&(S=S*2,this.timeoutLimit&&(S=Math.min(S,this.timeoutLimit))),R=this.tryStrategy(B[C],l,{timeout:S,failFast:this.failFast},$)):d(!0))};return R=this.tryStrategy(B[C],l,{timeout:S,failFast:this.failFast},$),{abort:function(){R.abort()},forceMinPriority:function(Y){l=Y,R&&R.forceMinPriority(Y)}}}tryStrategy(l,d,B,C){var S=null,R=null;return B.timeout>0&&(S=new XA(B.timeout,function(){R.abort(),C(!0)})),R=l.connect(d,function($,Y){$&&S&&S.isRunning()&&!B.failFast||(S&&S.ensureAborted(),C($,Y))}),{abort:function(){S&&S.ensureAborted(),R.abort()},forceMinPriority:function($){R.forceMinPriority($)}}}}class Ri{constructor(l){this.strategies=l}isSupported(){return Tt(this.strategies,xA.method("isSupported"))}connect(l,d){return jf(this.strategies,l,function(B,C){return function(S,R){if(C[B].error=S,S){Yf(C)&&d(!0);return}ye(C,function($){$.forceMinPriority(R.transport.priority)}),d(null,R)}})}}function jf(p,l,d){var B=bt(p,function(C,S,R,$){return C.connect(l,d(S,$))});return{abort:function(){ye(B,qf)},forceMinPriority:function(C){ye(B,function(S){S.forceMinPriority(C)})}}}function Yf(p){return Dn(p,function(l){return!!l.error})}function qf(p){!p.error&&!p.aborted&&(p.abort(),p.aborted=!0)}class Ag{constructor(l,d,B){this.strategy=l,this.transports=d,this.ttl=B.ttl||18e5,this.usingTLS=B.useTLS,this.timeline=B.timeline}isSupported(){return this.strategy.isSupported()}connect(l,d){var B=this.usingTLS,C=eg(B),S=C&&C.cacheSkipCount?C.cacheSkipCount:0,R=[this.strategy];if(C&&C.timestamp+this.ttl>=xA.now()){var $=this.transports[C.transport];$&&(["ws","wss"].includes(C.transport)||S>3?(this.timeline.info({cached:!0,transport:C.transport,latency:C.latency}),R.push(new on([$],{timeout:C.latency*2+1e3,failFast:!0}))):S++)}var Y=xA.now(),oA=R.pop().connect(l,function lA(OA,$s){OA?(sl(B),R.length>0?(Y=xA.now(),oA=R.pop().connect(l,lA)):d(OA)):(tg(B,$s.transport.name,xA.now()-Y,S),d(null,$s))});return{abort:function(){oA.abort()},forceMinPriority:function(lA){l=lA,oA&&oA.forceMinPriority(lA)}}}}function Oi(p){return"pusherTransport"+(p?"TLS":"NonTLS")}function eg(p){var l=q.getLocalStorage();if(l)try{var d=l[Oi(p)];if(d)return JSON.parse(d)}catch(B){sl(p)}return null}function tg(p,l,d,B){var C=q.getLocalStorage();if(C)try{C[Oi(p)]=oe({timestamp:xA.now(),transport:l,latency:d,cacheSkipCount:B})}catch(S){}}function sl(p){var l=q.getLocalStorage();if(l)try{delete l[Oi(p)]}catch(d){}}class Ms{constructor(l,{delay:d}){this.strategy=l,this.options={delay:d}}isSupported(){return this.strategy.isSupported()}connect(l,d){var B=this.strategy,C,S=new XA(this.options.delay,function(){C=B.connect(l,d)});return{abort:function(){S.ensureAborted(),C&&C.abort()},forceMinPriority:function(R){l=R,C&&C.forceMinPriority(R)}}}}class Sr{constructor(l,d,B){this.test=l,this.trueBranch=d,this.falseBranch=B}isSupported(){var l=this.test()?this.trueBranch:this.falseBranch;return l.isSupported()}connect(l,d){var B=this.test()?this.trueBranch:this.falseBranch;return B.connect(l,d)}}class ng{constructor(l){this.strategy=l}isSupported(){return this.strategy.isSupported()}connect(l,d){var B=this.strategy.connect(l,function(C,S){S&&B.abort(),d(C,S)});return B}}function Ir(p){return function(){return p.isSupported()}}var rg=function(p,l,d){var B={};function C(wl,eB,tB,nB,rB){var ml=d(p,wl,eB,tB,nB,rB);return B[wl]=ml,ml}var S=Object.assign({},l,{hostNonTLS:p.wsHost+":"+p.wsPort,hostTLS:p.wsHost+":"+p.wssPort,httpPath:p.wsPath}),R=Object.assign({},S,{useTLS:!0}),$=Object.assign({},l,{hostNonTLS:p.httpHost+":"+p.httpPort,hostTLS:p.httpHost+":"+p.httpsPort,httpPath:p.httpPath}),Y={loop:!0,timeout:15e3,timeoutLimit:6e4},oA=new rl({minPingDelay:1e4,maxPingDelay:p.activityTimeout}),lA=new rl({lives:2,minPingDelay:1e4,maxPingDelay:p.activityTimeout}),OA=C("ws","ws",3,S,oA),$s=C("wss","ws",3,R,oA),Jg=C("sockjs","sockjs",1,$),dl=C("xhr_streaming","xhr_streaming",1,$,lA),jg=C("xdr_streaming","xdr_streaming",1,$,lA),pl=C("xhr_polling","xhr_polling",1,$),Yg=C("xdr_polling","xdr_polling",1,$),hl=new on([OA],Y),qg=new on([$s],Y),AB=new on([Jg],Y),fl=new on([new Sr(Ir(dl),dl,jg)],Y),gl=new on([new Sr(Ir(pl),pl,Yg)],Y),Bl=new on([new Sr(Ir(fl),new Ri([fl,new Ms(gl,{delay:4e3})]),gl)],Y),Ki=new Sr(Ir(Bl),Bl,AB),Ni;return l.useTLS?Ni=new Ri([hl,new Ms(Ki,{delay:2e3})]):Ni=new Ri([hl,new Ms(qg,{delay:2e3}),new Ms(Ki,{delay:5e3})]),new Ag(new ng(new Sr(Ir(OA),Ni,Ki)),B,{ttl:18e5,timeline:l.timeline,useTLS:l.useTLS})};const sg=rg;function og(){var p=this;p.timeline.info(p.buildTimelineMessage({transport:p.name+(p.options.useTLS?"s":"")})),p.hooks.isInitialized()?p.changeState("initialized"):p.hooks.file?(p.changeState("initializing"),b.load(p.hooks.file,{useTLS:p.options.useTLS},function(l,d){p.hooks.isInitialized()?(p.changeState("initialized"),d(!0)):(l&&p.onError(l),p.onClose(),d(!1))})):p.onClose()}var ig={getRequest:function(p){var l=new window.XDomainRequest;return l.ontimeout=function(){p.emit("error",new D),p.close()},l.onerror=function(d){p.emit("error",d),p.close()},l.onprogress=function(){l.responseText&&l.responseText.length>0&&p.onChunk(200,l.responseText)},l.onload=function(){l.responseText&&l.responseText.length>0&&p.onChunk(200,l.responseText),p.emit("finished",200),p.close()},l},abortRequest:function(p){p.ontimeout=p.onerror=p.onprogress=p.onload=null,p.abort()}};const ag=ig,cg=256*1024;class lg extends $e{constructor(l,d,B){super(),this.hooks=l,this.method=d,this.url=B}start(l){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},q.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(l)}close(){this.unloader&&(q.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(l,d){for(;;){var B=this.advanceBuffer(d);if(B)this.emit("chunk",{status:l,data:B});else break}this.isBufferTooLong(d)&&this.emit("buffer_too_long")}advanceBuffer(l){var d=l.slice(this.position),B=d.indexOf(`
|
|
1922
|
+
`);return B!==-1?(this.position+=B+1,d.slice(0,B)):null}isBufferTooLong(l){return this.position===l.length&&l.length>cg}}var Pi;(function(p){p[p.CONNECTING=0]="CONNECTING",p[p.OPEN=1]="OPEN",p[p.CLOSED=3]="CLOSED"})(Pi||(Pi={}));const an=Pi;var ug=1;class dg{constructor(l,d){this.hooks=l,this.session=il(1e3)+"/"+gg(8),this.location=pg(d),this.readyState=an.CONNECTING,this.openStream()}send(l){return this.sendRaw(JSON.stringify([l]))}ping(){this.hooks.sendHeartbeat(this)}close(l,d){this.onClose(l,d,!0)}sendRaw(l){if(this.readyState===an.OPEN)try{return q.createSocketRequest("POST",ol(hg(this.location,this.session))).start(l),!0}catch(d){return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(l,d,B){this.closeStream(),this.readyState=an.CLOSED,this.onclose&&this.onclose({code:l,reason:d,wasClean:B})}onChunk(l){if(l.status===200){this.readyState===an.OPEN&&this.onActivity();var d,B=l.data.slice(0,1);switch(B){case"o":d=JSON.parse(l.data.slice(1)||"{}"),this.onOpen(d);break;case"a":d=JSON.parse(l.data.slice(1)||"[]");for(var C=0;C<d.length;C++)this.onEvent(d[C]);break;case"m":d=JSON.parse(l.data.slice(1)||"null"),this.onEvent(d);break;case"h":this.hooks.onHeartbeat(this);break;case"c":d=JSON.parse(l.data.slice(1)||"[]"),this.onClose(d[0],d[1],!0);break}}}onOpen(l){this.readyState===an.CONNECTING?(l&&l.hostname&&(this.location.base=fg(this.location.base,l.hostname)),this.readyState=an.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(l){this.readyState===an.OPEN&&this.onmessage&&this.onmessage({data:l})}onActivity(){this.onactivity&&this.onactivity()}onError(l){this.onerror&&this.onerror(l)}openStream(){this.stream=q.createSocketRequest("POST",ol(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",l=>{this.onChunk(l)}),this.stream.bind("finished",l=>{this.hooks.onFinished(this,l)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(l){xA.defer(()=>{this.onError(l),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function pg(p){var l=/([^\?]*)\/*(\??.*)/.exec(p);return{base:l[1],queryString:l[2]}}function hg(p,l){return p.base+"/"+l+"/xhr_send"}function ol(p){var l=p.indexOf("?")===-1?"?":"&";return p+l+"t="+ +new Date+"&n="+ug++}function fg(p,l){var d=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(p);return d[1]+l+d[3]}function il(p){return q.randomInt(p)}function gg(p){for(var l=[],d=0;d<p;d++)l.push(il(32).toString(32));return l.join("")}const Bg=dg;var wg={getReceiveURL:function(p,l){return p.base+"/"+l+"/xhr_streaming"+p.queryString},onHeartbeat:function(p){p.sendRaw("[]")},sendHeartbeat:function(p){p.sendRaw("[]")},onFinished:function(p,l){p.onClose(1006,"Connection interrupted ("+l+")",!1)}};const mg=wg;var Cg={getReceiveURL:function(p,l){return p.base+"/"+l+"/xhr"+p.queryString},onHeartbeat:function(){},sendHeartbeat:function(p){p.sendRaw("[]")},onFinished:function(p,l){l===200?p.reconnect():p.onClose(1006,"Connection interrupted ("+l+")",!1)}};const bg=Cg;var Qg={getRequest:function(p){var l=q.getXHRAPI(),d=new l;return d.onreadystatechange=d.onprogress=function(){switch(d.readyState){case 3:d.responseText&&d.responseText.length>0&&p.onChunk(d.status,d.responseText);break;case 4:d.responseText&&d.responseText.length>0&&p.onChunk(d.status,d.responseText),p.emit("finished",d.status),p.close();break}},d},abortRequest:function(p){p.onreadystatechange=null,p.abort()}};const yg=Qg;var Ug={createStreamingSocket(p){return this.createSocket(mg,p)},createPollingSocket(p){return this.createSocket(bg,p)},createSocket(p,l){return new Bg(p,l)},createXHR(p,l){return this.createRequest(yg,p,l)},createRequest(p,l,d){return new lg(p,l,d)}};const al=Ug;al.createXDR=function(p,l){return this.createRequest(ag,p,l)};var Eg={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:u,DependenciesReceivers:m,getDefaultStrategy:sg,Transports:ze,transportConnectionInitializer:og,HTTPFactory:al,TimelineTransport:Ht,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(p){window.Pusher=p;var l=()=>{this.onDocumentBody(p.ready)};window.JSON?l():b.load("json2",{},l)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:FA,jsonp:Ur}},onDocumentBody(p){document.body?p():setTimeout(()=>{this.onDocumentBody(p)},0)},createJSONPRequest(p,l){return new Rn(p,l)},createScriptRequest(p){return new xs(p)},getLocalStorage(){try{return window.localStorage}catch(p){return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var p=this.getXHRAPI();return new p},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return Ds},createWebSocket(p){var l=this.getWebSocketAPI();return new l(p)},createSocketRequest(p,l){if(this.isXHRSupported())return this.HTTPFactory.createXHR(p,l);if(this.isXDRSupported(l.indexOf("https:")===0))return this.HTTPFactory.createXDR(p,l);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var p=this.getXHRAPI();return!!p&&new p().withCredentials!==void 0},isXDRSupported(p){var l=p?"https:":"http:",d=this.getProtocol();return!!window.XDomainRequest&&d===l},addUnloadListener(p){window.addEventListener!==void 0?window.addEventListener("unload",p,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",p)},removeUnloadListener(p){window.addEventListener!==void 0?window.removeEventListener("unload",p,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",p)},randomInt(p){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*p)}};const q=Eg;var Mi;(function(p){p[p.ERROR=3]="ERROR",p[p.INFO=6]="INFO",p[p.DEBUG=7]="DEBUG"})(Mi||(Mi={}));const Ks=Mi;class kg{constructor(l,d,B){this.key=l,this.session=d,this.events=[],this.options=B||{},this.sent=0,this.uniqueID=0}log(l,d){l<=this.options.level&&(this.events.push(TA({},d,{timestamp:xA.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(l){this.log(Ks.ERROR,l)}info(l){this.log(Ks.INFO,l)}debug(l){this.log(Ks.DEBUG,l)}isEmpty(){return this.events.length===0}send(l,d){var B=TA({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],l(B,(C,S)=>{C||this.sent++,d&&d(C,S)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class Fg{constructor(l,d,B,C){this.name=l,this.priority=d,this.transport=B,this.options=C||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(l,d){if(this.isSupported()){if(this.priority<l)return cl(new H,d)}else return cl(new N,d);var B=!1,C=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),S=null,R=function(){C.unbind("initialized",R),C.connect()},$=function(){S=Ut.createHandshake(C,function(OA){B=!0,lA(),d(null,OA)})},Y=function(OA){lA(),d(OA)},oA=function(){lA();var OA;OA=oe(C),d(new Z(OA))},lA=function(){C.unbind("initialized",R),C.unbind("open",$),C.unbind("error",Y),C.unbind("closed",oA)};return C.bind("initialized",R),C.bind("open",$),C.bind("error",Y),C.bind("closed",oA),C.initialize(),{abort:()=>{B||(lA(),S?S.close():C.close())},forceMinPriority:OA=>{B||this.priority<OA&&(S?S.close():C.close())}}}}function cl(p,l){return xA.defer(function(){l(p)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:vg}=q;var _g=function(p,l,d,B,C,S){var R=vg[d];if(!R)throw new X(d);var $=(!p.enabledTransports||tn(p.enabledTransports,l)!==-1)&&(!p.disabledTransports||tn(p.disabledTransports,l)===-1),Y;return $?(C=Object.assign({ignoreNullOrigin:p.ignoreNullOrigin},C),Y=new Fg(l,B,S?S.getAssistant(R):R,C)):Y=xg,Y},xg={isSupported:function(){return!1},connect:function(p,l){var d=xA.defer(function(){l(new N)});return{abort:function(){d.ensureAborted()},forceMinPriority:function(){}}}};function Sg(p){if(p==null)throw"You must pass an options object";if(p.cluster==null)throw"Options object must provide a cluster";"disableStats"in p&&gA.warn("The disableStats option is deprecated in favor of enableStats")}const Ig=(p,l)=>{var d="socket_id="+encodeURIComponent(p.socketId);for(var B in l.params)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(l.params[B]);if(l.paramsProvider!=null){let C=l.paramsProvider();for(var B in C)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(C[B])}return d},Tg=p=>{if(typeof q.getAuthorizers()[p.transport]=="undefined")throw`'${p.transport}' is not a recognized auth transport`;return(l,d)=>{const B=Ig(l,p);q.getAuthorizers()[p.transport](q,B,p,y.UserAuthentication,d)}},Hg=(p,l)=>{var d="socket_id="+encodeURIComponent(p.socketId);d+="&channel_name="+encodeURIComponent(p.channelName);for(var B in l.params)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(l.params[B]);if(l.paramsProvider!=null){let C=l.paramsProvider();for(var B in C)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(C[B])}return d},Lg=p=>{if(typeof q.getAuthorizers()[p.transport]=="undefined")throw`'${p.transport}' is not a recognized auth transport`;return(l,d)=>{const B=Hg(l,p);q.getAuthorizers()[p.transport](q,B,p,y.ChannelAuthorization,d)}},Dg=(p,l,d)=>{const B={authTransport:l.transport,authEndpoint:l.endpoint,auth:{params:l.params,headers:l.headers}};return(C,S)=>{const R=p.channel(C.channelName);d(R,B).authorize(C.socketId,S)}};function ll(p,l){let d={activityTimeout:p.activityTimeout||f.activityTimeout,cluster:p.cluster,httpPath:p.httpPath||f.httpPath,httpPort:p.httpPort||f.httpPort,httpsPort:p.httpsPort||f.httpsPort,pongTimeout:p.pongTimeout||f.pongTimeout,statsHost:p.statsHost||f.stats_host,unavailableTimeout:p.unavailableTimeout||f.unavailableTimeout,wsPath:p.wsPath||f.wsPath,wsPort:p.wsPort||f.wsPort,wssPort:p.wssPort||f.wssPort,enableStats:Kg(p),httpHost:Rg(p),useTLS:Mg(p),wsHost:Og(p),userAuthenticator:Ng(p),channelAuthorizer:zg(p,l)};return"disabledTransports"in p&&(d.disabledTransports=p.disabledTransports),"enabledTransports"in p&&(d.enabledTransports=p.enabledTransports),"ignoreNullOrigin"in p&&(d.ignoreNullOrigin=p.ignoreNullOrigin),"timelineParams"in p&&(d.timelineParams=p.timelineParams),"nacl"in p&&(d.nacl=p.nacl),d}function Rg(p){return p.httpHost?p.httpHost:p.cluster?`sockjs-${p.cluster}.pusher.com`:f.httpHost}function Og(p){return p.wsHost?p.wsHost:Pg(p.cluster)}function Pg(p){return`ws-${p}.pusher.com`}function Mg(p){return q.getProtocol()==="https:"?!0:p.forceTLS!==!1}function Kg(p){return"enableStats"in p?p.enableStats:"disableStats"in p?!p.disableStats:!1}const ul=p=>"customHandler"in p&&p.customHandler!=null;function Ng(p){const l=Object.assign(Object.assign({},f.userAuthentication),p.userAuthentication);return ul(l)?l.customHandler:Tg(l)}function $g(p,l){let d;if("channelAuthorization"in p)d=Object.assign(Object.assign({},f.channelAuthorization),p.channelAuthorization);else if(d={transport:p.authTransport||f.authTransport,endpoint:p.authEndpoint||f.authEndpoint},"auth"in p&&("params"in p.auth&&(d.params=p.auth.params),"headers"in p.auth&&(d.headers=p.auth.headers)),"authorizer"in p)return{customHandler:Dg(l,d,p.authorizer)};return d}function zg(p,l){const d=$g(p,l);return ul(d)?d.customHandler:Lg(d)}class Vg extends $e{constructor(l){super(function(d,B){gA.debug(`No callbacks on watchlist events for ${d}`)}),this.pusher=l,this.bindWatchlistInternalEvent()}handleEvent(l){l.data.events.forEach(d=>{this.emit(d.name,d)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",l=>{var d=l.event;d==="pusher_internal:watchlist_events"&&this.handleEvent(l)})}}function Gg(){let p,l;return{promise:new Promise((B,C)=>{p=B,l=C}),resolve:p,reject:l}}const Zg=Gg;class Xg extends $e{constructor(l){super(function(d,B){gA.debug("No callbacks on user for "+d)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(d,B)=>{if(d){gA.warn(`Error during signin: ${d}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:B.auth,user_data:B.user_data})},this.pusher=l,this.pusher.connection.bind("state_change",({previous:d,current:B})=>{d!=="connected"&&B==="connected"&&this._signin(),d==="connected"&&B!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new Vg(l),this.pusher.connection.bind("message",d=>{var B=d.event;B==="pusher:signin_success"&&this._onSigninSuccess(d.data),this.serverToUserChannel&&this.serverToUserChannel.name===d.channel&&this.serverToUserChannel.handleEvent(d)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(l){try{this.user_data=JSON.parse(l.user_data)}catch(d){gA.error(`Failed parsing user data after signin: ${l.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){gA.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const l=d=>{d.subscriptionPending&&d.subscriptionCancelled?d.reinstateSubscription():!d.subscriptionPending&&this.pusher.connection.state==="connected"&&d.subscribe()};this.serverToUserChannel=new P(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((d,B)=>{d.indexOf("pusher_internal:")===0||d.indexOf("pusher:")===0||this.emit(d,B)}),l(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:l,resolve:d}=Zg();l.done=!1;const B=()=>{l.done=!0};l.then(B).catch(B),this.signinDonePromise=l,this._signinDoneResolve=d}}class jA{static ready(){jA.isReady=!0;for(var l=0,d=jA.instances.length;l<d;l++)jA.instances[l].connect()}static getClientFeatures(){return nt(st({ws:q.Transports.ws},function(l){return l.isSupported({})}))}constructor(l,d){Wg(l),Sg(d),this.key=l,this.options=d,this.config=ll(this.options,this),this.channels=Ut.createChannels(),this.global_emitter=new $e,this.sessionID=q.randomInt(1e9),this.timeline=new kg(this.key,this.sessionID,{cluster:this.config.cluster,features:jA.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:Ks.INFO,version:f.VERSION}),this.config.enableStats&&(this.timelineSender=Ut.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+q.TimelineTransport.name}));var B=C=>q.getDefaultStrategy(this.config,C,_g);this.connection=Ut.createConnectionManager(this.key,{getStrategy:B,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",C=>{var S=C.event,R=S.indexOf("pusher_internal:")===0;if(C.channel){var $=this.channel(C.channel);$&&$.handleEvent(C)}R||this.global_emitter.emit(C.event,C.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",C=>{gA.warn(C)}),jA.instances.push(this),this.timeline.info({instances:jA.instances.length}),this.user=new Xg(this),jA.isReady&&this.connect()}switchCluster(l){const{appKey:d,cluster:B}=l;this.key=d,this.options=Object.assign(Object.assign({},this.options),{cluster:B}),this.config=ll(this.options,this),this.connection.switchCluster(this.key)}channel(l){return this.channels.find(l)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var l=this.connection.isUsingTLS(),d=this.timelineSender;this.timelineSenderTimer=new Pe(6e4,function(){d.send(l)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(l,d,B){return this.global_emitter.bind(l,d,B),this}unbind(l,d,B){return this.global_emitter.unbind(l,d,B),this}bind_global(l){return this.global_emitter.bind_global(l),this}unbind_global(l){return this.global_emitter.unbind_global(l),this}unbind_all(l){return this.global_emitter.unbind_all(),this}subscribeAll(){var l;for(l in this.channels.channels)this.channels.channels.hasOwnProperty(l)&&this.subscribe(l)}subscribe(l){var d=this.channels.add(l,this);return d.subscriptionPending&&d.subscriptionCancelled?d.reinstateSubscription():!d.subscriptionPending&&this.connection.state==="connected"&&d.subscribe(),d}unsubscribe(l){var d=this.channels.find(l);d&&d.subscriptionPending?d.cancelSubscription():(d=this.channels.remove(l),d&&d.subscribed&&d.unsubscribe())}send_event(l,d,B){return this.connection.send_event(l,d,B)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}jA.instances=[],jA.isReady=!1,jA.logToConsole=!1,jA.Runtime=q,jA.ScriptReceivers=q.ScriptReceivers,jA.DependenciesReceivers=q.DependenciesReceivers,jA.auth_callbacks=q.auth_callbacks;const Ns=jA;function Wg(p){if(p==null)throw"You must pass your app key when you instantiate Pusher."}q.setup(jA)}},n={};function r(o){var a=n[o];if(a!==void 0)return a.exports;var i=n[o]={exports:{}};return t[o].call(i.exports,i,i.exports,r),i.exports}r.d=(o,a)=>{for(var i in a)r.o(a,i)&&!r.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:a[i]})},r.o=(o,a)=>Object.prototype.hasOwnProperty.call(o,a);var s=r(721);return s})())})(ya)),ya.exports}var $x=Nx();const zx=Kx($x);let qe=null,Jn=null;function Vx(A){return I(this,null,function*(){return Jn||(Jn=I(null,null,function*(){const e=A.backendUrl.replace(/\/+$/,""),t=yield hs(`${e}/api/settings`,{headers:{Authorization:`Bearer ${A.token}`}});if(!t.ok)throw new Error(`Failed to fetch settings: HTTP ${t.status}`);const n=yield t.json();qe=new zx(n.pusher.key,{cluster:n.pusher.cluster||"local",forceTLS:!0,wsHost:n.pusher.wsHost||void 0,wsPort:n.pusher.wssPort,wssPort:n.pusher.wssPort,enabledTransports:n.pusher.wsHost?["ws"]:void 0,channelAuthorization:{customHandler:({socketId:r,channelName:s},o)=>{hs(`${e}/api/pusher/auth`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${A.token}`},body:JSON.stringify({socket_id:r,channel_name:s})}).then(a=>a.json()).then(a=>o(null,a)).catch(a=>o(a instanceof Error?a:new Error(String(a)),null))}}})}),Jn.catch(()=>{Jn=null}),Jn)})}function Gx(A){if(!A||!qe)return null;let e=!1;const t=({current:n})=>{n==="connected"&&e?(e=!1,A()):n!=="connected"&&(e=!0)};return qe.connection.bind("state_change",t),()=>qe==null?void 0:qe.connection.unbind("state_change",t)}function Zx(A,e,t){return I(this,null,function*(){if(yield Vx(A),!qe)return()=>{};const n=qe.subscribe(`private-task-${e}`);t.onStatusUpdate&&n.bind(Vs.TASK_STATUS_UPDATED,t.onStatusUpdate),t.onInteractionCreated&&n.bind(Vs.TASK_INTERACTION_CREATED,t.onInteractionCreated),t.onInteractionAnswered&&n.bind(Vs.TASK_INTERACTION_ANSWERED,t.onInteractionAnswered),t.onBrowserCommandCreated&&n.bind(Vs.TASK_BROWSER_COMMAND_CREATED,t.onBrowserCommandCreated);const r=Gx(t.onReconnect);return()=>{n.unbind_all(),qe==null||qe.unsubscribe(`private-task-${e}`),r==null||r()}})}function gf(A,e){const t=a=>I(null,null,function*(){if(w.currentTaskId!==A||!w.runnerEl||w.state.kind!=="idle"&&w.state.kind!=="connecting"||w.handledCommandIds.has(a.commandId))return;w.handledCommandIds.add(a.commandId);const i={id:a.commandId,taskId:a.taskId,action:a.action,selector:a.selector,value:a.value,description:a.description,status:"pending",createdAt:new Date().toISOString()};hn({kind:"executing",command:i,actionsRun:w.state.kind==="idle"?w.state.actionsRun:0}),yield xd(i,e,A)}),n=a=>{if(!(w.currentTaskId!==A||!w.runnerEl)&&iS.has(a)){if(w.state.kind==="executing")hn({kind:"finishing",status:a,actionsRun:w.state.actionsRun});else if(w.state.kind==="connecting"||w.state.kind==="idle"){const i=w.state.kind==="idle"?w.state.actionsRun:0;hn({kind:"finished",status:a,actionsRun:i})}}},r=a=>{w.currentTaskId!==A||!w.runnerEl||(a.outputChunk&&Id([a.outputChunk]),n(a.status))},s=()=>I(null,null,function*(){var a;if(!(w.currentTaskId!==A||!w.runnerEl))try{const i=yield Xo(e,A);w.currentTaskId===A&&w.runnerEl&&(w.currentQuestion=(a=i[0])!=null?a:null,Fn())}catch(i){}}),o=()=>I(null,null,function*(){var a;try{const[i,c,u,h]=yield Promise.all([Tp(e,A),ZQ(e,A),Xo(e,A),VQ(e,A)]);if(w.currentTaskId!==A||!w.runnerEl)return;Id(c),w.currentQuestion=(a=u[0])!=null?a:null,Fn(),n(i.status),h&&h.status==="pending"&&(w.state.kind==="idle"||w.state.kind==="connecting")&&!w.handledCommandIds.has(h.id)?(w.handledCommandIds.add(h.id),hn({kind:"executing",command:h,actionsRun:w.state.kind==="idle"?w.state.actionsRun:0}),yield xd(h,e,A)):w.state.kind==="connecting"&&hn({kind:"idle",actionsRun:0})}catch(i){}});o(),Zx(e,A,{onStatusUpdate:r,onInteractionCreated:s,onInteractionAnswered:s,onBrowserCommandCreated:t,onReconnect:()=>{o()}}).then(a=>{if(w.currentTaskId!==A||w.state.kind==="finished"){a();return}w.unsubscribeTaskChannel=a})}function To(){var e;w.cancelArmed=!1,w.cancelArmTimeout&&(clearTimeout(w.cancelArmTimeout),w.cancelArmTimeout=null),w.cancelDisarmDocListener&&(document.removeEventListener("click",w.cancelDisarmDocListener,!0),w.cancelDisarmDocListener=null);const A=(e=w.runnerEl)==null?void 0:e.querySelector("[data-ap-runner-cancel]");A&&(A.textContent="Cancel task")}function Xx(A,e){return I(this,null,function*(){if(w.currentTaskId!==e||!w.runnerEl)return;const t=w.runnerEl.querySelector("[data-ap-runner-cancel]"),n=w.runnerEl.querySelector("[data-ap-runner-chat-error]");t&&(t.disabled=!0);try{yield WQ(A,e)}catch(r){t&&(t.disabled=!1),n&&(n.textContent=r instanceof Error?r.message:"Failed to cancel the task — try again.",n.style.display="block")}})}function Bf(){if(!w.currentTaskId||!w.currentApiOpts||!w.currentBackendUrl||!w.currentCaptureTitle)return;const A=w.currentTaskId,e=w.currentApiOpts;Yh({taskId:A,backendUrl:w.currentBackendUrl,title:w.currentCaptureTitle}),w.timerHandle&&clearInterval(w.timerHandle),oi(),w.timerHandle=setInterval(oi,wf);const t=w.state.kind==="finished"?w.state.actionsRun:0;w.handledCommandIds=new Set,w.state={kind:"idle",actionsRun:t},Xc(),gf(A,e)}function xd(A,e,t){return I(this,null,function*(){var o,a,i;let n="done",r;try{if(A.action==="getContext"){const c=A.selector?document.querySelector(A.selector):document.body;if(!c)throw new Error(`element not found (${A.selector})`);if(yl(c))throw new Error("Target element is in a sensitive or excluded region and cannot be automated");(o=w.highlightOverlay)==null||o.update(c),r=Yx(c)}else{if(!A.selector)throw new Error(`${A.action} command is missing a selector`);const c=document.querySelector(A.selector);if(!c)throw new Error(`element not found (${A.selector})`);if(yl(c))throw new Error("Target element is in a sensitive or excluded region and cannot be automated");if((a=w.highlightOverlay)==null||a.update(c),A.action==="click")yield Px(c),r="Clicked";else{if(A.value===void 0)throw new Error("inputText command is missing a value");qx(c,A.value),r="Entered text"}}}catch(c){n="error",r=c instanceof Error?c.message:"Unknown error executing command"}if(w.currentTaskId===t&&w.runnerEl&&tS(n,A,r),yield jx(e,t,A.id,n,r),w.currentTaskId!==t||!w.runnerEl)return;(i=w.highlightOverlay)==null||i.hide();const s=(w.state.kind==="executing"||w.state.kind==="finishing"?w.state.actionsRun:0)+1;w.state.kind==="finishing"?hn({kind:"finished",status:w.state.status,actionsRun:s}):w.state.kind==="executing"&&hn({kind:"idle",actionsRun:s})})}function Wx(A){return I(this,null,function*(){var n;if(!w.runnerEl||!w.currentQuestion||!w.currentTaskId||w.chatSubmitInFlight)return;const e=w.currentTaskId,t=w.currentApiOpts;if(t){w.chatSubmitInFlight=!0;try{const r={selectedOption:A};yield Hp(t,e,w.currentQuestion.id,r),w.currentQuestion=null,Fn();const s=yield Xo(t,e);w.currentTaskId===e&&w.runnerEl&&(w.currentQuestion=(n=s[0])!=null?n:null,Fn())}catch(r){const s=w.runnerEl.querySelector("[data-ap-runner-chat-error]");s&&(s.textContent="Failed to send your answer — try again.",s.style.display="block")}finally{w.chatSubmitInFlight=!1}}})}function Jx(A,e){return I(this,null,function*(){var o;if(!w.runnerEl||w.chatSubmitInFlight||w.state.kind==="finished"&&w.state.status==="failed")return;const t=w.runnerEl.querySelector("[data-ap-runner-chat-input]"),n=w.runnerEl.querySelector("[data-ap-runner-chat-error]"),r=w.runnerEl.querySelector("[data-ap-runner-chat-send]");if(!t||!n||!r)return;const s=t.value.trim();if(s){w.chatSubmitInFlight=!0,r.disabled=!0,n.style.display="none";try{if(w.currentQuestion){yield Hp(A,e,w.currentQuestion.id,s),w.currentQuestion=null,Fn();try{const a=yield Xo(A,e);w.currentTaskId===e&&w.runnerEl&&(w.currentQuestion=(o=a[0])!=null?o:null,Fn())}catch(a){}}else yield XQ(A,e,s),w.state.kind==="finished"&&Bf();t.value=""}catch(a){n.textContent=a instanceof Error?a.message:"Failed to send — try again.",n.style.display="block"}finally{w.chatSubmitInFlight=!1,r.disabled=!1}}})}function jx(A,e,t,n,r){return I(this,null,function*(){try{yield GQ(A,e,t,n,r)}catch(s){}})}function Yx(A){const e=A.cloneNode(!0);e.querySelectorAll("script, style, noscript").forEach(r=>r.remove()),Xd(e),wc(e);let t=e.outerHTML,n=!1;return t.length>Td&&(t=t.slice(0,Td),n=!0),`URL: ${location.href}
|
|
1924
1923
|
Title: ${document.title}
|
|
1925
1924
|
|
|
1926
1925
|
${t}${n?`
|
|
1927
|
-
… (truncated)`:""}`}function
|
|
1926
|
+
… (truncated)`:""}`}function qx(A,e){var s;const n=A instanceof HTMLTextAreaElement?HTMLTextAreaElement.prototype:HTMLInputElement.prototype,r=(s=Object.getOwnPropertyDescriptor(n,"value"))==null?void 0:s.set;if(!r)throw new Error("target element does not accept text input");r.call(A,e),A.dispatchEvent(new Event("input",{bubbles:!0})),A.dispatchEvent(new Event("change",{bubbles:!0}))}function AS(A){if(!w.runnerEl||!w.currentTaskId||!w.currentBackendUrl)return;const e=w.runnerEl.querySelector("[data-ap-runner-summary]");if(!e)return;const t=`${w.currentBackendUrl.replace(/\/+$/,"")}/tasks/${w.currentTaskId}`,n=A==="completed"?"Automation complete!":"Automation ended",r=A==="completed",s=r?"ap-sdk-panel__btn--secondary":"ap-sdk-panel__btn--primary";e.style.display="block",e.innerHTML=`
|
|
1928
1927
|
<div class="ap-sdk-success-card">
|
|
1929
|
-
<p class="ap-sdk-success-headline">${
|
|
1928
|
+
<p class="ap-sdk-success-headline">${Wc(n)}</p>
|
|
1930
1929
|
${r?`
|
|
1931
1930
|
<div class="ap-sdk-runner__approval" data-ap-runner-approval>
|
|
1932
1931
|
<div class="ap-sdk-runner__approval-actions">
|
|
@@ -1946,11 +1945,11 @@ ${t}${n?`
|
|
|
1946
1945
|
<button class="ap-sdk-runner__text-btn" data-ap-runner-close>Close</button>
|
|
1947
1946
|
</div>
|
|
1948
1947
|
</div>
|
|
1949
|
-
`,e.querySelector("[data-ap-runner-view]").addEventListener("click",()=>window.open(t,"_blank","noopener,noreferrer")),e.querySelector("[data-ap-runner-close]").addEventListener("click",()=>{const o=w.closeHandler;
|
|
1950
|
-
<div class="ap-sdk-runner__question-label">${
|
|
1951
|
-
<div class="ap-sdk-runner__question-text ap-sdk-markdown">${
|
|
1948
|
+
`,e.querySelector("[data-ap-runner-view]").addEventListener("click",()=>window.open(t,"_blank","noopener,noreferrer")),e.querySelector("[data-ap-runner-close]").addEventListener("click",()=>{const o=w.closeHandler;fc(),o==null||o()}),r&&eS(e)}function eS(A){const e=A.querySelector("[data-ap-runner-approve]"),t=A.querySelector("[data-ap-runner-reject]"),n=A.querySelector("[data-ap-runner-reject-form]"),r=A.querySelector("[data-ap-runner-reject-feedback]"),s=A.querySelector("[data-ap-runner-reject-submit]"),o=A.querySelector("[data-ap-runner-approval-error]"),a=A.querySelector(".ap-sdk-runner__approval-actions"),i=u=>{o.textContent=u,o.style.display="block"};e.addEventListener("click",()=>I(null,null,function*(){if(!w.currentTaskId||!w.currentApiOpts)return;const u=w.currentTaskId,h=w.currentApiOpts;e.disabled=!0,t.disabled=!0,o.style.display="none";try{yield JQ(h,u),a.innerHTML='<span class="ap-sdk-status-badge ap-sdk-status-badge--approved">✓ Approved</span>',n.style.display="none"}catch(f){e.disabled=!1,t.disabled=!1,i(f instanceof Error?f.message:"Failed to approve — try again.")}})),t.addEventListener("click",()=>{n.style.display=n.style.display==="none"?"block":"none",n.style.display==="block"&&r.focus()});const c=()=>{s.textContent=r.value.trim()?"Reject & Continue":"Reject Permanently"};r.addEventListener("input",c),s.addEventListener("click",()=>I(null,null,function*(){if(!w.currentTaskId||!w.currentApiOpts)return;const u=w.currentTaskId,h=w.currentApiOpts,f=r.value.trim();s.disabled=!0,e.disabled=!0,o.style.display="none",s.textContent="Rejecting…";try{yield jQ(h,u,f),f?Bf():(a.innerHTML='<span class="ap-sdk-status-badge ap-sdk-status-badge--rejected">✕ Rejected</span>',n.style.display="none")}catch(g){s.disabled=!1,e.disabled=!1,c(),i(g instanceof Error?g.message:"Failed to reject — try again.")}}))}function Sd(){var e;const A=(e=w.runnerEl)==null?void 0:e.querySelector("[data-ap-runner-log]");A&&(A.scrollTop=A.scrollHeight)}function Ho(){if(!w.runnerEl)return;const A=w.runnerEl.querySelector("[data-ap-runner-scroll-toggle]");A&&(A.textContent=w.autoScrollEnabled?"Auto ↓":"Manual",A.title=w.autoScrollEnabled?"Disable auto-scroll":"Enable auto-scroll",A.classList.toggle("ap-sdk-runner__scroll-toggle--active",w.autoScrollEnabled))}function Xc(){if(!w.runnerEl)return;const A=w.runnerEl.querySelector("[data-ap-runner-status]"),e=w.runnerEl.querySelector("[data-ap-runner-counter]"),t=w.runnerEl.querySelector("[data-ap-runner-log]"),n=w.runnerEl.querySelector("[data-ap-runner-hint]");if(!A||!e||!t||!n)return;const r="actionsRun"in w.state?w.state.actionsRun:0;e.textContent=`${r} action${r===1?"":"s"}`,Ho(),w.state.kind==="finished"?(A.textContent=w.state.status.replace(/_/g," "),A.className=`ap-sdk-status-badge ap-sdk-status-badge--${w.state.status.replace(/_/g,"-")}`,n.style.display="none",AS(w.state.status)):(A.textContent="running",A.className="ap-sdk-status-badge ap-sdk-status-badge--in-progress",n.style.display="block");const s=t.querySelector("[data-ap-runner-placeholder]");if(w.logEntries.length===0&&(w.state.kind==="connecting"||w.state.kind==="idle")){if(!s){const u=document.createElement("div");u.className="ap-sdk-runner__placeholder",u.setAttribute("data-ap-runner-placeholder","1"),u.textContent="Waiting for the agent's first action…",t.appendChild(u)}}else s==null||s.remove();Fn();const o=w.runnerEl.querySelector("[data-ap-runner-chat-input]"),a=w.runnerEl.querySelector("[data-ap-runner-chat-send]");if(o&&a){const u=w.state.kind==="finished"&&w.state.status==="failed";o.disabled=u,a.disabled=u||w.chatSubmitInFlight,u&&(o.placeholder="This task failed — start a new automation to continue.")}const i=w.runnerEl.querySelector("[data-ap-runner-cancel]");i&&(i.style.display=w.state.kind==="finished"?"none":"");const c=w.runnerEl.querySelector("[data-ap-runner-summary]");c&&w.state.kind!=="finished"&&(c.style.display="none",c.innerHTML="")}function Fn(){var r;if(!w.runnerEl)return;const A=w.runnerEl.querySelector("[data-ap-runner-question]"),e=w.runnerEl.querySelector("[data-ap-runner-chat-input]");if(!A||!e)return;if(!w.currentQuestion){A.style.display="none",A.innerHTML="",e.placeholder="Send a message to the agent…";return}const t=w.currentQuestion.questionMetadata,n=(r=t==null?void 0:t.options)!=null?r:[];if(e.placeholder="Type your answer…",A.style.display="block",A.innerHTML=`
|
|
1949
|
+
<div class="ap-sdk-runner__question-label">${Wc((t==null?void 0:t.header)||"The agent has a question")}</div>
|
|
1950
|
+
<div class="ap-sdk-runner__question-text ap-sdk-markdown">${ff((t==null?void 0:t.question)||w.currentQuestion.question)}</div>
|
|
1952
1951
|
${n.length>0?'<div class="ap-sdk-runner__question-options" data-ap-runner-question-options></div>':""}
|
|
1953
|
-
`,n.length>0){const s=A.querySelector("[data-ap-runner-question-options]");for(const o of n){const a=document.createElement("button");a.type="button",a.className="ap-sdk-panel__btn ap-sdk-panel__btn--ghost ap-sdk-runner__question-option",a.textContent=o.label,a.addEventListener("click",()=>void
|
|
1952
|
+
`,n.length>0){const s=A.querySelector("[data-ap-runner-question-options]");for(const o of n){const a=document.createElement("button");a.type="button",a.className="ap-sdk-panel__btn ap-sdk-panel__btn--ghost ap-sdk-runner__question-option",a.textContent=o.label,a.addEventListener("click",()=>void Wx(o.label)),s.appendChild(a)}}}function oi(){if(!w.runnerEl||w.runStartedAt===null)return;const A=w.runnerEl.querySelector("[data-ap-runner-timer]");if(!A)return;const e=Math.max(0,Math.floor((Date.now()-w.runStartedAt)/1e3)),t=String(Math.floor(e/60)).padStart(2,"0"),n=String(e%60).padStart(2,"0");A.textContent=`${t}:${n}`}function tS(A,e,t){var u,h;const n=A==="done"?"✓":"✗",r=e.selector?` \`${e.selector}\``:"",s=e.description||`${e.action}${r}`,o=A==="done"&&e.action==="getContext"?`read context (${(u=t==null?void 0:t.length)!=null?u:0} chars)`:t,a=o?` — ${o}`:"";if(w.logEntries.push({status:A,text:`${n} ${s}${a}`}),!w.runnerEl)return;const i=w.runnerEl.querySelector("[data-ap-runner-log]");if(!i)return;(h=i.querySelector("[data-ap-runner-placeholder]"))==null||h.remove();const c=document.createElement("div");c.className=`ap-sdk-runner__log-entry ap-sdk-runner__log-entry--${A}`,c.textContent=w.logEntries[w.logEntries.length-1].text,i.appendChild(c),w.autoScrollEnabled&&(i.scrollTop=i.scrollHeight)}function nS(A){var e,t;return(t=(e=A.display)==null?void 0:e.variant)!=null?t:A.sdkEventType}function rS(A){const e=nS(A);return(A.stream==="stdout"||A.stream==="stderr"||A.stream==="sdk_event"&&(e==="text"||e==="thinking"))&&A.data.trim()||null}function Id(A){var n;const e=A.filter(r=>r.sequence>w.lastRenderedChunkSequence).sort((r,s)=>r.sequence-s.sequence);if(e.length===0||(w.lastRenderedChunkSequence=Math.max(w.lastRenderedChunkSequence,...e.map(r=>r.sequence)),!w.runnerEl))return;const t=w.runnerEl.querySelector("[data-ap-runner-log]");if(t)for(const r of e){const s=rS(r);if(!s)continue;(n=t.querySelector("[data-ap-runner-placeholder]"))==null||n.remove();const o=document.createElement("div");o.className=`ap-sdk-runner__log-entry ap-sdk-runner__log-entry--output ap-sdk-runner__log-entry--${r.stream}`,r.stream==="sdk_event"?(o.classList.add("ap-sdk-markdown"),o.innerHTML=ff(s)):o.textContent=s,t.appendChild(o),w.autoScrollEnabled&&(t.scrollTop=t.scrollHeight)}}function sS(A){return A.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function Wc(A){return A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}const wf=1e3,oS=32,Td=15e3,iS=new Set(["completed","failed","cancelled"]),aS=4e3,w={runnerEl:null,runnerResizeCleanup:null,runnerDragCleanup:null,timerHandle:null,highlightOverlay:null,closeHandler:null,currentCaptureTitle:null,cancelArmed:!1,cancelArmTimeout:null,cancelDisarmDocListener:null,state:{kind:"connecting"},logEntries:[],autoScrollEnabled:!0,runStartedAt:null,currentTaskId:null,currentBackendUrl:null,currentApiOpts:null,lastRenderedChunkSequence:-1,currentQuestion:null,chatSubmitInFlight:!1,unsubscribeTaskChannel:null,handledCommandIds:new Set};function hn(A){var e,t;w.state=A,w.state.kind==="idle"&&w.runStartedAt===null&&(w.runStartedAt=Date.now(),oi(),w.timerHandle=setInterval(oi,wf)),w.state.kind==="finished"&&(w.timerHandle&&(clearInterval(w.timerHandle),w.timerHandle=null),(e=w.unsubscribeTaskChannel)==null||e.call(w),w.unsubscribeTaskChannel=null,(t=w.highlightOverlay)==null||t.hide(),qh()),Xc()}function fc(){var A,e,t,n,r;To(),qh(),w.timerHandle&&clearInterval(w.timerHandle),w.timerHandle=null,(A=w.unsubscribeTaskChannel)==null||A.call(w),w.unsubscribeTaskChannel=null,(e=w.highlightOverlay)==null||e.destroy(),w.highlightOverlay=null,w.runnerEl&&Bt(w.runnerEl),(t=w.runnerEl)==null||t.remove(),w.runnerEl=null,(n=w.runnerResizeCleanup)==null||n.call(w),w.runnerResizeCleanup=null,(r=w.runnerDragCleanup)==null||r.call(w),w.runnerDragCleanup=null,w.closeHandler=null,w.state={kind:"connecting"},w.logEntries=[],w.autoScrollEnabled=!0,w.runStartedAt=null,w.currentTaskId=null,w.currentBackendUrl=null,w.currentApiOpts=null,w.currentCaptureTitle=null,w.lastRenderedChunkSequence=-1,w.currentQuestion=null,w.chatSubmitInFlight=!1,w.handledCommandIds=new Set}function Jc(A,e,t,n,r){w.runnerEl&&fc(),w.closeHandler=r!=null?r:null,w.state={kind:"connecting"},w.logEntries=[],w.autoScrollEnabled=!0,w.runStartedAt=null,w.lastRenderedChunkSequence=-1,w.currentQuestion=null,w.chatSubmitInFlight=!1,w.handledCommandIds=new Set,w.currentTaskId=A,w.currentBackendUrl=t,w.currentApiOpts=e,w.currentCaptureTitle=n,Yh({taskId:A,backendUrl:t,title:n});const s=document.createElement("div");w.runnerEl=s,s.className="ap-sdk-panel",s.setAttribute("data-ap-sdk","1"),s.setAttribute("role","dialog"),s.setAttribute("aria-modal","true"),s.setAttribute("aria-label","Automation in progress");const o=n.length>55?`${n.slice(0,52)}…`:n;s.innerHTML=`
|
|
1954
1953
|
<div class="ap-sdk-panel__header">
|
|
1955
1954
|
<span class="ap-sdk-panel__title">
|
|
1956
1955
|
<span class="ap-sdk-panel__logo">AP</span>
|
|
@@ -1963,7 +1962,7 @@ ${t}${n?`
|
|
|
1963
1962
|
<div class="ap-sdk-runner__meta">
|
|
1964
1963
|
<div class="ap-sdk-runner__meta-row">
|
|
1965
1964
|
<span class="ap-sdk-list-item__badge ap-sdk-list-item__badge--automate">Automate</span>
|
|
1966
|
-
<span class="ap-sdk-runner__title" title="${
|
|
1965
|
+
<span class="ap-sdk-runner__title" title="${sS(n)}">${Wc(o)}</span>
|
|
1967
1966
|
</div>
|
|
1968
1967
|
<div class="ap-sdk-runner__meta-row ap-sdk-runner__meta-row--controls">
|
|
1969
1968
|
<span class="ap-sdk-runner__counter" data-ap-runner-counter>0 actions</span>
|
|
@@ -1993,14 +1992,14 @@ ${t}${n?`
|
|
|
1993
1992
|
</div>
|
|
1994
1993
|
<div class="ap-sdk-runner__hint" data-ap-runner-hint>Closing keeps the task running — resume anytime from My Captures.</div>
|
|
1995
1994
|
<div class="ap-sdk-panel__status" data-ap-runner-summary style="display:none"></div>
|
|
1996
|
-
`,s.addEventListener("wheel",a=>{a.stopPropagation()},{passive:!0}),s.addEventListener("touchmove",a=>{a.stopPropagation()},{passive:!0}),document.body.appendChild(s),w.highlightOverlay=
|
|
1997
|
-
`)}const
|
|
1995
|
+
`,s.addEventListener("wheel",a=>{a.stopPropagation()},{passive:!0}),s.addEventListener("touchmove",a=>{a.stopPropagation()},{passive:!0}),document.body.appendChild(s),w.highlightOverlay=Bc(),gt(s),w.runnerResizeCleanup=_c(s,vc),w.runnerDragCleanup=Us(s,ys),s.querySelector("[data-ap-close]").addEventListener("click",()=>{fc(),r==null||r()}),s.querySelector("[data-ap-runner-chat-form]").addEventListener("submit",a=>{a.preventDefault(),Jx(e,A)}),s.querySelector("[data-ap-runner-cancel]").addEventListener("click",a=>{a.stopPropagation();const i=a.currentTarget;if(!w.cancelArmed){w.cancelArmed=!0,i.textContent="Confirm",w.cancelArmTimeout=setTimeout(To,aS),w.cancelDisarmDocListener=c=>{c.target!==i&&To()},document.addEventListener("click",w.cancelDisarmDocListener,!0);return}To(),Xx(e,A)}),s.querySelector("[data-ap-runner-scroll-toggle]").addEventListener("click",()=>{w.autoScrollEnabled=!w.autoScrollEnabled,w.autoScrollEnabled&&Sd(),Ho()}),s.querySelector("[data-ap-runner-scroll-jump]").addEventListener("click",()=>{w.autoScrollEnabled=!0,Sd(),Ho()}),s.querySelector("[data-ap-runner-log]").addEventListener("scroll",()=>{if(!w.autoScrollEnabled||!w.runnerEl)return;const a=w.runnerEl.querySelector("[data-ap-runner-log]");a.scrollHeight-a.scrollTop-a.clientHeight>oS&&(w.autoScrollEnabled=!1,Ho())}),Xc(),gf(A,e)}const jc="ap-sdk-captures",cS=50;function br(){try{const A=localStorage.getItem(jc);return A?JSON.parse(A):[]}catch(A){return[]}}function lS(A){const e=br(),t=[A,...e].slice(0,cS);try{localStorage.setItem(jc,JSON.stringify(t))}catch(n){}}function uS(){try{localStorage.removeItem(jc)}catch(A){}}function mf(A){var o,a,i,c,u;if(A.id){const h=document.querySelector(`label[for="${CSS.escape(A.id)}"]`),f=(o=h==null?void 0:h.textContent)==null?void 0:o.trim();if(f)return f}const e=A.closest("label"),t=(a=e==null?void 0:e.textContent)==null?void 0:a.trim();if(t)return t;const n=(i=A.getAttribute("aria-label"))==null?void 0:i.trim();if(n)return n;const r=(c=A.placeholder)==null?void 0:c.trim();if(r)return r;const s=(u=A.getAttribute("name"))==null?void 0:u.trim();return s||A.tagName.toLowerCase()}function dS(A,e){return`Click "${A}" ${e.toLowerCase()}`}function Cf(A,e,t){return t?`Typed [redacted] into ${A}`:`Typed "${e}" into ${A}`}function Hd(A,e){return`Scrolled to (${A}, ${e})`}function pS(A,e){return e?`Pressed "${A}" in ${e}`:`Pressed "${A}"`}function bf(A){return A.map((e,t)=>`${t+1}. ${e.description}`).join(`
|
|
1996
|
+
`)}const hS=400,fS=new Set(["Enter","Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]),gS=new Set(["Control","Meta","Alt","Shift"]);function BS(A){if(gS.has(A.key))return null;const e=[];return A.ctrlKey&&e.push("Ctrl"),A.metaKey&&e.push("Cmd"),A.altKey&&e.push("Alt"),e.length>0?(e.push(A.key.length===1?A.key.toUpperCase():A.key),e.join("+")):fS.has(A.key)?A.key:null}function wS(A){return A instanceof HTMLInputElement||A instanceof HTMLTextAreaElement||A instanceof HTMLSelectElement?mf(A):No(A)||A.tagName.toLowerCase()}let gr=[],ae=null,ii=null,fe=null,dt=null,pt=null;function Qf(){ii&&(ii.textContent=`● Recording — ${gr.length} step${gr.length===1?"":"s"}`)}function gc(){pt&&(clearTimeout(pt),pt=null),dt&&(gr.push(dt),dt=null,Qf())}function Ua(A){gc(),gr.push(A),Qf()}function mS(A){var e,t,n;return A instanceof HTMLSelectElement&&(n=(t=(e=A.selectedOptions[0])==null?void 0:e.textContent)==null?void 0:t.trim())!=null?n:A.value}function CS(A,e){fe&&fe(),gr=[],dt=null,ae=document.createElement("div"),ae.className="ap-sdk-recorder-bar",ae.setAttribute("data-ap-sdk","1"),ae.innerHTML=`
|
|
1998
1997
|
<span class="ap-sdk-recorder-bar__counter" data-ap-recorder-counter>● Recording — 0 steps</span>
|
|
1999
1998
|
<button class="ap-sdk-recorder-bar__btn ap-sdk-recorder-bar__btn--stop" data-ap-recorder-stop type="button">Stop</button>
|
|
2000
1999
|
<button class="ap-sdk-recorder-bar__btn ap-sdk-recorder-bar__btn--discard" data-ap-recorder-discard type="button">Discard</button>
|
|
2001
|
-
`,document.body.appendChild(
|
|
2000
|
+
`,document.body.appendChild(ae),gt(ae),ii=ae.querySelector("[data-ap-recorder-counter]");const t=()=>{gc();const i=gr;fe==null||fe(),A(i)},n=()=>{fe==null||fe()};ae.querySelector("[data-ap-recorder-stop]").addEventListener("click",t),ae.querySelector("[data-ap-recorder-discard]").addEventListener("click",n);const r=i=>{if(as(i.target))return;const c=i.target;Ua({action:"click",cssSelector:Eo(c),elementText:No(c),description:dS(No(c),c.tagName),capturedAt:new Date().toISOString()})},s=i=>{if(as(i.target))return;const c=i.target;if(!(c instanceof HTMLInputElement)&&!(c instanceof HTMLTextAreaElement)&&!(c instanceof HTMLSelectElement))return;const u=mf(c),h=Zd(c),f=h?"[redacted]":mS(c);Ua(z(F({action:"inputText",cssSelector:Eo(c),elementText:u,value:f},h?{redacted:!0}:{}),{description:Cf(u,f,h),capturedAt:new Date().toISOString()}))},o=()=>{const i=Math.round(window.scrollX),c=Math.round(window.scrollY);dt?(dt.scrollX=i,dt.scrollY=c,dt.description=Hd(i,c)):dt={action:"scroll",scrollX:i,scrollY:c,description:Hd(i,c),capturedAt:new Date().toISOString()},pt&&clearTimeout(pt),pt=setTimeout(()=>{pt=null,gc()},hS)},a=i=>{if(i.key==="Escape"){n();return}if(as(i.target))return;const c=BS(i);if(!c)return;const u=i.target instanceof Element?i.target:document.body,h=wS(u);Ua({action:"keypress",cssSelector:Eo(u),elementText:h,key:c,description:pS(c,h),capturedAt:new Date().toISOString()})};document.addEventListener("click",r,{capture:!0}),document.addEventListener("change",s,{capture:!0}),window.addEventListener("scroll",o,{capture:!0,passive:!0}),document.addEventListener("keydown",a,{capture:!0}),fe=()=>{document.removeEventListener("click",r,{capture:!0}),document.removeEventListener("change",s,{capture:!0}),window.removeEventListener("scroll",o,{capture:!0}),document.removeEventListener("keydown",a,{capture:!0}),pt&&(clearTimeout(pt),pt=null),dt=null,ae&&Bt(ae),ae==null||ae.remove(),ae=null,ii=null,fe=null}}function bS(){fe==null||fe()}function Lo(){return fe!==null}const QS="data-ap-sdk",yS="ap-sdk-fab",Ld="ap-sdk-fab--dragging",Yc="ap-sdk-fab--open",yf="ap-sdk-fab-pos",ai="ap-sdk-fab--left-edge",US='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/></svg>',ES='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 3 7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/><path d="m13 13 6 6"/></svg>',kS='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="12" r="8"/></svg>',FS='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg>';let M=null,lt=null,Pt=null,Mt=null,Fe=null,Yn=null,qn=null,Ar=null,Do=null,cs=null,ur=null,Ro=null,Oo=null,Po=null,Uf=0,Ef=0,kf=0,Ff=0,rr=!1,We=!1,ls=null,Bn=null;function vS(){ls=A=>{if(!M){Mo();return}if(!rr){if(Math.hypot(A.clientX-kf,A.clientY-Ff)<5)return;rr=!0,We=!0,M.classList.add(Ld)}_S(A.clientX-Uf,A.clientY-Ef)},Bn=()=>{if(!M){Mo();return}rr?(rr=!1,M.classList.remove(Ld),M.style.transition="",xS(M.getBoundingClientRect())):M.style.transition="",Mo()},window.addEventListener("pointermove",ls),window.addEventListener("pointerup",Bn),window.addEventListener("pointercancel",Bn)}function Mo(){ls&&(window.removeEventListener("pointermove",ls),ls=null),Bn&&(window.removeEventListener("pointerup",Bn),window.removeEventListener("pointercancel",Bn),Bn=null)}function _S(A,e){if(!M)return;const t=M.offsetWidth||52,n=M.offsetHeight||52;M.style.top=`${Math.max(0,Math.min(e,window.innerHeight-n))}px`,M.style.left=`${Math.max(0,Math.min(A,window.innerWidth-t))}px`,M.style.bottom="auto",M.style.right="auto"}function xS(A){if(!M)return;const t=Math.max(16,Math.min(window.innerHeight-A.bottom,window.innerHeight-52-16)),n=A.left+A.width/2<window.innerWidth/2?"left":"right";M.style.top="auto",M.style.bottom=`${t}px`,n==="left"?(M.style.right="auto",M.style.left="16px",M.classList.add(ai)):(M.style.left="auto",M.style.right="16px",M.classList.remove(ai));try{localStorage.setItem(yf,JSON.stringify({edge:n,bottom:t}))}catch(r){}}function SS(){if(M)try{const A=localStorage.getItem(yf);if(!A)return;const e=JSON.parse(A);if(typeof e.bottom!="number"||e.edge!=="left"&&e.edge!=="right")return;const n=Math.max(16,Math.min(e.bottom,window.innerHeight-52-16));M.style.top="auto",M.style.bottom=`${n}px`,e.edge==="left"?(M.style.right="auto",M.style.left="16px",M.classList.add(ai)):(M.style.left="auto",M.style.right="16px",M.classList.remove(ai))}catch(A){}}function sr(){M==null||M.classList.remove(Yc),ur&&(window.removeEventListener("pointerdown",ur,{capture:!0}),ur=null)}function IS(){M&&(M.classList.add(Yc),ur=A=>{!M||M.contains(A.target)||sr()},requestAnimationFrame(()=>{ur&&window.addEventListener("pointerdown",ur,{capture:!0})}))}function bo(A){return new DOMParser().parseFromString(A,"text/html").body.firstElementChild}function vf(A,e,t){var a;if(Ro=A,Oo=e,Po=t,M)return;M=document.createElement("div"),M.className=yS,M.setAttribute(QS,"1"),Yn=document.createElement("div"),Yn.className="ap-sdk-fab__row";const n=document.createElement("span");n.className="ap-sdk-fab__label",n.textContent="View captures",Fe=document.createElement("button"),Fe.className="ap-sdk-fab__list ap-sdk-fab__sub",Fe.setAttribute("aria-label","My captures"),Fe.setAttribute("title","View my captures"),Fe.appendChild(bo(FS));const r=document.createElement("span");r.className="ap-sdk-fab__badge",r.setAttribute("data-ap-badge",""),r.style.display="none",Fe.appendChild(r),Yn.appendChild(n),Yn.appendChild(Fe),qn=document.createElement("div"),qn.className="ap-sdk-fab__row";const s=document.createElement("span");s.className="ap-sdk-fab__label",s.textContent="Capture element",Pt=document.createElement("button"),Pt.className="ap-sdk-fab__capture ap-sdk-fab__sub",Pt.setAttribute("aria-label","Capture element"),Pt.setAttribute("title","Capture element to Agent Platform"),Pt.appendChild(bo(ES)),qn.appendChild(s),qn.appendChild(Pt),Ar=document.createElement("div"),Ar.className="ap-sdk-fab__row";const o=document.createElement("span");o.className="ap-sdk-fab__label",o.textContent="Record interaction",Mt=document.createElement("button"),Mt.className="ap-sdk-fab__record ap-sdk-fab__sub",Mt.setAttribute("aria-label","Record interaction"),Mt.setAttribute("title","Record a sequence of interactions"),Mt.appendChild(bo(kS)),Ar.appendChild(o),Ar.appendChild(Mt),lt=document.createElement("button"),lt.className="ap-sdk-fab__main",lt.setAttribute("aria-label","Agent Platform"),lt.setAttribute("title","Agent Platform"),lt.appendChild(bo(US)),M.appendChild(Yn),M.appendChild(qn),M.appendChild(Ar),M.appendChild(lt),lt.addEventListener("click",i=>{if(We){We=!1;return}i.preventDefault(),i.stopPropagation(),M!=null&&M.classList.contains(Yc)?sr():IS()}),Pt.addEventListener("click",i=>{if(We){We=!1;return}i.preventDefault(),i.stopPropagation(),sr(),!ar()&&!Lo()&&Ro&&Ro()}),Mt.addEventListener("click",i=>{if(We){We=!1;return}i.preventDefault(),i.stopPropagation(),sr(),!ar()&&!Lo()&&Oo&&Oo()}),Fe.addEventListener("click",i=>{if(We){We=!1;return}i.preventDefault(),i.stopPropagation(),sr(),Po&&Po()}),cs=i=>{if(!M||!(M===i.target||M.contains(i.target)))return;const c=M.getBoundingClientRect();Uf=i.clientX-c.left,Ef=i.clientY-c.top,kf=i.clientX,Ff=i.clientY,rr=!1,We=!1,M.style.transition="none",i.stopPropagation(),vS()},window.addEventListener("pointerdown",cs,{capture:!0}),((a=document.body)!=null?a:document.documentElement).appendChild(M),gt(M),SS(),Do=setInterval(()=>{lt&<.classList.toggle("ap-sdk-fab__main--active",ar()||Lo())},200)}function vn(A){const e=Fe==null?void 0:Fe.querySelector("[data-ap-badge]");e&&(A>0?(e.textContent=String(A),e.style.display=""):e.style.display="none")}function _f(){rr=!1,We=!1,Mo(),sr(),Do&&(clearInterval(Do),Do=null),cs&&(window.removeEventListener("pointerdown",cs,{capture:!0}),cs=null),M&&Bt(M),M==null||M.remove(),M=null,lt=null,Pt=null,Mt=null,Fe=null,Yn=null,qn=null,Ar=null,Ro=null,Oo=null,Po=null}function xf(A,e){return I(this,null,function*(){try{if(A.type==="planning"){const n=yield $Q(e,A.id);return{capture:A,status:n.status,approved:n.status==="approved"}}const t=yield Tp(e,A.id);return{capture:A,status:t.status,approved:t.approved===!0}}catch(t){return{capture:A,status:"unavailable",approved:!1}}})}function Sf(A){return A.filter(e=>!e.approved).length}function If(A){return I(this,null,function*(){const e=br();if(!A||e.length===0){vn(e.length);return}const t=yield Promise.all(e.map(n=>xf(n,A)));vn(Sf(t))})}function Dd(A){return A.screenshotBlob?`
|
|
2002
2001
|
|
|
2003
|
-
(A screenshot of the selected element is attached.)`:""}function
|
|
2002
|
+
(A screenshot of the selected element is attached.)`:""}function Qo(A,e,t,n){const r=A.slice(0,120);return r||(t?n:e||n)}function TS(A){return A.map((e,t)=>{var r,s;const n=[`## Pick ${t+1}`,""];return(r=e.ctx.interactionSteps)!=null&&r.length?n.push("Recorded steps:",bf(e.ctx.interactionSteps)):(n.push(`Element: ${e.ctx.elementText||"(no text)"}`),e.ctx.cssSelector&&n.push(`Selector: ${e.ctx.cssSelector}`),e.ctx.ancestry&&n.push(`Ancestry: ${e.ctx.ancestry}`)),n.push(`Page: ${e.ctx.pageTitle} (${e.ctx.pageUrl})`),(s=e.ctx.innerTree)!=null&&s.trim()&&n.push(`
|
|
2004
2003
|
Element tree:
|
|
2005
2004
|
${e.ctx.innerTree}`),e.screenshotBlob&&n.push(`Screenshot: attached (see screenshot-${t+1}.png)`),n.push("",`Instruction:
|
|
2006
2005
|
${e.instruction}`),n.join(`
|
|
@@ -2008,15 +2007,15 @@ ${e.instruction}`),n.join(`
|
|
|
2008
2007
|
|
|
2009
2008
|
---
|
|
2010
2009
|
|
|
2011
|
-
`)}function
|
|
2010
|
+
`)}function HS(i){return I(this,arguments,function*({opts:A,advancedOpts:e,allPicks:t,captureType:n,note:r,allowSubmit:s,project:o,projectCode:a}){var m,b;const u=t.some(k=>!!k.screenshotBlob)?(yield Promise.all(t.map((k,E)=>k.screenshotBlob?RQ(A,k.screenshotBlob,`screenshot-${E+1}.png`).then(v=>v.id).catch(()=>null):Promise.resolve(null)))).filter(k=>k!==null):[],h={id:o==null?void 0:o.id,key:a};let f,g;if(t.length===1){const k=r+Dd(t[0]),E=t[0].ctx;if(n==="task")f=(yield Sa(A,{project:h,note:k,ctx:E,advancedOpts:e,extraFileIds:u})).id,g=Qo(r,E.pageTitle,!!e.instructionTemplateId,"Browser capture");else if(n==="planning"){let v=LB(r,z(F({},E),{ancestry:E.outerTree||E.ancestry}));(m=E.innerTree)!=null&&m.trim()&&(v+=`
|
|
2012
2011
|
|
|
2013
2012
|
Element tree:
|
|
2014
2013
|
${E.innerTree}`),(b=E.interactionSteps)!=null&&b.length&&(v+=`
|
|
2015
2014
|
|
|
2016
2015
|
Recorded steps:
|
|
2017
|
-
${
|
|
2016
|
+
${bf(E.interactionSteps)}`),v+=Dd(t[0]),f=(yield Jl(A,h,v,e,u)).id,g=Qo(r,E.pageTitle,!!e.instructionTemplateId,"Planning session")}else f=(yield Wl(A,{project:h,note:k,ctx:E,advancedOpts:e,allowSubmit:s,extraFileIds:u})).id,g=Qo(r,E.pageTitle,!!e.instructionTemplateId,"Browser automation")}else{const k=TS(t),E=Qo(t[0].instruction,t[0].ctx.pageTitle,!!e.instructionTemplateId,"Multi-element capture"),v=t.map(y=>y.instruction).filter(Boolean).join(`
|
|
2018
2017
|
|
|
2019
|
-
`);n==="task"?(f=(yield
|
|
2018
|
+
`);n==="task"?(f=(yield Sa(A,{project:h,note:k,ctx:t[0].ctx,advancedOpts:e,titleOverride:E,type:Cc,titleInstruction:v,extraFileIds:u})).id,g=E):n==="planning"?(f=(yield Jl(A,h,k,e,u)).id,g=E):(f=(yield Wl(A,{project:h,note:k,ctx:t[0].ctx,advancedOpts:e,titleOverride:E,titleInstruction:v,allowSubmit:s,extraFileIds:u})).id,g=E)}return{createdId:f,captureType:n,captureTitle:g}})}function LS(A){const{state:e,apiOpts:t,project:n,projectCode:r,needsCredentials:s,statusEl:o,submitBtn:a,panelEl:i,screenshotEl:c,noteEl:u,advancedOptionsRef:h,instructionComposerRef:f,onClose:g,onCredentialsSaved:m,closeAndCleanup:b,clearTrackCleanup:k,hideHighlight:E}=A,v=()=>I(null,null,function*(){if(e.submitting)return;if(s){vt(o,"error","Connect to Agent Platform first.");return}const y=t.backendUrl,U=t.token,x=u.value.trim(),D=h.getOptions();if(!D.instructionTemplateId&&!x){vt(o,"error","Please enter an instruction.");return}if(D.instructionTemplateId&&!f.isValid()){vt(o,"error","Please fill in the required template fields.");return}e.submitting=!0,fa(i,!0),vt(o,null,""),a.textContent="Submitting…";const H={backendUrl:y,token:U},Z=[...e.completedPicks,{ctx:e.currentCtx,instruction:x,screenshotBlob:e.screenshotIncluded?e.currentScreenshotBlob:null}];try{const{createdId:K,captureType:X,captureTitle:N}=yield HS({opts:H,advancedOpts:D,allPicks:Z,captureType:e.captureType,note:x,allowSubmit:e.allowSubmit,project:n,projectCode:r});if(lS({id:K,type:X,title:N,backendUrl:y,createdAt:new Date().toISOString()}),xc(),If(H).catch(()=>{}),X==="automate"){b(),Jc(K,H,y,N,g);return}const tA=X==="task"?`${y.replace(/\/+$/,"")}/tasks/${K}`:`${y.replace(/\/+$/,"")}/planning/${K}`;l_(o,X,N,tA,b),i.classList.add("ap-sdk-panel--success"),k(),E(),c.style.display="none",e.submitting=!1,fa(i,!1)}catch(K){K instanceof Sp?p_(o,()=>I(null,null,function*(){const{code:X}=yield ac(y),{token:N,expiresAt:tA}=yield Ia({backendUrl:y},X,window.location.origin);xi({backendUrl:y,token:N,projectCode:r,expiresAt:tA}),t.token=N,m({backendUrl:y,token:N}),yield v()})):vt(o,"error",K instanceof Error?K.message:"An unexpected error occurred."),e.submitting=!1,fa(i,!1),a.textContent="Submit"}});return v}const Rd={task:{entityType:Fo.TASK,taskType:Cc,scenario:vo.CREATE},automate:{entityType:Fo.TASK,taskType:Jd,scenario:vo.CREATE},planning:{entityType:Fo.PLANNING_SESSION,scenario:vo.CREATE}};let AA=null,le=null,_t=null,ns=null,rs=null;function us(){return AA!==null}function bs(){AA&&Bt(AA),AA==null||AA.remove(),AA=null,_t==null||_t(),_t=null,ns==null||ns(),ns=null,rs==null||rs(),rs=null,le==null||le.destroy(),le=null}function Tf(A,e,t,n,r,s,o,a,i,c,u=null,h){var MA,nt,Qe,ye,bt,Me,rt,st,nn,Tt,Dn;AA&&bs();const f=!t.backendUrl||!t.token,g=Yl(u,"tasks:write"),m=Yl(u,"planning-sessions:write"),b=!g&&m?"planning":"task",k=h?null:Rp(),E={captureType:(nt=(MA=h==null?void 0:h.captureType)!=null?MA:k==null?void 0:k.captureType)!=null?nt:b,submitting:!1,completedPicks:(ye=(Qe=h==null?void 0:h.completedPicks)!=null?Qe:k==null?void 0:k.completedPicks)!=null?ye:[],currentCtx:A,currentPickedEl:e,awaitingPick:!1,allowSubmit:(Me=(bt=h==null?void 0:h.allowSubmit)!=null?bt:k==null?void 0:k.allowSubmit)!=null?Me:!1,currentScreenshotBlob:(rt=h==null?void 0:h.currentScreenshotBlob)!=null?rt:null,screenshotCapturing:!1,screenshotIncluded:(st=h==null?void 0:h.screenshotIncluded)!=null?st:!1,screenshotError:(nn=h==null?void 0:h.screenshotError)!=null?nn:null};AA=document.createElement("div"),AA.className="ap-sdk-panel",AA.setAttribute("data-ap-sdk","1"),AA.setAttribute("role","dialog"),AA.setAttribute("aria-modal","true"),AA.setAttribute("aria-label","Capture to Agent Platform"),AA.innerHTML=c_(A,{needsCredentials:f,canCreateTask:g,canCreatePlanning:m,captureType:E.captureType,hasOnReselect:!!i,hasOnAddAnother:!!a}),AA.addEventListener("wheel",KA=>{KA.stopPropagation()},{passive:!0}),AA.addEventListener("touchmove",KA=>{KA.stopPropagation()},{passive:!0});const v=AA.querySelector(".ap-sdk-panel__body"),y=YQ(v,t,(Tt=n==null?void 0:n.id)!=null?Tt:null);let U=()=>{};const x=AA.querySelector("[data-ap-note]");let D=ql(x,t,(Dn=n==null?void 0:n.id)!=null?Dn:null,Rd[E.captureType],()=>U());const H={getOptions(){return F(F({},y.getOptions()),D.getSelection())}};document.body.appendChild(AA),le=Bc(),E.currentPickedEl&&le.update(E.currentPickedEl),gt(AA),ns=_c(AA,vc),rs=Us(AA,ys);const Z=AA.querySelector("[data-ap-close]"),K=AA.querySelector("[data-ap-cancel]"),X=AA.querySelector("[data-ap-submit]"),N=AA.querySelector("[data-ap-note]"),tA=AA.querySelector("[data-ap-status]"),dA=AA.querySelectorAll("[data-ap-type]"),FA=AA.querySelector("[data-ap-automate-options]"),ZA=AA.querySelector("[data-ap-allow-submit]"),se=AA.querySelector("[data-ap-pick-list]"),Oe=AA.querySelector("[data-ap-context]"),An=AA.querySelector("[data-ap-screenshot]"),Qr=AA.querySelector("[data-ap-add-another]"),Hn=AA.querySelector("[data-ap-pick-actions]"),vA=AA.querySelector("[data-ap-select-parent]"),Ln=AA.querySelector("[data-ap-reselect]"),_A=AA.querySelector("[data-ap-clear-selections]"),Ct=()=>{X.disabled=E.submitting||!D.getSelection().instructionTemplateId&&!N.value.trim()||!D.isValid()};U=Ct;const cA=u_(E,An),XA=()=>{E.currentPickedEl&&(le==null||le.update(E.currentPickedEl))};window.addEventListener("scroll",XA,{capture:!0,passive:!0}),window.addEventListener("resize",XA),_t=()=>{window.removeEventListener("scroll",XA,!0),window.removeEventListener("resize",XA),cA.cleanup()};const Pe=d_({state:E,els:{contextEl:Oe,pickListEl:se,pickActionsEl:Hn,noteEl:N,addAnotherBtn:Qr,selectParentBtn:vA,reselectBtn:Ln,clearSelectionsBtn:_A,typeButtons:dA,allowSubmitCheckbox:ZA,automateOptionsEl:FA,statusEl:tA},screenshotCtl:cA,defaultCaptureType:b,updateHighlight:KA=>le==null?void 0:le.update(KA),onReselect:i,onAddAnother:a});h?(N.value=h.note,ZA.checked=h.allowSubmit,FA.style.display=E.captureType==="automate"?"":"none",Pe.renderPickList(),vt(tA,"success","Reconnected — your draft was kept."),cA.renderScreenshotUi()):k?(N.value=k.note,ZA.checked=k.allowSubmit,FA.style.display=E.captureType==="automate"?"":"none",Pe.renderPickList(),vt(tA,"success","Restored your previous selections."),cA.renderScreenshotUi()):E.currentPickedEl&&cA.handleNewPick(E.currentPickedEl),Ct();const pe=()=>{bs(),c==null||c()},xA=()=>({captureType:E.captureType,note:N.value,completedPicks:E.completedPicks,currentCtx:E.currentCtx,currentPickedEl:E.currentPickedEl,allowSubmit:E.allowSubmit,currentScreenshotBlob:E.currentScreenshotBlob,screenshotIncluded:E.screenshotIncluded,screenshotError:E.screenshotError});Z.addEventListener("click",pe),K.addEventListener("click",pe);const TA=AA.querySelector("[data-ap-connect-required]");TA&&o&&TA.addEventListener("click",()=>{const KA=xA();pe(),o(KA)}),dA.forEach(KA=>{KA.addEventListener("click",()=>{var ot;E.captureType=KA.dataset.apType,dA.forEach(Ke=>Ke.classList.toggle("ap-sdk-active",Ke===KA)),FA.style.display=E.captureType==="automate"?"":"none",D=ql(x,t,(ot=n==null?void 0:n.id)!=null?ot:null,Rd[E.captureType],()=>U()),Ct(),Pe.persistDraft()})}),ZA.addEventListener("change",()=>{E.allowSubmit=ZA.checked,Pe.persistDraft()}),N.addEventListener("input",Pe.persistDraft),N.addEventListener("input",Ct);const en=AA.querySelector("[data-ap-reconfigure]");o?en.addEventListener("click",()=>{const KA=xA();pe(),o(KA)}):en.style.display="none";const tn=LS({state:E,apiOpts:t,project:n,projectCode:r,needsCredentials:f,statusEl:tA,submitBtn:X,panelEl:AA,screenshotEl:An,noteEl:N,advancedOptionsRef:H,instructionComposerRef:{isValid:()=>D.isValid()},onClose:c,onCredentialsSaved:s,closeAndCleanup:pe,clearTrackCleanup:()=>{_t==null||_t(),_t=null},hideHighlight:()=>le==null?void 0:le.hide()});X.addEventListener("click",tn),setTimeout(()=>N.focus(),50)}let uA=null,ss=null,os=null;function Hf(){return uA!==null}function yn(){uA&&Bt(uA),uA==null||uA.remove(),uA=null,ss==null||ss(),ss=null,os==null||os(),os=null}function DS(A){return A==="task"?"Task":A==="planning"?"Planning":"Automate"}function RS(A){if(uA){yn();return}uA=document.createElement("div"),uA.className="ap-sdk-panel",uA.setAttribute("data-ap-sdk","1"),uA.setAttribute("role","dialog"),uA.setAttribute("aria-modal","true"),uA.setAttribute("aria-label","My captures"),uA.addEventListener("wheel",e=>{e.stopPropagation()},{passive:!0}),uA.addEventListener("touchmove",e=>{e.stopPropagation()},{passive:!0}),uA.innerHTML=`
|
|
2020
2019
|
<div class="ap-sdk-panel__header">
|
|
2021
2020
|
<span class="ap-sdk-panel__title">
|
|
2022
2021
|
<span class="ap-sdk-panel__logo">AP</span>
|
|
@@ -2029,27 +2028,27 @@ ${ff(E.interactionSteps)}`),v+=Sd(t[0]),f=(yield Gl(A,h,v,e,u)).id,g=r.slice(0,1
|
|
|
2029
2028
|
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-clear-history>Clear history</button>
|
|
2030
2029
|
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-close-list>Close</button>
|
|
2031
2030
|
</div>
|
|
2032
|
-
`,document.body.appendChild(
|
|
2031
|
+
`,document.body.appendChild(uA),gt(uA),ss=_c(uA,vc),os=Us(uA,ys),uA.querySelector("[data-ap-close]").addEventListener("click",()=>{yn()}),uA.querySelector("[data-ap-close-list]").addEventListener("click",()=>{yn()}),uA.querySelector("[data-ap-clear-history]").addEventListener("click",()=>{uS(),vn(0),Od(A)}),Od(A)}function Od(A){if(!uA)return;const e=uA.querySelector("[data-ap-list-body]"),t=br();if(t.length===0){e.innerHTML='<p class="ap-sdk-list-empty">No captures yet. Use the capture button to get started.</p>';return}if(e.innerHTML=t.map(n=>`
|
|
2033
2032
|
<div class="ap-sdk-list-item">
|
|
2034
2033
|
<div class="ap-sdk-list-item__row">
|
|
2035
|
-
<span class="ap-sdk-list-item__badge ap-sdk-list-item__badge--${n.type}">${
|
|
2036
|
-
<span class="ap-sdk-list-item__title" title="${yo(n.title)}">${
|
|
2034
|
+
<span class="ap-sdk-list-item__badge ap-sdk-list-item__badge--${n.type}">${DS(n.type)}</span>
|
|
2035
|
+
<span class="ap-sdk-list-item__title" title="${yo(n.title)}">${MS(n.title)}</span>
|
|
2037
2036
|
</div>
|
|
2038
2037
|
<div class="ap-sdk-list-item__row">
|
|
2039
2038
|
<span class="ap-sdk-status-badge" data-ap-status="${yo(n.id)}">${A?"…":"—"}</span>
|
|
2040
|
-
${n.type==="automate"&&A?`<button class="ap-sdk-list-item__link" data-ap-resume="${yo(n.id)}">Resume →</button>`:`<a class="ap-sdk-list-item__link" href="${yo(
|
|
2039
|
+
${n.type==="automate"&&A?`<button class="ap-sdk-list-item__link" data-ap-resume="${yo(n.id)}">Resume →</button>`:`<a class="ap-sdk-list-item__link" href="${yo(PS(n))}" target="_blank" rel="noopener noreferrer">View →</a>`}
|
|
2041
2040
|
</div>
|
|
2042
2041
|
</div>
|
|
2043
|
-
`).join(""),A){const n=A;Promise.all(t.map(r=>
|
|
2042
|
+
`).join(""),A){const n=A;Promise.all(t.map(r=>OS(r,n))).then(r=>{vn(Sf(r))}),e.querySelectorAll("[data-ap-resume]").forEach(r=>{r.addEventListener("click",()=>{const s=r.dataset.apResume,o=t.find(a=>a.id===s);o&&(yn(),Jc(o.id,n,o.backendUrl,o.title,()=>{}))})})}}function OS(A,e){return I(this,null,function*(){const t=yield xf(A,e),n=uA==null?void 0:uA.querySelector(`[data-ap-status="${CSS.escape(A.id)}"]`);return n&&(n.textContent=t.status.replace(/_/g," "),n.className=`ap-sdk-status-badge ap-sdk-status-badge--${t.status.replace(/_/g,"-")}`),t})}function PS(A){const e=A.backendUrl.replace(/\/+$/,"");return A.type==="planning"?`${e}/planning/${A.id}`:`${e}/tasks/${A.id}`}function yo(A){return A.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function MS(A){return A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}let Se=null,ci=!1;function KS(){Se==null||Se.disconnect(),Array.from(document.body.querySelectorAll(':scope > [data-ap-sdk="1"]')).forEach(A=>document.body.appendChild(A)),Se&&Se.observe(document.body,{childList:!0}),ci=!1}function Lf(){Se||(Se=new MutationObserver(A=>{!A.some(t=>Array.from(t.addedNodes).some(n=>n instanceof Element&&n.getAttribute("data-ap-sdk")!=="1"))||ci||(ci=!0,queueMicrotask(KS))}),Se.observe(document.body,{childList:!0}))}function NS(){Se==null||Se.disconnect(),Se=null,ci=!1}let te=null;function _n(){te&&Bt(te),te==null||te.remove(),te=null}function Pd(A){const e=A.note.trim();return e?e.length>80?`${e.slice(0,77)}…`:e:A.completedPicks.length>0?`${A.completedPicks.length} saved pick${A.completedPicks.length===1?"":"s"}`:"Untitled draft"}function Df(A){if(te)return;const e=Rp();e&&(te=document.createElement("div"),te.className="ap-sdk-resume-banner",te.setAttribute("data-ap-sdk","1"),te.setAttribute("role","status"),te.innerHTML=`
|
|
2044
2043
|
<div>
|
|
2045
2044
|
<span class="ap-sdk-resume-banner__title">Resume your draft?</span>
|
|
2046
|
-
<span class="ap-sdk-resume-banner__summary" title="${
|
|
2045
|
+
<span class="ap-sdk-resume-banner__summary" title="${$S(Pd(e))}">${Rf(Pd(e))}</span>
|
|
2047
2046
|
</div>
|
|
2048
2047
|
<div class="ap-sdk-resume-banner__actions">
|
|
2049
2048
|
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-resume-draft type="button">Resume</button>
|
|
2050
2049
|
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-discard-draft type="button">Discard</button>
|
|
2051
2050
|
</div>
|
|
2052
|
-
`,document.body.appendChild(
|
|
2051
|
+
`,document.body.appendChild(te),gt(te),te.querySelector("[data-ap-resume-draft]").addEventListener("click",()=>{_n(),A(e)}),te.querySelector("[data-ap-discard-draft]").addEventListener("click",()=>{xc(),_n()}))}function Rf(A){return A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function $S(A){return Rf(A)}const zS={click:"🖱",inputText:"⌨",scroll:"↕",keypress:"⌤"};let LA=null,Kt=[],is=null;function Ko(){LA&&Bt(LA),LA==null||LA.remove(),LA=null,Kt=[],is==null||is(),is=null}function VS(A,e,t){LA&&Ko(),Kt=[...A],LA=document.createElement("div"),LA.className="ap-sdk-panel ap-sdk-record-review",LA.setAttribute("data-ap-sdk","1"),LA.setAttribute("role","dialog"),LA.setAttribute("aria-modal","true"),LA.setAttribute("aria-label","Review recorded steps"),LA.innerHTML=`
|
|
2053
2052
|
<div class="ap-sdk-panel__header">
|
|
2054
2053
|
<span class="ap-sdk-panel__title">
|
|
2055
2054
|
<span class="ap-sdk-panel__logo">AP</span>
|
|
@@ -2064,11 +2063,11 @@ ${ff(E.interactionSteps)}`),v+=Sd(t[0]),f=(yield Gl(A,h,v,e,u)).id,g=r.slice(0,1
|
|
|
2064
2063
|
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-review-continue>Continue</button>
|
|
2065
2064
|
<button class="ap-sdk-panel__btn ap-sdk-panel__btn--ghost" data-ap-review-cancel>Cancel</button>
|
|
2066
2065
|
</div>
|
|
2067
|
-
`,document.body.appendChild(
|
|
2066
|
+
`,document.body.appendChild(LA),gt(LA),is=Us(LA,ys);const n=LA.querySelector("[data-ap-review-list]"),r=LA.querySelector("[data-ap-review-continue]"),s=()=>{if(Kt.length===0){n.innerHTML='<p class="ap-sdk-list-empty">No steps recorded.</p>',r.disabled=!0;return}r.disabled=!1,n.innerHTML=Kt.map((a,i)=>{var c;return`
|
|
2068
2067
|
<div class="ap-sdk-record-step" data-step-index="${i}">
|
|
2069
|
-
<span class="ap-sdk-record-step__icon">${
|
|
2070
|
-
${a.action==="inputText"&&!a.redacted?`<input class="ap-sdk-record-step__input" type="text" value="${
|
|
2068
|
+
<span class="ap-sdk-record-step__icon">${zS[a.action]}</span>
|
|
2069
|
+
${a.action==="inputText"&&!a.redacted?`<input class="ap-sdk-record-step__input" type="text" value="${GS((c=a.value)!=null?c:"")}" data-ap-step-value />`:`<span class="ap-sdk-record-step__description">${Of(a.description)}</span>`}
|
|
2071
2070
|
<button class="ap-sdk-record-step__remove" data-ap-step-remove="${i}" aria-label="Remove step ${i+1}">✕</button>
|
|
2072
2071
|
</div>
|
|
2073
|
-
`}).join(""),n.querySelectorAll("[data-ap-step-remove]").forEach(a=>{a.addEventListener("click",()=>{const i=parseInt(a.dataset.apStepRemove,10);
|
|
2072
|
+
`}).join(""),n.querySelectorAll("[data-ap-step-remove]").forEach(a=>{a.addEventListener("click",()=>{const i=parseInt(a.dataset.apStepRemove,10);Kt.splice(i,1),s()})}),n.querySelectorAll("[data-ap-step-value]").forEach(a=>{const i=a.closest("[data-step-index]"),c=parseInt(i.dataset.stepIndex,10);a.addEventListener("input",()=>{var h;const u=Kt[c];u.value=a.value,u.description=Cf((h=u.elementText)!=null?h:"",a.value,!1)})})};s();const o=()=>{Ko()};LA.querySelector("[data-ap-review-close]").addEventListener("click",o),LA.querySelector("[data-ap-review-cancel]").addEventListener("click",o),r.addEventListener("click",()=>{if(Kt.length===0)return;const a=Kt,i=z(F({},$d()),{pageUrl:window.location.href,pageTitle:document.title,interactionSteps:a});Ko(),e(i)})}function Of(A){return A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function GS(A){return Of(A)}let W=null,li=null,ui=null,di=null;function qc(A,e,t){li=A,ui=e,di=t,vf(A,e,t)}const Pf="#agent-platform-web-sdk",Mf="ap-sdk-fab-unlocked";let wn=null;function Kf(){try{if(localStorage.getItem(Mf)==="1")return!0}catch(A){}return window.location.hash===Pf}function Md(){try{localStorage.setItem(Mf,"1")}catch(A){}}function Nf(A){return I(this,null,function*(){var t,n,r,s,o;if(Qs(),A.requestTimeoutMs!=null&&DQ(A.requestTimeoutMs),KB((t=A.exclusionSelector)!=null?t:null),W&&W.projectCode===A.projectCode&&W.backendUrl===((n=A.backendUrl)!=null?n:null)&&W.token===((r=A.token)!=null?r:null))return;W={projectCode:A.projectCode,backendUrl:(s=A.backendUrl)!=null?s:null,token:(o=A.token)!=null?o:null,project:null,resolvingProject:!1,permissions:null},qc(()=>zf(),()=>XS(),()=>nl()),vn(br().length);let e=!1;if(W.backendUrl&&W.token){const a=W.backendUrl,i=W.token;yield Wf(),If({backendUrl:a,token:i}).catch(()=>{}),Xf({backendUrl:a,token:i}).catch(()=>{});const c=m_();c&&(Jc(c.taskId,{backendUrl:a,token:i},c.backendUrl,c.title,()=>{}),e=!0)}e||Df($f),Lf()})}function Al(A,e){return I(this,null,function*(){if(!W)throw new Error("AgentPlatformSDK: call init() first.");W.backendUrl=A,W.token=e,W.project=null,W.permissions=null,yield Wf(),Xf({backendUrl:A,token:e}).catch(()=>{})})}function el(A,e,t){if(!W)throw new Error("AgentPlatformSDK: call init() first.");Tf(A,e,{backendUrl:W.backendUrl,token:W.token},W.project,W.projectCode,n=>I(null,null,function*(){yield Al(n.backendUrl,n.token)}),n=>{Oc(r=>{xi(r),Ii(r).then(()=>el(n.currentCtx,n.currentPickedEl,n)).catch(console.error)})},n=>{Fa((r,s)=>{us()&&n(r,s)},()=>{Vf()})},(n,r)=>{Fa((s,o)=>{us()&&n(s,o)},()=>{us()&&r()})},()=>{ar()&&mc()},W.permissions,t)}function tl(A,e){if(!W)throw new Error("AgentPlatformSDK: call init() first.");Tf(A,null,{backendUrl:W.backendUrl,token:W.token},W.project,W.projectCode,t=>I(null,null,function*(){yield Al(t.backendUrl,t.token)}),t=>{Oc(n=>{xi(n),Ii(n).then(()=>tl(t.currentCtx,t)).catch(console.error)})},void 0,void 0,()=>{},W.permissions,e)}function $f(A){var e;if(!W){Br();return}(e=A.currentCtx.interactionSteps)!=null&&e.length?tl(A.currentCtx,void 0):el(A.currentCtx,null,void 0)}function zf(){if(!W)throw new Error("AgentPlatformSDK: call init() first.");ar()||(_n(),Qs(),Fa((A,e)=>I(null,null,function*(){Hf()&&yn(),el(A,e)}),()=>{}))}function ZS(){mc()}function XS(){if(!W)throw new Error("AgentPlatformSDK: call init() first.");Lo()||(_n(),Qs(),CS(A=>{VS(A,e=>tl(e))}))}function Vf(){us()&&bs()}function WS(){return ar()}function Gf(){NS(),wn&&(window.removeEventListener("hashchange",wn),wn=null),mc(),bS(),Ko(),bs(),yn(),_n(),_f(),li=null,ui=null,di=null,W=null}function Zf(){if(typeof window=="undefined"||typeof document=="undefined")return;Qs();const A=g_(),e=()=>{A?Ii(A).catch(console.error):(qc(()=>Br(),()=>Br(),()=>nl()),vn(br().length),Df($f),Lf())};if(Kf()){Md(),e();return}wn=()=>{window.location.hash===Pf&&(Md(),window.removeEventListener("hashchange",wn),wn=null,e())},window.addEventListener("hashchange",wn)}function JS(){li&&ui&&di&&vf(li,ui,di)}function jS(){_f()}function Br(){_n(),Oc(A=>{xi(A),Ii(A).catch(console.error)})}function YS(){Jh(),Gf(),Qs(),Kf()&&(qc(()=>Br(),()=>Br(),()=>nl()),vn(br().length))}function Ii(A){return I(this,null,function*(){yield Nf({projectCode:A.projectCode,backendUrl:A.backendUrl,token:A.token})})}function nl(){if(Hf()){yn();return}_n(),us()&&bs();const A=W!=null&&W.backendUrl&&(W!=null&&W.token)?{backendUrl:W.backendUrl,token:W.token}:null;RS(A)}function Xf(A){return I(this,null,function*(){const e=yield zQ(A);W&&(W.permissions=e.permissions)})}function Wf(){return I(this,null,function*(){if(!(!W||!W.backendUrl||!W.token||W.project||W.resolvingProject)){W.resolvingProject=!0;try{W.project=yield OQ({backendUrl:W.backendUrl,token:W.token},W.projectCode)}catch(A){}finally{W&&(W.resolvingProject=!1)}}})}Zf();exports.activateElementPicker=zf;exports.autoInit=Zf;exports.clearConfig=YS;exports.closePanelIfOpen=Vf;exports.configure=Br;exports.deactivateElementPicker=ZS;exports.destroy=Gf;exports.hideFab=jS;exports.init=Nf;exports.isPickerRunning=WS;exports.showFab=JS;exports.updateCredentials=Al;
|
|
2074
2073
|
//# sourceMappingURL=web-sdk.cjs.map
|