wysiwyg-editor-3lab 1.0.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- "use strict";var rB=Object.defineProperty;var nB=(t,A,e)=>A in t?rB(t,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[A]=e;var oA=(t,A,e)=>nB(t,typeof A!="symbol"?A+"":A,e);const RA=require("react"),V=require("react/jsx-runtime"),iB=require("react-dom"),aA=(t,A,e,r,n)=>({id:t,re:A,add:e,maxHits:r,note:n}),sB=[{lang:"dockerfile",aliases:["Dockerfile"],priority:100,minScore:20,rules:[aA("df.from",/^\s*FROM\s+[\w./:-]+/gmi,12,3,"FROM image"),aA("df.run",/^\s*RUN\s+/gmi,6,6),aA("df.copy_add",/^\s*(COPY|ADD)\s+/gmi,8,4),aA("df.cmd_entry",/^\s*(CMD|ENTRYPOINT)\s+/gmi,10,2),aA("df.arg_env",/^\s*(ARG|ENV)\s+[A-Z0-9_]+/gmi,6,4),aA("df.workdir",/^\s*WORKDIR\s+/gmi,6,2),aA("df.expose",/^\s*EXPOSE\s+\d+/gmi,5,2)]},{lang:"docker-compose",aliases:["docker-compose","compose","compose.yml","compose.yaml"],priority:95,minScore:22,rules:[aA("dc.services",/^\s*services\s*:\s*$/gmi,14,1),aA("dc.image",/^\s*image\s*:\s*["']?[\w./:-]+/gmi,8,5),aA("dc.build",/^\s*build\s*:\s*/gmi,6,4),aA("dc.ports",/^\s*ports\s*:\s*$/gmi,5,2),aA("dc.volumes",/^\s*volumes\s*:\s*$/gmi,6,2),aA("dc.networks",/^\s*networks\s*:\s*$/gmi,6,2),aA("dc.depends_on",/^\s*depends_on\s*:\s*$/gmi,6,2),aA("dc.environment",/^\s*environment\s*:\s*$/gmi,4,2),aA("dc.version",/^\s*version\s*:\s*["']?\d+(\.\d+)?["']?\s*$/gmi,2,1)]},{lang:"kubernetes",aliases:["k8s","kubernetes","kube"],priority:90,minScore:20,rules:[aA("k8s.apiVersion",/^\s*apiVersion\s*:\s*[\w./-]+\s*$/gmi,12,1),aA("k8s.kind",/^\s*kind\s*:\s*\w+\s*$/gmi,10,1),aA("k8s.metadata",/^\s*metadata\s*:\s*$/gmi,6,1),aA("k8s.spec",/^\s*spec\s*:\s*$/gmi,4,2),aA("k8s.containers",/^\s*containers\s*:\s*$/gmi,6,1),aA("k8s.image",/^\s*image\s*:\s*["']?[\w./:-]+/gmi,4,6),aA("k8s.selector",/^\s*selector\s*:\s*$/gmi,4,1)]},{lang:"nginx",aliases:["nginx","nginx.conf"],priority:88,minScore:18,rules:[aA("ngx.server_block",/^\s*server\s*\{/gmi,10,3),aA("ngx.location",/^\s*location\s+[^ {]+\s*\{/gmi,8,5),aA("ngx.proxy_pass",/^\s*proxy_pass\s+https?:\/\/|^\s*proxy_pass\s+unix:/gmi,10,5),aA("ngx.upstream",/^\s*upstream\s+\w+\s*\{/gmi,10,2),aA("ngx.listen",/^\s*listen\s+\d+/gmi,5,5),aA("ngx.ssl",/^\s*ssl_(certificate|certificate_key)\s+/gmi,6,2),aA("ngx.directive_semicolon",/;\s*$/gm,2,20,"nginx directives end with ';'")]},{lang:"caddyfile",aliases:["caddy","Caddyfile"],priority:87,minScore:16,rules:[aA("cad.site_block",/^\s*([a-z0-9.-]+\.[a-z]{2,}|:\d+)\s*\{\s*$/gmi,10,2),aA("cad.reverse_proxy",/^\s*reverse_proxy\s+/gmi,10,6),aA("cad.file_server",/^\s*file_server\s*$/gmi,7,2),aA("cad.encode",/^\s*encode\s+/gmi,5,2),aA("cad.header",/^\s*header\s+/gmi,4,3),aA("cad.handle",/^\s*handle(_path)?\s+/gmi,4,3)]},{lang:"terraform",aliases:["tf","terraform","hcl"],priority:80,minScore:14,rules:[aA("tf.block",/^\s*(resource|data|module|variable|output|provider|terraform)\s+"[^"]+"\s+("?[^\s"]+"?)?\s*\{/gmi,12,3),aA("tf.assign",/^\s*[a-zA-Z0-9_-]+\s*=\s*.+$/gm,3,10),aA("tf.interp",/\${\s*[^}]+\s*}/g,4,6)]},{lang:"ansible",aliases:["ansible"],priority:78,minScore:16,rules:[aA("ans.hosts",/^\s*hosts\s*:\s*.+$/gmi,8,2),aA("ans.tasks",/^\s*tasks\s*:\s*$/gmi,8,1),aA("ans.handlers",/^\s*handlers\s*:\s*$/gmi,6,1),aA("ans.module",/^\s*-\s*(name|debug|copy|template|shell|command|service|apt|yum|file|lineinfile)\s*:/gmi,5,8),aA("ans.become",/^\s*become\s*:\s*(true|false)\s*$/gmi,4,2)]},{lang:"apache",aliases:["apache","httpd","apache.conf"],priority:70,minScore:14,rules:[aA("ap.directive",/^\s*(VirtualHost|Directory|IfModule|Location|ProxyPass|ProxyPassReverse)\b/gmi,8,6),aA("ap.rewrite",/^\s*Rewrite(Engine|Rule|Cond)\b/gmi,6,6),aA("ap.listen",/^\s*Listen\s+\d+/gmi,4,2)]},{lang:"powershell",aliases:["ps","ps1","powershell"],priority:75,minScore:14,rules:[aA("ps.param",/^\s*param\s*\(/gmi,10,1),aA("ps.cmdlet",/\b(Get|Set|New|Remove|Start|Stop|Restart|Test|Invoke)-[A-Za-z]+\b/g,6,10),aA("ps.var",new RegExp("(?<!`)\\$[A-Za-z_][A-Za-z0-9_]*","g"),3,30),aA("ps.pipeline",/\|\s*(Where-Object|Select-Object|ForEach-Object|Sort-Object|Out-File)\b/g,5,10),aA("ps.hashtable",/@\{\s*[^}]*\}/gs,5,2),aA("ps.comment",/^\s*#(?!\!).*$/gm,1,20)]},{lang:"bash",aliases:["bash","sh"],priority:60,minScore:12,rules:[aA("sh.shebang",/^\s*#!\/(usr\/bin\/env\s+)?(bash|sh)\b.*$/gmi,10,1),aA("sh.set",/^\s*set\s+-[euo]+/gmi,6,2),aA("sh.export",/^\s*export\s+[A-Z_][A-Z0-9_]*=/gm,4,10),aA("sh.if_fi",/^\s*(if|elif|then|fi)\b/gmi,2,10),aA("sh.func",/^\s*[a-zA-Z_][a-zA-Z0-9_]*\s*\(\)\s*\{/gm,4,4),aA("sh.sudo",/\bsudo\b/g,2,10)]},{lang:"cmd",aliases:["cmd","bat"],priority:55,minScore:10,rules:[aA("cmd.at_echo",/^\s*@?echo\s+(on|off)\b/gmi,8,1),aA("cmd.set",/^\s*set\s+[A-Za-z_][A-Za-z0-9_]*=/gmi,4,10),aA("cmd.if",/^\s*if\s+(not\s+)?(exist|defined)\b/gmi,4,6),aA("cmd.goto",/^\s*goto\s+[:A-Za-z0-9_]+/gmi,4,5),aA("cmd.label",/^\s*:[A-Za-z0-9_]+/gm,3,10)]},{lang:"jsonl",aliases:["jsonl","ndjson"],priority:65,minScore:14,rules:[aA("jsonl.lines",/^\s*\{.*\}\s*$/gm,2,50),aA("jsonl.multi",/(\}\s*\n\s*\{)/g,8,2,"multiple JSON objects lines")]},{lang:"json",aliases:["json"],priority:50,minScore:12,rules:[aA("json.braces",/^\s*[\{\[]/m,4,1),aA("json.kv",/"[^"\n]*"\s*:\s*/g,4,20),aA("json.truefalse",/\b(true|false|null)\b/g,1,20)]},{lang:"yaml",aliases:["yaml","yml"],priority:45,minScore:10,rules:[aA("y.key",/^\s*[A-Za-z0-9_.-]+\s*:\s*.*$/gm,2,30),aA("y.list",/^\s*-\s+.+$/gm,2,30),aA("y.doc",/^\s*---\s*$/gm,4,2),aA("y.anchors",/&[A-Za-z0-9_-]+|\*[A-Za-z0-9_-]+/g,3,6)]},{lang:"toml",aliases:["toml"],priority:44,minScore:10,rules:[aA("toml.section",/^\s*\[[A-Za-z0-9_.-]+\]\s*$/gm,6,6),aA("toml.kv",/^\s*[A-Za-z0-9_.-]+\s*=\s*.+$/gm,3,30)]},{lang:"ini",aliases:["ini","cfg","conf"],priority:40,minScore:9,rules:[aA("ini.section",/^\s*\[[^\]\n]+\]\s*$/gm,6,8),aA("ini.kv",/^\s*[A-Za-z0-9_.-]+\s*=\s*.*$/gm,2,30),aA("ini.comment",/^\s*[;#].*$/gm,1,30)]},{lang:"dotenv",aliases:["dotenv",".env","env"],priority:43,minScore:10,rules:[aA("env.kv",/^\s*[A-Za-z_][A-Za-z0-9_]*\s*=\s*.*$/gm,3,40),aA("env.export",/^\s*export\s+[A-Za-z_][A-Za-z0-9_]*=/gm,4,10)]},{lang:"csv",aliases:["csv"],priority:35,minScore:8,rules:[aA("csv.header",/^[^\n,]+(,[^\n,]+){2,}\s*$/m,6,1),aA("csv.rows",/^[^\n,]+(,[^\n,]+){2,}\s*$/gm,1,30)]},{lang:"svg",aliases:["svg"],priority:60,minScore:14,rules:[aA("svg.tag",/<svg\b[^>]*>/i,14,1),aA("svg.path",/<path\b[^>]*d\s*=\s*["'][^"']+/gi,6,5)]},{lang:"xml",aliases:["xml"],priority:52,minScore:12,rules:[aA("xml.prolog",/^\s*<\?xml\b[^?]*\?>/mi,10,1),aA("xml.tag",/<([A-Za-z_][\w:.-]*)\b[^>]*>/g,2,20)]},{lang:"html",aliases:["html","htm"],priority:51,minScore:11,rules:[aA("html.doctype",/^\s*<!DOCTYPE\s+html>/gmi,12,1),aA("html.tags",/<\/?(div|span|p|a|img|section|header|footer|main|script|style|link|meta)\b/gi,2,30),aA("html.attr",/\b(class|id|href|src|data-[\w-]+)\s*=\s*["'][^"']*["']/gi,2,30)]},{lang:"markdown",aliases:["md","markdown"],priority:30,minScore:9,rules:[aA("md.headings",/^\s{0,3}#{1,6}\s+.+$/gm,4,10),aA("md.list",/^\s*([-*+]|\d+\.)\s+.+$/gm,2,20),aA("md.codefence",/^\s*```[\w-]*\s*$/gm,6,4),aA("md.link",/\[[^\]]+\]\([^)]+\)/g,2,10)]},{lang:"mdx",aliases:["mdx"],priority:31,minScore:10,rules:[aA("mdx.jsx",/<\s*[A-Z][A-Za-z0-9]*\b[^>]*>/g,6,10),aA("mdx.export",/^\s*export\s+default\s+/gm,4,2),aA("mdx.codefence",/^\s*```[\w-]*\s*$/gm,3,4)]},{lang:"css",aliases:["css"],priority:25,minScore:9,rules:[aA("css.rule",/[^{]+\{\s*[^}]*:\s*[^}]*\}/gs,6,4),aA("css.prop",/\b(display|position|margin|padding|color|background|font-size|border)\s*:/g,2,20),aA("css.selector",/(^|\n)\s*[#.][\w-]+\s*\{/g,3,10)]},{lang:"scss",aliases:["scss"],priority:26,minScore:10,rules:[aA("scss.vars",/^\s*\$[\w-]+\s*:\s*.+;$/gm,6,10),aA("scss.nesting",/(^|\n)\s*[#.][\w-]+\s*\{\s*[^}]*\{\s*/g,4,3),aA("scss.mixin",/^\s*@mixin\s+[\w-]+\b/gm,6,4),aA("scss.include",/^\s*@include\s+[\w-]+\b/gm,5,6)]},{lang:"less",aliases:["less"],priority:26,minScore:9,rules:[aA("less.vars",/^\s*@[\w-]+\s*:\s*.+;$/gm,6,10),aA("less.mixin",/^\s*\.[\w-]+\s*\([^)]*\)\s*\{/gm,6,4)]},{lang:"postgresql",aliases:["postgres","postgresql","psql"],priority:42,minScore:14,rules:[aA("pg.cast",/::\s*\w+/g,6,8),aA("pg.returning",/\bRETURNING\b/gi,4,4),aA("pg.json",/\bjsonb?\b/gi,4,6),aA("sql.core",/\b(SELECT|INSERT|UPDATE|DELETE|CREATE|ALTER|DROP|JOIN|WHERE|GROUP\s+BY|ORDER\s+BY)\b/gi,2,30)]},{lang:"mysql",aliases:["mysql"],priority:42,minScore:14,rules:[aA("my.backticks",/`[A-Za-z0-9_]+`/g,6,10),aA("my.engine",/\bENGINE\s*=\s*\w+\b/gi,5,3),aA("my.limit",/\bLIMIT\s+\d+(\s*,\s*\d+)?\b/gi,3,6),aA("sql.core",/\b(SELECT|INSERT|UPDATE|DELETE|CREATE|ALTER|DROP|JOIN|WHERE|GROUP\s+BY|ORDER\s+BY)\b/gi,2,30)]},{lang:"sql",aliases:["sql"],priority:35,minScore:10,rules:[aA("sql.core",/\b(SELECT|INSERT|UPDATE|DELETE|CREATE|ALTER|DROP|JOIN|WHERE|GROUP\s+BY|ORDER\s+BY|HAVING)\b/gi,3,40),aA("sql.terminator",/;\s*$/gm,1,20),aA("sql.comment",/^\s*--.*$/gm,2,20)]},{lang:"tsx",aliases:["tsx"],priority:34,minScore:12,rules:[aA("tsx.importReact",/^\s*import\s+.*\s+from\s+["']react["'];?$/gm,6,2),aA("tsx.tsTypes",/\b(interface|type)\s+[A-Za-z0-9_]+\s*(=|\{)/g,4,10),aA("tsx.jsx",/<\s*[A-Z][A-Za-z0-9]*\b[^>]*>/g,5,20),aA("ts.generic",/:\s*[A-Za-z_][\w<>\[\]\|& ,]+/g,2,20)]},{lang:"jsx",aliases:["jsx"],priority:33,minScore:11,rules:[aA("jsx.jsx",/<\s*[A-Z][A-Za-z0-9]*\b[^>]*>/g,6,25),aA("jsx.export",/^\s*export\s+default\s+/gm,3,4),aA("js.core",/\b(const|let|var|function|return|if|else|import|export|class|new)\b/g,1,30)]},{lang:"typescript",aliases:["ts","typescript"],priority:32,minScore:10,rules:[aA("ts.types",/\b(interface|type|implements|enum|namespace)\b/g,4,20),aA("ts.typed",/:\s*[A-Za-z_][\w<>\[\]\|& ,]+/g,2,30),aA("ts.import",/^\s*import\s+.+from\s+["'][^"']+["'];?$/gm,2,10)]},{lang:"javascript",aliases:["js","javascript"],priority:31,minScore:9,rules:[aA("js.core",/\b(const|let|var|function|return|if|else|import|export|class|new|await|async)\b/g,2,40),aA("js.arrow",/=>/g,1,40),aA("js.console",/\bconsole\.(log|error|warn|info)\b/g,2,10)]},{lang:"python",aliases:["py","python"],priority:20,minScore:9,rules:[aA("py.def",/^\s*def\s+\w+\s*\(/gm,6,6),aA("py.import",/^\s*(import|from)\s+\w+/gm,3,10),aA("py.class",/^\s*class\s+\w+\s*(\(|:)/gm,4,6),aA("py.colonBlocks",/:\s*$/gm,1,30)]},{lang:"go",aliases:["go","golang"],priority:20,minScore:9,rules:[aA("go.package",/^\s*package\s+\w+/gm,8,1),aA("go.import",/^\s*import\s+(\(|"[\w./-]+")/gm,4,6),aA("go.func",/^\s*func\s+(\([\w\s*]+\)\s*)?\w+\s*\(/gm,5,10)]},{lang:"php",aliases:["php"],priority:20,minScore:9,rules:[aA("php.open",/<\?php\b/i,10,1),aA("php.var",/\$[A-Za-z_][A-Za-z0-9_]*/g,2,30),aA("php.arrow",/->/g,1,30)]},{lang:"ruby",aliases:["rb","ruby"],priority:18,minScore:8,rules:[aA("rb.def",/^\s*def\s+\w+/gm,5,10),aA("rb.end",/^\s*end\s*$/gm,3,15),aA("rb.class",/^\s*class\s+\w+/gm,4,6)]},{lang:"java",aliases:["java"],priority:18,minScore:8,rules:[aA("java.class",/\b(public|private|protected)\s+class\s+\w+/g,6,6),aA("java.import",/^\s*import\s+[\w.]+;/gm,4,10),aA("java.package",/^\s*package\s+[\w.]+;/gm,4,2)]},{lang:"csharp",aliases:["cs","csharp"],priority:18,minScore:8,rules:[aA("cs.using",/^\s*using\s+[\w.]+;/gm,4,10),aA("cs.namespace",/^\s*namespace\s+[\w.]+/gm,4,4),aA("cs.class",/\b(class|record|struct)\s+\w+/g,3,12),aA("cs.linq",/\b(from|select|where)\b/g,1,30)]},{lang:"rust",aliases:["rs","rust"],priority:18,minScore:8,rules:[aA("rs.fn",/^\s*fn\s+\w+\s*\(/gm,5,10),aA("rs.use",/^\s*use\s+[\w:]+;/gm,4,10),aA("rs.let",/\blet\s+mut\b|\blet\b/g,1,30)]},{lang:"c",aliases:["c"],priority:16,minScore:7,rules:[aA("c.include",/^\s*#include\s+<[^>]+>/gm,6,10),aA("c.main",/\bint\s+main\s*\(/g,4,2),aA("c.semicolons",/;\s*$/gm,1,40)]},{lang:"cpp",aliases:["cpp","c++"],priority:16,minScore:7,rules:[aA("cpp.include",/^\s*#include\s+<[^>]+>/gm,4,10),aA("cpp.std",/\bstd::\w+/g,4,15),aA("cpp.templates",/template\s*<[^>]+>/g,4,5)]},{lang:"nginx-access-log",aliases:["nginx access log"],priority:65,minScore:14,rules:[aA("nal.ip",/^\s*\d{1,3}(\.\d{1,3}){3}\s+/gm,4,20),aA("nal.request",/"([A-Z]+)\s+[^"]+\s+HTTP\/\d\.\d"/g,8,10),aA("nal.status",/"\s+\d{3}\s+\d+\s*$/gm,3,20)]},{lang:"nginx-error-log",aliases:["nginx error log"],priority:65,minScore:14,rules:[aA("nel.date",/^\d{4}\/\d{2}\/\d{2}\s+\d{2}:\d{2}:\d{2}\s+\[[a-z]+\]/gmi,10,10),aA("nel.level",/\b(crit|error|warn|notice|info|debug)\b/gmi,3,20),aA("nel.client",/\bclient:\s*\d{1,3}(\.\d{1,3}){3}\b/gmi,4,10)]},{lang:"log",aliases:["log"],priority:20,minScore:8,rules:[aA("log.isoDate",/^\s*\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}:\d{2}/gm,5,20),aA("log.level",/\b(INFO|WARN|WARNING|ERROR|DEBUG|TRACE|FATAL)\b/g,2,30),aA("log.syslog",/^\s*[A-Z][a-z]{2}\s+\d{1,2}\s+\d{2}:\d{2}:\d{2}\s+/gm,5,10)]}],aB=t=>Math.max(0,Math.min(1,t));function Mu(t){const A=(t??"").trim();if(!A)return{lang:"plain-text",confidence:0,reasons:["empty"],score:0};const e=A.length>2e4?A.slice(0,2e4):A,r=sB.map(s=>{let a=0;const o=[];for(const c of s.rules){let h=0;if(e.replace(c.re,g=>(h++,g)),h>0){const m=(c.maxHits?Math.min(h,c.maxHits):h)*c.add;a+=m,o.push({ruleId:c.id,add:m})}}return{lang:s.lang,priority:s.priority,minScore:s.minScore,score:a,reasons:o.sort((c,h)=>h.add-c.add).slice(0,8).map(c=>`${c.ruleId} (+${c.add})`)}});r.sort((s,a)=>a.score-s.score||a.priority-s.priority);const n=r[0];if(!n||n.score<n.minScore)return{lang:"plain-text",confidence:.2,reasons:["below-threshold"],score:(n==null?void 0:n.score)??0};const i=aB(n.score/(n.minScore*2.2));return{lang:n.lang,confidence:i,reasons:n.reasons,score:n.score}}function Fa(t){return{html:"HTML",xml:"XML",svg:"SVG",css:"CSS",scss:"SCSS",less:"Less",javascript:"JavaScript",typescript:"TypeScript",jsx:"JSX",tsx:"TSX",json:"JSON",jsonc:"JSON with Comments",markdown:"Markdown",mdx:"MDX",python:"Python",go:"Go",php:"PHP",ruby:"Ruby",java:"Java",csharp:"C#",cpp:"C++",c:"C",rust:"Rust",yaml:"YAML",toml:"TOML",ini:"INI",dotenv:".env",dockerfile:"Dockerfile","docker-compose":"Docker Compose",nginx:"Nginx",apache:"Apache",caddyfile:"Caddyfile",kubernetes:"Kubernetes",terraform:"Terraform",ansible:"Ansible",sql:"SQL",postgresql:"PostgreSQL",mysql:"MySQL",bash:"Bash",sh:"Shell",powershell:"PowerShell",cmd:"CMD",bat:"Batch",log:"Log","nginx-access-log":"Nginx Access Log","nginx-error-log":"Nginx Error Log",jsonl:"JSON Lines",csv:"CSV","plain-text":"Plain Text"}[t]||t.toUpperCase()}class Ku{constructor(A){this.element=A}exec(A){document.execCommand(A,!1,void 0),this.element.focus()}queryState(A){try{return document.queryCommandState(A)}catch{return!1}}setForeColor(A){console.log("[Commands] setForeColor called:",A);try{const e=document.execCommand("foreColor",!1,A);console.log("[Commands] execCommand result:",e),this.element.focus()}catch(e){console.error("[Commands] setForeColor error:",e)}}setBackColor(A){console.log("[Commands] setBackColor called:",A);try{const e=document.execCommand("hiliteColor",!1,A);console.log("[Commands] execCommand result:",e),this.element.focus()}catch(e){console.error("[Commands] setBackColor error:",e)}}setFontName(A){document.execCommand("fontName",!1,A),this.element.focus()}setFontSize(A){document.execCommand("fontSize",!1,A),this.element.focus()}setFormatBlock(A){document.execCommand("formatBlock",!1,A),this.element.focus()}insertHTML(A){document.execCommand("insertHTML",!1,A),this.element.focus()}async insertText(A){const e=Mu(A);if(e.lang!=="plain-text"&&e.confidence>.3){const r=e.lang,n=Fa(r),i=this.escapeHtml(A),s=btoa(unescape(encodeURIComponent(A)));this.insertHTML(`<pre class="code-block" data-language="${r}" data-display-name="${n}" data-original-code="${s}"><code class="language-${r}">${i}</code></pre>`)}else document.execCommand("insertText",!1,A),this.element.focus()}escapeHtml(A){const e=document.createElement("div");return e.textContent=A,e.innerHTML}insertLink(A,e){const r=e||A;if(e){document.execCommand("createLink",!1,A);const n=window.getSelection();if(n&&n.anchorNode){const i=n.anchorNode.parentElement;i&&i.tagName==="A"&&i.setAttribute("target","_blank")}}else this.insertHTML(`<a href="${A}" target="_blank">${r}</a>`);this.element.focus()}insertImage(A,e="Image"){this.insertHTML(`<img src="${A}" alt="${e}" />`)}insertVideo(A){const e=`
1
+ "use strict";var sB=Object.defineProperty;var aB=(t,A,e)=>A in t?sB(t,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[A]=e;var oA=(t,A,e)=>aB(t,typeof A!="symbol"?A+"":A,e);const IA=require("react"),N=require("react/jsx-runtime"),oB=require("react-dom"),sA=(t,A,e,r,n)=>({id:t,re:A,add:e,maxHits:r,note:n}),lB=[{lang:"dockerfile",aliases:["Dockerfile"],priority:100,minScore:20,rules:[sA("df.from",/^\s*FROM\s+[\w./:-]+/gmi,12,3,"FROM image"),sA("df.run",/^\s*RUN\s+/gmi,6,6),sA("df.copy_add",/^\s*(COPY|ADD)\s+/gmi,8,4),sA("df.cmd_entry",/^\s*(CMD|ENTRYPOINT)\s+/gmi,10,2),sA("df.arg_env",/^\s*(ARG|ENV)\s+[A-Z0-9_]+/gmi,6,4),sA("df.workdir",/^\s*WORKDIR\s+/gmi,6,2),sA("df.expose",/^\s*EXPOSE\s+\d+/gmi,5,2)]},{lang:"docker-compose",aliases:["docker-compose","compose","compose.yml","compose.yaml"],priority:95,minScore:22,rules:[sA("dc.services",/^\s*services\s*:\s*$/gmi,14,1),sA("dc.image",/^\s*image\s*:\s*["']?[\w./:-]+/gmi,8,5),sA("dc.build",/^\s*build\s*:\s*/gmi,6,4),sA("dc.ports",/^\s*ports\s*:\s*$/gmi,5,2),sA("dc.volumes",/^\s*volumes\s*:\s*$/gmi,6,2),sA("dc.networks",/^\s*networks\s*:\s*$/gmi,6,2),sA("dc.depends_on",/^\s*depends_on\s*:\s*$/gmi,6,2),sA("dc.environment",/^\s*environment\s*:\s*$/gmi,4,2),sA("dc.version",/^\s*version\s*:\s*["']?\d+(\.\d+)?["']?\s*$/gmi,2,1)]},{lang:"kubernetes",aliases:["k8s","kubernetes","kube"],priority:90,minScore:20,rules:[sA("k8s.apiVersion",/^\s*apiVersion\s*:\s*[\w./-]+\s*$/gmi,12,1),sA("k8s.kind",/^\s*kind\s*:\s*\w+\s*$/gmi,10,1),sA("k8s.metadata",/^\s*metadata\s*:\s*$/gmi,6,1),sA("k8s.spec",/^\s*spec\s*:\s*$/gmi,4,2),sA("k8s.containers",/^\s*containers\s*:\s*$/gmi,6,1),sA("k8s.image",/^\s*image\s*:\s*["']?[\w./:-]+/gmi,4,6),sA("k8s.selector",/^\s*selector\s*:\s*$/gmi,4,1)]},{lang:"nginx",aliases:["nginx","nginx.conf"],priority:88,minScore:18,rules:[sA("ngx.server_block",/^\s*server\s*\{/gmi,10,3),sA("ngx.location",/^\s*location\s+[^ {]+\s*\{/gmi,8,5),sA("ngx.proxy_pass",/^\s*proxy_pass\s+https?:\/\/|^\s*proxy_pass\s+unix:/gmi,10,5),sA("ngx.upstream",/^\s*upstream\s+\w+\s*\{/gmi,10,2),sA("ngx.listen",/^\s*listen\s+\d+/gmi,5,5),sA("ngx.ssl",/^\s*ssl_(certificate|certificate_key)\s+/gmi,6,2),sA("ngx.directive_semicolon",/;\s*$/gm,2,20,"nginx directives end with ';'")]},{lang:"caddyfile",aliases:["caddy","Caddyfile"],priority:87,minScore:16,rules:[sA("cad.site_block",/^\s*([a-z0-9.-]+\.[a-z]{2,}|:\d+)\s*\{\s*$/gmi,10,2),sA("cad.reverse_proxy",/^\s*reverse_proxy\s+/gmi,10,6),sA("cad.file_server",/^\s*file_server\s*$/gmi,7,2),sA("cad.encode",/^\s*encode\s+/gmi,5,2),sA("cad.header",/^\s*header\s+/gmi,4,3),sA("cad.handle",/^\s*handle(_path)?\s+/gmi,4,3)]},{lang:"terraform",aliases:["tf","terraform","hcl"],priority:80,minScore:14,rules:[sA("tf.block",/^\s*(resource|data|module|variable|output|provider|terraform)\s+"[^"]+"\s+("?[^\s"]+"?)?\s*\{/gmi,12,3),sA("tf.assign",/^\s*[a-zA-Z0-9_-]+\s*=\s*.+$/gm,3,10),sA("tf.interp",/\${\s*[^}]+\s*}/g,4,6)]},{lang:"ansible",aliases:["ansible"],priority:78,minScore:16,rules:[sA("ans.hosts",/^\s*hosts\s*:\s*.+$/gmi,8,2),sA("ans.tasks",/^\s*tasks\s*:\s*$/gmi,8,1),sA("ans.handlers",/^\s*handlers\s*:\s*$/gmi,6,1),sA("ans.module",/^\s*-\s*(name|debug|copy|template|shell|command|service|apt|yum|file|lineinfile)\s*:/gmi,5,8),sA("ans.become",/^\s*become\s*:\s*(true|false)\s*$/gmi,4,2)]},{lang:"apache",aliases:["apache","httpd","apache.conf"],priority:70,minScore:14,rules:[sA("ap.directive",/^\s*(VirtualHost|Directory|IfModule|Location|ProxyPass|ProxyPassReverse)\b/gmi,8,6),sA("ap.rewrite",/^\s*Rewrite(Engine|Rule|Cond)\b/gmi,6,6),sA("ap.listen",/^\s*Listen\s+\d+/gmi,4,2)]},{lang:"powershell",aliases:["ps","ps1","powershell"],priority:75,minScore:14,rules:[sA("ps.param",/^\s*param\s*\(/gmi,10,1),sA("ps.cmdlet",/\b(Get|Set|New|Remove|Start|Stop|Restart|Test|Invoke)-[A-Za-z]+\b/g,6,10),sA("ps.var",new RegExp("(?<!`)\\$[A-Za-z_][A-Za-z0-9_]*","g"),3,30),sA("ps.pipeline",/\|\s*(Where-Object|Select-Object|ForEach-Object|Sort-Object|Out-File)\b/g,5,10),sA("ps.hashtable",/@\{\s*[^}]*\}/gs,5,2),sA("ps.comment",/^\s*#(?!\!).*$/gm,1,20)]},{lang:"bash",aliases:["bash","sh"],priority:60,minScore:12,rules:[sA("sh.shebang",/^\s*#!\/(usr\/bin\/env\s+)?(bash|sh)\b.*$/gmi,10,1),sA("sh.set",/^\s*set\s+-[euo]+/gmi,6,2),sA("sh.export",/^\s*export\s+[A-Z_][A-Z0-9_]*=/gm,4,10),sA("sh.if_fi",/^\s*(if|elif|then|fi)\b/gmi,2,10),sA("sh.func",/^\s*[a-zA-Z_][a-zA-Z0-9_]*\s*\(\)\s*\{/gm,4,4),sA("sh.sudo",/\bsudo\b/g,2,10)]},{lang:"cmd",aliases:["cmd","bat"],priority:55,minScore:10,rules:[sA("cmd.at_echo",/^\s*@?echo\s+(on|off)\b/gmi,8,1),sA("cmd.set",/^\s*set\s+[A-Za-z_][A-Za-z0-9_]*=/gmi,4,10),sA("cmd.if",/^\s*if\s+(not\s+)?(exist|defined)\b/gmi,4,6),sA("cmd.goto",/^\s*goto\s+[:A-Za-z0-9_]+/gmi,4,5),sA("cmd.label",/^\s*:[A-Za-z0-9_]+/gm,3,10)]},{lang:"jsonl",aliases:["jsonl","ndjson"],priority:65,minScore:14,rules:[sA("jsonl.lines",/^\s*\{.*\}\s*$/gm,2,50),sA("jsonl.multi",/(\}\s*\n\s*\{)/g,8,2,"multiple JSON objects lines")]},{lang:"json",aliases:["json"],priority:50,minScore:12,rules:[sA("json.braces",/^\s*[\{\[]/m,4,1),sA("json.kv",/"[^"\n]*"\s*:\s*/g,4,20),sA("json.truefalse",/\b(true|false|null)\b/g,1,20)]},{lang:"yaml",aliases:["yaml","yml"],priority:45,minScore:10,rules:[sA("y.key",/^\s*[A-Za-z0-9_.-]+\s*:\s*.*$/gm,2,30),sA("y.list",/^\s*-\s+.+$/gm,2,30),sA("y.doc",/^\s*---\s*$/gm,4,2),sA("y.anchors",/&[A-Za-z0-9_-]+|\*[A-Za-z0-9_-]+/g,3,6)]},{lang:"toml",aliases:["toml"],priority:44,minScore:10,rules:[sA("toml.section",/^\s*\[[A-Za-z0-9_.-]+\]\s*$/gm,6,6),sA("toml.kv",/^\s*[A-Za-z0-9_.-]+\s*=\s*.+$/gm,3,30)]},{lang:"ini",aliases:["ini","cfg","conf"],priority:40,minScore:9,rules:[sA("ini.section",/^\s*\[[^\]\n]+\]\s*$/gm,6,8),sA("ini.kv",/^\s*[A-Za-z0-9_.-]+\s*=\s*.*$/gm,2,30),sA("ini.comment",/^\s*[;#].*$/gm,1,30)]},{lang:"dotenv",aliases:["dotenv",".env","env"],priority:43,minScore:10,rules:[sA("env.kv",/^\s*[A-Za-z_][A-Za-z0-9_]*\s*=\s*.*$/gm,3,40),sA("env.export",/^\s*export\s+[A-Za-z_][A-Za-z0-9_]*=/gm,4,10)]},{lang:"csv",aliases:["csv"],priority:35,minScore:8,rules:[sA("csv.header",/^[^\n,]+(,[^\n,]+){2,}\s*$/m,6,1),sA("csv.rows",/^[^\n,]+(,[^\n,]+){2,}\s*$/gm,1,30)]},{lang:"svg",aliases:["svg"],priority:60,minScore:14,rules:[sA("svg.tag",/<svg\b[^>]*>/i,14,1),sA("svg.path",/<path\b[^>]*d\s*=\s*["'][^"']+/gi,6,5)]},{lang:"xml",aliases:["xml"],priority:52,minScore:12,rules:[sA("xml.prolog",/^\s*<\?xml\b[^?]*\?>/mi,10,1),sA("xml.tag",/<([A-Za-z_][\w:.-]*)\b[^>]*>/g,2,20)]},{lang:"html",aliases:["html","htm"],priority:51,minScore:11,rules:[sA("html.doctype",/^\s*<!DOCTYPE\s+html>/gmi,12,1),sA("html.tags",/<\/?(div|span|p|a|img|section|header|footer|main|script|style|link|meta)\b/gi,2,30),sA("html.attr",/\b(class|id|href|src|data-[\w-]+)\s*=\s*["'][^"']*["']/gi,2,30)]},{lang:"markdown",aliases:["md","markdown"],priority:30,minScore:9,rules:[sA("md.headings",/^\s{0,3}#{1,6}\s+.+$/gm,4,10),sA("md.list",/^\s*([-*+]|\d+\.)\s+.+$/gm,2,20),sA("md.codefence",/^\s*```[\w-]*\s*$/gm,6,4),sA("md.link",/\[[^\]]+\]\([^)]+\)/g,2,10)]},{lang:"mdx",aliases:["mdx"],priority:31,minScore:10,rules:[sA("mdx.jsx",/<\s*[A-Z][A-Za-z0-9]*\b[^>]*>/g,6,10),sA("mdx.export",/^\s*export\s+default\s+/gm,4,2),sA("mdx.codefence",/^\s*```[\w-]*\s*$/gm,3,4)]},{lang:"css",aliases:["css"],priority:25,minScore:9,rules:[sA("css.rule",/[^{]+\{\s*[^}]*:\s*[^}]*\}/gs,6,4),sA("css.prop",/\b(display|position|margin|padding|color|background|font-size|border)\s*:/g,2,20),sA("css.selector",/(^|\n)\s*[#.][\w-]+\s*\{/g,3,10)]},{lang:"scss",aliases:["scss"],priority:26,minScore:10,rules:[sA("scss.vars",/^\s*\$[\w-]+\s*:\s*.+;$/gm,6,10),sA("scss.nesting",/(^|\n)\s*[#.][\w-]+\s*\{\s*[^}]*\{\s*/g,4,3),sA("scss.mixin",/^\s*@mixin\s+[\w-]+\b/gm,6,4),sA("scss.include",/^\s*@include\s+[\w-]+\b/gm,5,6)]},{lang:"less",aliases:["less"],priority:26,minScore:9,rules:[sA("less.vars",/^\s*@[\w-]+\s*:\s*.+;$/gm,6,10),sA("less.mixin",/^\s*\.[\w-]+\s*\([^)]*\)\s*\{/gm,6,4)]},{lang:"postgresql",aliases:["postgres","postgresql","psql"],priority:42,minScore:14,rules:[sA("pg.cast",/::\s*\w+/g,6,8),sA("pg.returning",/\bRETURNING\b/gi,4,4),sA("pg.json",/\bjsonb?\b/gi,4,6),sA("sql.core",/\b(SELECT|INSERT|UPDATE|DELETE|CREATE|ALTER|DROP|JOIN|WHERE|GROUP\s+BY|ORDER\s+BY)\b/gi,2,30)]},{lang:"mysql",aliases:["mysql"],priority:42,minScore:14,rules:[sA("my.backticks",/`[A-Za-z0-9_]+`/g,6,10),sA("my.engine",/\bENGINE\s*=\s*\w+\b/gi,5,3),sA("my.limit",/\bLIMIT\s+\d+(\s*,\s*\d+)?\b/gi,3,6),sA("sql.core",/\b(SELECT|INSERT|UPDATE|DELETE|CREATE|ALTER|DROP|JOIN|WHERE|GROUP\s+BY|ORDER\s+BY)\b/gi,2,30)]},{lang:"sql",aliases:["sql"],priority:35,minScore:10,rules:[sA("sql.core",/\b(SELECT|INSERT|UPDATE|DELETE|CREATE|ALTER|DROP|JOIN|WHERE|GROUP\s+BY|ORDER\s+BY|HAVING)\b/gi,3,40),sA("sql.terminator",/;\s*$/gm,1,20),sA("sql.comment",/^\s*--.*$/gm,2,20)]},{lang:"tsx",aliases:["tsx"],priority:34,minScore:12,rules:[sA("tsx.importReact",/^\s*import\s+.*\s+from\s+["']react["'];?$/gm,6,2),sA("tsx.tsTypes",/\b(interface|type)\s+[A-Za-z0-9_]+\s*(=|\{)/g,4,10),sA("tsx.jsx",/<\s*[A-Z][A-Za-z0-9]*\b[^>]*>/g,5,20),sA("ts.generic",/:\s*[A-Za-z_][\w<>\[\]\|& ,]+/g,2,20)]},{lang:"jsx",aliases:["jsx"],priority:33,minScore:11,rules:[sA("jsx.jsx",/<\s*[A-Z][A-Za-z0-9]*\b[^>]*>/g,6,25),sA("jsx.export",/^\s*export\s+default\s+/gm,3,4),sA("js.core",/\b(const|let|var|function|return|if|else|import|export|class|new)\b/g,1,30)]},{lang:"typescript",aliases:["ts","typescript"],priority:32,minScore:10,rules:[sA("ts.types",/\b(interface|type|implements|enum|namespace)\b/g,4,20),sA("ts.typed",/:\s*[A-Za-z_][\w<>\[\]\|& ,]+/g,2,30),sA("ts.import",/^\s*import\s+.+from\s+["'][^"']+["'];?$/gm,2,10)]},{lang:"javascript",aliases:["js","javascript"],priority:31,minScore:9,rules:[sA("js.core",/\b(const|let|var|function|return|if|else|import|export|class|new|await|async)\b/g,2,40),sA("js.arrow",/=>/g,1,40),sA("js.console",/\bconsole\.(log|error|warn|info)\b/g,2,10)]},{lang:"python",aliases:["py","python"],priority:20,minScore:9,rules:[sA("py.def",/^\s*def\s+\w+\s*\(/gm,6,6),sA("py.import",/^\s*(import|from)\s+\w+/gm,3,10),sA("py.class",/^\s*class\s+\w+\s*(\(|:)/gm,4,6),sA("py.colonBlocks",/:\s*$/gm,1,30)]},{lang:"go",aliases:["go","golang"],priority:20,minScore:9,rules:[sA("go.package",/^\s*package\s+\w+/gm,8,1),sA("go.import",/^\s*import\s+(\(|"[\w./-]+")/gm,4,6),sA("go.func",/^\s*func\s+(\([\w\s*]+\)\s*)?\w+\s*\(/gm,5,10)]},{lang:"php",aliases:["php"],priority:20,minScore:9,rules:[sA("php.open",/<\?php\b/i,10,1),sA("php.var",/\$[A-Za-z_][A-Za-z0-9_]*/g,2,30),sA("php.arrow",/->/g,1,30)]},{lang:"ruby",aliases:["rb","ruby"],priority:18,minScore:8,rules:[sA("rb.def",/^\s*def\s+\w+/gm,5,10),sA("rb.end",/^\s*end\s*$/gm,3,15),sA("rb.class",/^\s*class\s+\w+/gm,4,6)]},{lang:"java",aliases:["java"],priority:18,minScore:8,rules:[sA("java.class",/\b(public|private|protected)\s+class\s+\w+/g,6,6),sA("java.import",/^\s*import\s+[\w.]+;/gm,4,10),sA("java.package",/^\s*package\s+[\w.]+;/gm,4,2)]},{lang:"csharp",aliases:["cs","csharp"],priority:18,minScore:8,rules:[sA("cs.using",/^\s*using\s+[\w.]+;/gm,4,10),sA("cs.namespace",/^\s*namespace\s+[\w.]+/gm,4,4),sA("cs.class",/\b(class|record|struct)\s+\w+/g,3,12),sA("cs.linq",/\b(from|select|where)\b/g,1,30)]},{lang:"rust",aliases:["rs","rust"],priority:18,minScore:8,rules:[sA("rs.fn",/^\s*fn\s+\w+\s*\(/gm,5,10),sA("rs.use",/^\s*use\s+[\w:]+;/gm,4,10),sA("rs.let",/\blet\s+mut\b|\blet\b/g,1,30)]},{lang:"c",aliases:["c"],priority:16,minScore:7,rules:[sA("c.include",/^\s*#include\s+<[^>]+>/gm,6,10),sA("c.main",/\bint\s+main\s*\(/g,4,2),sA("c.semicolons",/;\s*$/gm,1,40)]},{lang:"cpp",aliases:["cpp","c++"],priority:16,minScore:7,rules:[sA("cpp.include",/^\s*#include\s+<[^>]+>/gm,4,10),sA("cpp.std",/\bstd::\w+/g,4,15),sA("cpp.templates",/template\s*<[^>]+>/g,4,5)]},{lang:"nginx-access-log",aliases:["nginx access log"],priority:65,minScore:14,rules:[sA("nal.ip",/^\s*\d{1,3}(\.\d{1,3}){3}\s+/gm,4,20),sA("nal.request",/"([A-Z]+)\s+[^"]+\s+HTTP\/\d\.\d"/g,8,10),sA("nal.status",/"\s+\d{3}\s+\d+\s*$/gm,3,20)]},{lang:"nginx-error-log",aliases:["nginx error log"],priority:65,minScore:14,rules:[sA("nel.date",/^\d{4}\/\d{2}\/\d{2}\s+\d{2}:\d{2}:\d{2}\s+\[[a-z]+\]/gmi,10,10),sA("nel.level",/\b(crit|error|warn|notice|info|debug)\b/gmi,3,20),sA("nel.client",/\bclient:\s*\d{1,3}(\.\d{1,3}){3}\b/gmi,4,10)]},{lang:"log",aliases:["log"],priority:20,minScore:8,rules:[sA("log.isoDate",/^\s*\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}:\d{2}/gm,5,20),sA("log.level",/\b(INFO|WARN|WARNING|ERROR|DEBUG|TRACE|FATAL)\b/g,2,30),sA("log.syslog",/^\s*[A-Z][a-z]{2}\s+\d{1,2}\s+\d{2}:\d{2}:\d{2}\s+/gm,5,10)]}],cB=t=>Math.max(0,Math.min(1,t));function Ku(t){const A=(t??"").trim();if(!A)return{lang:"plain-text",confidence:0,reasons:["empty"],score:0};const e=A.length>2e4?A.slice(0,2e4):A,r=lB.map(s=>{let a=0;const o=[];for(const c of s.rules){let h=0;if(e.replace(c.re,d=>(h++,d)),h>0){const m=(c.maxHits?Math.min(h,c.maxHits):h)*c.add;a+=m,o.push({ruleId:c.id,add:m})}}return{lang:s.lang,priority:s.priority,minScore:s.minScore,score:a,reasons:o.sort((c,h)=>h.add-c.add).slice(0,8).map(c=>`${c.ruleId} (+${c.add})`)}});r.sort((s,a)=>a.score-s.score||a.priority-s.priority);const n=r[0];if(!n||n.score<n.minScore)return{lang:"plain-text",confidence:.2,reasons:["below-threshold"],score:(n==null?void 0:n.score)??0};const i=cB(n.score/(n.minScore*2.2));return{lang:n.lang,confidence:i,reasons:n.reasons,score:n.score}}function Fa(t){return{html:"HTML",xml:"XML",svg:"SVG",css:"CSS",scss:"SCSS",less:"Less",javascript:"JavaScript",typescript:"TypeScript",jsx:"JSX",tsx:"TSX",json:"JSON",jsonc:"JSON with Comments",markdown:"Markdown",mdx:"MDX",python:"Python",go:"Go",php:"PHP",ruby:"Ruby",java:"Java",csharp:"C#",cpp:"C++",c:"C",rust:"Rust",yaml:"YAML",toml:"TOML",ini:"INI",dotenv:".env",dockerfile:"Dockerfile","docker-compose":"Docker Compose",nginx:"Nginx",apache:"Apache",caddyfile:"Caddyfile",kubernetes:"Kubernetes",terraform:"Terraform",ansible:"Ansible",sql:"SQL",postgresql:"PostgreSQL",mysql:"MySQL",bash:"Bash",sh:"Shell",powershell:"PowerShell",cmd:"CMD",bat:"Batch",log:"Log","nginx-access-log":"Nginx Access Log","nginx-error-log":"Nginx Error Log",jsonl:"JSON Lines",csv:"CSV","plain-text":"Plain Text"}[t]||t.toUpperCase()}class ju{constructor(A){this.element=A}exec(A){document.execCommand(A,!1,void 0),this.element.focus()}queryState(A){try{return document.queryCommandState(A)}catch{return!1}}setForeColor(A){console.log("[Commands] setForeColor called:",A);try{const e=document.execCommand("foreColor",!1,A);console.log("[Commands] execCommand result:",e),this.element.focus()}catch(e){console.error("[Commands] setForeColor error:",e)}}setBackColor(A){console.log("[Commands] setBackColor called:",A);try{const e=document.execCommand("hiliteColor",!1,A);console.log("[Commands] execCommand result:",e),this.element.focus()}catch(e){console.error("[Commands] setBackColor error:",e)}}setFontName(A){document.execCommand("fontName",!1,A),this.element.focus()}setFontSize(A){document.execCommand("fontSize",!1,A),this.element.focus()}setFormatBlock(A){document.execCommand("formatBlock",!1,A),this.element.focus()}insertHTML(A){document.execCommand("insertHTML",!1,A),this.element.focus()}async insertText(A){const e=Ku(A);if(e.lang!=="plain-text"&&e.confidence>.3){const r=e.lang,n=Fa(r),i=this.escapeHtml(A),s=btoa(unescape(encodeURIComponent(A)));this.insertHTML(`<pre class="code-block" data-language="${r}" data-display-name="${n}" data-original-code="${s}"><code class="language-${r}">${i}</code></pre>`)}else document.execCommand("insertText",!1,A),this.element.focus()}escapeHtml(A){const e=document.createElement("div");return e.textContent=A,e.innerHTML}insertLink(A,e){const r=e||A;if(e){document.execCommand("createLink",!1,A);const n=window.getSelection();if(n&&n.anchorNode){const i=n.anchorNode.parentElement;i&&i.tagName==="A"&&i.setAttribute("target","_blank")}}else this.insertHTML(`<a href="${A}" target="_blank">${r}</a>`);this.element.focus()}insertImage(A,e="Image"){this.insertHTML(`<img src="${A}" alt="${e}" />`)}insertVideo(A){const e=`
2
2
  <div style="position:relative;padding-bottom:56.25%;height:0;overflow:hidden;margin:1em 0;">
3
3
  <iframe src="${A}" style="position:absolute;top:0;left:0;width:100%;height:100%;border:0;" allowfullscreen></iframe>
4
4
  </div>
5
- `;this.insertHTML(e)}insertTable(A,e){console.log("[Commands] insertTable called:",{rows:A,cols:e});let r="<table><thead><tr>";for(let i=0;i<e;i++)r+="<th>Заголовок</th>";r+="</tr></thead><tbody>";for(let i=0;i<A-1;i++){r+="<tr>";for(let s=0;s<e;s++)r+="<td>Ячейка</td>";r+="</tr>"}r+="</tbody></table>",console.log("[Commands] Table HTML generated, length:",r.length),this.element.focus();const n=document.execCommand("insertHTML",!1,r);console.log("[Commands] insertHTML result:",n),this.element.focus()}insertCodeBlock(A){const e=window.getSelection();let r="";if(e&&e.rangeCount>0&&(r=e.toString().trim()),r){document.execCommand("delete",!1);const i=Mu(r).lang,s=Fa(i),a=this.escapeHtml(r),o=btoa(unescape(encodeURIComponent(r)));this.insertHTML(`<pre class="code-block" data-language="${i}" data-display-name="${s}" data-original-code="${o}"><code class="language-${i}">${a}</code></pre>`)}else{const n=A||"// Введите код здесь",i="javascript",s=Fa(i),a=this.escapeHtml(n),o=btoa(unescape(encodeURIComponent(n)));this.insertHTML(`<pre class="code-block" data-language="${i}" data-display-name="${s}" data-original-code="${o}"><code class="language-${i}">${a}</code></pre>`)}}insertEmoji(A){this.insertText(A)}insertHR(){this.exec("insertHorizontalRule")}find(A){return window.find?window.find(A):!1}replace(A,e){const r=this.element.innerHTML;this.element.innerHTML=r.replace(A,e)}replaceAll(A,e){const r=this.element.innerHTML;this.element.innerHTML=r.split(A).join(e)}}class _p{constructor(){oA(this,"savedRange",null)}save(){const A=window.getSelection();A&&A.rangeCount>0&&(this.savedRange=A.getRangeAt(0))}restore(){if(this.savedRange){const A=window.getSelection();A&&(A.removeAllRanges(),A.addRange(this.savedRange))}}clear(){this.savedRange=null}hasSaved(){return this.savedRange!==null}getRange(){return this.savedRange}}class ju{constructor(A){this.element=A}get(){const A=this.element.innerHTML,e=this.stripHTML(A);return{wordCount:this.countWords(e),charCount:e.length,paragraphCount:this.countParagraphs(A)}}stripHTML(A){const e=document.createElement("div");return e.innerHTML=A,e.textContent||e.innerText||""}countWords(A){return A.trim()?A.trim().split(/\s+/).length:0}countParagraphs(A){const e=document.createElement("div");return e.innerHTML=A,e.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li").length||(A.trim()?1:0)}}class Gu{constructor(A,e={}){oA(this,"intervalId",null);oA(this,"options");this.element=A,this.options={key:e.key||"wysiwyg-autosave",intervalMs:e.intervalMs||2e3,enabled:e.enabled??!1}}start(){this.options.enabled&&(this.stop(),this.intervalId=window.setInterval(()=>{this.save()},this.options.intervalMs))}stop(){this.intervalId!==null&&(clearInterval(this.intervalId),this.intervalId=null)}save(){if(!this.options.enabled)return;const A=this.element.innerHTML;localStorage.setItem(this.options.key,A)}load(){return this.options.enabled?localStorage.getItem(this.options.key):null}clear(){localStorage.removeItem(this.options.key)}isEnabled(){return this.options.enabled}getKey(){return this.options.key}}class qu{constructor(A){oA(this,"onDropCallback",null);oA(this,"dragOverHandler",null);oA(this,"dragLeaveHandler",null);oA(this,"dropHandler",null);this.element=A}enable(A){this.onDropCallback=A,this.dragOverHandler=e=>{e.preventDefault(),this.element.classList.add("drag-over")},this.dragLeaveHandler=e=>{e.preventDefault(),this.element.classList.remove("drag-over")},this.dropHandler=e=>{var n;e.preventDefault(),this.element.classList.remove("drag-over");const r=(n=e.dataTransfer)==null?void 0:n.files;if(r&&r.length>0){const i=r[0];if(i.type.startsWith("image/")){const s=new FileReader;s.onload=a=>{var c,h;const o=(c=a.target)==null?void 0:c.result;(h=this.onDropCallback)==null||h.call(this,o,i.name)},s.readAsDataURL(i)}}},this.element.addEventListener("dragover",this.dragOverHandler),this.element.addEventListener("dragleave",this.dragLeaveHandler),this.element.addEventListener("drop",this.dropHandler)}disable(){this.dragOverHandler&&this.element.removeEventListener("dragover",this.dragOverHandler),this.dragLeaveHandler&&this.element.removeEventListener("dragleave",this.dragLeaveHandler),this.dropHandler&&this.element.removeEventListener("drop",this.dropHandler),this.dragOverHandler=null,this.dragLeaveHandler=null,this.dropHandler=null,this.onDropCallback=null}}class Vu{constructor(A){this.element=A}toHTML(){return this.element.innerHTML}toText(){const A=document.createElement("div");return A.innerHTML=this.element.innerHTML,A.innerText||A.textContent||""}downloadHTML(A="document.html"){const e=this.toHTML();this.download(e,A,"text/html")}downloadText(A="document.txt"){const e=this.toText();this.download(e,A,"text/plain")}copyHTML(){const A=this.toHTML();return navigator.clipboard.writeText(A)}print(){var n;const A=this.toHTML(),e=document.createElement("iframe");e.style.position="fixed",e.style.right="0",e.style.bottom="0",e.style.width="0",e.style.height="0",e.style.border="none",document.body.appendChild(e);const r=(n=e.contentWindow)==null?void 0:n.document;r&&(r.open(),r.write(`
5
+ `;this.insertHTML(e)}insertTable(A,e){console.log("[Commands] insertTable called:",{rows:A,cols:e});let r="<table><thead><tr>";for(let i=0;i<e;i++)r+="<th>Заголовок</th>";r+="</tr></thead><tbody>";for(let i=0;i<A-1;i++){r+="<tr>";for(let s=0;s<e;s++)r+="<td>Ячейка</td>";r+="</tr>"}r+="</tbody></table>",console.log("[Commands] Table HTML generated, length:",r.length),this.element.focus();const n=document.execCommand("insertHTML",!1,r);console.log("[Commands] insertHTML result:",n),this.element.focus()}insertCodeBlock(A){const e=window.getSelection();let r="";if(e&&e.rangeCount>0&&(r=e.toString().trim()),r){document.execCommand("delete",!1);const i=Ku(r).lang,s=Fa(i),a=this.escapeHtml(r),o=btoa(unescape(encodeURIComponent(r)));this.insertHTML(`<pre class="code-block" data-language="${i}" data-display-name="${s}" data-original-code="${o}"><code class="language-${i}">${a}</code></pre>`)}else{const n=A||"// Введите код здесь",i="javascript",s=Fa(i),a=this.escapeHtml(n),o=btoa(unescape(encodeURIComponent(n)));this.insertHTML(`<pre class="code-block" data-language="${i}" data-display-name="${s}" data-original-code="${o}"><code class="language-${i}">${a}</code></pre>`)}}insertEmoji(A){this.insertText(A)}insertHR(){this.exec("insertHorizontalRule")}find(A){return window.find?window.find(A):!1}replace(A,e){const r=this.element.innerHTML;this.element.innerHTML=r.replace(A,e)}replaceAll(A,e){const r=this.element.innerHTML;this.element.innerHTML=r.split(A).join(e)}}class Pp{constructor(){oA(this,"savedRange",null)}save(){const A=window.getSelection();A&&A.rangeCount>0&&(this.savedRange=A.getRangeAt(0))}restore(){if(this.savedRange){const A=window.getSelection();A&&(A.removeAllRanges(),A.addRange(this.savedRange))}}clear(){this.savedRange=null}hasSaved(){return this.savedRange!==null}getRange(){return this.savedRange}}class Gu{constructor(A){this.element=A}get(){const A=this.element.innerHTML,e=this.stripHTML(A);return{wordCount:this.countWords(e),charCount:e.length,paragraphCount:this.countParagraphs(A)}}stripHTML(A){const e=document.createElement("div");return e.innerHTML=A,e.textContent||e.innerText||""}countWords(A){return A.trim()?A.trim().split(/\s+/).length:0}countParagraphs(A){const e=document.createElement("div");return e.innerHTML=A,e.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li").length||(A.trim()?1:0)}}class qu{constructor(A,e={}){oA(this,"intervalId",null);oA(this,"options");this.element=A,this.options={key:e.key||"wysiwyg-autosave",intervalMs:e.intervalMs||2e3,enabled:e.enabled??!1}}start(){this.options.enabled&&(this.stop(),this.intervalId=window.setInterval(()=>{this.save()},this.options.intervalMs))}stop(){this.intervalId!==null&&(clearInterval(this.intervalId),this.intervalId=null)}save(){if(!this.options.enabled)return;const A=this.element.innerHTML;localStorage.setItem(this.options.key,A)}load(){return this.options.enabled?localStorage.getItem(this.options.key):null}clear(){localStorage.removeItem(this.options.key)}isEnabled(){return this.options.enabled}getKey(){return this.options.key}}class Vu{constructor(A){oA(this,"onDropCallback",null);oA(this,"dragOverHandler",null);oA(this,"dragLeaveHandler",null);oA(this,"dropHandler",null);this.element=A}enable(A){this.onDropCallback=A,this.dragOverHandler=e=>{e.preventDefault(),this.element.classList.add("drag-over")},this.dragLeaveHandler=e=>{e.preventDefault(),this.element.classList.remove("drag-over")},this.dropHandler=e=>{var n;e.preventDefault(),this.element.classList.remove("drag-over");const r=(n=e.dataTransfer)==null?void 0:n.files;if(r&&r.length>0){const i=r[0];if(i.type.startsWith("image/")){const s=new FileReader;s.onload=a=>{var c,h;const o=(c=a.target)==null?void 0:c.result;(h=this.onDropCallback)==null||h.call(this,o,i.name)},s.readAsDataURL(i)}}},this.element.addEventListener("dragover",this.dragOverHandler),this.element.addEventListener("dragleave",this.dragLeaveHandler),this.element.addEventListener("drop",this.dropHandler)}disable(){this.dragOverHandler&&this.element.removeEventListener("dragover",this.dragOverHandler),this.dragLeaveHandler&&this.element.removeEventListener("dragleave",this.dragLeaveHandler),this.dropHandler&&this.element.removeEventListener("drop",this.dropHandler),this.dragOverHandler=null,this.dragLeaveHandler=null,this.dropHandler=null,this.onDropCallback=null}}class Wu{constructor(A){this.element=A}toHTML(){return this.element.innerHTML}toText(){const A=document.createElement("div");return A.innerHTML=this.element.innerHTML,A.innerText||A.textContent||""}downloadHTML(A="document.html"){const e=this.toHTML();this.download(e,A,"text/html")}downloadText(A="document.txt"){const e=this.toText();this.download(e,A,"text/plain")}copyHTML(){const A=this.toHTML();return navigator.clipboard.writeText(A)}print(){var n;const A=this.toHTML(),e=document.createElement("iframe");e.style.position="fixed",e.style.right="0",e.style.bottom="0",e.style.width="0",e.style.height="0",e.style.border="none",document.body.appendChild(e);const r=(n=e.contentWindow)==null?void 0:n.document;r&&(r.open(),r.write(`
6
6
  <!DOCTYPE html>
7
7
  <html>
8
8
  <head>
@@ -82,7 +82,10 @@
82
82
  </head>
83
83
  <body>${A}</body>
84
84
  </html>
85
- `),r.close(),e.onload=()=>{var i,s;(i=e.contentWindow)==null||i.focus(),(s=e.contentWindow)==null||s.print(),setTimeout(()=>{document.body.removeChild(e)},1e3)})}download(A,e,r){const n=new Blob([A],{type:r}),i=URL.createObjectURL(n),s=document.createElement("a");s.href=i,s.download=e,s.click(),URL.revokeObjectURL(i)}}class Wu{constructor(A={}){oA(this,"element",null);oA(this,"options");oA(this,"inputHandler",null);oA(this,"mouseUpHandler",null);oA(this,"keyUpHandler",null);oA(this,"pasteHandler",null);oA(this,"commands");oA(this,"selection");oA(this,"stats");oA(this,"autosave");oA(this,"dragDrop");oA(this,"export");this.options=A,this.selection=new _p;const e=document.createElement("div");this.commands=new Ku(e),this.stats=new ju(e),this.autosave=new Gu(e,A.autosave),this.dragDrop=new qu(e),this.export=new Vu(e)}mount(A){if(this.element&&this.unmount(),this.element=A,this.commands=new Ku(A),this.stats=new ju(A),this.autosave=new Gu(A,this.options.autosave),this.dragDrop=new qu(A),this.export=new Vu(A),A.contentEditable="true",this.options.placeholder&&(A.dataset.placeholder=this.options.placeholder),this.autosave.isEnabled()){const e=this.autosave.load();e&&(A.innerHTML=e),this.autosave.start()}this.inputHandler=()=>this.handleInput(),this.mouseUpHandler=()=>this.handleSelectionChange(),this.keyUpHandler=()=>this.handleSelectionChange(),this.pasteHandler=e=>this.handlePaste(e),A.addEventListener("input",this.inputHandler),A.addEventListener("mouseup",this.mouseUpHandler),A.addEventListener("keyup",this.keyUpHandler),A.addEventListener("paste",this.pasteHandler)}unmount(){this.element&&(this.inputHandler&&this.element.removeEventListener("input",this.inputHandler),this.mouseUpHandler&&this.element.removeEventListener("mouseup",this.mouseUpHandler),this.keyUpHandler&&this.element.removeEventListener("keyup",this.keyUpHandler),this.pasteHandler&&this.element.removeEventListener("paste",this.pasteHandler),this.autosave.stop(),this.dragDrop.disable(),this.element=null,this.inputHandler=null,this.mouseUpHandler=null,this.keyUpHandler=null,this.pasteHandler=null)}getHTML(){if(!this.element)return"";let A=this.element.innerHTML;return this.options.sanitize&&(A=this.sanitizeHTML(A)),A}setHTML(A){this.element&&(this.element.innerHTML=A,this.handleInput())}clear(){this.setHTML("")}getStats(){return this.stats.get()}enableAutosave(){this.autosave.start()}disableAutosave(){this.autosave.stop()}saveNow(){this.autosave.save()}loadSaved(){return this.autosave.load()}enableDragDrop(A){this.dragDrop.enable(A)}disableDragDrop(){this.dragDrop.disable()}focus(){var A;(A=this.element)==null||A.focus()}handleInput(){var r,n;if(!this.element)return;const A=this.getHTML(),e=this.getStats();(n=(r=this.options).onChange)==null||n.call(r,A,e)}async handlePaste(A){const e=A.clipboardData;if(!e)return;const r=e.getData("text/plain"),n=e.getData("text/html");if(n&&n.trim().length>0){A.preventDefault();const i=this.cleanPastedHTML(n);this.commands&&this.commands.insertHTML(i);return}if(r&&r.length>=10){const i=Mu(r);if(i.lang!=="plain-text"&&i.confidence>.3){A.preventDefault(),this.commands&&await this.commands.insertText(r);return}}}cleanPastedHTML(A){const e=document.createElement("div");return e.innerHTML=A,e.querySelectorAll("*").forEach(n=>{n.removeAttribute("style"),n.removeAttribute("class"),n.removeAttribute("id"),Array.from(n.attributes).forEach(i=>{i.name.startsWith("data-")&&!i.name.startsWith("data-language")&&!i.name.startsWith("data-display-name")&&!i.name.startsWith("data-original-code")&&n.removeAttribute(i.name)})}),e.innerHTML}handleSelectionChange(){}sanitizeHTML(A){const e=document.createElement("div");return e.innerHTML=A,e.querySelectorAll("script").forEach(i=>i.remove()),e.querySelectorAll("*").forEach(i=>{Array.from(i.attributes).forEach(s=>{s.name.startsWith("on")&&i.removeAttribute(s.name)})}),e.innerHTML}}function Np(t={}){const{value:A,defaultValue:e,theme:r="dark",...n}=t,i=RA.useRef(null),s=RA.useRef(new Wu),[a,o]=RA.useState({wordCount:0,charCount:0,paragraphCount:0}),[c,h]=RA.useState(!1),[g,m]=RA.useState(r),f=A!==void 0;RA.useEffect(()=>{if(!i.current)return;const F=new Wu({...n,theme:g==="auto"?"dark":g,onChange:(v,L)=>{var N;o(L),(N=n.onChange)==null||N.call(n,v,L)}});return F.mount(i.current),s.current=F,A?F.setHTML(A):e&&F.setHTML(e),()=>{F.unmount()}},[]),RA.useEffect(()=>{s.current&&(s.current.options.theme=g==="auto"?"dark":g)},[g]),RA.useEffect(()=>{f&&A!==void 0&&s.current&&s.current.getHTML()!==A&&s.current.setHTML(A)},[A,f]);const w=RA.useCallback(()=>{h(F=>!F)},[]),y=RA.useCallback(()=>{m(F=>F==="dark"?"light":"dark")},[]);return{editorRef:i,core:s.current,stats:a,isFullscreen:c,theme:g,toggleFullscreen:w,toggleTheme:y}}var zu,So=iB;if(process.env.NODE_ENV==="production")zu=So.createRoot,So.hydrateRoot;else{var $f=So.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;zu=function(t,A){$f.usingClientEntryPoint=!0;try{return So.createRoot(t,A)}finally{$f.usingClientEntryPoint=!1}}}function oB(t=768){const[A,e]=RA.useState(!1);return RA.useEffect(()=>{const r=()=>{e(window.innerWidth<=t)};return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[t]),A}const $u=["#ff6b6b","#ee5a24","#ffd93d","#6bcb77","#4d96ff","#6c5ce7","#a55eea","#fd79a8","#ffffff","#dfe6e9","#b2bec3","#636e72","#2d3436","#000000","#00cec9","#81ecec","#fab1a0","#ffeaa7","#55efc4","#74b9ff","#a29bfe","#e17055","#d63031","#fdcb6e"],Hp=["😀","😃","😄","😁","😅","😂","🤣","😊","😇","🙂","🙃","😉","😌","😍","🥰","😘","😗","😙","😚","😋","😛","😜","🤪","😝","🤑","🤗","🤭","🤫","🤔","🤐","🤨","😐","😑","😶","😏","😒","🙄","😬","🤥","😌","😔","😪","🤤","😴","😷","🤒","🤕","🤢","👍","👎","👏","🙌","👐","🤲","🤝","🙏","✍️","💪","🦾","🦿","🦵","🦶","👂","🦻","❤️","🧡","💛","💚","💙","💜","🖤","🤍","🤎","💔","❣️","💕","💞","💓","💗","💖","","🌟","✨","💫","🔥","💥","🎉","🎊","🎈","🎁","🏆","🥇","🥈","🥉","⚡","💡"],lB=`
85
+ `),r.close(),e.onload=()=>{var i,s;(i=e.contentWindow)==null||i.focus(),(s=e.contentWindow)==null||s.print(),setTimeout(()=>{document.body.removeChild(e)},1e3)})}download(A,e,r){const n=new Blob([A],{type:r}),i=URL.createObjectURL(n),s=document.createElement("a");s.href=i,s.download=e,s.click(),URL.revokeObjectURL(i)}}class zu{constructor(A={}){oA(this,"element",null);oA(this,"options");oA(this,"inputHandler",null);oA(this,"mouseUpHandler",null);oA(this,"keyUpHandler",null);oA(this,"pasteHandler",null);oA(this,"commands");oA(this,"selection");oA(this,"stats");oA(this,"autosave");oA(this,"dragDrop");oA(this,"export");this.options=A,this.selection=new Pp;const e=document.createElement("div");this.commands=new ju(e),this.stats=new Gu(e),this.autosave=new qu(e,A.autosave),this.dragDrop=new Vu(e),this.export=new Wu(e)}mount(A){if(this.element&&this.unmount(),this.element=A,this.commands=new ju(A),this.stats=new Gu(A),this.autosave=new qu(A,this.options.autosave),this.dragDrop=new Vu(A),this.export=new Wu(A),A.contentEditable="true",this.options.placeholder&&(A.dataset.placeholder=this.options.placeholder),this.autosave.isEnabled()){const e=this.autosave.load();e&&(A.innerHTML=e),this.autosave.start()}this.inputHandler=()=>this.handleInput(),this.mouseUpHandler=()=>this.handleSelectionChange(),this.keyUpHandler=()=>this.handleSelectionChange(),this.pasteHandler=e=>this.handlePaste(e),A.addEventListener("input",this.inputHandler),A.addEventListener("mouseup",this.mouseUpHandler),A.addEventListener("keyup",this.keyUpHandler),A.addEventListener("paste",this.pasteHandler)}unmount(){this.element&&(this.inputHandler&&this.element.removeEventListener("input",this.inputHandler),this.mouseUpHandler&&this.element.removeEventListener("mouseup",this.mouseUpHandler),this.keyUpHandler&&this.element.removeEventListener("keyup",this.keyUpHandler),this.pasteHandler&&this.element.removeEventListener("paste",this.pasteHandler),this.autosave.stop(),this.dragDrop.disable(),this.element=null,this.inputHandler=null,this.mouseUpHandler=null,this.keyUpHandler=null,this.pasteHandler=null)}getHTML(){if(!this.element)return"";let A=this.element.innerHTML;return this.options.sanitize&&(A=this.sanitizeHTML(A)),A}setHTML(A){this.element&&(this.element.innerHTML=A,this.handleInput())}clear(){this.setHTML("")}getStats(){return this.stats.get()}enableAutosave(){this.autosave.start()}disableAutosave(){this.autosave.stop()}saveNow(){this.autosave.save()}loadSaved(){return this.autosave.load()}enableDragDrop(A){this.dragDrop.enable(A)}disableDragDrop(){this.dragDrop.disable()}focus(){var A;(A=this.element)==null||A.focus()}handleInput(){var r,n;if(!this.element)return;const A=this.getHTML(),e=this.getStats();(n=(r=this.options).onChange)==null||n.call(r,A,e)}async handlePaste(A){const e=A.clipboardData;if(!e)return;const r=e.getData("text/plain"),n=e.getData("text/html");if(n&&n.trim().length>0){A.preventDefault();const i=this.cleanPastedHTML(n);this.commands&&this.commands.insertHTML(i);return}if(r&&r.length>=10){const i=Ku(r);if(i.lang!=="plain-text"&&i.confidence>.3){A.preventDefault(),this.commands&&await this.commands.insertText(r);return}}}cleanPastedHTML(A){const e=document.createElement("div");return e.innerHTML=A,e.querySelectorAll("*").forEach(n=>{n.removeAttribute("style"),n.removeAttribute("class"),n.removeAttribute("id"),Array.from(n.attributes).forEach(i=>{i.name.startsWith("data-")&&!i.name.startsWith("data-language")&&!i.name.startsWith("data-display-name")&&!i.name.startsWith("data-original-code")&&n.removeAttribute(i.name)})}),e.innerHTML}handleSelectionChange(){}sanitizeHTML(A){const e=document.createElement("div");return e.innerHTML=A,e.querySelectorAll("script").forEach(i=>i.remove()),e.querySelectorAll("*").forEach(i=>{Array.from(i.attributes).forEach(s=>{s.name.startsWith("on")&&i.removeAttribute(s.name)})}),e.innerHTML}}function Gh(t={}){const{value:A,defaultValue:e,theme:r="dark",...n}=t,i=IA.useRef(null),s=IA.useRef(new zu),[a,o]=IA.useState({wordCount:0,charCount:0,paragraphCount:0}),[c,h]=IA.useState(!1),[d,m]=IA.useState(r),f=A!==void 0;IA.useEffect(()=>{if(!i.current)return;const F=new zu({...n,theme:d==="auto"?"dark":d,onChange:(v,L)=>{var _;o(L),(_=n.onChange)==null||_.call(n,v,L)}});return F.mount(i.current),s.current=F,A?F.setHTML(A):e&&F.setHTML(e),()=>{F.unmount()}},[]),IA.useEffect(()=>{s.current&&(s.current.options.theme=d==="auto"?"dark":d)},[d]),IA.useEffect(()=>{f&&A!==void 0&&s.current&&s.current.getHTML()!==A&&s.current.setHTML(A)},[A,f]);const w=IA.useCallback(()=>{h(F=>!F)},[]),y=IA.useCallback(()=>{m(F=>F==="dark"?"light":"dark")},[]);return{editorRef:i,core:s.current,stats:a,isFullscreen:c,theme:d,toggleFullscreen:w,toggleTheme:y}}var $u,Io=oB;if(process.env.NODE_ENV==="production")$u=Io.createRoot,Io.hydrateRoot;else{var Zf=Io.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;$u=function(t,A){Zf.usingClientEntryPoint=!0;try{return Io.createRoot(t,A)}finally{Zf.usingClientEntryPoint=!1}}}function uB(t=768){const[A,e]=IA.useState(!1);return IA.useEffect(()=>{const r=()=>{e(window.innerWidth<=t)};return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[t]),A}const Xu={light:{primary:"#007bff",primaryDark:"#0056b3",primaryLight:"#e7f1ff",bgPrimary:"#ffffff",bgSecondary:"#f8f9fa",textPrimary:"#212529",textSecondary:"#6c757d",borderRadius:"4px",borderWidth:"1px",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',fontSize:"14px",shadowSm:"0 1px 2px rgba(0, 0, 0, 0.05)",shadowMd:"0 4px 6px rgba(0, 0, 0, 0.1)",shadowLg:"0 10px 15px rgba(0, 0, 0, 0.1)"},dark:{primary:"#0d6efd",primaryDark:"#0a58ca",primaryLight:"#084298",bgPrimary:"#1e1e1e",bgSecondary:"#2d2d2d",textPrimary:"#e0e0e0",textSecondary:"#a0a0a0",borderRadius:"4px",borderWidth:"1px",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',fontSize:"14px",shadowSm:"0 1px 2px rgba(0, 0, 0, 0.3)",shadowMd:"0 4px 6px rgba(0, 0, 0, 0.4)",shadowLg:"0 10px 15px rgba(0, 0, 0, 0.5)"},minimal:{primary:"#000000",primaryDark:"#333333",primaryLight:"#f0f0f0",bgPrimary:"#ffffff",bgSecondary:"#f5f5f5",textPrimary:"#000000",textSecondary:"#666666",borderRadius:"0px",borderWidth:"1px",fontFamily:"Georgia, serif",fontSize:"14px",shadowSm:"none",shadowMd:"none",shadowLg:"none"},colorful:{primary:"#ff6b6b",primaryDark:"#ee5a52",primaryLight:"#ffe0e0",bgPrimary:"#fff5f5",bgSecondary:"#ffe8e8",textPrimary:"#2d3748",textSecondary:"#718096",borderRadius:"8px",borderWidth:"2px",fontFamily:'"Inter", "Helvetica Neue", sans-serif',fontSize:"14px",shadowSm:"0 2px 4px rgba(255, 107, 107, 0.1)",shadowMd:"0 4px 8px rgba(255, 107, 107, 0.15)",shadowLg:"0 8px 16px rgba(255, 107, 107, 0.2)"},custom:{primary:"#007bff",bgPrimary:"#ffffff",textPrimary:"#212529"}};function qh(t,A){const e=Xu[t]||Xu.light;return t==="custom"&&A?{...e,...A}:e}function hB(t){const A={};return Object.entries(t).forEach(([r,n])=>{if(n){const i=r.replace(/([A-Z])/g,"-$1").toLowerCase();A[i]=n}}),`:root {
86
+ ${Object.entries(A).map(([r,n])=>`--${r}: ${n};`).join(`
87
+ `)}
88
+ }`}const Na=["#ff6b6b","#ee5a24","#ffd93d","#6bcb77","#4d96ff","#6c5ce7","#a55eea","#fd79a8","#ffffff","#dfe6e9","#b2bec3","#636e72","#2d3436","#000000","#00cec9","#81ecec","#fab1a0","#ffeaa7","#55efc4","#74b9ff","#a29bfe","#e17055","#d63031","#fdcb6e"],Tp=["😀","😃","😄","😁","😅","😂","🤣","😊","😇","🙂","🙃","😉","😌","😍","🥰","😘","😗","😙","😚","😋","😛","😜","🤪","😝","🤑","🤗","🤭","🤫","🤔","🤐","🤨","😐","😑","😶","😏","😒","🙄","😬","🤥","😌","😔","😪","🤤","😴","😷","🤒","🤕","🤢","👍","👎","👏","🙌","👐","🤲","🤝","🙏","✍️","💪","🦾","🦿","🦵","🦶","👂","🦻","❤️","🧡","💛","💚","💙","💜","🖤","🤍","🤎","💔","❣️","💕","💞","💓","💗","💖","⭐","🌟","✨","💫","🔥","💥","🎉","🎊","🎈","🎁","🏆","🥇","🥈","🥉","⚡","💡"],fB=`
86
89
  <h1>🎉 Добро пожаловать в Pro WYSIWYG Editor!</h1>
87
90
  <p>Это <strong>профессиональный</strong> текстовый редактор с <em>полным набором функций</em>:</p>
88
91
  <ul>
@@ -101,9 +104,9 @@
101
104
  </ul>
102
105
  <blockquote>Попробуйте все функции и создайте что-то потрясающее!</blockquote>
103
106
  <p>Начните редактирование прямо сейчас! 🚀</p>
104
- `,cB="_editorWrapper_10nm2_19",uB="_light_10nm2_37",hB="_fullscreen_10nm2_49",fB="_toolbar_10nm2_71",dB="_toolbarGroup_10nm2_101",gB="_toolbarBtn_10nm2_131",pB="_active_10nm2_173",mB="_toolbarSelect_10nm2_203",BB="_editorContent_10nm2_245",wB="_statusBar_10nm2_497",vB="_autosaveIndicator_10nm2_529",yB="_autosaveDot_10nm2_541",CB="_colorPickerWrapper_10nm2_567",bB="_colorPalette_10nm2_575",FB="_show_10nm2_605",QB="_colorSwatch_10nm2_613",UB="_modalOverlay_10nm2_641",xB="_modal_10nm2_641",EB="_modalInput_10nm2_767",LB="_modalBtn_10nm2_811",SB="_modalBtnPrimary_10nm2_827",IB="_modalBtnSecondary_10nm2_847",_B="_emojiPicker_10nm2_861",NB="_emojiGrid_10nm2_901",HB="_emojiItem_10nm2_913",kB="_findReplace_10nm2_981",PB="_findInput_10nm2_1059",TB="_previewPanel_10nm2_1101",DB="_previewHeader_10nm2_1127",RB="_previewContent_10nm2_1143",OB="_tabBtn_10nm2_1349",MB="_sourceCode_10nm2_1381",KB="_statsGroup_10nm2_1411",jB="_statItem_10nm2_1421",eA={editorWrapper:cB,light:uB,fullscreen:hB,toolbar:fB,toolbarGroup:dB,toolbarBtn:gB,active:pB,toolbarSelect:mB,editorContent:BB,statusBar:wB,autosaveIndicator:vB,autosaveDot:yB,colorPickerWrapper:CB,colorPalette:bB,show:FB,colorSwatch:QB,modalOverlay:UB,modal:xB,modalInput:EB,modalBtn:LB,modalBtnPrimary:SB,modalBtnSecondary:IB,emojiPicker:_B,emojiGrid:NB,emojiItem:HB,findReplace:kB,findInput:PB,previewPanel:TB,previewHeader:DB,previewContent:RB,tabBtn:OB,sourceCode:MB,statsGroup:KB,statItem:jB};function GB({core:t,theme:A,onLinkClick:e,onImageClick:r,onVideoClick:n,onTableClick:i,onFindClick:s,onFullscreenClick:a,onPrintClick:o,isFullscreen:c,allowImages:h=!0,allowVideoEmbeds:g=!0,allowTables:m=!0,enableFindReplace:f=!0,enablePrint:w=!0,enableFullscreen:y=!0,isMobile:F=!1}){const[v,L]=RA.useState(new Set),[N,_]=RA.useState(!1),[q,X]=RA.useState(!1),[J,G]=RA.useState(!1),k=RA.useRef(null),Z=RA.useRef(null),x=RA.useRef(null),S=()=>{const z=["bold","italic","underline","strikeThrough","subscript","superscript","justifyLeft","justifyCenter","justifyRight","justifyFull","insertUnorderedList","insertOrderedList"],lA=new Set;z.forEach(hA=>{t.commands.queryState(hA)&&lA.add(hA)}),L(lA)};RA.useEffect(()=>{const z=lA=>{k.current&&!k.current.contains(lA.target)&&_(!1),Z.current&&!Z.current.contains(lA.target)&&X(!1),x.current&&!x.current.contains(lA.target)&&G(!1)};return document.addEventListener("click",z),()=>document.removeEventListener("click",z)},[]);const K=z=>{t.commands.exec(z),S()},T=A==="light";return V.jsxs("div",{className:`${eA.toolbar} ${T?eA.light:""}`,children:[V.jsxs("div",{className:`${eA.toolbarGroup} ${T?eA.light:""}`,children:[V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""}`,onClick:()=>K("undo"),title:"Отменить (Ctrl+Z)",children:V.jsx("i",{className:"fas fa-undo"})}),V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""}`,onClick:()=>K("redo"),title:"Повторить (Ctrl+Y)",children:V.jsx("i",{className:"fas fa-redo"})})]}),!F&&V.jsxs("div",{className:`${eA.toolbarGroup} ${T?eA.light:""}`,children:[V.jsxs("select",{className:`${eA.toolbarSelect} ${T?eA.light:""}`,onChange:z=>t.commands.setFormatBlock(z.target.value),children:[V.jsx("option",{value:"p",children:"Параграф"}),V.jsx("option",{value:"h1",children:"Заголовок 1"}),V.jsx("option",{value:"h2",children:"Заголовок 2"}),V.jsx("option",{value:"h3",children:"Заголовок 3"}),V.jsx("option",{value:"h4",children:"Заголовок 4"}),V.jsx("option",{value:"pre",children:"Код"}),V.jsx("option",{value:"blockquote",children:"Цитата"})]}),V.jsxs("select",{className:`${eA.toolbarSelect} ${T?eA.light:""}`,onChange:z=>t.commands.setFontName(z.target.value),children:[V.jsx("option",{value:"Segoe UI",children:"Segoe UI"}),V.jsx("option",{value:"Arial",children:"Arial"}),V.jsx("option",{value:"Georgia",children:"Georgia"}),V.jsx("option",{value:"Times New Roman",children:"Times New Roman"}),V.jsx("option",{value:"Courier New",children:"Courier New"}),V.jsx("option",{value:"Verdana",children:"Verdana"})]}),V.jsxs("select",{className:`${eA.toolbarSelect} ${T?eA.light:""}`,onChange:z=>t.commands.setFontSize(z.target.value),defaultValue:"3",children:[V.jsx("option",{value:"1",children:"Мелкий"}),V.jsx("option",{value:"2",children:"Малый"}),V.jsx("option",{value:"3",children:"Обычный"}),V.jsx("option",{value:"4",children:"Средний"}),V.jsx("option",{value:"5",children:"Большой"}),V.jsx("option",{value:"6",children:"Огромный"}),V.jsx("option",{value:"7",children:"Максимальный"})]})]}),V.jsx("div",{className:`${eA.toolbarGroup} ${T?eA.light:""}`,children:["bold","italic","underline","strikeThrough","subscript","superscript"].map(z=>V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""} ${v.has(z)?eA.active:""}`,onClick:()=>K(z),children:V.jsx("i",{className:`fas fa-${z==="strikeThrough"?"strikethrough":z}`})},z))}),V.jsxs("div",{className:`${eA.toolbarGroup} ${T?eA.light:""}`,children:[V.jsxs("div",{className:eA.colorPickerWrapper,ref:k,children:[V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""}`,onClick:z=>{z.stopPropagation(),t.selection.save(),_(!N),X(!1),G(!1)},title:"Цвет текста",children:V.jsx("i",{className:"fas fa-font",style:{borderBottom:"3px solid #ff6b6b"}})}),V.jsx("div",{className:`${eA.colorPalette} ${N?eA.show:""}`,children:$u.map(z=>V.jsx("div",{className:eA.colorSwatch,style:{background:z},onClick:()=>{console.log("[Toolbar] Setting foreColor:",z),t.selection.restore(),t.commands.setForeColor(z),_(!1)}},z))})]}),V.jsxs("div",{className:eA.colorPickerWrapper,ref:Z,children:[V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""}`,onClick:z=>{z.stopPropagation(),t.selection.save(),X(!q),_(!1),G(!1)},title:"Цвет фона",children:V.jsx("i",{className:"fas fa-highlighter",style:{borderBottom:"3px solid #feca57"}})}),V.jsx("div",{className:`${eA.colorPalette} ${q?eA.show:""}`,children:$u.map(z=>V.jsx("div",{className:eA.colorSwatch,style:{background:z},onClick:()=>{console.log("[Toolbar] Setting backColor:",z),t.selection.restore(),t.commands.setBackColor(z),X(!1)}},z))})]})]}),V.jsx("div",{className:`${eA.toolbarGroup} ${T?eA.light:""}`,children:["insertUnorderedList","insertOrderedList"].map(z=>V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""} ${v.has(z)?eA.active:""}`,onClick:()=>K(z),children:V.jsx("i",{className:`fas fa-list-${z==="insertUnorderedList"?"ul":"ol"}`})},z))}),V.jsx("div",{className:`${eA.toolbarGroup} ${T?eA.light:""}`,children:["justifyLeft","justifyCenter","justifyRight","justifyFull"].map(z=>V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""} ${v.has(z)?eA.active:""}`,onClick:()=>K(z),children:V.jsx("i",{className:`fas fa-align-${z.replace("justify","").toLowerCase()}`})},z))}),V.jsxs("div",{className:`${eA.toolbarGroup} ${T?eA.light:""}`,children:[V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""} ${v.has("insertUnorderedList")?eA.active:""}`,onClick:()=>K("insertUnorderedList"),title:"Маркированный список",children:V.jsx("i",{className:"fas fa-list-ul"})}),V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""} ${v.has("insertOrderedList")?eA.active:""}`,onClick:()=>K("insertOrderedList"),title:"Нумерованный список",children:V.jsx("i",{className:"fas fa-list-ol"})}),V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""}`,onClick:()=>K("indent"),title:"Увеличить отступ",children:V.jsx("i",{className:"fas fa-indent"})}),V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""}`,onClick:()=>K("outdent"),title:"Уменьшить отступ",children:V.jsx("i",{className:"fas fa-outdent"})})]}),V.jsxs("div",{className:`${eA.toolbarGroup} ${T?eA.light:""}`,children:[V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""}`,onClick:e,title:"Вставить ссылку (Ctrl+K)",children:V.jsx("i",{className:"fas fa-link"})}),h&&V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""}`,onClick:r,title:"Вставить изображение",children:V.jsx("i",{className:"fas fa-image"})}),g&&V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""}`,onClick:n,title:"Вставить видео",children:V.jsx("i",{className:"fas fa-video"})}),m&&V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""}`,onClick:i,title:"Вставить таблицу",children:V.jsx("i",{className:"fas fa-table"})}),V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""}`,onClick:()=>t.commands.insertHR(),title:"Горизонтальная линия",children:V.jsx("i",{className:"fas fa-minus"})})]}),V.jsxs("div",{className:`${eA.toolbarGroup} ${T?eA.light:""}`,children:[V.jsxs("div",{className:eA.colorPickerWrapper,ref:x,children:[V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""}`,onClick:z=>{z.stopPropagation(),t.selection.save(),G(!J),_(!1),X(!1)},title:"Эмодзи",children:V.jsx("i",{className:"fas fa-smile"})}),V.jsx("div",{className:`${eA.emojiPicker} ${J?eA.show:""}`,children:V.jsx("div",{className:eA.emojiGrid,children:Hp.map((z,lA)=>V.jsx("div",{className:eA.emojiItem,onClick:()=>{t.selection.restore(),t.commands.insertEmoji(z),G(!1)},children:z},lA))})})]}),V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""}`,onClick:()=>t.commands.insertCodeBlock(),title:"Блок кода",children:V.jsx("i",{className:"fas fa-code"})}),V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""}`,onClick:()=>K("removeFormat"),title:"Очистить форматирование",children:V.jsx("i",{className:"fas fa-eraser"})})]}),V.jsxs("div",{className:`${eA.toolbarGroup} ${T?eA.light:""}`,children:[f&&V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""}`,onClick:s,title:"Поиск и замена (Ctrl+F)",children:V.jsx("i",{className:"fas fa-search"})}),w&&V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""}`,onClick:o,title:"Печать (Ctrl+P)",children:V.jsx("i",{className:"fas fa-print"})}),y&&V.jsx("button",{className:`${eA.toolbarBtn} ${T?eA.light:""}`,onClick:a,title:"Полный экран (F11)",children:V.jsx("i",{className:`fas fa-${c?"compress":"expand"}`})})]})]})}function qB({meta:t,theme:A,enableAutosave:e,lastSaveTime:r}){const n=A==="light",i=s=>s?`Сохранено ${s.toLocaleTimeString()}`:"Автосохранение включено";return V.jsxs("div",{className:`${eA.statusBar} ${n?eA.light:""}`,children:[e&&V.jsxs("div",{className:eA.autosaveIndicator,children:[V.jsx("div",{className:eA.autosaveDot}),V.jsx("span",{children:i(r)})]}),!e&&V.jsx("div",{}),V.jsxs("div",{className:eA.statsGroup,children:[V.jsxs("div",{className:eA.statItem,children:[V.jsx("span",{children:"Слов:"}),V.jsx("strong",{children:t.wordCount})]}),V.jsxs("div",{className:eA.statItem,children:[V.jsx("span",{children:"Символов:"}),V.jsx("strong",{children:t.charCount})]}),V.jsxs("div",{className:eA.statItem,children:[V.jsx("span",{children:"Параграфов:"}),V.jsx("strong",{children:t.paragraphCount})]})]})]})}function VB({isOpen:t,onClose:A,core:e,theme:r="dark"}){const[n,i]=RA.useState(""),[s,a]=RA.useState(""),o=r==="light";RA.useEffect(()=>{if(t){const f=window.getSelection(),w=f==null?void 0:f.toString().trim();w&&i(w)}else i(""),a("")},[t]);const c=()=>{n&&e.commands.find(n)},h=()=>{n&&e.commands.replace(n,s)},g=()=>{n&&e.commands.replaceAll(n,s)},m=f=>{f.key==="Enter"?c():f.key==="Escape"&&A()};return t?V.jsxs("div",{className:`${eA.findReplace} ${t?eA.show:""} ${o?eA.light:""}`,children:[V.jsx("input",{type:"text",className:`${eA.findInput} ${o?eA.light:""}`,placeholder:"Найти...",value:n,onChange:f=>i(f.target.value),onKeyDown:m}),V.jsx("input",{type:"text",className:`${eA.findInput} ${o?eA.light:""}`,placeholder:"Заменить на...",value:s,onChange:f=>a(f.target.value),onKeyDown:m}),V.jsx("button",{className:`${eA.toolbarBtn} ${o?eA.light:""}`,onClick:c,title:"Найти следующее",children:V.jsx("i",{className:"fas fa-chevron-down"})}),V.jsx("button",{className:`${eA.toolbarBtn} ${o?eA.light:""}`,onClick:h,children:"Заменить"}),V.jsx("button",{className:`${eA.toolbarBtn} ${o?eA.light:""}`,onClick:g,children:"Заменить все"}),V.jsx("button",{className:`${eA.toolbarBtn} ${o?eA.light:""}`,onClick:A,title:"Закрыть",children:V.jsx("i",{className:"fas fa-times"})})]}):null}let dt=class extends Error{constructor(A){super(A),this.name="ShikiError"}};function WB(t){return Kh(t)}function Kh(t){return Array.isArray(t)?zB(t):t instanceof RegExp?t:typeof t=="object"?$B(t):t}function zB(t){let A=[];for(let e=0,r=t.length;e<r;e++)A[e]=Kh(t[e]);return A}function $B(t){let A={};for(let e in t)A[e]=Kh(t[e]);return A}function kp(t,...A){return A.forEach(e=>{for(let r in e)t[r]=e[r]}),t}function Pp(t){const A=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return A===0?t:~A===t.length-1?Pp(t.substring(0,t.length-1)):t.substr(~A+1)}var Gc=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Io=class{static hasCaptures(t){return t===null?!1:(Gc.lastIndex=0,Gc.test(t))}static replaceCaptures(t,A,e){return t.replace(Gc,(r,n,i,s)=>{let a=e[parseInt(n||i,10)];if(a){let o=A.substring(a.start,a.end);for(;o[0]===".";)o=o.substring(1);switch(s){case"downcase":return o.toLowerCase();case"upcase":return o.toUpperCase();default:return o}}else return r})}};function Tp(t,A){return t<A?-1:t>A?1:0}function Dp(t,A){if(t===null&&A===null)return 0;if(!t)return-1;if(!A)return 1;let e=t.length,r=A.length;if(e===r){for(let n=0;n<e;n++){let i=Tp(t[n],A[n]);if(i!==0)return i}return 0}return e-r}function Xf(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function Rp(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Op=class{constructor(t){oA(this,"cache",new Map);this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const A=this.fn(t);return this.cache.set(t,A),A}},Ql=class{constructor(t,A,e){oA(this,"_cachedMatchRoot",new Op(t=>this._root.match(t)));this._colorMap=t,this._defaults=A,this._root=e}static createFromRawTheme(t,A){return this.createFromParsedTheme(YB(t),A)}static createFromParsedTheme(t,A){return A2(t,A)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const A=t.scopeName,r=this._cachedMatchRoot.get(A).find(n=>XB(t.parent,n.parentScopes));return r?new Mp(r.fontStyle,r.foreground,r.background):null}},qc=class fl{constructor(A,e){this.parent=A,this.scopeName=e}static push(A,e){for(const r of e)A=new fl(A,r);return A}static from(...A){let e=null;for(let r=0;r<A.length;r++)e=new fl(e,A[r]);return e}push(A){return new fl(this,A)}getSegments(){let A=this;const e=[];for(;A;)e.push(A.scopeName),A=A.parent;return e.reverse(),e}toString(){return this.getSegments().join(" ")}extends(A){return this===A?!0:this.parent===null?!1:this.parent.extends(A)}getExtensionIfDefined(A){const e=[];let r=this;for(;r&&r!==A;)e.push(r.scopeName),r=r.parent;return r===A?e.reverse():void 0}};function XB(t,A){if(A.length===0)return!0;for(let e=0;e<A.length;e++){let r=A[e],n=!1;if(r===">"){if(e===A.length-1)return!1;r=A[++e],n=!0}for(;t&&!JB(t.scopeName,r);){if(n)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function JB(t,A){return A===t||t.startsWith(A)&&t[A.length]==="."}var Mp=class{constructor(t,A,e){this.fontStyle=t,this.foregroundId=A,this.backgroundId=e}};function YB(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let A=t.settings,e=[],r=0;for(let n=0,i=A.length;n<i;n++){let s=A[n];if(!s.settings)continue;let a;if(typeof s.scope=="string"){let g=s.scope;g=g.replace(/^[,]+/,""),g=g.replace(/[,]+$/,""),a=g.split(",")}else Array.isArray(s.scope)?a=s.scope:a=[""];let o=-1;if(typeof s.settings.fontStyle=="string"){o=0;let g=s.settings.fontStyle.split(" ");for(let m=0,f=g.length;m<f;m++)switch(g[m]){case"italic":o=o|1;break;case"bold":o=o|2;break;case"underline":o=o|4;break;case"strikethrough":o=o|8;break}}let c=null;typeof s.settings.foreground=="string"&&Xf(s.settings.foreground)&&(c=s.settings.foreground);let h=null;typeof s.settings.background=="string"&&Xf(s.settings.background)&&(h=s.settings.background);for(let g=0,m=a.length;g<m;g++){let w=a[g].trim().split(" "),y=w[w.length-1],F=null;w.length>1&&(F=w.slice(0,w.length-1),F.reverse()),e[r++]=new ZB(y,F,n,o,c,h)}}return e}var ZB=class{constructor(t,A,e,r,n,i){this.scope=t,this.parentScopes=A,this.index=e,this.fontStyle=r,this.foreground=n,this.background=i}},Wt=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(Wt||{});function A2(t,A){t.sort((o,c)=>{let h=Tp(o.scope,c.scope);return h!==0||(h=Dp(o.parentScopes,c.parentScopes),h!==0)?h:o.index-c.index});let e=0,r="#000000",n="#ffffff";for(;t.length>=1&&t[0].scope==="";){let o=t.shift();o.fontStyle!==-1&&(e=o.fontStyle),o.foreground!==null&&(r=o.foreground),o.background!==null&&(n=o.background)}let i=new e2(A),s=new Mp(e,i.getId(r),i.getId(n)),a=new r2(new Xu(0,null,-1,0,0),[]);for(let o=0,c=t.length;o<c;o++){let h=t[o];a.insert(0,h.scope,h.parentScopes,h.fontStyle,i.getId(h.foreground),i.getId(h.background))}return new Ql(i,s,a)}var e2=class{constructor(t){oA(this,"_isFrozen");oA(this,"_lastColorId");oA(this,"_id2color");oA(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let A=0,e=t.length;A<e;A++)this._color2id[t[A]]=A,this._id2color[A]=t[A]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let A=this._color2id[t];if(A)return A;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return A=++this._lastColorId,this._color2id[t]=A,this._id2color[A]=t,A}getColorMap(){return this._id2color.slice(0)}},t2=Object.freeze([]),Xu=class Kp{constructor(A,e,r,n,i){oA(this,"scopeDepth");oA(this,"parentScopes");oA(this,"fontStyle");oA(this,"foreground");oA(this,"background");this.scopeDepth=A,this.parentScopes=e||t2,this.fontStyle=r,this.foreground=n,this.background=i}clone(){return new Kp(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(A){let e=[];for(let r=0,n=A.length;r<n;r++)e[r]=A[r].clone();return e}acceptOverwrite(A,e,r,n){this.scopeDepth>A?console.log("how did this happen?"):this.scopeDepth=A,e!==-1&&(this.fontStyle=e),r!==0&&(this.foreground=r),n!==0&&(this.background=n)}},r2=class Ju{constructor(A,e=[],r={}){oA(this,"_rulesWithParentScopes");this._mainRule=A,this._children=r,this._rulesWithParentScopes=e}static _cmpBySpecificity(A,e){if(A.scopeDepth!==e.scopeDepth)return e.scopeDepth-A.scopeDepth;let r=0,n=0;for(;A.parentScopes[r]===">"&&r++,e.parentScopes[n]===">"&&n++,!(r>=A.parentScopes.length||n>=e.parentScopes.length);){const i=e.parentScopes[n].length-A.parentScopes[r].length;if(i!==0)return i;r++,n++}return e.parentScopes.length-A.parentScopes.length}match(A){if(A!==""){let r=A.indexOf("."),n,i;if(r===-1?(n=A,i=""):(n=A.substring(0,r),i=A.substring(r+1)),this._children.hasOwnProperty(n))return this._children[n].match(i)}const e=this._rulesWithParentScopes.concat(this._mainRule);return e.sort(Ju._cmpBySpecificity),e}insert(A,e,r,n,i,s){if(e===""){this._doInsertHere(A,r,n,i,s);return}let a=e.indexOf("."),o,c;a===-1?(o=e,c=""):(o=e.substring(0,a),c=e.substring(a+1));let h;this._children.hasOwnProperty(o)?h=this._children[o]:(h=new Ju(this._mainRule.clone(),Xu.cloneArr(this._rulesWithParentScopes)),this._children[o]=h),h.insert(A+1,c,r,n,i,s)}_doInsertHere(A,e,r,n,i){if(e===null){this._mainRule.acceptOverwrite(A,r,n,i);return}for(let s=0,a=this._rulesWithParentScopes.length;s<a;s++){let o=this._rulesWithParentScopes[s];if(Dp(o.parentScopes,e)===0){o.acceptOverwrite(A,r,n,i);return}}r===-1&&(r=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new Xu(A,e,r,n,i))}},Es=class Qr{static toBinaryStr(A){return A.toString(2).padStart(32,"0")}static print(A){const e=Qr.getLanguageId(A),r=Qr.getTokenType(A),n=Qr.getFontStyle(A),i=Qr.getForeground(A),s=Qr.getBackground(A);console.log({languageId:e,tokenType:r,fontStyle:n,foreground:i,background:s})}static getLanguageId(A){return(A&255)>>>0}static getTokenType(A){return(A&768)>>>8}static containsBalancedBrackets(A){return(A&1024)!==0}static getFontStyle(A){return(A&30720)>>>11}static getForeground(A){return(A&16744448)>>>15}static getBackground(A){return(A&4278190080)>>>24}static set(A,e,r,n,i,s,a){let o=Qr.getLanguageId(A),c=Qr.getTokenType(A),h=Qr.containsBalancedBrackets(A)?1:0,g=Qr.getFontStyle(A),m=Qr.getForeground(A),f=Qr.getBackground(A);return e!==0&&(o=e),r!==8&&(c=r),n!==null&&(h=n?1:0),i!==-1&&(g=i),s!==0&&(m=s),a!==0&&(f=a),(o<<0|c<<8|h<<10|g<<11|m<<15|f<<24)>>>0}};function Ul(t,A){const e=[],r=n2(t);let n=r.next();for(;n!==null;){let o=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":o=1;break;case"L":o=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=r.next()}let c=s();if(e.push({matcher:c,priority:o}),n!==",")break;n=r.next()}return e;function i(){if(n==="-"){n=r.next();const o=i();return c=>!!o&&!o(c)}if(n==="("){n=r.next();const o=a();return n===")"&&(n=r.next()),o}if(Jf(n)){const o=[];do o.push(n),n=r.next();while(Jf(n));return c=>A(o,c)}return null}function s(){const o=[];let c=i();for(;c;)o.push(c),c=i();return h=>o.every(g=>g(h))}function a(){const o=[];let c=s();for(;c&&(o.push(c),n==="|"||n===",");){do n=r.next();while(n==="|"||n===",");c=s()}return h=>o.some(g=>g(h))}}function Jf(t){return!!t&&!!t.match(/[\w\.:]+/)}function n2(t){let A=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,e=A.exec(t);return{next:()=>{if(!e)return null;const r=e[0];return e=A.exec(t),r}}}function jp(t){typeof t.dispose=="function"&&t.dispose()}var Na=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},i2=class{constructor(t,A){this.scopeName=t,this.ruleName=A}toKey(){return`${this.scopeName}#${this.ruleName}`}},s2=class{constructor(){oA(this,"_references",[]);oA(this,"_seenReferenceKeys",new Set);oA(this,"visitedRule",new Set)}get references(){return this._references}add(t){const A=t.toKey();this._seenReferenceKeys.has(A)||(this._seenReferenceKeys.add(A),this._references.push(t))}},a2=class{constructor(t,A){oA(this,"seenFullScopeRequests",new Set);oA(this,"seenPartialScopeRequests",new Set);oA(this,"Q");this.repo=t,this.initialScopeName=A,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Na(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const A=new s2;for(const e of t)o2(e,this.initialScopeName,this.repo,A);for(const e of A.references)if(e instanceof Na){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function o2(t,A,e,r){const n=e.lookup(t.scopeName);if(!n){if(t.scopeName===A)throw new Error(`No grammar provided for <${A}>`);return}const i=e.lookup(A);t instanceof Na?dl({baseGrammar:i,selfGrammar:n},r):Yu(t.ruleName,{baseGrammar:i,selfGrammar:n,repository:n.repository},r);const s=e.injections(t.scopeName);if(s)for(const a of s)r.add(new Na(a))}function Yu(t,A,e){if(A.repository&&A.repository[t]){const r=A.repository[t];xl([r],A,e)}}function dl(t,A){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&xl(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},A),t.selfGrammar.injections&&xl(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},A)}function xl(t,A,e){for(const r of t){if(e.visitedRule.has(r))continue;e.visitedRule.add(r);const n=r.repository?kp({},A.repository,r.repository):A.repository;Array.isArray(r.patterns)&&xl(r.patterns,{...A,repository:n},e);const i=r.include;if(!i)continue;const s=Gp(i);switch(s.kind){case 0:dl({...A,selfGrammar:A.baseGrammar},e);break;case 1:dl(A,e);break;case 2:Yu(s.ruleName,{...A,repository:n},e);break;case 3:case 4:const a=s.scopeName===A.selfGrammar.scopeName?A.selfGrammar:s.scopeName===A.baseGrammar.scopeName?A.baseGrammar:void 0;if(a){const o={baseGrammar:A.baseGrammar,selfGrammar:a,repository:n};s.kind===4?Yu(s.ruleName,o,e):dl(o,e)}else s.kind===4?e.add(new i2(s.scopeName,s.ruleName)):e.add(new Na(s.scopeName));break}}}var l2=class{constructor(){oA(this,"kind",0)}},c2=class{constructor(){oA(this,"kind",1)}},u2=class{constructor(t){oA(this,"kind",2);this.ruleName=t}},h2=class{constructor(t){oA(this,"kind",3);this.scopeName=t}},f2=class{constructor(t,A){oA(this,"kind",4);this.scopeName=t,this.ruleName=A}};function Gp(t){if(t==="$base")return new l2;if(t==="$self")return new c2;const A=t.indexOf("#");if(A===-1)return new h2(t);if(A===0)return new u2(t.substring(1));{const e=t.substring(0,A),r=t.substring(A+1);return new f2(e,r)}}var d2=/\\(\d+)/,Yf=/\\(\d+)/g,g2=-1,qp=-2;var Ka=class{constructor(t,A,e,r){oA(this,"$location");oA(this,"id");oA(this,"_nameIsCapturing");oA(this,"_name");oA(this,"_contentNameIsCapturing");oA(this,"_contentName");this.$location=t,this.id=A,this._name=e||null,this._nameIsCapturing=Io.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Io.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Pp(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,A){return!this._nameIsCapturing||this._name===null||t===null||A===null?this._name:Io.replaceCaptures(this._name,t,A)}getContentName(t,A){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Io.replaceCaptures(this._contentName,t,A)}},p2=class extends Ka{constructor(A,e,r,n,i){super(A,e,r,n);oA(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(A,e){throw new Error("Not supported!")}compile(A,e){throw new Error("Not supported!")}compileAG(A,e,r,n){throw new Error("Not supported!")}},m2=class extends Ka{constructor(A,e,r,n,i){super(A,e,r,null);oA(this,"_match");oA(this,"captures");oA(this,"_cachedCompiledPatterns");this._match=new Ha(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(A,e){e.push(this._match)}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,r,n){return this._getCachedCompiledPatterns(A).compileAG(A,r,n)}_getCachedCompiledPatterns(A){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ka,this.collectPatterns(A,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Zf=class extends Ka{constructor(A,e,r,n,i){super(A,e,r,n);oA(this,"hasMissingPatterns");oA(this,"patterns");oA(this,"_cachedCompiledPatterns");this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(A,e){for(const r of this.patterns)A.getRule(r).collectPatterns(A,e)}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,r,n){return this._getCachedCompiledPatterns(A).compileAG(A,r,n)}_getCachedCompiledPatterns(A){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ka,this.collectPatterns(A,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Zu=class extends Ka{constructor(A,e,r,n,i,s,a,o,c,h){super(A,e,r,n);oA(this,"_begin");oA(this,"beginCaptures");oA(this,"_end");oA(this,"endHasBackReferences");oA(this,"endCaptures");oA(this,"applyEndPatternLast");oA(this,"hasMissingPatterns");oA(this,"patterns");oA(this,"_cachedCompiledPatterns");this._begin=new Ha(i,this.id),this.beginCaptures=s,this._end=new Ha(a||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=c||!1,this.patterns=h.patterns,this.hasMissingPatterns=h.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(A,e){return this._end.resolveBackReferences(A,e)}collectPatterns(A,e){e.push(this._begin)}compile(A,e){return this._getCachedCompiledPatterns(A,e).compile(A)}compileAG(A,e,r,n){return this._getCachedCompiledPatterns(A,e).compileAG(A,r,n)}_getCachedCompiledPatterns(A,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ka;for(const r of this.patterns)A.getRule(r).collectPatterns(A,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},El=class extends Ka{constructor(A,e,r,n,i,s,a,o,c){super(A,e,r,n);oA(this,"_begin");oA(this,"beginCaptures");oA(this,"whileCaptures");oA(this,"_while");oA(this,"whileHasBackReferences");oA(this,"hasMissingPatterns");oA(this,"patterns");oA(this,"_cachedCompiledPatterns");oA(this,"_cachedCompiledWhilePatterns");this._begin=new Ha(i,this.id),this.beginCaptures=s,this.whileCaptures=o,this._while=new Ha(a,qp),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(A,e){return this._while.resolveBackReferences(A,e)}collectPatterns(A,e){e.push(this._begin)}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,r,n){return this._getCachedCompiledPatterns(A).compileAG(A,r,n)}_getCachedCompiledPatterns(A){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ka;for(const e of this.patterns)A.getRule(e).collectPatterns(A,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(A,e){return this._getCachedCompiledWhilePatterns(A,e).compile(A)}compileWhileAG(A,e,r,n){return this._getCachedCompiledWhilePatterns(A,e).compileAG(A,r,n)}_getCachedCompiledWhilePatterns(A,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ka,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}},Vp=class Gt{static createCaptureRule(A,e,r,n,i){return A.registerRule(s=>new p2(e,s,r,n,i))}static getCompiledRuleId(A,e,r){return A.id||e.registerRule(n=>{if(A.id=n,A.match)return new m2(A.$vscodeTextmateLocation,A.id,A.name,A.match,Gt._compileCaptures(A.captures,e,r));if(typeof A.begin>"u"){A.repository&&(r=kp({},r,A.repository));let i=A.patterns;return typeof i>"u"&&A.include&&(i=[{include:A.include}]),new Zf(A.$vscodeTextmateLocation,A.id,A.name,A.contentName,Gt._compilePatterns(i,e,r))}return A.while?new El(A.$vscodeTextmateLocation,A.id,A.name,A.contentName,A.begin,Gt._compileCaptures(A.beginCaptures||A.captures,e,r),A.while,Gt._compileCaptures(A.whileCaptures||A.captures,e,r),Gt._compilePatterns(A.patterns,e,r)):new Zu(A.$vscodeTextmateLocation,A.id,A.name,A.contentName,A.begin,Gt._compileCaptures(A.beginCaptures||A.captures,e,r),A.end,Gt._compileCaptures(A.endCaptures||A.captures,e,r),A.applyEndPatternLast,Gt._compilePatterns(A.patterns,e,r))}),A.id}static _compileCaptures(A,e,r){let n=[];if(A){let i=0;for(const s in A){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);a>i&&(i=a)}for(let s=0;s<=i;s++)n[s]=null;for(const s in A){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);let o=0;A[s].patterns&&(o=Gt.getCompiledRuleId(A[s],e,r)),n[a]=Gt.createCaptureRule(e,A[s].$vscodeTextmateLocation,A[s].name,A[s].contentName,o)}}return n}static _compilePatterns(A,e,r){let n=[];if(A)for(let i=0,s=A.length;i<s;i++){const a=A[i];let o=-1;if(a.include){const c=Gp(a.include);switch(c.kind){case 0:case 1:o=Gt.getCompiledRuleId(r[a.include],e,r);break;case 2:let h=r[c.ruleName];h&&(o=Gt.getCompiledRuleId(h,e,r));break;case 3:case 4:const g=c.scopeName,m=c.kind===4?c.ruleName:null,f=e.getExternalGrammar(g,r);if(f)if(m){let w=f.repository[m];w&&(o=Gt.getCompiledRuleId(w,e,f.repository))}else o=Gt.getCompiledRuleId(f.repository.$self,e,f.repository);break}}else o=Gt.getCompiledRuleId(a,e,r);if(o!==-1){const c=e.getRule(o);let h=!1;if((c instanceof Zf||c instanceof Zu||c instanceof El)&&c.hasMissingPatterns&&c.patterns.length===0&&(h=!0),h)continue;n.push(o)}}return{patterns:n,hasMissingPatterns:(A?A.length:0)!==n.length}}},Ha=class Wp{constructor(A,e){oA(this,"source");oA(this,"ruleId");oA(this,"hasAnchor");oA(this,"hasBackReferences");oA(this,"_anchorCache");if(A&&typeof A=="string"){const r=A.length;let n=0,i=[],s=!1;for(let a=0;a<r;a++)if(A.charAt(a)==="\\"&&a+1<r){const c=A.charAt(a+1);c==="z"?(i.push(A.substring(n,a)),i.push("$(?!\\n)(?<!\\n)"),n=a+2):(c==="A"||c==="G")&&(s=!0),a++}this.hasAnchor=s,n===0?this.source=A:(i.push(A.substring(n,r)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=A;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=e,typeof this.source=="string"?this.hasBackReferences=d2.test(this.source):this.hasBackReferences=!1}clone(){return new Wp(this.source,this.ruleId)}setSource(A){this.source!==A&&(this.source=A,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(A,e){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=e.map(n=>A.substring(n.start,n.end));return Yf.lastIndex=0,this.source.replace(Yf,(n,i)=>Rp(r[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let A=[],e=[],r=[],n=[],i,s,a,o;for(i=0,s=this.source.length;i<s;i++)a=this.source.charAt(i),A[i]=a,e[i]=a,r[i]=a,n[i]=a,a==="\\"&&i+1<s&&(o=this.source.charAt(i+1),o==="A"?(A[i+1]="￿",e[i+1]="￿",r[i+1]="A",n[i+1]="A"):o==="G"?(A[i+1]="￿",e[i+1]="G",r[i+1]="￿",n[i+1]="G"):(A[i+1]=o,e[i+1]=o,r[i+1]=o,n[i+1]=o),i++);return{A0_G0:A.join(""),A0_G1:e.join(""),A1_G0:r.join(""),A1_G1:n.join("")}}resolveAnchors(A,e){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:A?e?this._anchorCache.A1_G1:this._anchorCache.A1_G0:e?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ka=class{constructor(){oA(this,"_items");oA(this,"_hasAnchors");oA(this,"_cached");oA(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,A){this._items[t].source!==A&&(this._disposeCaches(),this._items[t].setSource(A))}compile(t){if(!this._cached){let A=this._items.map(e=>e.source);this._cached=new Ad(t,A,this._items.map(e=>e.ruleId))}return this._cached}compileAG(t,A,e){return this._hasAnchors?A?e?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,A,e)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,A,e)),this._anchorCache.A1_G0):e?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,A,e)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,A,e)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,A,e){let r=this._items.map(n=>n.resolveAnchors(A,e));return new Ad(t,r,this._items.map(n=>n.ruleId))}},Ad=class{constructor(t,A,e){oA(this,"scanner");this.regExps=A,this.rules=e,this.scanner=t.createOnigScanner(A)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let A=0,e=this.rules.length;A<e;A++)t.push(" - "+this.rules[A]+": "+this.regExps[A]);return t.join(`
105
- `)}findNextMatchSync(t,A,e){const r=this.scanner.findNextMatchSync(t,A,e);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Vc=class{constructor(t,A){this.languageId=t,this.tokenType=A}},Hn,B2=(Hn=class{constructor(A,e){oA(this,"_defaultAttributes");oA(this,"_embeddedLanguagesMatcher");oA(this,"_getBasicScopeAttributes",new Op(A=>{const e=this._scopeToLanguage(A),r=this._toStandardTokenType(A);return new Vc(e,r)}));this._defaultAttributes=new Vc(A,8),this._embeddedLanguagesMatcher=new w2(Object.entries(e||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(A){return A===null?Hn._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(A)}_scopeToLanguage(A){return this._embeddedLanguagesMatcher.match(A)||0}_toStandardTokenType(A){const e=A.match(Hn.STANDARD_TOKEN_TYPE_REGEXP);if(!e)return 8;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},oA(Hn,"_NULL_SCOPE_METADATA",new Vc(0,0)),oA(Hn,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Hn),w2=class{constructor(t){oA(this,"values");oA(this,"scopesRegExp");if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const A=t.map(([e,r])=>Rp(e));A.sort(),A.reverse(),this.scopesRegExp=new RegExp(`^((${A.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const A=t.match(this.scopesRegExp);if(A)return this.values.get(A[1])}};typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var ed=class{constructor(t,A){this.stack=t,this.stoppedEarly=A}};function zp(t,A,e,r,n,i,s,a){const o=A.content.length;let c=!1,h=-1;if(s){const f=v2(t,A,e,r,n,i);n=f.stack,r=f.linePos,e=f.isFirstLine,h=f.anchorPosition}const g=Date.now();for(;!c;){if(a!==0&&Date.now()-g>a)return new ed(n,!0);m()}return new ed(n,!1);function m(){const f=y2(t,A,e,r,n,h);if(!f){i.produce(n,o),c=!0;return}const w=f.captureIndices,y=f.matchedRuleId,F=w&&w.length>0?w[0].end>r:!1;if(y===g2){const v=n.getRule(t);i.produce(n,w[0].start),n=n.withContentNameScopesList(n.nameScopesList),pa(t,A,e,n,i,v.endCaptures,w),i.produce(n,w[0].end);const L=n;if(n=n.parent,h=L.getAnchorPos(),!F&&L.getEnterPos()===r){n=L,i.produce(n,o),c=!0;return}}else{const v=t.getRule(y);i.produce(n,w[0].start);const L=n,N=v.getName(A.content,w),_=n.contentNameScopesList.pushAttributed(N,t);if(n=n.push(y,r,h,w[0].end===o,null,_,_),v instanceof Zu){const q=v;pa(t,A,e,n,i,q.beginCaptures,w),i.produce(n,w[0].end),h=w[0].end;const X=q.getContentName(A.content,w),J=_.pushAttributed(X,t);if(n=n.withContentNameScopesList(J),q.endHasBackReferences&&(n=n.withEndRule(q.getEndWithResolvedBackReferences(A.content,w))),!F&&L.hasSameRuleAs(n)){n=n.pop(),i.produce(n,o),c=!0;return}}else if(v instanceof El){const q=v;pa(t,A,e,n,i,q.beginCaptures,w),i.produce(n,w[0].end),h=w[0].end;const X=q.getContentName(A.content,w),J=_.pushAttributed(X,t);if(n=n.withContentNameScopesList(J),q.whileHasBackReferences&&(n=n.withEndRule(q.getWhileWithResolvedBackReferences(A.content,w))),!F&&L.hasSameRuleAs(n)){n=n.pop(),i.produce(n,o),c=!0;return}}else if(pa(t,A,e,n,i,v.captures,w),i.produce(n,w[0].end),n=n.pop(),!F){n=n.safePop(),i.produce(n,o),c=!0;return}}w[0].end>r&&(r=w[0].end,e=!1)}}function v2(t,A,e,r,n,i){let s=n.beginRuleCapturedEOL?0:-1;const a=[];for(let o=n;o;o=o.pop()){const c=o.getRule(t);c instanceof El&&a.push({rule:c,stack:o})}for(let o=a.pop();o;o=a.pop()){const{ruleScanner:c,findOptions:h}=F2(o.rule,t,o.stack.endRule,e,r===s),g=c.findNextMatchSync(A,r,h);if(g){if(g.ruleId!==qp){n=o.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(i.produce(o.stack,g.captureIndices[0].start),pa(t,A,e,o.stack,i,o.rule.whileCaptures,g.captureIndices),i.produce(o.stack,g.captureIndices[0].end),s=g.captureIndices[0].end,g.captureIndices[0].end>r&&(r=g.captureIndices[0].end,e=!1))}else{n=o.stack.pop();break}}return{stack:n,linePos:r,anchorPosition:s,isFirstLine:e}}function y2(t,A,e,r,n,i){const s=C2(t,A,e,r,n,i),a=t.getInjections();if(a.length===0)return s;const o=b2(a,t,A,e,r,n,i);if(!o)return s;if(!s)return o;const c=s.captureIndices[0].start,h=o.captureIndices[0].start;return h<c||o.priorityMatch&&h===c?o:s}function C2(t,A,e,r,n,i){const s=n.getRule(t),{ruleScanner:a,findOptions:o}=$p(s,t,n.endRule,e,r===i),c=a.findNextMatchSync(A,r,o);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function b2(t,A,e,r,n,i,s){let a=Number.MAX_VALUE,o=null,c,h=0;const g=i.contentNameScopesList.getScopeNames();for(let m=0,f=t.length;m<f;m++){const w=t[m];if(!w.matcher(g))continue;const y=A.getRule(w.ruleId),{ruleScanner:F,findOptions:v}=$p(y,A,null,r,n===s),L=F.findNextMatchSync(e,n,v);if(!L)continue;const N=L.captureIndices[0].start;if(!(N>=a)&&(a=N,o=L.captureIndices,c=L.ruleId,h=w.priority,a===n))break}return o?{priorityMatch:h===-1,captureIndices:o,matchedRuleId:c}:null}function $p(t,A,e,r,n){return{ruleScanner:t.compileAG(A,e,r,n),findOptions:0}}function F2(t,A,e,r,n){return{ruleScanner:t.compileWhileAG(A,e,r,n),findOptions:0}}function pa(t,A,e,r,n,i,s){if(i.length===0)return;const a=A.content,o=Math.min(i.length,s.length),c=[],h=s[0].end;for(let g=0;g<o;g++){const m=i[g];if(m===null)continue;const f=s[g];if(f.length===0)continue;if(f.start>h)break;for(;c.length>0&&c[c.length-1].endPos<=f.start;)n.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?n.produceFromScopes(c[c.length-1].scopes,f.start):n.produce(r,f.start),m.retokenizeCapturedWithRuleId){const y=m.getName(a,s),F=r.contentNameScopesList.pushAttributed(y,t),v=m.getContentName(a,s),L=F.pushAttributed(v,t),N=r.push(m.retokenizeCapturedWithRuleId,f.start,-1,!1,null,F,L),_=t.createOnigString(a.substring(0,f.end));zp(t,_,e&&f.start===0,f.start,N,n,!1,0),jp(_);continue}const w=m.getName(a,s);if(w!==null){const F=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(w,t);c.push(new Q2(F,f.end))}}for(;c.length>0;)n.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var Q2=class{constructor(t,A){oA(this,"scopes");oA(this,"endPos");this.scopes=t,this.endPos=A}};function U2(t,A,e,r,n,i,s,a){return new E2(t,A,e,r,n,i,s,a)}function td(t,A,e,r,n){const i=Ul(A,Ll),s=Vp.getCompiledRuleId(e,r,n.repository);for(const a of i)t.push({debugSelector:A,matcher:a.matcher,ruleId:s,grammar:n,priority:a.priority})}function Ll(t,A){if(A.length<t.length)return!1;let e=0;return t.every(r=>{for(let n=e;n<A.length;n++)if(x2(A[n],r))return e=n+1,!0;return!1})}function x2(t,A){if(!t)return!1;if(t===A)return!0;const e=A.length;return t.length>e&&t.substr(0,e)===A&&t[e]==="."}var E2=class{constructor(t,A,e,r,n,i,s,a){oA(this,"_rootId");oA(this,"_lastRuleId");oA(this,"_ruleId2desc");oA(this,"_includedGrammars");oA(this,"_grammarRepository");oA(this,"_grammar");oA(this,"_injections");oA(this,"_basicScopeAttributesProvider");oA(this,"_tokenTypeMatchers");if(this._rootScopeName=t,this.balancedBracketSelectors=i,this._onigLib=a,this._basicScopeAttributesProvider=new B2(e,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=rd(A,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const o of Object.keys(n)){const c=Ul(o,Ll);for(const h of c)this._tokenTypeMatchers.push({matcher:h.matcher,type:n[o]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:n=>n===this._rootScopeName?this._grammar:this.getExternalGrammar(n),injections:n=>this._grammarRepository.injections(n)},A=[],e=this._rootScopeName,r=t.lookup(e);if(r){const n=r.injections;if(n)for(let s in n)td(A,s,n[s],this,r);const i=this._grammarRepository.injections(e);i&&i.forEach(s=>{const a=this.getExternalGrammar(s);if(a){const o=a.injectionSelector;o&&td(A,o,a,this,a)}})}return A.sort((n,i)=>n.priority-i.priority),A}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const A=++this._lastRuleId,e=t(A);return this._ruleId2desc[A]=e,e}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,A){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const e=this._grammarRepository.lookup(t);if(e)return this._includedGrammars[t]=rd(e,A&&A.$base),this._includedGrammars[t]}}tokenizeLine(t,A,e=0){const r=this._tokenize(t,A,!1,e);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(t,A,e=0){const r=this._tokenize(t,A,!0,e);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(t,A,e,r){this._rootId===-1&&(this._rootId=Vp.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!A||A===Ah.NULL){n=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),h=this.themeProvider.getDefaults(),g=Es.set(0,c.languageId,c.tokenType,null,h.fontStyle,h.foregroundId,h.backgroundId),m=this.getRule(this._rootId).getName(null,null);let f;m?f=Qa.createRootAndLookUpScopeName(m,g,this):f=Qa.createRoot("unknown",g),A=new Ah(null,this._rootId,-1,-1,!1,null,f,f)}else n=!1,A.reset();t=t+`
106
- `;const i=this.createOnigString(t),s=i.content.length,a=new S2(e,t,this._tokenTypeMatchers,this.balancedBracketSelectors),o=zp(this,i,n,0,A,a,!0,r);return jp(i),{lineLength:s,lineTokens:a,ruleStack:o.stack,stoppedEarly:o.stoppedEarly}}};function rd(t,A){return t=WB(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=A||t.repository.$self,t}var Qa=class rn{constructor(A,e,r){this.parent=A,this.scopePath=e,this.tokenAttributes=r}static fromExtension(A,e){let r=A,n=(A==null?void 0:A.scopePath)??null;for(const i of e)n=qc.push(n,i.scopeNames),r=new rn(r,n,i.encodedTokenAttributes);return r}static createRoot(A,e){return new rn(null,new qc(null,A),e)}static createRootAndLookUpScopeName(A,e,r){const n=r.getMetadataForScope(A),i=new qc(null,A),s=r.themeProvider.themeMatch(i),a=rn.mergeAttributes(e,n,s);return new rn(null,i,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(A){return rn.equals(this,A)}static equals(A,e){do{if(A===e||!A&&!e)return!0;if(!A||!e||A.scopeName!==e.scopeName||A.tokenAttributes!==e.tokenAttributes)return!1;A=A.parent,e=e.parent}while(!0)}static mergeAttributes(A,e,r){let n=-1,i=0,s=0;return r!==null&&(n=r.fontStyle,i=r.foregroundId,s=r.backgroundId),Es.set(A,e.languageId,e.tokenType,null,n,i,s)}pushAttributed(A,e){if(A===null)return this;if(A.indexOf(" ")===-1)return rn._pushAttributed(this,A,e);const r=A.split(/ /g);let n=this;for(const i of r)n=rn._pushAttributed(n,i,e);return n}static _pushAttributed(A,e,r){const n=r.getMetadataForScope(e),i=A.scopePath.push(e),s=r.themeProvider.themeMatch(i),a=rn.mergeAttributes(A.tokenAttributes,n,s);return new rn(A,i,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(A){var n;const e=[];let r=this;for(;r&&r!==A;)e.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((n=r.parent)==null?void 0:n.scopePath)??null)}),r=r.parent;return r===A?e.reverse():void 0}},Er,Ah=(Er=class{constructor(A,e,r,n,i,s,a,o){oA(this,"_stackElementBrand");oA(this,"_enterPos");oA(this,"_anchorPos");oA(this,"depth");this.parent=A,this.ruleId=e,this.beginRuleCapturedEOL=i,this.endRule=s,this.nameScopesList=a,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=n}equals(A){return A===null?!1:Er._equals(this,A)}static _equals(A,e){return A===e?!0:this._structuralEquals(A,e)?Qa.equals(A.contentNameScopesList,e.contentNameScopesList):!1}static _structuralEquals(A,e){do{if(A===e||!A&&!e)return!0;if(!A||!e||A.depth!==e.depth||A.ruleId!==e.ruleId||A.endRule!==e.endRule)return!1;A=A.parent,e=e.parent}while(!0)}clone(){return this}static _reset(A){for(;A;)A._enterPos=-1,A._anchorPos=-1,A=A.parent}reset(){Er._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(A,e,r,n,i,s,a){return new Er(this,A,e,r,n,i,s,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(A){return A.getRule(this.ruleId)}toString(){const A=[];return this._writeString(A,0),"["+A.join(",")+"]"}_writeString(A,e){var r,n;return this.parent&&(e=this.parent._writeString(A,e)),A[e++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(n=this.contentNameScopesList)==null?void 0:n.toString()})`,e}withContentNameScopesList(A){return this.contentNameScopesList===A?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,A)}withEndRule(A){return this.endRule===A?this:new Er(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,A,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(A){let e=this;for(;e&&e._enterPos===A._enterPos;){if(e.ruleId===A.ruleId)return!0;e=e.parent}return!1}toStateStackFrame(){var A,e,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((e=this.nameScopesList)==null?void 0:e.getExtensionIfDefined(((A=this.parent)==null?void 0:A.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(A,e){const r=Qa.fromExtension((A==null?void 0:A.nameScopesList)??null,e.nameScopesList);return new Er(A,e.ruleId,e.enterPos??-1,e.anchorPos??-1,e.beginRuleCapturedEOL,e.endRule,r,Qa.fromExtension(r,e.contentNameScopesList))}},oA(Er,"NULL",new Er(null,0,0,0,!1,null,null,null)),Er),L2=class{constructor(t,A){oA(this,"balancedBracketScopes");oA(this,"unbalancedBracketScopes");oA(this,"allowAny",!1);this.balancedBracketScopes=t.flatMap(e=>e==="*"?(this.allowAny=!0,[]):Ul(e,Ll).map(r=>r.matcher)),this.unbalancedBracketScopes=A.flatMap(e=>Ul(e,Ll).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const A of this.unbalancedBracketScopes)if(A(t))return!1;for(const A of this.balancedBracketScopes)if(A(t))return!0;return this.allowAny}},S2=class{constructor(t,A,e,r){oA(this,"_emitBinaryTokens");oA(this,"_lineText");oA(this,"_tokens");oA(this,"_binaryTokens");oA(this,"_lastTokenEndIndex");oA(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=t,this._tokenTypeOverrides=e,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,A){this.produceFromScopes(t.contentNameScopesList,A)}produceFromScopes(t,A){var r;if(this._lastTokenEndIndex>=A)return;if(this._emitBinaryTokens){let n=(t==null?void 0:t.tokenAttributes)??0,i=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=(t==null?void 0:t.getScopeNames())??[];for(const a of this._tokenTypeOverrides)a.matcher(s)&&(n=Es.set(n,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(s))}if(i&&(n=Es.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=A;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=A;return}const e=(t==null?void 0:t.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:A,scopes:e}),this._lastTokenEndIndex=A}getResult(t,A){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===A-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,A),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,A){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===A-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,A),this._binaryTokens[this._binaryTokens.length-2]=0);const e=new Uint32Array(this._binaryTokens.length);for(let r=0,n=this._binaryTokens.length;r<n;r++)e[r]=this._binaryTokens[r];return e}},I2=class{constructor(t,A){oA(this,"_grammars",new Map);oA(this,"_rawGrammars",new Map);oA(this,"_injectionGrammars",new Map);oA(this,"_theme");this._onigLib=A,this._theme=t}dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,A){this._rawGrammars.set(t.scopeName,t),A&&this._injectionGrammars.set(t.scopeName,A)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,A,e,r,n){if(!this._grammars.has(t)){let i=this._rawGrammars.get(t);if(!i)return null;this._grammars.set(t,U2(t,i,A,e,r,n,this,this._onigLib))}return this._grammars.get(t)}},_2=class{constructor(A){oA(this,"_options");oA(this,"_syncRegistry");oA(this,"_ensureGrammarCache");this._options=A,this._syncRegistry=new I2(Ql.createFromRawTheme(A.theme,A.colorMap),A.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(A,e){this._syncRegistry.setTheme(Ql.createFromRawTheme(A,e))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(A,e,r){return this.loadGrammarWithConfiguration(A,e,{embeddedLanguages:r})}loadGrammarWithConfiguration(A,e,r){return this._loadGrammar(A,e,r.embeddedLanguages,r.tokenTypes,new L2(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(A){return this._loadGrammar(A,0,null,null,null)}_loadGrammar(A,e,r,n,i){const s=new a2(this._syncRegistry,A);for(;s.Q.length>0;)s.Q.map(a=>this._loadSingleGrammar(a.scopeName)),s.processQueue();return this._grammarForScopeName(A,e,r,n,i)}_loadSingleGrammar(A){this._ensureGrammarCache.has(A)||(this._doLoadSingleGrammar(A),this._ensureGrammarCache.set(A,!0))}_doLoadSingleGrammar(A){const e=this._options.loadGrammar(A);if(e){const r=typeof this._options.getInjections=="function"?this._options.getInjections(A):void 0;this._syncRegistry.addGrammar(e,r)}}addGrammar(A,e=[],r=0,n=null){return this._syncRegistry.addGrammar(A,e),this._grammarForScopeName(A.scopeName,r,n)}_grammarForScopeName(A,e=0,r=null,n=null,i=null){return this._syncRegistry.grammarForScopeName(A,e,r,n,i)}},eh=Ah.NULL;const N2=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class ja{constructor(A,e,r){this.normal=e,this.property=A,r&&(this.space=r)}}ja.prototype.normal={};ja.prototype.property={};ja.prototype.space=void 0;function Xp(t,A){const e={},r={};for(const n of t)Object.assign(e,n.property),Object.assign(r,n.normal);return new ja(e,r,A)}function th(t){return t.toLowerCase()}class tr{constructor(A,e){this.attribute=e,this.property=A}}tr.prototype.attribute="";tr.prototype.booleanish=!1;tr.prototype.boolean=!1;tr.prototype.commaOrSpaceSeparated=!1;tr.prototype.commaSeparated=!1;tr.prototype.defined=!1;tr.prototype.mustUseProperty=!1;tr.prototype.number=!1;tr.prototype.overloadedBoolean=!1;tr.prototype.property="";tr.prototype.spaceSeparated=!1;tr.prototype.space=void 0;let H2=0;const Be=Ki(),ft=Ki(),rh=Ki(),EA=Ki(),Ke=Ki(),ys=Ki(),fr=Ki();function Ki(){return 2**++H2}const nh=Object.freeze(Object.defineProperty({__proto__:null,boolean:Be,booleanish:ft,commaOrSpaceSeparated:fr,commaSeparated:ys,number:EA,overloadedBoolean:rh,spaceSeparated:Ke},Symbol.toStringTag,{value:"Module"})),Wc=Object.keys(nh);class jh extends tr{constructor(A,e,r,n){let i=-1;if(super(A,e),nd(this,"space",n),typeof r=="number")for(;++i<Wc.length;){const s=Wc[i];nd(this,Wc[i],(r&nh[s])===nh[s])}}}jh.prototype.defined=!0;function nd(t,A,e){e&&(t[A]=e)}function Ss(t){const A={},e={};for(const[r,n]of Object.entries(t.properties)){const i=new jh(r,t.transform(t.attributes||{},r),n,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),A[r]=i,e[th(r)]=r,e[th(i.attribute)]=r}return new ja(A,e,t.space)}const Jp=Ss({properties:{ariaActiveDescendant:null,ariaAtomic:ft,ariaAutoComplete:null,ariaBusy:ft,ariaChecked:ft,ariaColCount:EA,ariaColIndex:EA,ariaColSpan:EA,ariaControls:Ke,ariaCurrent:null,ariaDescribedBy:Ke,ariaDetails:null,ariaDisabled:ft,ariaDropEffect:Ke,ariaErrorMessage:null,ariaExpanded:ft,ariaFlowTo:Ke,ariaGrabbed:ft,ariaHasPopup:null,ariaHidden:ft,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ke,ariaLevel:EA,ariaLive:null,ariaModal:ft,ariaMultiLine:ft,ariaMultiSelectable:ft,ariaOrientation:null,ariaOwns:Ke,ariaPlaceholder:null,ariaPosInSet:EA,ariaPressed:ft,ariaReadOnly:ft,ariaRelevant:null,ariaRequired:ft,ariaRoleDescription:Ke,ariaRowCount:EA,ariaRowIndex:EA,ariaRowSpan:EA,ariaSelected:ft,ariaSetSize:EA,ariaSort:null,ariaValueMax:EA,ariaValueMin:EA,ariaValueNow:EA,ariaValueText:null,role:null},transform(t,A){return A==="role"?A:"aria-"+A.slice(4).toLowerCase()}});function Yp(t,A){return A in t?t[A]:A}function Zp(t,A){return Yp(t,A.toLowerCase())}const k2=Ss({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ys,acceptCharset:Ke,accessKey:Ke,action:null,allow:null,allowFullScreen:Be,allowPaymentRequest:Be,allowUserMedia:Be,alt:null,as:null,async:Be,autoCapitalize:null,autoComplete:Ke,autoFocus:Be,autoPlay:Be,blocking:Ke,capture:null,charSet:null,checked:Be,cite:null,className:Ke,cols:EA,colSpan:null,content:null,contentEditable:ft,controls:Be,controlsList:Ke,coords:EA|ys,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Be,defer:Be,dir:null,dirName:null,disabled:Be,download:rh,draggable:ft,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Be,formTarget:null,headers:Ke,height:EA,hidden:rh,high:EA,href:null,hrefLang:null,htmlFor:Ke,httpEquiv:Ke,id:null,imageSizes:null,imageSrcSet:null,inert:Be,inputMode:null,integrity:null,is:null,isMap:Be,itemId:null,itemProp:Ke,itemRef:Ke,itemScope:Be,itemType:Ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Be,low:EA,manifest:null,max:null,maxLength:EA,media:null,method:null,min:null,minLength:EA,multiple:Be,muted:Be,name:null,nonce:null,noModule:Be,noValidate:Be,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Be,optimum:EA,pattern:null,ping:Ke,placeholder:null,playsInline:Be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Be,referrerPolicy:null,rel:Ke,required:Be,reversed:Be,rows:EA,rowSpan:EA,sandbox:Ke,scope:null,scoped:Be,seamless:Be,selected:Be,shadowRootClonable:Be,shadowRootDelegatesFocus:Be,shadowRootMode:null,shape:null,size:EA,sizes:null,slot:null,span:EA,spellCheck:ft,src:null,srcDoc:null,srcLang:null,srcSet:null,start:EA,step:null,style:null,tabIndex:EA,target:null,title:null,translate:null,type:null,typeMustMatch:Be,useMap:null,value:ft,width:EA,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ke,axis:null,background:null,bgColor:null,border:EA,borderColor:null,bottomMargin:EA,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Be,declare:Be,event:null,face:null,frame:null,frameBorder:null,hSpace:EA,leftMargin:EA,link:null,longDesc:null,lowSrc:null,marginHeight:EA,marginWidth:EA,noResize:Be,noHref:Be,noShade:Be,noWrap:Be,object:null,profile:null,prompt:null,rev:null,rightMargin:EA,rules:null,scheme:null,scrolling:ft,standby:null,summary:null,text:null,topMargin:EA,valueType:null,version:null,vAlign:null,vLink:null,vSpace:EA,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Be,disableRemotePlayback:Be,prefix:null,property:null,results:EA,security:null,unselectable:null},space:"html",transform:Zp}),P2=Ss({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:fr,accentHeight:EA,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:EA,amplitude:EA,arabicForm:null,ascent:EA,attributeName:null,attributeType:null,azimuth:EA,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:EA,by:null,calcMode:null,capHeight:EA,className:Ke,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:EA,diffuseConstant:EA,direction:null,display:null,dur:null,divisor:EA,dominantBaseline:null,download:Be,dx:null,dy:null,edgeMode:null,editable:null,elevation:EA,enableBackground:null,end:null,event:null,exponent:EA,externalResourcesRequired:null,fill:null,fillOpacity:EA,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ys,g2:ys,glyphName:ys,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:EA,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:EA,horizOriginX:EA,horizOriginY:EA,id:null,ideographic:EA,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:EA,k:EA,k1:EA,k2:EA,k3:EA,k4:EA,kernelMatrix:fr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:EA,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:EA,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:EA,overlineThickness:EA,paintOrder:null,panose1:null,path:null,pathLength:EA,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:EA,pointsAtY:EA,pointsAtZ:EA,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:fr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:fr,rev:fr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:fr,requiredFeatures:fr,requiredFonts:fr,requiredFormats:fr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:EA,specularExponent:EA,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:EA,strikethroughThickness:EA,string:null,stroke:null,strokeDashArray:fr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:EA,strokeOpacity:EA,strokeWidth:null,style:null,surfaceScale:EA,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:fr,tabIndex:EA,tableValues:null,target:null,targetX:EA,targetY:EA,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:fr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:EA,underlineThickness:EA,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:EA,values:null,vAlphabetic:EA,vMathematical:EA,vectorEffect:null,vHanging:EA,vIdeographic:EA,version:null,vertAdvY:EA,vertOriginX:EA,vertOriginY:EA,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:EA,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Yp}),A0=Ss({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,A){return"xlink:"+A.slice(5).toLowerCase()}}),e0=Ss({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Zp}),t0=Ss({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,A){return"xml:"+A.slice(3).toLowerCase()}}),T2=/[A-Z]/g,id=/-[a-z]/g,D2=/^data[-\w.:]+$/i;function R2(t,A){const e=th(A);let r=A,n=tr;if(e in t.normal)return t.property[t.normal[e]];if(e.length>4&&e.slice(0,4)==="data"&&D2.test(A)){if(A.charAt(4)==="-"){const i=A.slice(5).replace(id,M2);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=A.slice(4);if(!id.test(i)){let s=i.replace(T2,O2);s.charAt(0)!=="-"&&(s="-"+s),A="data"+s}}n=jh}return new n(r,A)}function O2(t){return"-"+t.toLowerCase()}function M2(t){return t.charAt(1).toUpperCase()}const K2=Xp([Jp,k2,A0,e0,t0],"html"),r0=Xp([Jp,P2,A0,e0,t0],"svg"),sd={}.hasOwnProperty;function j2(t,A){const e=A||{};function r(n,...i){let s=r.invalid;const a=r.handlers;if(n&&sd.call(n,t)){const o=String(n[t]);s=sd.call(a,o)?a[o]:r.unknown}if(s)return s.call(this,n,...i)}return r.handlers=e.handlers||{},r.invalid=e.invalid,r.unknown=e.unknown,r}const G2=/["&'<>`]/g,q2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,V2=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,W2=/[|\\{}()[\]^$+*?.]/g,ad=new WeakMap;function z2(t,A){if(t=t.replace(A.subset?$2(A.subset):G2,r),A.subset||A.escapeOnly)return t;return t.replace(q2,e).replace(V2,r);function e(n,i,s){return A.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),A)}function r(n,i,s){return A.format(n.charCodeAt(0),s.charCodeAt(i+1),A)}}function $2(t){let A=ad.get(t);return A||(A=X2(t),ad.set(t,A)),A}function X2(t){const A=[];let e=-1;for(;++e<t.length;)A.push(t[e].replace(W2,"\\$&"));return new RegExp("(?:"+A.join("|")+")","g")}const J2=/[\dA-Fa-f]/;function Y2(t,A,e){const r="&#x"+t.toString(16).toUpperCase();return e&&A&&!J2.test(String.fromCharCode(A))?r:r+";"}const Z2=/\d/;function Aw(t,A,e){const r="&#"+String(t);return e&&A&&!Z2.test(String.fromCharCode(A))?r:r+";"}const ew=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],zc={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},tw=["cent","copy","divide","gt","lt","not","para","times"],n0={}.hasOwnProperty,ih={};let _o;for(_o in zc)n0.call(zc,_o)&&(ih[zc[_o]]=_o);const rw=/[^\dA-Za-z]/;function nw(t,A,e,r){const n=String.fromCharCode(t);if(n0.call(ih,n)){const i=ih[n],s="&"+i;return e&&ew.includes(i)&&!tw.includes(i)&&(!r||A&&A!==61&&rw.test(String.fromCharCode(A)))?s:s+";"}return""}function iw(t,A,e){let r=Y2(t,A,e.omitOptionalSemicolons),n;if((e.useNamedReferences||e.useShortestReferences)&&(n=nw(t,A,e.omitOptionalSemicolons,e.attribute)),(e.useShortestReferences||!n)&&e.useShortestReferences){const i=Aw(t,A,e.omitOptionalSemicolons);i.length<r.length&&(r=i)}return n&&(!e.useShortestReferences||n.length<r.length)?n:r}function Cs(t,A){return z2(t,Object.assign({format:iw},A))}const sw=/^>|^->|<!--|-->|--!>|<!-$/g,aw=[">"],ow=["<",">"];function lw(t,A,e,r){return r.settings.bogusComments?"<?"+Cs(t.value,Object.assign({},r.settings.characterReferences,{subset:aw}))+">":"<!--"+t.value.replace(sw,n)+"-->";function n(i){return Cs(i,Object.assign({},r.settings.characterReferences,{subset:ow}))}}function cw(t,A,e,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function od(t,A){const e=String(t);if(typeof A!="string")throw new TypeError("Expected character");let r=0,n=e.indexOf(A);for(;n!==-1;)r++,n=e.indexOf(A,n+A.length);return r}function uw(t,A){const e=A||{};return(t[t.length-1]===""?[...t,""]:t).join((e.padRight?" ":"")+","+(e.padLeft===!1?"":" ")).trim()}function hw(t){return t.join(" ").trim()}const fw=/[ \t\n\f\r]/g;function Gh(t){return typeof t=="object"?t.type==="text"?ld(t.value):!1:ld(t)}function ld(t){return t.replace(fw,"")===""}const Ft=s0(1),i0=s0(-1),dw=[];function s0(t){return A;function A(e,r,n){const i=e?e.children:dw;let s=(r||0)+t,a=i[s];if(!n)for(;a&&Gh(a);)s+=t,a=i[s];return a}}const gw={}.hasOwnProperty;function a0(t){return A;function A(e,r,n){return gw.call(t,e.tagName)&&t[e.tagName](e,r,n)}}const qh=a0({body:mw,caption:$c,colgroup:$c,dd:yw,dt:vw,head:$c,html:pw,li:ww,optgroup:Cw,option:bw,p:Bw,rp:cd,rt:cd,tbody:Qw,td:ud,tfoot:Uw,th:ud,thead:Fw,tr:xw});function $c(t,A,e){const r=Ft(e,A,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Gh(r.value.charAt(0)))}function pw(t,A,e){const r=Ft(e,A);return!r||r.type!=="comment"}function mw(t,A,e){const r=Ft(e,A);return!r||r.type!=="comment"}function Bw(t,A,e){const r=Ft(e,A);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!e||!(e.type==="element"&&(e.tagName==="a"||e.tagName==="audio"||e.tagName==="del"||e.tagName==="ins"||e.tagName==="map"||e.tagName==="noscript"||e.tagName==="video"))}function ww(t,A,e){const r=Ft(e,A);return!r||r.type==="element"&&r.tagName==="li"}function vw(t,A,e){const r=Ft(e,A);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function yw(t,A,e){const r=Ft(e,A);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function cd(t,A,e){const r=Ft(e,A);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Cw(t,A,e){const r=Ft(e,A);return!r||r.type==="element"&&r.tagName==="optgroup"}function bw(t,A,e){const r=Ft(e,A);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Fw(t,A,e){const r=Ft(e,A);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Qw(t,A,e){const r=Ft(e,A);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Uw(t,A,e){return!Ft(e,A)}function xw(t,A,e){const r=Ft(e,A);return!r||r.type==="element"&&r.tagName==="tr"}function ud(t,A,e){const r=Ft(e,A);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Ew=a0({body:Iw,colgroup:_w,head:Sw,html:Lw,tbody:Nw});function Lw(t){const A=Ft(t,-1);return!A||A.type!=="comment"}function Sw(t){const A=new Set;for(const r of t.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(A.has(r.tagName))return!1;A.add(r.tagName)}const e=t.children[0];return!e||e.type==="element"}function Iw(t){const A=Ft(t,-1,!0);return!A||A.type!=="comment"&&!(A.type==="text"&&Gh(A.value.charAt(0)))&&!(A.type==="element"&&(A.tagName==="meta"||A.tagName==="link"||A.tagName==="script"||A.tagName==="style"||A.tagName==="template"))}function _w(t,A,e){const r=i0(e,A),n=Ft(t,-1,!0);return e&&r&&r.type==="element"&&r.tagName==="colgroup"&&qh(r,e.children.indexOf(r),e)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function Nw(t,A,e){const r=i0(e,A),n=Ft(t,-1);return e&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&qh(r,e.children.indexOf(r),e)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}const No={name:[[`
107
+ `,dB="_light_s15mm_61",gB="_toolbar_s15mm_95",pB="_toolbarGroup_s15mm_125",mB="_toolbarBtn_s15mm_155",BB="_active_s15mm_197",wB="_toolbarSelect_s15mm_227",vB="_statusBar_s15mm_523",yB="_autosaveIndicator_s15mm_555",bB="_autosaveDot_s15mm_567",CB="_colorPickerWrapper_s15mm_593",FB="_colorPalette_s15mm_601",QB="_show_s15mm_631",UB="_colorSwatch_s15mm_639",xB="_modalOverlay_s15mm_667",EB="_modal_s15mm_667",LB="_modalInput_s15mm_793",SB="_modalBtn_s15mm_837",IB="_modalBtnPrimary_s15mm_853",_B="_modalBtnSecondary_s15mm_873",NB="_emojiPicker_s15mm_887",kB="_emojiGrid_s15mm_927",HB="_emojiItem_s15mm_939",PB="_findReplace_s15mm_1007",TB="_findInput_s15mm_1085",DB="_previewPanel_s15mm_1127",RB="_previewHeader_s15mm_1153",OB="_previewContent_s15mm_1171",MB="_tabBtn_s15mm_1377",KB="_sourceCode_s15mm_1421",jB="_statsGroup_s15mm_1451",GB="_statItem_s15mm_1461",AA={light:dB,toolbar:gB,toolbarGroup:pB,toolbarBtn:mB,active:BB,toolbarSelect:wB,statusBar:vB,autosaveIndicator:yB,autosaveDot:bB,colorPickerWrapper:CB,colorPalette:FB,show:QB,colorSwatch:UB,modalOverlay:xB,modal:EB,modalInput:LB,modalBtn:SB,modalBtnPrimary:IB,modalBtnSecondary:_B,emojiPicker:NB,emojiGrid:kB,emojiItem:HB,findReplace:PB,findInput:TB,previewPanel:DB,previewHeader:RB,previewContent:OB,tabBtn:MB,sourceCode:KB,statsGroup:jB,statItem:GB};function qB({core:t,theme:A,onLinkClick:e,onImageClick:r,onVideoClick:n,onTableClick:i,onFindClick:s,onFullscreenClick:a,onPrintClick:o,isFullscreen:c,allowImages:h=!0,allowVideoEmbeds:d=!0,allowTables:m=!0,enableFindReplace:f=!0,enablePrint:w=!0,enableFullscreen:y=!0,isMobile:F=!1}){const[v,L]=IA.useState(new Set),[_,S]=IA.useState(!1),[V,z]=IA.useState(!1),[X,q]=IA.useState(!1),k=IA.useRef(null),Y=IA.useRef(null),x=IA.useRef(null),P=()=>{const J=["bold","italic","underline","strikeThrough","subscript","superscript","justifyLeft","justifyCenter","justifyRight","justifyFull","insertUnorderedList","insertOrderedList"],lA=new Set;J.forEach(fA=>{t.commands.queryState(fA)&&lA.add(fA)}),L(lA)};IA.useEffect(()=>{const J=lA=>{k.current&&!k.current.contains(lA.target)&&S(!1),Y.current&&!Y.current.contains(lA.target)&&z(!1),x.current&&!x.current.contains(lA.target)&&q(!1)};return document.addEventListener("click",J),()=>document.removeEventListener("click",J)},[]);const j=J=>{t.commands.exec(J),P()},D=A==="light";return N.jsxs("div",{className:`${AA.toolbar} ${D?AA.light:""}`,children:[N.jsxs("div",{className:`${AA.toolbarGroup} ${D?AA.light:""}`,children:[N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""}`,onClick:()=>j("undo"),title:"Отменить (Ctrl+Z)",children:N.jsx("i",{className:"fas fa-undo"})}),N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""}`,onClick:()=>j("redo"),title:"Повторить (Ctrl+Y)",children:N.jsx("i",{className:"fas fa-redo"})})]}),!F&&N.jsxs("div",{className:`${AA.toolbarGroup} ${D?AA.light:""}`,children:[N.jsxs("select",{className:`${AA.toolbarSelect} ${D?AA.light:""}`,onChange:J=>t.commands.setFormatBlock(J.target.value),children:[N.jsx("option",{value:"p",children:"Параграф"}),N.jsx("option",{value:"h1",children:"Заголовок 1"}),N.jsx("option",{value:"h2",children:"Заголовок 2"}),N.jsx("option",{value:"h3",children:"Заголовок 3"}),N.jsx("option",{value:"h4",children:"Заголовок 4"}),N.jsx("option",{value:"pre",children:"Код"}),N.jsx("option",{value:"blockquote",children:"Цитата"})]}),N.jsxs("select",{className:`${AA.toolbarSelect} ${D?AA.light:""}`,onChange:J=>t.commands.setFontName(J.target.value),children:[N.jsx("option",{value:"Segoe UI",children:"Segoe UI"}),N.jsx("option",{value:"Arial",children:"Arial"}),N.jsx("option",{value:"Georgia",children:"Georgia"}),N.jsx("option",{value:"Times New Roman",children:"Times New Roman"}),N.jsx("option",{value:"Courier New",children:"Courier New"}),N.jsx("option",{value:"Verdana",children:"Verdana"})]}),N.jsxs("select",{className:`${AA.toolbarSelect} ${D?AA.light:""}`,onChange:J=>t.commands.setFontSize(J.target.value),defaultValue:"3",children:[N.jsx("option",{value:"1",children:"Мелкий"}),N.jsx("option",{value:"2",children:"Малый"}),N.jsx("option",{value:"3",children:"Обычный"}),N.jsx("option",{value:"4",children:"Средний"}),N.jsx("option",{value:"5",children:"Большой"}),N.jsx("option",{value:"6",children:"Огромный"}),N.jsx("option",{value:"7",children:"Максимальный"})]})]}),N.jsx("div",{className:`${AA.toolbarGroup} ${D?AA.light:""}`,children:["bold","italic","underline","strikeThrough","subscript","superscript"].map(J=>N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""} ${v.has(J)?AA.active:""}`,onClick:()=>j(J),children:N.jsx("i",{className:`fas fa-${J==="strikeThrough"?"strikethrough":J}`})},J))}),N.jsxs("div",{className:`${AA.toolbarGroup} ${D?AA.light:""}`,children:[N.jsxs("div",{className:AA.colorPickerWrapper,ref:k,children:[N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""}`,onClick:J=>{J.stopPropagation(),t.selection.save(),S(!_),z(!1),q(!1)},title:"Цвет текста",children:N.jsx("i",{className:"fas fa-font",style:{borderBottom:"3px solid #ff6b6b"}})}),N.jsx("div",{className:`${AA.colorPalette} ${_?AA.show:""}`,children:Na.map(J=>N.jsx("div",{className:AA.colorSwatch,style:{background:J},onClick:()=>{console.log("[Toolbar] Setting foreColor:",J),t.selection.restore(),t.commands.setForeColor(J),S(!1)}},J))})]}),N.jsxs("div",{className:AA.colorPickerWrapper,ref:Y,children:[N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""}`,onClick:J=>{J.stopPropagation(),t.selection.save(),z(!V),S(!1),q(!1)},title:"Цвет фона",children:N.jsx("i",{className:"fas fa-highlighter",style:{borderBottom:"3px solid #feca57"}})}),N.jsx("div",{className:`${AA.colorPalette} ${V?AA.show:""}`,children:Na.map(J=>N.jsx("div",{className:AA.colorSwatch,style:{background:J},onClick:()=>{console.log("[Toolbar] Setting backColor:",J),t.selection.restore(),t.commands.setBackColor(J),z(!1)}},J))})]})]}),N.jsx("div",{className:`${AA.toolbarGroup} ${D?AA.light:""}`,children:["insertUnorderedList","insertOrderedList"].map(J=>N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""} ${v.has(J)?AA.active:""}`,onClick:()=>j(J),children:N.jsx("i",{className:`fas fa-list-${J==="insertUnorderedList"?"ul":"ol"}`})},J))}),N.jsx("div",{className:`${AA.toolbarGroup} ${D?AA.light:""}`,children:["justifyLeft","justifyCenter","justifyRight","justifyFull"].map(J=>N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""} ${v.has(J)?AA.active:""}`,onClick:()=>j(J),children:N.jsx("i",{className:`fas fa-align-${J.replace("justify","").toLowerCase()}`})},J))}),N.jsxs("div",{className:`${AA.toolbarGroup} ${D?AA.light:""}`,children:[N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""} ${v.has("insertUnorderedList")?AA.active:""}`,onClick:()=>j("insertUnorderedList"),title:"Маркированный список",children:N.jsx("i",{className:"fas fa-list-ul"})}),N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""} ${v.has("insertOrderedList")?AA.active:""}`,onClick:()=>j("insertOrderedList"),title:"Нумерованный список",children:N.jsx("i",{className:"fas fa-list-ol"})}),N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""}`,onClick:()=>j("indent"),title:"Увеличить отступ",children:N.jsx("i",{className:"fas fa-indent"})}),N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""}`,onClick:()=>j("outdent"),title:"Уменьшить отступ",children:N.jsx("i",{className:"fas fa-outdent"})})]}),N.jsxs("div",{className:`${AA.toolbarGroup} ${D?AA.light:""}`,children:[N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""}`,onClick:e,title:"Вставить ссылку (Ctrl+K)",children:N.jsx("i",{className:"fas fa-link"})}),h&&N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""}`,onClick:r,title:"Вставить изображение",children:N.jsx("i",{className:"fas fa-image"})}),d&&N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""}`,onClick:n,title:"Вставить видео",children:N.jsx("i",{className:"fas fa-video"})}),m&&N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""}`,onClick:i,title:"Вставить таблицу",children:N.jsx("i",{className:"fas fa-table"})}),N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""}`,onClick:()=>t.commands.insertHR(),title:"Горизонтальная линия",children:N.jsx("i",{className:"fas fa-minus"})})]}),N.jsxs("div",{className:`${AA.toolbarGroup} ${D?AA.light:""}`,children:[N.jsxs("div",{className:AA.colorPickerWrapper,ref:x,children:[N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""}`,onClick:J=>{J.stopPropagation(),t.selection.save(),q(!X),S(!1),z(!1)},title:"Эмодзи",children:N.jsx("i",{className:"fas fa-smile"})}),N.jsx("div",{className:`${AA.emojiPicker} ${X?AA.show:""}`,children:N.jsx("div",{className:AA.emojiGrid,children:Tp.map((J,lA)=>N.jsx("div",{className:AA.emojiItem,onClick:()=>{t.selection.restore(),t.commands.insertEmoji(J),q(!1)},children:J},lA))})})]}),N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""}`,onClick:()=>t.commands.insertCodeBlock(),title:"Блок кода",children:N.jsx("i",{className:"fas fa-code"})}),N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""}`,onClick:()=>j("removeFormat"),title:"Очистить форматирование",children:N.jsx("i",{className:"fas fa-eraser"})})]}),N.jsxs("div",{className:`${AA.toolbarGroup} ${D?AA.light:""}`,children:[f&&N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""}`,onClick:s,title:"Поиск и замена (Ctrl+F)",children:N.jsx("i",{className:"fas fa-search"})}),w&&N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""}`,onClick:o,title:"Печать (Ctrl+P)",children:N.jsx("i",{className:"fas fa-print"})}),y&&N.jsx("button",{className:`${AA.toolbarBtn} ${D?AA.light:""}`,onClick:a,title:"Полный экран (F11)",children:N.jsx("i",{className:`fas fa-${c?"compress":"expand"}`})})]})]})}function VB({meta:t,theme:A,enableAutosave:e,lastSaveTime:r}){const n=A==="light",i=s=>s?`Сохранено ${s.toLocaleTimeString()}`:"Автосохранение включено";return N.jsxs("div",{className:`${AA.statusBar} ${n?AA.light:""}`,children:[e&&N.jsxs("div",{className:AA.autosaveIndicator,children:[N.jsx("div",{className:AA.autosaveDot}),N.jsx("span",{children:i(r)})]}),!e&&N.jsx("div",{}),N.jsxs("div",{className:AA.statsGroup,children:[N.jsxs("div",{className:AA.statItem,children:[N.jsx("span",{children:"Слов:"}),N.jsx("strong",{children:t.wordCount})]}),N.jsxs("div",{className:AA.statItem,children:[N.jsx("span",{children:"Символов:"}),N.jsx("strong",{children:t.charCount})]}),N.jsxs("div",{className:AA.statItem,children:[N.jsx("span",{children:"Параграфов:"}),N.jsx("strong",{children:t.paragraphCount})]})]})]})}function WB({isOpen:t,onClose:A,core:e,theme:r="dark"}){const[n,i]=IA.useState(""),[s,a]=IA.useState(""),o=r==="light";IA.useEffect(()=>{if(t){const f=window.getSelection(),w=f==null?void 0:f.toString().trim();w&&i(w)}else i(""),a("")},[t]);const c=()=>{n&&e.commands.find(n)},h=()=>{n&&e.commands.replace(n,s)},d=()=>{n&&e.commands.replaceAll(n,s)},m=f=>{f.key==="Enter"?c():f.key==="Escape"&&A()};return t?N.jsxs("div",{className:`${AA.findReplace} ${t?AA.show:""} ${o?AA.light:""}`,children:[N.jsx("input",{type:"text",className:`${AA.findInput} ${o?AA.light:""}`,placeholder:"Найти...",value:n,onChange:f=>i(f.target.value),onKeyDown:m}),N.jsx("input",{type:"text",className:`${AA.findInput} ${o?AA.light:""}`,placeholder:"Заменить на...",value:s,onChange:f=>a(f.target.value),onKeyDown:m}),N.jsx("button",{className:`${AA.toolbarBtn} ${o?AA.light:""}`,onClick:c,title:"Найти следующее",children:N.jsx("i",{className:"fas fa-chevron-down"})}),N.jsx("button",{className:`${AA.toolbarBtn} ${o?AA.light:""}`,onClick:h,children:"Заменить"}),N.jsx("button",{className:`${AA.toolbarBtn} ${o?AA.light:""}`,onClick:d,children:"Заменить все"}),N.jsx("button",{className:`${AA.toolbarBtn} ${o?AA.light:""}`,onClick:A,title:"Закрыть",children:N.jsx("i",{className:"fas fa-times"})})]}):null}let gt=class extends Error{constructor(A){super(A),this.name="ShikiError"}};function zB(t){return Vh(t)}function Vh(t){return Array.isArray(t)?$B(t):t instanceof RegExp?t:typeof t=="object"?XB(t):t}function $B(t){let A=[];for(let e=0,r=t.length;e<r;e++)A[e]=Vh(t[e]);return A}function XB(t){let A={};for(let e in t)A[e]=Vh(t[e]);return A}function Dp(t,...A){return A.forEach(e=>{for(let r in e)t[r]=e[r]}),t}function Rp(t){const A=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return A===0?t:~A===t.length-1?Rp(t.substring(0,t.length-1)):t.substr(~A+1)}var qc=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,_o=class{static hasCaptures(t){return t===null?!1:(qc.lastIndex=0,qc.test(t))}static replaceCaptures(t,A,e){return t.replace(qc,(r,n,i,s)=>{let a=e[parseInt(n||i,10)];if(a){let o=A.substring(a.start,a.end);for(;o[0]===".";)o=o.substring(1);switch(s){case"downcase":return o.toLowerCase();case"upcase":return o.toUpperCase();default:return o}}else return r})}};function Op(t,A){return t<A?-1:t>A?1:0}function Mp(t,A){if(t===null&&A===null)return 0;if(!t)return-1;if(!A)return 1;let e=t.length,r=A.length;if(e===r){for(let n=0;n<e;n++){let i=Op(t[n],A[n]);if(i!==0)return i}return 0}return e-r}function Ad(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function Kp(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var jp=class{constructor(t){oA(this,"cache",new Map);this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const A=this.fn(t);return this.cache.set(t,A),A}},Ul=class{constructor(t,A,e){oA(this,"_cachedMatchRoot",new jp(t=>this._root.match(t)));this._colorMap=t,this._defaults=A,this._root=e}static createFromRawTheme(t,A){return this.createFromParsedTheme(ZB(t),A)}static createFromParsedTheme(t,A){return e2(t,A)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const A=t.scopeName,r=this._cachedMatchRoot.get(A).find(n=>JB(t.parent,n.parentScopes));return r?new Gp(r.fontStyle,r.foreground,r.background):null}},Vc=class dl{constructor(A,e){this.parent=A,this.scopeName=e}static push(A,e){for(const r of e)A=new dl(A,r);return A}static from(...A){let e=null;for(let r=0;r<A.length;r++)e=new dl(e,A[r]);return e}push(A){return new dl(this,A)}getSegments(){let A=this;const e=[];for(;A;)e.push(A.scopeName),A=A.parent;return e.reverse(),e}toString(){return this.getSegments().join(" ")}extends(A){return this===A?!0:this.parent===null?!1:this.parent.extends(A)}getExtensionIfDefined(A){const e=[];let r=this;for(;r&&r!==A;)e.push(r.scopeName),r=r.parent;return r===A?e.reverse():void 0}};function JB(t,A){if(A.length===0)return!0;for(let e=0;e<A.length;e++){let r=A[e],n=!1;if(r===">"){if(e===A.length-1)return!1;r=A[++e],n=!0}for(;t&&!YB(t.scopeName,r);){if(n)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function YB(t,A){return A===t||t.startsWith(A)&&t[A.length]==="."}var Gp=class{constructor(t,A,e){this.fontStyle=t,this.foregroundId=A,this.backgroundId=e}};function ZB(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let A=t.settings,e=[],r=0;for(let n=0,i=A.length;n<i;n++){let s=A[n];if(!s.settings)continue;let a;if(typeof s.scope=="string"){let d=s.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),a=d.split(",")}else Array.isArray(s.scope)?a=s.scope:a=[""];let o=-1;if(typeof s.settings.fontStyle=="string"){o=0;let d=s.settings.fontStyle.split(" ");for(let m=0,f=d.length;m<f;m++)switch(d[m]){case"italic":o=o|1;break;case"bold":o=o|2;break;case"underline":o=o|4;break;case"strikethrough":o=o|8;break}}let c=null;typeof s.settings.foreground=="string"&&Ad(s.settings.foreground)&&(c=s.settings.foreground);let h=null;typeof s.settings.background=="string"&&Ad(s.settings.background)&&(h=s.settings.background);for(let d=0,m=a.length;d<m;d++){let w=a[d].trim().split(" "),y=w[w.length-1],F=null;w.length>1&&(F=w.slice(0,w.length-1),F.reverse()),e[r++]=new A2(y,F,n,o,c,h)}}return e}var A2=class{constructor(t,A,e,r,n,i){this.scope=t,this.parentScopes=A,this.index=e,this.fontStyle=r,this.foreground=n,this.background=i}},Wt=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(Wt||{});function e2(t,A){t.sort((o,c)=>{let h=Op(o.scope,c.scope);return h!==0||(h=Mp(o.parentScopes,c.parentScopes),h!==0)?h:o.index-c.index});let e=0,r="#000000",n="#ffffff";for(;t.length>=1&&t[0].scope==="";){let o=t.shift();o.fontStyle!==-1&&(e=o.fontStyle),o.foreground!==null&&(r=o.foreground),o.background!==null&&(n=o.background)}let i=new t2(A),s=new Gp(e,i.getId(r),i.getId(n)),a=new n2(new Ju(0,null,-1,0,0),[]);for(let o=0,c=t.length;o<c;o++){let h=t[o];a.insert(0,h.scope,h.parentScopes,h.fontStyle,i.getId(h.foreground),i.getId(h.background))}return new Ul(i,s,a)}var t2=class{constructor(t){oA(this,"_isFrozen");oA(this,"_lastColorId");oA(this,"_id2color");oA(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let A=0,e=t.length;A<e;A++)this._color2id[t[A]]=A,this._id2color[A]=t[A]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let A=this._color2id[t];if(A)return A;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return A=++this._lastColorId,this._color2id[t]=A,this._id2color[A]=t,A}getColorMap(){return this._id2color.slice(0)}},r2=Object.freeze([]),Ju=class qp{constructor(A,e,r,n,i){oA(this,"scopeDepth");oA(this,"parentScopes");oA(this,"fontStyle");oA(this,"foreground");oA(this,"background");this.scopeDepth=A,this.parentScopes=e||r2,this.fontStyle=r,this.foreground=n,this.background=i}clone(){return new qp(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(A){let e=[];for(let r=0,n=A.length;r<n;r++)e[r]=A[r].clone();return e}acceptOverwrite(A,e,r,n){this.scopeDepth>A?console.log("how did this happen?"):this.scopeDepth=A,e!==-1&&(this.fontStyle=e),r!==0&&(this.foreground=r),n!==0&&(this.background=n)}},n2=class Yu{constructor(A,e=[],r={}){oA(this,"_rulesWithParentScopes");this._mainRule=A,this._children=r,this._rulesWithParentScopes=e}static _cmpBySpecificity(A,e){if(A.scopeDepth!==e.scopeDepth)return e.scopeDepth-A.scopeDepth;let r=0,n=0;for(;A.parentScopes[r]===">"&&r++,e.parentScopes[n]===">"&&n++,!(r>=A.parentScopes.length||n>=e.parentScopes.length);){const i=e.parentScopes[n].length-A.parentScopes[r].length;if(i!==0)return i;r++,n++}return e.parentScopes.length-A.parentScopes.length}match(A){if(A!==""){let r=A.indexOf("."),n,i;if(r===-1?(n=A,i=""):(n=A.substring(0,r),i=A.substring(r+1)),this._children.hasOwnProperty(n))return this._children[n].match(i)}const e=this._rulesWithParentScopes.concat(this._mainRule);return e.sort(Yu._cmpBySpecificity),e}insert(A,e,r,n,i,s){if(e===""){this._doInsertHere(A,r,n,i,s);return}let a=e.indexOf("."),o,c;a===-1?(o=e,c=""):(o=e.substring(0,a),c=e.substring(a+1));let h;this._children.hasOwnProperty(o)?h=this._children[o]:(h=new Yu(this._mainRule.clone(),Ju.cloneArr(this._rulesWithParentScopes)),this._children[o]=h),h.insert(A+1,c,r,n,i,s)}_doInsertHere(A,e,r,n,i){if(e===null){this._mainRule.acceptOverwrite(A,r,n,i);return}for(let s=0,a=this._rulesWithParentScopes.length;s<a;s++){let o=this._rulesWithParentScopes[s];if(Mp(o.parentScopes,e)===0){o.acceptOverwrite(A,r,n,i);return}}r===-1&&(r=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new Ju(A,e,r,n,i))}},Es=class xr{static toBinaryStr(A){return A.toString(2).padStart(32,"0")}static print(A){const e=xr.getLanguageId(A),r=xr.getTokenType(A),n=xr.getFontStyle(A),i=xr.getForeground(A),s=xr.getBackground(A);console.log({languageId:e,tokenType:r,fontStyle:n,foreground:i,background:s})}static getLanguageId(A){return(A&255)>>>0}static getTokenType(A){return(A&768)>>>8}static containsBalancedBrackets(A){return(A&1024)!==0}static getFontStyle(A){return(A&30720)>>>11}static getForeground(A){return(A&16744448)>>>15}static getBackground(A){return(A&4278190080)>>>24}static set(A,e,r,n,i,s,a){let o=xr.getLanguageId(A),c=xr.getTokenType(A),h=xr.containsBalancedBrackets(A)?1:0,d=xr.getFontStyle(A),m=xr.getForeground(A),f=xr.getBackground(A);return e!==0&&(o=e),r!==8&&(c=r),n!==null&&(h=n?1:0),i!==-1&&(d=i),s!==0&&(m=s),a!==0&&(f=a),(o<<0|c<<8|h<<10|d<<11|m<<15|f<<24)>>>0}};function xl(t,A){const e=[],r=i2(t);let n=r.next();for(;n!==null;){let o=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":o=1;break;case"L":o=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=r.next()}let c=s();if(e.push({matcher:c,priority:o}),n!==",")break;n=r.next()}return e;function i(){if(n==="-"){n=r.next();const o=i();return c=>!!o&&!o(c)}if(n==="("){n=r.next();const o=a();return n===")"&&(n=r.next()),o}if(ed(n)){const o=[];do o.push(n),n=r.next();while(ed(n));return c=>A(o,c)}return null}function s(){const o=[];let c=i();for(;c;)o.push(c),c=i();return h=>o.every(d=>d(h))}function a(){const o=[];let c=s();for(;c&&(o.push(c),n==="|"||n===",");){do n=r.next();while(n==="|"||n===",");c=s()}return h=>o.some(d=>d(h))}}function ed(t){return!!t&&!!t.match(/[\w\.:]+/)}function i2(t){let A=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,e=A.exec(t);return{next:()=>{if(!e)return null;const r=e[0];return e=A.exec(t),r}}}function Vp(t){typeof t.dispose=="function"&&t.dispose()}var ka=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},s2=class{constructor(t,A){this.scopeName=t,this.ruleName=A}toKey(){return`${this.scopeName}#${this.ruleName}`}},a2=class{constructor(){oA(this,"_references",[]);oA(this,"_seenReferenceKeys",new Set);oA(this,"visitedRule",new Set)}get references(){return this._references}add(t){const A=t.toKey();this._seenReferenceKeys.has(A)||(this._seenReferenceKeys.add(A),this._references.push(t))}},o2=class{constructor(t,A){oA(this,"seenFullScopeRequests",new Set);oA(this,"seenPartialScopeRequests",new Set);oA(this,"Q");this.repo=t,this.initialScopeName=A,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ka(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const A=new a2;for(const e of t)l2(e,this.initialScopeName,this.repo,A);for(const e of A.references)if(e instanceof ka){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function l2(t,A,e,r){const n=e.lookup(t.scopeName);if(!n){if(t.scopeName===A)throw new Error(`No grammar provided for <${A}>`);return}const i=e.lookup(A);t instanceof ka?gl({baseGrammar:i,selfGrammar:n},r):Zu(t.ruleName,{baseGrammar:i,selfGrammar:n,repository:n.repository},r);const s=e.injections(t.scopeName);if(s)for(const a of s)r.add(new ka(a))}function Zu(t,A,e){if(A.repository&&A.repository[t]){const r=A.repository[t];El([r],A,e)}}function gl(t,A){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&El(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},A),t.selfGrammar.injections&&El(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},A)}function El(t,A,e){for(const r of t){if(e.visitedRule.has(r))continue;e.visitedRule.add(r);const n=r.repository?Dp({},A.repository,r.repository):A.repository;Array.isArray(r.patterns)&&El(r.patterns,{...A,repository:n},e);const i=r.include;if(!i)continue;const s=Wp(i);switch(s.kind){case 0:gl({...A,selfGrammar:A.baseGrammar},e);break;case 1:gl(A,e);break;case 2:Zu(s.ruleName,{...A,repository:n},e);break;case 3:case 4:const a=s.scopeName===A.selfGrammar.scopeName?A.selfGrammar:s.scopeName===A.baseGrammar.scopeName?A.baseGrammar:void 0;if(a){const o={baseGrammar:A.baseGrammar,selfGrammar:a,repository:n};s.kind===4?Zu(s.ruleName,o,e):gl(o,e)}else s.kind===4?e.add(new s2(s.scopeName,s.ruleName)):e.add(new ka(s.scopeName));break}}}var c2=class{constructor(){oA(this,"kind",0)}},u2=class{constructor(){oA(this,"kind",1)}},h2=class{constructor(t){oA(this,"kind",2);this.ruleName=t}},f2=class{constructor(t){oA(this,"kind",3);this.scopeName=t}},d2=class{constructor(t,A){oA(this,"kind",4);this.scopeName=t,this.ruleName=A}};function Wp(t){if(t==="$base")return new c2;if(t==="$self")return new u2;const A=t.indexOf("#");if(A===-1)return new f2(t);if(A===0)return new h2(t.substring(1));{const e=t.substring(0,A),r=t.substring(A+1);return new d2(e,r)}}var g2=/\\(\d+)/,td=/\\(\d+)/g,p2=-1,zp=-2;var ja=class{constructor(t,A,e,r){oA(this,"$location");oA(this,"id");oA(this,"_nameIsCapturing");oA(this,"_name");oA(this,"_contentNameIsCapturing");oA(this,"_contentName");this.$location=t,this.id=A,this._name=e||null,this._nameIsCapturing=_o.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=_o.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Rp(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,A){return!this._nameIsCapturing||this._name===null||t===null||A===null?this._name:_o.replaceCaptures(this._name,t,A)}getContentName(t,A){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:_o.replaceCaptures(this._contentName,t,A)}},m2=class extends ja{constructor(A,e,r,n,i){super(A,e,r,n);oA(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(A,e){throw new Error("Not supported!")}compile(A,e){throw new Error("Not supported!")}compileAG(A,e,r,n){throw new Error("Not supported!")}},B2=class extends ja{constructor(A,e,r,n,i){super(A,e,r,null);oA(this,"_match");oA(this,"captures");oA(this,"_cachedCompiledPatterns");this._match=new Ha(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(A,e){e.push(this._match)}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,r,n){return this._getCachedCompiledPatterns(A).compileAG(A,r,n)}_getCachedCompiledPatterns(A){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Pa,this.collectPatterns(A,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},rd=class extends ja{constructor(A,e,r,n,i){super(A,e,r,n);oA(this,"hasMissingPatterns");oA(this,"patterns");oA(this,"_cachedCompiledPatterns");this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(A,e){for(const r of this.patterns)A.getRule(r).collectPatterns(A,e)}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,r,n){return this._getCachedCompiledPatterns(A).compileAG(A,r,n)}_getCachedCompiledPatterns(A){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Pa,this.collectPatterns(A,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ah=class extends ja{constructor(A,e,r,n,i,s,a,o,c,h){super(A,e,r,n);oA(this,"_begin");oA(this,"beginCaptures");oA(this,"_end");oA(this,"endHasBackReferences");oA(this,"endCaptures");oA(this,"applyEndPatternLast");oA(this,"hasMissingPatterns");oA(this,"patterns");oA(this,"_cachedCompiledPatterns");this._begin=new Ha(i,this.id),this.beginCaptures=s,this._end=new Ha(a||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=c||!1,this.patterns=h.patterns,this.hasMissingPatterns=h.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(A,e){return this._end.resolveBackReferences(A,e)}collectPatterns(A,e){e.push(this._begin)}compile(A,e){return this._getCachedCompiledPatterns(A,e).compile(A)}compileAG(A,e,r,n){return this._getCachedCompiledPatterns(A,e).compileAG(A,r,n)}_getCachedCompiledPatterns(A,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Pa;for(const r of this.patterns)A.getRule(r).collectPatterns(A,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Ll=class extends ja{constructor(A,e,r,n,i,s,a,o,c){super(A,e,r,n);oA(this,"_begin");oA(this,"beginCaptures");oA(this,"whileCaptures");oA(this,"_while");oA(this,"whileHasBackReferences");oA(this,"hasMissingPatterns");oA(this,"patterns");oA(this,"_cachedCompiledPatterns");oA(this,"_cachedCompiledWhilePatterns");this._begin=new Ha(i,this.id),this.beginCaptures=s,this.whileCaptures=o,this._while=new Ha(a,zp),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(A,e){return this._while.resolveBackReferences(A,e)}collectPatterns(A,e){e.push(this._begin)}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,r,n){return this._getCachedCompiledPatterns(A).compileAG(A,r,n)}_getCachedCompiledPatterns(A){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Pa;for(const e of this.patterns)A.getRule(e).collectPatterns(A,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(A,e){return this._getCachedCompiledWhilePatterns(A,e).compile(A)}compileWhileAG(A,e,r,n){return this._getCachedCompiledWhilePatterns(A,e).compileAG(A,r,n)}_getCachedCompiledWhilePatterns(A,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Pa,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}},$p=class Gt{static createCaptureRule(A,e,r,n,i){return A.registerRule(s=>new m2(e,s,r,n,i))}static getCompiledRuleId(A,e,r){return A.id||e.registerRule(n=>{if(A.id=n,A.match)return new B2(A.$vscodeTextmateLocation,A.id,A.name,A.match,Gt._compileCaptures(A.captures,e,r));if(typeof A.begin>"u"){A.repository&&(r=Dp({},r,A.repository));let i=A.patterns;return typeof i>"u"&&A.include&&(i=[{include:A.include}]),new rd(A.$vscodeTextmateLocation,A.id,A.name,A.contentName,Gt._compilePatterns(i,e,r))}return A.while?new Ll(A.$vscodeTextmateLocation,A.id,A.name,A.contentName,A.begin,Gt._compileCaptures(A.beginCaptures||A.captures,e,r),A.while,Gt._compileCaptures(A.whileCaptures||A.captures,e,r),Gt._compilePatterns(A.patterns,e,r)):new Ah(A.$vscodeTextmateLocation,A.id,A.name,A.contentName,A.begin,Gt._compileCaptures(A.beginCaptures||A.captures,e,r),A.end,Gt._compileCaptures(A.endCaptures||A.captures,e,r),A.applyEndPatternLast,Gt._compilePatterns(A.patterns,e,r))}),A.id}static _compileCaptures(A,e,r){let n=[];if(A){let i=0;for(const s in A){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);a>i&&(i=a)}for(let s=0;s<=i;s++)n[s]=null;for(const s in A){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);let o=0;A[s].patterns&&(o=Gt.getCompiledRuleId(A[s],e,r)),n[a]=Gt.createCaptureRule(e,A[s].$vscodeTextmateLocation,A[s].name,A[s].contentName,o)}}return n}static _compilePatterns(A,e,r){let n=[];if(A)for(let i=0,s=A.length;i<s;i++){const a=A[i];let o=-1;if(a.include){const c=Wp(a.include);switch(c.kind){case 0:case 1:o=Gt.getCompiledRuleId(r[a.include],e,r);break;case 2:let h=r[c.ruleName];h&&(o=Gt.getCompiledRuleId(h,e,r));break;case 3:case 4:const d=c.scopeName,m=c.kind===4?c.ruleName:null,f=e.getExternalGrammar(d,r);if(f)if(m){let w=f.repository[m];w&&(o=Gt.getCompiledRuleId(w,e,f.repository))}else o=Gt.getCompiledRuleId(f.repository.$self,e,f.repository);break}}else o=Gt.getCompiledRuleId(a,e,r);if(o!==-1){const c=e.getRule(o);let h=!1;if((c instanceof rd||c instanceof Ah||c instanceof Ll)&&c.hasMissingPatterns&&c.patterns.length===0&&(h=!0),h)continue;n.push(o)}}return{patterns:n,hasMissingPatterns:(A?A.length:0)!==n.length}}},Ha=class Xp{constructor(A,e){oA(this,"source");oA(this,"ruleId");oA(this,"hasAnchor");oA(this,"hasBackReferences");oA(this,"_anchorCache");if(A&&typeof A=="string"){const r=A.length;let n=0,i=[],s=!1;for(let a=0;a<r;a++)if(A.charAt(a)==="\\"&&a+1<r){const c=A.charAt(a+1);c==="z"?(i.push(A.substring(n,a)),i.push("$(?!\\n)(?<!\\n)"),n=a+2):(c==="A"||c==="G")&&(s=!0),a++}this.hasAnchor=s,n===0?this.source=A:(i.push(A.substring(n,r)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=A;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=e,typeof this.source=="string"?this.hasBackReferences=g2.test(this.source):this.hasBackReferences=!1}clone(){return new Xp(this.source,this.ruleId)}setSource(A){this.source!==A&&(this.source=A,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(A,e){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=e.map(n=>A.substring(n.start,n.end));return td.lastIndex=0,this.source.replace(td,(n,i)=>Kp(r[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let A=[],e=[],r=[],n=[],i,s,a,o;for(i=0,s=this.source.length;i<s;i++)a=this.source.charAt(i),A[i]=a,e[i]=a,r[i]=a,n[i]=a,a==="\\"&&i+1<s&&(o=this.source.charAt(i+1),o==="A"?(A[i+1]="￿",e[i+1]="￿",r[i+1]="A",n[i+1]="A"):o==="G"?(A[i+1]="￿",e[i+1]="G",r[i+1]="￿",n[i+1]="G"):(A[i+1]=o,e[i+1]=o,r[i+1]=o,n[i+1]=o),i++);return{A0_G0:A.join(""),A0_G1:e.join(""),A1_G0:r.join(""),A1_G1:n.join("")}}resolveAnchors(A,e){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:A?e?this._anchorCache.A1_G1:this._anchorCache.A1_G0:e?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Pa=class{constructor(){oA(this,"_items");oA(this,"_hasAnchors");oA(this,"_cached");oA(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,A){this._items[t].source!==A&&(this._disposeCaches(),this._items[t].setSource(A))}compile(t){if(!this._cached){let A=this._items.map(e=>e.source);this._cached=new nd(t,A,this._items.map(e=>e.ruleId))}return this._cached}compileAG(t,A,e){return this._hasAnchors?A?e?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,A,e)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,A,e)),this._anchorCache.A1_G0):e?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,A,e)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,A,e)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,A,e){let r=this._items.map(n=>n.resolveAnchors(A,e));return new nd(t,r,this._items.map(n=>n.ruleId))}},nd=class{constructor(t,A,e){oA(this,"scanner");this.regExps=A,this.rules=e,this.scanner=t.createOnigScanner(A)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let A=0,e=this.rules.length;A<e;A++)t.push(" - "+this.rules[A]+": "+this.regExps[A]);return t.join(`
108
+ `)}findNextMatchSync(t,A,e){const r=this.scanner.findNextMatchSync(t,A,e);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Wc=class{constructor(t,A){this.languageId=t,this.tokenType=A}},Hn,w2=(Hn=class{constructor(A,e){oA(this,"_defaultAttributes");oA(this,"_embeddedLanguagesMatcher");oA(this,"_getBasicScopeAttributes",new jp(A=>{const e=this._scopeToLanguage(A),r=this._toStandardTokenType(A);return new Wc(e,r)}));this._defaultAttributes=new Wc(A,8),this._embeddedLanguagesMatcher=new v2(Object.entries(e||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(A){return A===null?Hn._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(A)}_scopeToLanguage(A){return this._embeddedLanguagesMatcher.match(A)||0}_toStandardTokenType(A){const e=A.match(Hn.STANDARD_TOKEN_TYPE_REGEXP);if(!e)return 8;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},oA(Hn,"_NULL_SCOPE_METADATA",new Wc(0,0)),oA(Hn,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Hn),v2=class{constructor(t){oA(this,"values");oA(this,"scopesRegExp");if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const A=t.map(([e,r])=>Kp(e));A.sort(),A.reverse(),this.scopesRegExp=new RegExp(`^((${A.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const A=t.match(this.scopesRegExp);if(A)return this.values.get(A[1])}};typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var id=class{constructor(t,A){this.stack=t,this.stoppedEarly=A}};function Jp(t,A,e,r,n,i,s,a){const o=A.content.length;let c=!1,h=-1;if(s){const f=y2(t,A,e,r,n,i);n=f.stack,r=f.linePos,e=f.isFirstLine,h=f.anchorPosition}const d=Date.now();for(;!c;){if(a!==0&&Date.now()-d>a)return new id(n,!0);m()}return new id(n,!1);function m(){const f=b2(t,A,e,r,n,h);if(!f){i.produce(n,o),c=!0;return}const w=f.captureIndices,y=f.matchedRuleId,F=w&&w.length>0?w[0].end>r:!1;if(y===p2){const v=n.getRule(t);i.produce(n,w[0].start),n=n.withContentNameScopesList(n.nameScopesList),pa(t,A,e,n,i,v.endCaptures,w),i.produce(n,w[0].end);const L=n;if(n=n.parent,h=L.getAnchorPos(),!F&&L.getEnterPos()===r){n=L,i.produce(n,o),c=!0;return}}else{const v=t.getRule(y);i.produce(n,w[0].start);const L=n,_=v.getName(A.content,w),S=n.contentNameScopesList.pushAttributed(_,t);if(n=n.push(y,r,h,w[0].end===o,null,S,S),v instanceof Ah){const V=v;pa(t,A,e,n,i,V.beginCaptures,w),i.produce(n,w[0].end),h=w[0].end;const z=V.getContentName(A.content,w),X=S.pushAttributed(z,t);if(n=n.withContentNameScopesList(X),V.endHasBackReferences&&(n=n.withEndRule(V.getEndWithResolvedBackReferences(A.content,w))),!F&&L.hasSameRuleAs(n)){n=n.pop(),i.produce(n,o),c=!0;return}}else if(v instanceof Ll){const V=v;pa(t,A,e,n,i,V.beginCaptures,w),i.produce(n,w[0].end),h=w[0].end;const z=V.getContentName(A.content,w),X=S.pushAttributed(z,t);if(n=n.withContentNameScopesList(X),V.whileHasBackReferences&&(n=n.withEndRule(V.getWhileWithResolvedBackReferences(A.content,w))),!F&&L.hasSameRuleAs(n)){n=n.pop(),i.produce(n,o),c=!0;return}}else if(pa(t,A,e,n,i,v.captures,w),i.produce(n,w[0].end),n=n.pop(),!F){n=n.safePop(),i.produce(n,o),c=!0;return}}w[0].end>r&&(r=w[0].end,e=!1)}}function y2(t,A,e,r,n,i){let s=n.beginRuleCapturedEOL?0:-1;const a=[];for(let o=n;o;o=o.pop()){const c=o.getRule(t);c instanceof Ll&&a.push({rule:c,stack:o})}for(let o=a.pop();o;o=a.pop()){const{ruleScanner:c,findOptions:h}=Q2(o.rule,t,o.stack.endRule,e,r===s),d=c.findNextMatchSync(A,r,h);if(d){if(d.ruleId!==zp){n=o.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(i.produce(o.stack,d.captureIndices[0].start),pa(t,A,e,o.stack,i,o.rule.whileCaptures,d.captureIndices),i.produce(o.stack,d.captureIndices[0].end),s=d.captureIndices[0].end,d.captureIndices[0].end>r&&(r=d.captureIndices[0].end,e=!1))}else{n=o.stack.pop();break}}return{stack:n,linePos:r,anchorPosition:s,isFirstLine:e}}function b2(t,A,e,r,n,i){const s=C2(t,A,e,r,n,i),a=t.getInjections();if(a.length===0)return s;const o=F2(a,t,A,e,r,n,i);if(!o)return s;if(!s)return o;const c=s.captureIndices[0].start,h=o.captureIndices[0].start;return h<c||o.priorityMatch&&h===c?o:s}function C2(t,A,e,r,n,i){const s=n.getRule(t),{ruleScanner:a,findOptions:o}=Yp(s,t,n.endRule,e,r===i),c=a.findNextMatchSync(A,r,o);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function F2(t,A,e,r,n,i,s){let a=Number.MAX_VALUE,o=null,c,h=0;const d=i.contentNameScopesList.getScopeNames();for(let m=0,f=t.length;m<f;m++){const w=t[m];if(!w.matcher(d))continue;const y=A.getRule(w.ruleId),{ruleScanner:F,findOptions:v}=Yp(y,A,null,r,n===s),L=F.findNextMatchSync(e,n,v);if(!L)continue;const _=L.captureIndices[0].start;if(!(_>=a)&&(a=_,o=L.captureIndices,c=L.ruleId,h=w.priority,a===n))break}return o?{priorityMatch:h===-1,captureIndices:o,matchedRuleId:c}:null}function Yp(t,A,e,r,n){return{ruleScanner:t.compileAG(A,e,r,n),findOptions:0}}function Q2(t,A,e,r,n){return{ruleScanner:t.compileWhileAG(A,e,r,n),findOptions:0}}function pa(t,A,e,r,n,i,s){if(i.length===0)return;const a=A.content,o=Math.min(i.length,s.length),c=[],h=s[0].end;for(let d=0;d<o;d++){const m=i[d];if(m===null)continue;const f=s[d];if(f.length===0)continue;if(f.start>h)break;for(;c.length>0&&c[c.length-1].endPos<=f.start;)n.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?n.produceFromScopes(c[c.length-1].scopes,f.start):n.produce(r,f.start),m.retokenizeCapturedWithRuleId){const y=m.getName(a,s),F=r.contentNameScopesList.pushAttributed(y,t),v=m.getContentName(a,s),L=F.pushAttributed(v,t),_=r.push(m.retokenizeCapturedWithRuleId,f.start,-1,!1,null,F,L),S=t.createOnigString(a.substring(0,f.end));Jp(t,S,e&&f.start===0,f.start,_,n,!1,0),Vp(S);continue}const w=m.getName(a,s);if(w!==null){const F=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(w,t);c.push(new U2(F,f.end))}}for(;c.length>0;)n.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var U2=class{constructor(t,A){oA(this,"scopes");oA(this,"endPos");this.scopes=t,this.endPos=A}};function x2(t,A,e,r,n,i,s,a){return new L2(t,A,e,r,n,i,s,a)}function sd(t,A,e,r,n){const i=xl(A,Sl),s=$p.getCompiledRuleId(e,r,n.repository);for(const a of i)t.push({debugSelector:A,matcher:a.matcher,ruleId:s,grammar:n,priority:a.priority})}function Sl(t,A){if(A.length<t.length)return!1;let e=0;return t.every(r=>{for(let n=e;n<A.length;n++)if(E2(A[n],r))return e=n+1,!0;return!1})}function E2(t,A){if(!t)return!1;if(t===A)return!0;const e=A.length;return t.length>e&&t.substr(0,e)===A&&t[e]==="."}var L2=class{constructor(t,A,e,r,n,i,s,a){oA(this,"_rootId");oA(this,"_lastRuleId");oA(this,"_ruleId2desc");oA(this,"_includedGrammars");oA(this,"_grammarRepository");oA(this,"_grammar");oA(this,"_injections");oA(this,"_basicScopeAttributesProvider");oA(this,"_tokenTypeMatchers");if(this._rootScopeName=t,this.balancedBracketSelectors=i,this._onigLib=a,this._basicScopeAttributesProvider=new w2(e,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=ad(A,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const o of Object.keys(n)){const c=xl(o,Sl);for(const h of c)this._tokenTypeMatchers.push({matcher:h.matcher,type:n[o]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:n=>n===this._rootScopeName?this._grammar:this.getExternalGrammar(n),injections:n=>this._grammarRepository.injections(n)},A=[],e=this._rootScopeName,r=t.lookup(e);if(r){const n=r.injections;if(n)for(let s in n)sd(A,s,n[s],this,r);const i=this._grammarRepository.injections(e);i&&i.forEach(s=>{const a=this.getExternalGrammar(s);if(a){const o=a.injectionSelector;o&&sd(A,o,a,this,a)}})}return A.sort((n,i)=>n.priority-i.priority),A}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const A=++this._lastRuleId,e=t(A);return this._ruleId2desc[A]=e,e}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,A){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const e=this._grammarRepository.lookup(t);if(e)return this._includedGrammars[t]=ad(e,A&&A.$base),this._includedGrammars[t]}}tokenizeLine(t,A,e=0){const r=this._tokenize(t,A,!1,e);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(t,A,e=0){const r=this._tokenize(t,A,!0,e);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(t,A,e,r){this._rootId===-1&&(this._rootId=$p.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!A||A===eh.NULL){n=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),h=this.themeProvider.getDefaults(),d=Es.set(0,c.languageId,c.tokenType,null,h.fontStyle,h.foregroundId,h.backgroundId),m=this.getRule(this._rootId).getName(null,null);let f;m?f=Qa.createRootAndLookUpScopeName(m,d,this):f=Qa.createRoot("unknown",d),A=new eh(null,this._rootId,-1,-1,!1,null,f,f)}else n=!1,A.reset();t=t+`
109
+ `;const i=this.createOnigString(t),s=i.content.length,a=new I2(e,t,this._tokenTypeMatchers,this.balancedBracketSelectors),o=Jp(this,i,n,0,A,a,!0,r);return Vp(i),{lineLength:s,lineTokens:a,ruleStack:o.stack,stoppedEarly:o.stoppedEarly}}};function ad(t,A){return t=zB(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=A||t.repository.$self,t}var Qa=class sn{constructor(A,e,r){this.parent=A,this.scopePath=e,this.tokenAttributes=r}static fromExtension(A,e){let r=A,n=(A==null?void 0:A.scopePath)??null;for(const i of e)n=Vc.push(n,i.scopeNames),r=new sn(r,n,i.encodedTokenAttributes);return r}static createRoot(A,e){return new sn(null,new Vc(null,A),e)}static createRootAndLookUpScopeName(A,e,r){const n=r.getMetadataForScope(A),i=new Vc(null,A),s=r.themeProvider.themeMatch(i),a=sn.mergeAttributes(e,n,s);return new sn(null,i,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(A){return sn.equals(this,A)}static equals(A,e){do{if(A===e||!A&&!e)return!0;if(!A||!e||A.scopeName!==e.scopeName||A.tokenAttributes!==e.tokenAttributes)return!1;A=A.parent,e=e.parent}while(!0)}static mergeAttributes(A,e,r){let n=-1,i=0,s=0;return r!==null&&(n=r.fontStyle,i=r.foregroundId,s=r.backgroundId),Es.set(A,e.languageId,e.tokenType,null,n,i,s)}pushAttributed(A,e){if(A===null)return this;if(A.indexOf(" ")===-1)return sn._pushAttributed(this,A,e);const r=A.split(/ /g);let n=this;for(const i of r)n=sn._pushAttributed(n,i,e);return n}static _pushAttributed(A,e,r){const n=r.getMetadataForScope(e),i=A.scopePath.push(e),s=r.themeProvider.themeMatch(i),a=sn.mergeAttributes(A.tokenAttributes,n,s);return new sn(A,i,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(A){var n;const e=[];let r=this;for(;r&&r!==A;)e.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((n=r.parent)==null?void 0:n.scopePath)??null)}),r=r.parent;return r===A?e.reverse():void 0}},Sr,eh=(Sr=class{constructor(A,e,r,n,i,s,a,o){oA(this,"_stackElementBrand");oA(this,"_enterPos");oA(this,"_anchorPos");oA(this,"depth");this.parent=A,this.ruleId=e,this.beginRuleCapturedEOL=i,this.endRule=s,this.nameScopesList=a,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=n}equals(A){return A===null?!1:Sr._equals(this,A)}static _equals(A,e){return A===e?!0:this._structuralEquals(A,e)?Qa.equals(A.contentNameScopesList,e.contentNameScopesList):!1}static _structuralEquals(A,e){do{if(A===e||!A&&!e)return!0;if(!A||!e||A.depth!==e.depth||A.ruleId!==e.ruleId||A.endRule!==e.endRule)return!1;A=A.parent,e=e.parent}while(!0)}clone(){return this}static _reset(A){for(;A;)A._enterPos=-1,A._anchorPos=-1,A=A.parent}reset(){Sr._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(A,e,r,n,i,s,a){return new Sr(this,A,e,r,n,i,s,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(A){return A.getRule(this.ruleId)}toString(){const A=[];return this._writeString(A,0),"["+A.join(",")+"]"}_writeString(A,e){var r,n;return this.parent&&(e=this.parent._writeString(A,e)),A[e++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(n=this.contentNameScopesList)==null?void 0:n.toString()})`,e}withContentNameScopesList(A){return this.contentNameScopesList===A?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,A)}withEndRule(A){return this.endRule===A?this:new Sr(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,A,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(A){let e=this;for(;e&&e._enterPos===A._enterPos;){if(e.ruleId===A.ruleId)return!0;e=e.parent}return!1}toStateStackFrame(){var A,e,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((e=this.nameScopesList)==null?void 0:e.getExtensionIfDefined(((A=this.parent)==null?void 0:A.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(A,e){const r=Qa.fromExtension((A==null?void 0:A.nameScopesList)??null,e.nameScopesList);return new Sr(A,e.ruleId,e.enterPos??-1,e.anchorPos??-1,e.beginRuleCapturedEOL,e.endRule,r,Qa.fromExtension(r,e.contentNameScopesList))}},oA(Sr,"NULL",new Sr(null,0,0,0,!1,null,null,null)),Sr),S2=class{constructor(t,A){oA(this,"balancedBracketScopes");oA(this,"unbalancedBracketScopes");oA(this,"allowAny",!1);this.balancedBracketScopes=t.flatMap(e=>e==="*"?(this.allowAny=!0,[]):xl(e,Sl).map(r=>r.matcher)),this.unbalancedBracketScopes=A.flatMap(e=>xl(e,Sl).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const A of this.unbalancedBracketScopes)if(A(t))return!1;for(const A of this.balancedBracketScopes)if(A(t))return!0;return this.allowAny}},I2=class{constructor(t,A,e,r){oA(this,"_emitBinaryTokens");oA(this,"_lineText");oA(this,"_tokens");oA(this,"_binaryTokens");oA(this,"_lastTokenEndIndex");oA(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=t,this._tokenTypeOverrides=e,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,A){this.produceFromScopes(t.contentNameScopesList,A)}produceFromScopes(t,A){var r;if(this._lastTokenEndIndex>=A)return;if(this._emitBinaryTokens){let n=(t==null?void 0:t.tokenAttributes)??0,i=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=(t==null?void 0:t.getScopeNames())??[];for(const a of this._tokenTypeOverrides)a.matcher(s)&&(n=Es.set(n,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(s))}if(i&&(n=Es.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=A;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=A;return}const e=(t==null?void 0:t.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:A,scopes:e}),this._lastTokenEndIndex=A}getResult(t,A){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===A-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,A),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,A){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===A-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,A),this._binaryTokens[this._binaryTokens.length-2]=0);const e=new Uint32Array(this._binaryTokens.length);for(let r=0,n=this._binaryTokens.length;r<n;r++)e[r]=this._binaryTokens[r];return e}},_2=class{constructor(t,A){oA(this,"_grammars",new Map);oA(this,"_rawGrammars",new Map);oA(this,"_injectionGrammars",new Map);oA(this,"_theme");this._onigLib=A,this._theme=t}dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,A){this._rawGrammars.set(t.scopeName,t),A&&this._injectionGrammars.set(t.scopeName,A)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,A,e,r,n){if(!this._grammars.has(t)){let i=this._rawGrammars.get(t);if(!i)return null;this._grammars.set(t,x2(t,i,A,e,r,n,this,this._onigLib))}return this._grammars.get(t)}},N2=class{constructor(A){oA(this,"_options");oA(this,"_syncRegistry");oA(this,"_ensureGrammarCache");this._options=A,this._syncRegistry=new _2(Ul.createFromRawTheme(A.theme,A.colorMap),A.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(A,e){this._syncRegistry.setTheme(Ul.createFromRawTheme(A,e))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(A,e,r){return this.loadGrammarWithConfiguration(A,e,{embeddedLanguages:r})}loadGrammarWithConfiguration(A,e,r){return this._loadGrammar(A,e,r.embeddedLanguages,r.tokenTypes,new S2(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(A){return this._loadGrammar(A,0,null,null,null)}_loadGrammar(A,e,r,n,i){const s=new o2(this._syncRegistry,A);for(;s.Q.length>0;)s.Q.map(a=>this._loadSingleGrammar(a.scopeName)),s.processQueue();return this._grammarForScopeName(A,e,r,n,i)}_loadSingleGrammar(A){this._ensureGrammarCache.has(A)||(this._doLoadSingleGrammar(A),this._ensureGrammarCache.set(A,!0))}_doLoadSingleGrammar(A){const e=this._options.loadGrammar(A);if(e){const r=typeof this._options.getInjections=="function"?this._options.getInjections(A):void 0;this._syncRegistry.addGrammar(e,r)}}addGrammar(A,e=[],r=0,n=null){return this._syncRegistry.addGrammar(A,e),this._grammarForScopeName(A.scopeName,r,n)}_grammarForScopeName(A,e=0,r=null,n=null,i=null){return this._syncRegistry.grammarForScopeName(A,e,r,n,i)}},th=eh.NULL;const k2=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Ga{constructor(A,e,r){this.normal=e,this.property=A,r&&(this.space=r)}}Ga.prototype.normal={};Ga.prototype.property={};Ga.prototype.space=void 0;function Zp(t,A){const e={},r={};for(const n of t)Object.assign(e,n.property),Object.assign(r,n.normal);return new Ga(e,r,A)}function rh(t){return t.toLowerCase()}class tr{constructor(A,e){this.attribute=e,this.property=A}}tr.prototype.attribute="";tr.prototype.booleanish=!1;tr.prototype.boolean=!1;tr.prototype.commaOrSpaceSeparated=!1;tr.prototype.commaSeparated=!1;tr.prototype.defined=!1;tr.prototype.mustUseProperty=!1;tr.prototype.number=!1;tr.prototype.overloadedBoolean=!1;tr.prototype.property="";tr.prototype.spaceSeparated=!1;tr.prototype.space=void 0;let H2=0;const ye=Ki(),dt=Ki(),nh=Ki(),LA=Ki(),Ge=Ki(),ys=Ki(),dr=Ki();function Ki(){return 2**++H2}const ih=Object.freeze(Object.defineProperty({__proto__:null,boolean:ye,booleanish:dt,commaOrSpaceSeparated:dr,commaSeparated:ys,number:LA,overloadedBoolean:nh,spaceSeparated:Ge},Symbol.toStringTag,{value:"Module"})),zc=Object.keys(ih);class Wh extends tr{constructor(A,e,r,n){let i=-1;if(super(A,e),od(this,"space",n),typeof r=="number")for(;++i<zc.length;){const s=zc[i];od(this,zc[i],(r&ih[s])===ih[s])}}}Wh.prototype.defined=!0;function od(t,A,e){e&&(t[A]=e)}function Ss(t){const A={},e={};for(const[r,n]of Object.entries(t.properties)){const i=new Wh(r,t.transform(t.attributes||{},r),n,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),A[r]=i,e[rh(r)]=r,e[rh(i.attribute)]=r}return new Ga(A,e,t.space)}const A0=Ss({properties:{ariaActiveDescendant:null,ariaAtomic:dt,ariaAutoComplete:null,ariaBusy:dt,ariaChecked:dt,ariaColCount:LA,ariaColIndex:LA,ariaColSpan:LA,ariaControls:Ge,ariaCurrent:null,ariaDescribedBy:Ge,ariaDetails:null,ariaDisabled:dt,ariaDropEffect:Ge,ariaErrorMessage:null,ariaExpanded:dt,ariaFlowTo:Ge,ariaGrabbed:dt,ariaHasPopup:null,ariaHidden:dt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ge,ariaLevel:LA,ariaLive:null,ariaModal:dt,ariaMultiLine:dt,ariaMultiSelectable:dt,ariaOrientation:null,ariaOwns:Ge,ariaPlaceholder:null,ariaPosInSet:LA,ariaPressed:dt,ariaReadOnly:dt,ariaRelevant:null,ariaRequired:dt,ariaRoleDescription:Ge,ariaRowCount:LA,ariaRowIndex:LA,ariaRowSpan:LA,ariaSelected:dt,ariaSetSize:LA,ariaSort:null,ariaValueMax:LA,ariaValueMin:LA,ariaValueNow:LA,ariaValueText:null,role:null},transform(t,A){return A==="role"?A:"aria-"+A.slice(4).toLowerCase()}});function e0(t,A){return A in t?t[A]:A}function t0(t,A){return e0(t,A.toLowerCase())}const P2=Ss({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ys,acceptCharset:Ge,accessKey:Ge,action:null,allow:null,allowFullScreen:ye,allowPaymentRequest:ye,allowUserMedia:ye,alt:null,as:null,async:ye,autoCapitalize:null,autoComplete:Ge,autoFocus:ye,autoPlay:ye,blocking:Ge,capture:null,charSet:null,checked:ye,cite:null,className:Ge,cols:LA,colSpan:null,content:null,contentEditable:dt,controls:ye,controlsList:Ge,coords:LA|ys,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ye,defer:ye,dir:null,dirName:null,disabled:ye,download:nh,draggable:dt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ye,formTarget:null,headers:Ge,height:LA,hidden:nh,high:LA,href:null,hrefLang:null,htmlFor:Ge,httpEquiv:Ge,id:null,imageSizes:null,imageSrcSet:null,inert:ye,inputMode:null,integrity:null,is:null,isMap:ye,itemId:null,itemProp:Ge,itemRef:Ge,itemScope:ye,itemType:Ge,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ye,low:LA,manifest:null,max:null,maxLength:LA,media:null,method:null,min:null,minLength:LA,multiple:ye,muted:ye,name:null,nonce:null,noModule:ye,noValidate:ye,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ye,optimum:LA,pattern:null,ping:Ge,placeholder:null,playsInline:ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ye,referrerPolicy:null,rel:Ge,required:ye,reversed:ye,rows:LA,rowSpan:LA,sandbox:Ge,scope:null,scoped:ye,seamless:ye,selected:ye,shadowRootClonable:ye,shadowRootDelegatesFocus:ye,shadowRootMode:null,shape:null,size:LA,sizes:null,slot:null,span:LA,spellCheck:dt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:LA,step:null,style:null,tabIndex:LA,target:null,title:null,translate:null,type:null,typeMustMatch:ye,useMap:null,value:dt,width:LA,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ge,axis:null,background:null,bgColor:null,border:LA,borderColor:null,bottomMargin:LA,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ye,declare:ye,event:null,face:null,frame:null,frameBorder:null,hSpace:LA,leftMargin:LA,link:null,longDesc:null,lowSrc:null,marginHeight:LA,marginWidth:LA,noResize:ye,noHref:ye,noShade:ye,noWrap:ye,object:null,profile:null,prompt:null,rev:null,rightMargin:LA,rules:null,scheme:null,scrolling:dt,standby:null,summary:null,text:null,topMargin:LA,valueType:null,version:null,vAlign:null,vLink:null,vSpace:LA,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ye,disableRemotePlayback:ye,prefix:null,property:null,results:LA,security:null,unselectable:null},space:"html",transform:t0}),T2=Ss({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:dr,accentHeight:LA,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:LA,amplitude:LA,arabicForm:null,ascent:LA,attributeName:null,attributeType:null,azimuth:LA,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:LA,by:null,calcMode:null,capHeight:LA,className:Ge,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:LA,diffuseConstant:LA,direction:null,display:null,dur:null,divisor:LA,dominantBaseline:null,download:ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:LA,enableBackground:null,end:null,event:null,exponent:LA,externalResourcesRequired:null,fill:null,fillOpacity:LA,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ys,g2:ys,glyphName:ys,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:LA,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:LA,horizOriginX:LA,horizOriginY:LA,id:null,ideographic:LA,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:LA,k:LA,k1:LA,k2:LA,k3:LA,k4:LA,kernelMatrix:dr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:LA,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:LA,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:LA,overlineThickness:LA,paintOrder:null,panose1:null,path:null,pathLength:LA,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ge,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:LA,pointsAtY:LA,pointsAtZ:LA,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dr,rev:dr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dr,requiredFeatures:dr,requiredFonts:dr,requiredFormats:dr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:LA,specularExponent:LA,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:LA,strikethroughThickness:LA,string:null,stroke:null,strokeDashArray:dr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:LA,strokeOpacity:LA,strokeWidth:null,style:null,surfaceScale:LA,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dr,tabIndex:LA,tableValues:null,target:null,targetX:LA,targetY:LA,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:LA,underlineThickness:LA,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:LA,values:null,vAlphabetic:LA,vMathematical:LA,vectorEffect:null,vHanging:LA,vIdeographic:LA,version:null,vertAdvY:LA,vertOriginX:LA,vertOriginY:LA,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:LA,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:e0}),r0=Ss({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,A){return"xlink:"+A.slice(5).toLowerCase()}}),n0=Ss({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:t0}),i0=Ss({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,A){return"xml:"+A.slice(3).toLowerCase()}}),D2=/[A-Z]/g,ld=/-[a-z]/g,R2=/^data[-\w.:]+$/i;function O2(t,A){const e=rh(A);let r=A,n=tr;if(e in t.normal)return t.property[t.normal[e]];if(e.length>4&&e.slice(0,4)==="data"&&R2.test(A)){if(A.charAt(4)==="-"){const i=A.slice(5).replace(ld,K2);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=A.slice(4);if(!ld.test(i)){let s=i.replace(D2,M2);s.charAt(0)!=="-"&&(s="-"+s),A="data"+s}}n=Wh}return new n(r,A)}function M2(t){return"-"+t.toLowerCase()}function K2(t){return t.charAt(1).toUpperCase()}const j2=Zp([A0,P2,r0,n0,i0],"html"),s0=Zp([A0,T2,r0,n0,i0],"svg"),cd={}.hasOwnProperty;function G2(t,A){const e=A||{};function r(n,...i){let s=r.invalid;const a=r.handlers;if(n&&cd.call(n,t)){const o=String(n[t]);s=cd.call(a,o)?a[o]:r.unknown}if(s)return s.call(this,n,...i)}return r.handlers=e.handlers||{},r.invalid=e.invalid,r.unknown=e.unknown,r}const q2=/["&'<>`]/g,V2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,W2=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,z2=/[|\\{}()[\]^$+*?.]/g,ud=new WeakMap;function $2(t,A){if(t=t.replace(A.subset?X2(A.subset):q2,r),A.subset||A.escapeOnly)return t;return t.replace(V2,e).replace(W2,r);function e(n,i,s){return A.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),A)}function r(n,i,s){return A.format(n.charCodeAt(0),s.charCodeAt(i+1),A)}}function X2(t){let A=ud.get(t);return A||(A=J2(t),ud.set(t,A)),A}function J2(t){const A=[];let e=-1;for(;++e<t.length;)A.push(t[e].replace(z2,"\\$&"));return new RegExp("(?:"+A.join("|")+")","g")}const Y2=/[\dA-Fa-f]/;function Z2(t,A,e){const r="&#x"+t.toString(16).toUpperCase();return e&&A&&!Y2.test(String.fromCharCode(A))?r:r+";"}const Aw=/\d/;function ew(t,A,e){const r="&#"+String(t);return e&&A&&!Aw.test(String.fromCharCode(A))?r:r+";"}const tw=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],$c={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},rw=["cent","copy","divide","gt","lt","not","para","times"],a0={}.hasOwnProperty,sh={};let No;for(No in $c)a0.call($c,No)&&(sh[$c[No]]=No);const nw=/[^\dA-Za-z]/;function iw(t,A,e,r){const n=String.fromCharCode(t);if(a0.call(sh,n)){const i=sh[n],s="&"+i;return e&&tw.includes(i)&&!rw.includes(i)&&(!r||A&&A!==61&&nw.test(String.fromCharCode(A)))?s:s+";"}return""}function sw(t,A,e){let r=Z2(t,A,e.omitOptionalSemicolons),n;if((e.useNamedReferences||e.useShortestReferences)&&(n=iw(t,A,e.omitOptionalSemicolons,e.attribute)),(e.useShortestReferences||!n)&&e.useShortestReferences){const i=ew(t,A,e.omitOptionalSemicolons);i.length<r.length&&(r=i)}return n&&(!e.useShortestReferences||n.length<r.length)?n:r}function bs(t,A){return $2(t,Object.assign({format:sw},A))}const aw=/^>|^->|<!--|-->|--!>|<!-$/g,ow=[">"],lw=["<",">"];function cw(t,A,e,r){return r.settings.bogusComments?"<?"+bs(t.value,Object.assign({},r.settings.characterReferences,{subset:ow}))+">":"<!--"+t.value.replace(aw,n)+"-->";function n(i){return bs(i,Object.assign({},r.settings.characterReferences,{subset:lw}))}}function uw(t,A,e,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function hd(t,A){const e=String(t);if(typeof A!="string")throw new TypeError("Expected character");let r=0,n=e.indexOf(A);for(;n!==-1;)r++,n=e.indexOf(A,n+A.length);return r}function hw(t,A){const e=A||{};return(t[t.length-1]===""?[...t,""]:t).join((e.padRight?" ":"")+","+(e.padLeft===!1?"":" ")).trim()}function fw(t){return t.join(" ").trim()}const dw=/[ \t\n\f\r]/g;function zh(t){return typeof t=="object"?t.type==="text"?fd(t.value):!1:fd(t)}function fd(t){return t.replace(dw,"")===""}const Qt=l0(1),o0=l0(-1),gw=[];function l0(t){return A;function A(e,r,n){const i=e?e.children:gw;let s=(r||0)+t,a=i[s];if(!n)for(;a&&zh(a);)s+=t,a=i[s];return a}}const pw={}.hasOwnProperty;function c0(t){return A;function A(e,r,n){return pw.call(t,e.tagName)&&t[e.tagName](e,r,n)}}const $h=c0({body:Bw,caption:Xc,colgroup:Xc,dd:bw,dt:yw,head:Xc,html:mw,li:vw,optgroup:Cw,option:Fw,p:ww,rp:dd,rt:dd,tbody:Uw,td:gd,tfoot:xw,th:gd,thead:Qw,tr:Ew});function Xc(t,A,e){const r=Qt(e,A,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&zh(r.value.charAt(0)))}function mw(t,A,e){const r=Qt(e,A);return!r||r.type!=="comment"}function Bw(t,A,e){const r=Qt(e,A);return!r||r.type!=="comment"}function ww(t,A,e){const r=Qt(e,A);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!e||!(e.type==="element"&&(e.tagName==="a"||e.tagName==="audio"||e.tagName==="del"||e.tagName==="ins"||e.tagName==="map"||e.tagName==="noscript"||e.tagName==="video"))}function vw(t,A,e){const r=Qt(e,A);return!r||r.type==="element"&&r.tagName==="li"}function yw(t,A,e){const r=Qt(e,A);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function bw(t,A,e){const r=Qt(e,A);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function dd(t,A,e){const r=Qt(e,A);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Cw(t,A,e){const r=Qt(e,A);return!r||r.type==="element"&&r.tagName==="optgroup"}function Fw(t,A,e){const r=Qt(e,A);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Qw(t,A,e){const r=Qt(e,A);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Uw(t,A,e){const r=Qt(e,A);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function xw(t,A,e){return!Qt(e,A)}function Ew(t,A,e){const r=Qt(e,A);return!r||r.type==="element"&&r.tagName==="tr"}function gd(t,A,e){const r=Qt(e,A);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Lw=c0({body:_w,colgroup:Nw,head:Iw,html:Sw,tbody:kw});function Sw(t){const A=Qt(t,-1);return!A||A.type!=="comment"}function Iw(t){const A=new Set;for(const r of t.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(A.has(r.tagName))return!1;A.add(r.tagName)}const e=t.children[0];return!e||e.type==="element"}function _w(t){const A=Qt(t,-1,!0);return!A||A.type!=="comment"&&!(A.type==="text"&&zh(A.value.charAt(0)))&&!(A.type==="element"&&(A.tagName==="meta"||A.tagName==="link"||A.tagName==="script"||A.tagName==="style"||A.tagName==="template"))}function Nw(t,A,e){const r=o0(e,A),n=Qt(t,-1,!0);return e&&r&&r.type==="element"&&r.tagName==="colgroup"&&$h(r,e.children.indexOf(r),e)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function kw(t,A,e){const r=o0(e,A),n=Qt(t,-1);return e&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&$h(r,e.children.indexOf(r),e)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}const ko={name:[[`
107
110
  \f\r &/=>`.split(""),`
108
111
  \f\r "&'/=>\``.split("")],[`\0
109
112
  \f\r "&'/<=>`.split(""),`\0
@@ -111,25 +114,25 @@
111
114
  \f\r &>`.split(""),`\0
112
115
  \f\r "&'<=>\``.split("")],[`\0
113
116
  \f\r "&'<=>\``.split(""),`\0
114
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Hw(t,A,e,r){const n=r.schema,i=n.space==="svg"?!1:r.settings.omitOptionalTags;let s=n.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase());const a=[];let o;n.space==="html"&&t.tagName==="svg"&&(r.schema=r0);const c=kw(r,t.properties),h=r.all(n.space==="html"&&t.tagName==="template"?t.content:t);return r.schema=n,h&&(s=!1),(c||!i||!Ew(t,A,e))&&(a.push("<",t.tagName,c?" "+c:""),s&&(n.space==="svg"||r.settings.closeSelfClosing)&&(o=c.charAt(c.length-1),(!r.settings.tightSelfClosing||o==="/"||o&&o!=='"'&&o!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(h),!s&&(!i||!qh(t,A,e))&&a.push("</"+t.tagName+">"),a.join("")}function kw(t,A){const e=[];let r=-1,n;if(A){for(n in A)if(A[n]!==null&&A[n]!==void 0){const i=Pw(t,n,A[n]);i&&e.push(i)}}for(;++r<e.length;){const i=t.settings.tightAttributes?e[r].charAt(e[r].length-1):void 0;r!==e.length-1&&i!=='"'&&i!=="'"&&(e[r]+=" ")}return e.join("")}function Pw(t,A,e){const r=R2(t.schema,A),n=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,i=t.settings.allowDangerousCharacters?0:1;let s=t.quote,a;if(r.overloadedBoolean&&(e===r.attribute||e==="")?e=!0:(r.boolean||r.overloadedBoolean)&&(typeof e!="string"||e===r.attribute||e==="")&&(e=!!e),e==null||e===!1||typeof e=="number"&&Number.isNaN(e))return"";const o=Cs(r.attribute,Object.assign({},t.settings.characterReferences,{subset:No.name[n][i]}));return e===!0||(e=Array.isArray(e)?(r.commaSeparated?uw:hw)(e,{padLeft:!t.settings.tightCommaSeparatedLists}):String(e),t.settings.collapseEmptyAttributes&&!e)?o:(t.settings.preferUnquoted&&(a=Cs(e,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:No.unquoted[n][i]}))),a!==e&&(t.settings.quoteSmart&&od(e,s)>od(e,t.alternative)&&(s=t.alternative),a=s+Cs(e,Object.assign({},t.settings.characterReferences,{subset:(s==="'"?No.single:No.double)[n][i],attribute:!0}))+s),o+(a&&"="+a))}const Tw=["<","&"];function o0(t,A,e,r){return e&&e.type==="element"&&(e.tagName==="script"||e.tagName==="style")?t.value:Cs(t.value,Object.assign({},r.settings.characterReferences,{subset:Tw}))}function Dw(t,A,e,r){return r.settings.allowDangerousHtml?t.value:o0(t,A,e,r)}function Rw(t,A,e,r){return r.all(t)}const Ow=j2("type",{invalid:Mw,unknown:Kw,handlers:{comment:lw,doctype:cw,element:Hw,raw:Dw,root:Rw,text:o0}});function Mw(t){throw new Error("Expected node, not `"+t+"`")}function Kw(t){const A=t;throw new Error("Cannot compile unknown node `"+A.type+"`")}const jw={},Gw={},qw=[];function Vw(t,A){const e=A||jw,r=e.quote||'"',n=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Ww,all:zw,settings:{omitOptionalTags:e.omitOptionalTags||!1,allowParseErrors:e.allowParseErrors||!1,allowDangerousCharacters:e.allowDangerousCharacters||!1,quoteSmart:e.quoteSmart||!1,preferUnquoted:e.preferUnquoted||!1,tightAttributes:e.tightAttributes||!1,upperDoctype:e.upperDoctype||!1,tightDoctype:e.tightDoctype||!1,bogusComments:e.bogusComments||!1,tightCommaSeparatedLists:e.tightCommaSeparatedLists||!1,tightSelfClosing:e.tightSelfClosing||!1,collapseEmptyAttributes:e.collapseEmptyAttributes||!1,allowDangerousHtml:e.allowDangerousHtml||!1,voids:e.voids||N2,characterReferences:e.characterReferences||Gw,closeSelfClosing:e.closeSelfClosing||!1,closeEmptyElements:e.closeEmptyElements||!1},schema:e.space==="svg"?r0:K2,quote:r,alternative:n}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function Ww(t,A,e){return Ow(t,A,e,this)}function zw(t){const A=[],e=t&&t.children||qw;let r=-1;for(;++r<e.length;)A[r]=this.one(e[r],r,t);return A.join("")}function Sl(t,A){const e=typeof t=="string"?{}:{...t.colorReplacements},r=typeof t=="string"?t:t.name;for(const[n,i]of Object.entries((A==null?void 0:A.colorReplacements)||{}))typeof i=="string"?e[n]=i:n===r&&Object.assign(e,i);return e}function oi(t,A){return t&&((A==null?void 0:A[t==null?void 0:t.toLowerCase()])||t)}function $w(t){return Array.isArray(t)?t:[t]}async function l0(t){return Promise.resolve(typeof t=="function"?t():t).then(A=>A.default||A)}function Vh(t){return!t||["plaintext","txt","text","plain"].includes(t)}function c0(t){return t==="ansi"||Vh(t)}function Wh(t){return t==="none"}function u0(t){return Wh(t)}function h0(t,A){var r;if(!A)return t;t.properties||(t.properties={}),(r=t.properties).class||(r.class=[]),typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);const e=Array.isArray(A)?A:A.split(/\s+/g);for(const n of e)n&&!t.properties.class.includes(n)&&t.properties.class.push(n);return t}function Xl(t,A=!1){var i;if(t.length===0)return[["",0]];const e=t.split(/(\r?\n)/g);let r=0;const n=[];for(let s=0;s<e.length;s+=2){const a=A?e[s]+(e[s+1]||""):e[s];n.push([a,r]),r+=e[s].length,r+=((i=e[s+1])==null?void 0:i.length)||0}return n}function Xw(t){const A=Xl(t,!0).map(([n])=>n);function e(n){if(n===t.length)return{line:A.length-1,character:A[A.length-1].length};let i=n,s=0;for(const a of A){if(i<a.length)break;i-=a.length,s++}return{line:s,character:i}}function r(n,i){let s=0;for(let a=0;a<n;a++)s+=A[a].length;return s+=i,s}return{lines:A,indexToPos:e,posToIndex:r}}const zh="light-dark()",Jw=["color","background-color"];function Yw(t,A){let e=0;const r=[];for(const n of A)n>e&&r.push({...t,content:t.content.slice(e,n),offset:t.offset+e}),e=n;return e<t.content.length&&r.push({...t,content:t.content.slice(e),offset:t.offset+e}),r}function Zw(t,A){const e=Array.from(A instanceof Set?A:new Set(A)).sort((r,n)=>r-n);return e.length?t.map(r=>r.flatMap(n=>{const i=e.filter(s=>n.offset<s&&s<n.offset+n.content.length).map(s=>s-n.offset).sort((s,a)=>s-a);return i.length?Yw(n,i):n})):t}function A5(t,A,e,r,n="css-vars"){const i={content:t.content,explanation:t.explanation,offset:t.offset},s=A.map(h=>Il(t.variants[h])),a=new Set(s.flatMap(h=>Object.keys(h))),o={},c=(h,g)=>{const m=g==="color"?"":g==="background-color"?"-bg":`-${g}`;return e+A[h]+(g==="color"?"":m)};return s.forEach((h,g)=>{for(const m of a){const f=h[m]||"inherit";if(g===0&&r&&Jw.includes(m))if(r===zh&&s.length>1){const w=A.findIndex(L=>L==="light"),y=A.findIndex(L=>L==="dark");if(w===-1||y===-1)throw new dt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const F=s[w][m]||"inherit",v=s[y][m]||"inherit";o[m]=`light-dark(${F}, ${v})`,n==="css-vars"&&(o[c(g,m)]=f)}else o[m]=f;else n==="css-vars"&&(o[c(g,m)]=f)}}),i.htmlStyle=o,i}function Il(t){const A={};if(t.color&&(A.color=t.color),t.bgColor&&(A["background-color"]=t.bgColor),t.fontStyle){t.fontStyle&Wt.Italic&&(A["font-style"]="italic"),t.fontStyle&Wt.Bold&&(A["font-weight"]="bold");const e=[];t.fontStyle&Wt.Underline&&e.push("underline"),t.fontStyle&Wt.Strikethrough&&e.push("line-through"),e.length&&(A["text-decoration"]=e.join(" "))}return A}function sh(t){return typeof t=="string"?t:Object.entries(t).map(([A,e])=>`${A}:${e}`).join(";")}const f0=new WeakMap;function Jl(t,A){f0.set(t,A)}function Pa(t){return f0.get(t)}class Is{constructor(...A){oA(this,"_stacks",{});oA(this,"lang");if(A.length===2){const[e,r]=A;this.lang=r,this._stacks=e}else{const[e,r,n]=A;this.lang=r,this._stacks={[n]:e}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(A,e){return new Is(Object.fromEntries($w(e).map(r=>[r,eh])),A)}getInternalStack(A=this.theme){return this._stacks[A]}getScopes(A=this.theme){return e5(this._stacks[A])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function e5(t){const A=[],e=new Set;function r(n){var s;if(e.has(n))return;e.add(n);const i=(s=n==null?void 0:n.nameScopesList)==null?void 0:s.scopeName;i&&A.push(i),n.parent&&r(n.parent)}return r(t),A}function t5(t,A){if(!(t instanceof Is))throw new dt("Invalid grammar state");return t.getInternalStack(A)}function r5(){const t=new WeakMap;function A(e){if(!t.has(e.meta)){let r=function(s){if(typeof s=="number"){if(s<0||s>e.source.length)throw new dt(`Invalid decoration offset: ${s}. Code length: ${e.source.length}`);return{...n.indexToPos(s),offset:s}}else{const a=n.lines[s.line];if(a===void 0)throw new dt(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${n.lines.length}`);let o=s.character;if(o<0&&(o=a.length+o),o<0||o>a.length)throw new dt(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${a.length}`);return{...s,character:o,offset:n.posToIndex(s.line,o)}}};const n=Xw(e.source),i=(e.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));n5(i),t.set(e.meta,{decorations:i,converter:n,source:e.source})}return t.get(e.meta)}return{name:"shiki:decorations",tokens(e){var s;if(!((s=this.options.decorations)!=null&&s.length))return;const n=A(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return Zw(e,n)},code(e){var h;if(!((h=this.options.decorations)!=null&&h.length))return;const r=A(this),n=Array.from(e.children).filter(g=>g.type==="element"&&g.tagName==="span");if(n.length!==r.converter.lines.length)throw new dt(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function i(g,m,f,w){const y=n[g];let F="",v=-1,L=-1;if(m===0&&(v=0),f===0&&(L=0),f===Number.POSITIVE_INFINITY&&(L=y.children.length),v===-1||L===-1)for(let _=0;_<y.children.length;_++)F+=d0(y.children[_]),v===-1&&F.length===m&&(v=_+1),L===-1&&F.length===f&&(L=_+1);if(v===-1)throw new dt(`Failed to find start index for decoration ${JSON.stringify(w.start)}`);if(L===-1)throw new dt(`Failed to find end index for decoration ${JSON.stringify(w.end)}`);const N=y.children.slice(v,L);if(!w.alwaysWrap&&N.length===y.children.length)a(y,w,"line");else if(!w.alwaysWrap&&N.length===1&&N[0].type==="element")a(N[0],w,"token");else{const _={type:"element",tagName:"span",properties:{},children:N};a(_,w,"wrapper"),y.children.splice(v,N.length,_)}}function s(g,m){n[g]=a(n[g],m,"line")}function a(g,m,f){var F;const w=m.properties||{},y=m.transform||(v=>v);return g.tagName=m.tagName||"span",g.properties={...g.properties,...w,class:g.properties.class},(F=m.properties)!=null&&F.class&&h0(g,m.properties.class),g=y(g,f)||g,g}const o=[],c=r.decorations.sort((g,m)=>m.start.offset-g.start.offset||g.end.offset-m.end.offset);for(const g of c){const{start:m,end:f}=g;if(m.line===f.line)i(m.line,m.character,f.character,g);else if(m.line<f.line){i(m.line,m.character,Number.POSITIVE_INFINITY,g);for(let w=m.line+1;w<f.line;w++)o.unshift(()=>s(w,g));i(f.line,0,f.character,g)}}o.forEach(g=>g())}}}function n5(t){for(let A=0;A<t.length;A++){const e=t[A];if(e.start.offset>e.end.offset)throw new dt(`Invalid decoration range: ${JSON.stringify(e.start)} - ${JSON.stringify(e.end)}`);for(let r=A+1;r<t.length;r++){const n=t[r],i=e.start.offset<=n.start.offset&&n.start.offset<e.end.offset,s=e.start.offset<n.end.offset&&n.end.offset<=e.end.offset,a=n.start.offset<=e.start.offset&&e.start.offset<n.end.offset,o=n.start.offset<e.end.offset&&e.end.offset<=n.end.offset;if(i||s||a||o){if(i&&s||a&&o||a&&e.start.offset===e.end.offset||s&&n.start.offset===n.end.offset)continue;throw new dt(`Decorations ${JSON.stringify(e.start)} and ${JSON.stringify(n.start)} intersect.`)}}}}function d0(t){return t.type==="text"?t.value:t.type==="element"?t.children.map(d0).join(""):""}const i5=[r5()];function _l(t){const A=s5(t.transformers||[]);return[...A.pre,...A.normal,...A.post,...i5]}function s5(t){const A=[],e=[],r=[];for(const n of t)switch(n.enforce){case"pre":A.push(n);break;case"post":e.push(n);break;default:r.push(n)}return{pre:A,post:e,normal:r}}var ki=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Xc={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function a5(t,A){const e=t.indexOf("\x1B",A);if(e!==-1&&t[e+1]==="["){const r=t.indexOf("m",e);if(r!==-1)return{sequence:t.substring(e+2,r).split(";"),startPosition:e,position:r+1}}return{position:t.length}}function hd(t){const A=t.shift();if(A==="2"){const e=t.splice(0,3).map(r=>Number.parseInt(r));return e.length!==3||e.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:e}}else if(A==="5"){const e=t.shift();if(e)return{type:"table",index:Number(e)}}}function o5(t){const A=[];for(;t.length>0;){const e=t.shift();if(!e)continue;const r=Number.parseInt(e);if(!Number.isNaN(r))if(r===0)A.push({type:"resetAll"});else if(r<=9)Xc[r]&&A.push({type:"setDecoration",value:Xc[r]});else if(r<=29){const n=Xc[r-20];n&&(A.push({type:"resetDecoration",value:n}),n==="dim"&&A.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)A.push({type:"setForegroundColor",value:{type:"named",name:ki[r-30]}});else if(r===38){const n=hd(t);n&&A.push({type:"setForegroundColor",value:n})}else if(r===39)A.push({type:"resetForegroundColor"});else if(r<=47)A.push({type:"setBackgroundColor",value:{type:"named",name:ki[r-40]}});else if(r===48){const n=hd(t);n&&A.push({type:"setBackgroundColor",value:n})}else r===49?A.push({type:"resetBackgroundColor"}):r===53?A.push({type:"setDecoration",value:"overline"}):r===55?A.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?A.push({type:"setForegroundColor",value:{type:"named",name:ki[r-90+8]}}):r>=100&&r<=107&&A.push({type:"setBackgroundColor",value:{type:"named",name:ki[r-100+8]}})}return A}function l5(){let t=null,A=null,e=new Set;return{parse(r){const n=[];let i=0;do{const s=a5(r,i),a=s.sequence?r.substring(i,s.startPosition):r.substring(i);if(a.length>0&&n.push({value:a,foreground:t,background:A,decorations:new Set(e)}),s.sequence){const o=o5(s.sequence);for(const c of o)c.type==="resetAll"?(t=null,A=null,e.clear()):c.type==="resetForegroundColor"?t=null:c.type==="resetBackgroundColor"?A=null:c.type==="resetDecoration"&&e.delete(c.value);for(const c of o)c.type==="setForegroundColor"?t=c.value:c.type==="setBackgroundColor"?A=c.value:c.type==="setDecoration"&&e.add(c.value)}i=s.position}while(i<r.length);return n}}}var c5={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function u5(t=c5){function A(a){return t[a]}function e(a){return`#${a.map(o=>Math.max(0,Math.min(o,255)).toString(16).padStart(2,"0")).join("")}`}let r;function n(){if(r)return r;r=[];for(let c=0;c<ki.length;c++)r.push(A(ki[c]));let a=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let h=0;h<6;h++)for(let g=0;g<6;g++)r.push(e([a[c],a[h],a[g]]));let o=8;for(let c=0;c<24;c++,o+=10)r.push(e([o,o,o]));return r}function i(a){return n()[a]}function s(a){switch(a.type){case"named":return A(a.name);case"rgb":return e(a.rgb);case"table":return i(a.index)}}return{value:s}}const h5={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function f5(t,A,e){const r=Sl(t,e),n=Xl(A),i=Object.fromEntries(ki.map(o=>{var g;const c=`terminal.ansi${o[0].toUpperCase()}${o.substring(1)}`,h=(g=t.colors)==null?void 0:g[c];return[o,h||h5[o]]})),s=u5(i),a=l5();return n.map(o=>a.parse(o[0]).map(c=>{let h,g;c.decorations.has("reverse")?(h=c.background?s.value(c.background):t.bg,g=c.foreground?s.value(c.foreground):t.fg):(h=c.foreground?s.value(c.foreground):t.fg,g=c.background?s.value(c.background):void 0),h=oi(h,r),g=oi(g,r),c.decorations.has("dim")&&(h=d5(h));let m=Wt.None;return c.decorations.has("bold")&&(m|=Wt.Bold),c.decorations.has("italic")&&(m|=Wt.Italic),c.decorations.has("underline")&&(m|=Wt.Underline),c.decorations.has("strikethrough")&&(m|=Wt.Strikethrough),{content:c.value,offset:o[1],color:h,bgColor:g,fontStyle:m}}))}function d5(t){const A=t.match(/#([0-9a-f]{3,8})/i);if(A){const r=A[1];if(r.length===8){const n=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${n}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const n=r[0],i=r[1],s=r[2],a=r[3],o=Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0");return`#${n}${n}${i}${i}${s}${s}${o}`}else if(r.length===3){const n=r[0],i=r[1],s=r[2];return`#${n}${n}${i}${i}${s}${s}80`}}}const e=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return e?`var(${e[1]}-dim)`:t}function $h(t,A,e={}){const{theme:r=t.getLoadedThemes()[0]}=e,n=t.resolveLangAlias(e.lang||"text");if(Vh(n)||Wh(r))return Xl(A).map(o=>[{content:o[0],offset:o[1]}]);const{theme:i,colorMap:s}=t.setTheme(r);if(n==="ansi")return f5(i,A,e);const a=t.getLanguage(e.lang||"text");if(e.grammarState){if(e.grammarState.lang!==a.name)throw new dt(`Grammar state language "${e.grammarState.lang}" does not match highlight language "${a.name}"`);if(!e.grammarState.themes.includes(i.name))throw new dt(`Grammar state themes "${e.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return p5(A,a,i,s,e)}function g5(...t){if(t.length===2)return Pa(t[1]);const[A,e,r={}]=t,{lang:n="text",theme:i=A.getLoadedThemes()[0]}=r;if(Vh(n)||Wh(i))throw new dt("Plain language does not have grammar state");if(n==="ansi")throw new dt("ANSI language does not have grammar state");const{theme:s,colorMap:a}=A.setTheme(i),o=A.getLanguage(n);return new Is(Xh(e,o,s,a,r).stateStack,o.name,s.name)}function p5(t,A,e,r,n){const i=Xh(t,A,e,r,n),s=new Is(i.stateStack,A.name,e.name);return Jl(i.tokens,s),i.tokens}function Xh(t,A,e,r,n){const i=Sl(e,n),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:a=500}=n,o=Xl(t);let c=n.grammarState?t5(n.grammarState,e.name)??eh:n.grammarContextCode!=null?Xh(n.grammarContextCode,A,e,r,{...n,grammarState:void 0,grammarContextCode:void 0}).stateStack:eh,h=[];const g=[];for(let m=0,f=o.length;m<f;m++){const[w,y]=o[m];if(w===""){h=[],g.push([]);continue}if(s>0&&w.length>=s){h=[],g.push([{content:w,offset:y,color:"",fontStyle:0}]);continue}let F,v,L;n.includeExplanation&&(F=A.tokenizeLine(w,c,a),v=F.tokens,L=0);const N=A.tokenizeLine2(w,c,a),_=N.tokens.length/2;for(let q=0;q<_;q++){const X=N.tokens[2*q],J=q+1<_?N.tokens[2*q+2]:w.length;if(X===J)continue;const G=N.tokens[2*q+1],k=oi(r[Es.getForeground(G)],i),Z=Es.getFontStyle(G),x={content:w.substring(X,J),offset:y+X,color:k,fontStyle:Z};if(n.includeExplanation){const S=[];if(n.includeExplanation!=="scopeName")for(const T of e.settings){let z;switch(typeof T.scope){case"string":z=T.scope.split(/,/).map(lA=>lA.trim());break;case"object":z=T.scope;break;default:continue}S.push({settings:T,selectors:z.map(lA=>lA.split(/ /))})}x.explanation=[];let K=0;for(;X+K<J;){const T=v[L],z=w.substring(T.startIndex,T.endIndex);K+=z.length,x.explanation.push({content:z,scopes:n.includeExplanation==="scopeName"?m5(T.scopes):B5(S,T.scopes)}),L+=1}}h.push(x)}g.push(h),h=[],c=N.ruleStack}return{tokens:g,stateStack:c}}function m5(t){return t.map(A=>({scopeName:A}))}function B5(t,A){const e=[];for(let r=0,n=A.length;r<n;r++){const i=A[r];e[r]={scopeName:i,themeMatches:v5(t,i,A.slice(0,r))}}return e}function fd(t,A){return t===A||A.substring(0,t.length)===t&&A[t.length]==="."}function w5(t,A,e){if(!fd(t[t.length-1],A))return!1;let r=t.length-2,n=e.length-1;for(;r>=0&&n>=0;)fd(t[r],e[n])&&(r-=1),n-=1;return r===-1}function v5(t,A,e){const r=[];for(const{selectors:n,settings:i}of t)for(const s of n)if(w5(s,A,e)){r.push(i);break}return r}function g0(t,A,e){const r=Object.entries(e.themes).filter(o=>o[1]).map(o=>({color:o[0],theme:o[1]})),n=r.map(o=>{const c=$h(t,A,{...e,theme:o.theme}),h=Pa(c),g=typeof o.theme=="string"?o.theme:o.theme.name;return{tokens:c,state:h,theme:g}}),i=y5(...n.map(o=>o.tokens)),s=i[0].map((o,c)=>o.map((h,g)=>{const m={content:h.content,variants:{},offset:h.offset};return"includeExplanation"in e&&e.includeExplanation&&(m.explanation=h.explanation),i.forEach((f,w)=>{const{content:y,explanation:F,offset:v,...L}=f[c][g];m.variants[r[w].color]=L}),m})),a=n[0].state?new Is(Object.fromEntries(n.map(o=>{var c;return[o.theme,(c=o.state)==null?void 0:c.getInternalStack(o.theme)]})),n[0].state.lang):void 0;return a&&Jl(s,a),s}function y5(...t){const A=t.map(()=>[]),e=t.length;for(let r=0;r<t[0].length;r++){const n=t.map(o=>o[r]),i=A.map(()=>[]);A.forEach((o,c)=>o.push(i[c]));const s=n.map(()=>0),a=n.map(o=>o[0]);for(;a.every(o=>o);){const o=Math.min(...a.map(c=>c.content.length));for(let c=0;c<e;c++){const h=a[c];h.content.length===o?(i[c].push(h),s[c]+=1,a[c]=n[c][s[c]]):(i[c].push({...h,content:h.content.slice(0,o)}),a[c]={...h,content:h.content.slice(o),offset:h.offset+o})}}}return A}function Nl(t,A,e){let r,n,i,s,a,o;if("themes"in e){const{defaultColor:c="light",cssVariablePrefix:h="--shiki-",colorsRendering:g="css-vars"}=e,m=Object.entries(e.themes).filter(v=>v[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,L)=>v.color===c?-1:L.color===c?1:0);if(m.length===0)throw new dt("`themes` option must not be empty");const f=g0(t,A,e);if(o=Pa(f),c&&zh!==c&&!m.find(v=>v.color===c))throw new dt(`\`themes\` option must contain the defaultColor key \`${c}\``);const w=m.map(v=>t.getTheme(v.theme)),y=m.map(v=>v.color);i=f.map(v=>v.map(L=>A5(L,y,h,c,g))),o&&Jl(i,o);const F=m.map(v=>Sl(v.theme,e));n=dd(m,w,F,h,c,"fg",g),r=dd(m,w,F,h,c,"bg",g),s=`shiki-themes ${w.map(v=>v.name).join(" ")}`,a=c?void 0:[n,r].join(";")}else if("theme"in e){const c=Sl(e.theme,e);i=$h(t,A,e);const h=t.getTheme(e.theme);r=oi(h.bg,c),n=oi(h.fg,c),s=h.name,o=Pa(i)}else throw new dt("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:n,bg:r,themeName:s,rootStyle:a,grammarState:o}}function dd(t,A,e,r,n,i,s){return t.map((a,o)=>{const c=oi(A[o][i],e[o])||"inherit",h=`${r+a.color}${i==="bg"?"-bg":""}:${c}`;if(o===0&&n){if(n===zh&&t.length>1){const g=t.findIndex(y=>y.color==="light"),m=t.findIndex(y=>y.color==="dark");if(g===-1||m===-1)throw new dt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const f=oi(A[g][i],e[g])||"inherit",w=oi(A[m][i],e[m])||"inherit";return`light-dark(${f}, ${w});${h}`}return c}return s==="css-vars"?h:null}).filter(a=>!!a).join(";")}function Hl(t,A,e,r={meta:{},options:e,codeToHast:(n,i)=>Hl(t,n,i),codeToTokens:(n,i)=>Nl(t,n,i)}){var w,y;let n=A;for(const F of _l(e))n=((w=F.preprocess)==null?void 0:w.call(r,n,e))||n;let{tokens:i,fg:s,bg:a,themeName:o,rootStyle:c,grammarState:h}=Nl(t,n,e);const{mergeWhitespaces:g=!0,mergeSameStyleTokens:m=!1}=e;g===!0?i=b5(i):g==="never"&&(i=F5(i)),m&&(i=Q5(i));const f={...r,get source(){return n}};for(const F of _l(e))i=((y=F.tokens)==null?void 0:y.call(f,i))||i;return C5(i,{...e,fg:s,bg:a,themeName:o,rootStyle:e.rootStyle===!1?!1:e.rootStyle??c},f,h)}function C5(t,A,e,r=Pa(t)){var y,F,v,L;const n=_l(A),i=[],s={type:"root",children:[]},{structure:a="classic",tabindex:o="0"}=A,c={class:`shiki ${A.themeName||""}`};A.rootStyle!==!1&&(A.rootStyle!=null?c.style=A.rootStyle:c.style=`background-color:${A.bg};color:${A.fg}`),o!==!1&&o!=null&&(c.tabindex=o.toString());for(const[N,_]of Object.entries(A.meta||{}))N.startsWith("_")||(c[N]=_);let h={type:"element",tagName:"pre",properties:c,children:[],data:A.data},g={type:"element",tagName:"code",properties:{},children:i};const m=[],f={...e,structure:a,addClassToHast:h0,get source(){return e.source},get tokens(){return t},get options(){return A},get root(){return s},get pre(){return h},get code(){return g},get lines(){return m}};if(t.forEach((N,_)=>{var J,G;_&&(a==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&i.push({type:"text",value:`
115
- `}));let q={type:"element",tagName:"span",properties:{class:"line"},children:[]},X=0;for(const k of N){let Z={type:"element",tagName:"span",properties:{...k.htmlAttrs},children:[{type:"text",value:k.content}]};const x=sh(k.htmlStyle||Il(k));x&&(Z.properties.style=x);for(const S of n)Z=((J=S==null?void 0:S.span)==null?void 0:J.call(f,Z,_+1,X,q,k))||Z;a==="inline"?s.children.push(Z):a==="classic"&&q.children.push(Z),X+=k.content.length}if(a==="classic"){for(const k of n)q=((G=k==null?void 0:k.line)==null?void 0:G.call(f,q,_+1))||q;m.push(q),i.push(q)}else a==="inline"&&m.push(q)}),a==="classic"){for(const N of n)g=((y=N==null?void 0:N.code)==null?void 0:y.call(f,g))||g;h.children.push(g);for(const N of n)h=((F=N==null?void 0:N.pre)==null?void 0:F.call(f,h))||h;s.children.push(h)}else if(a==="inline"){const N=[];let _={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const J of s.children)J.type==="element"&&J.tagName==="br"?(N.push(_),_={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(J.type==="element"||J.type==="text")&&_.children.push(J);N.push(_);let X={type:"element",tagName:"code",properties:{},children:N};for(const J of n)X=((v=J==null?void 0:J.code)==null?void 0:v.call(f,X))||X;s.children=[];for(let J=0;J<X.children.length;J++){J>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});const G=X.children[J];G.type==="element"&&s.children.push(...G.children)}}let w=s;for(const N of n)w=((L=N==null?void 0:N.root)==null?void 0:L.call(f,w))||w;return r&&Jl(w,r),w}function b5(t){return t.map(A=>{const e=[];let r="",n;return A.forEach((i,s)=>{const o=!(i.fontStyle&&(i.fontStyle&Wt.Underline||i.fontStyle&Wt.Strikethrough));o&&i.content.match(/^\s+$/)&&A[s+1]?(n===void 0&&(n=i.offset),r+=i.content):r?(o?e.push({...i,offset:n,content:r+i.content}):e.push({content:r,offset:n},i),n=void 0,r=""):e.push(i)}),e})}function F5(t){return t.map(A=>A.flatMap(e=>{if(e.content.match(/^\s+$/))return e;const r=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return e;const[,n,i,s]=r;if(!n&&!s)return e;const a=[{...e,offset:e.offset+n.length,content:i}];return n&&a.unshift({content:n,offset:e.offset}),s&&a.push({content:s,offset:e.offset+n.length+i.length}),a}))}function Q5(t){return t.map(A=>{const e=[];for(const r of A){if(e.length===0){e.push({...r});continue}const n=e[e.length-1],i=sh(n.htmlStyle||Il(n)),s=sh(r.htmlStyle||Il(r)),a=n.fontStyle&&(n.fontStyle&Wt.Underline||n.fontStyle&Wt.Strikethrough),o=r.fontStyle&&(r.fontStyle&Wt.Underline||r.fontStyle&Wt.Strikethrough);!a&&!o&&i===s?n.content+=r.content:e.push({...r})}return e})}const U5=Vw;function x5(t,A,e){var i;const r={meta:{},options:e,codeToHast:(s,a)=>Hl(t,s,a),codeToTokens:(s,a)=>Nl(t,s,a)};let n=U5(Hl(t,A,e,r));for(const s of _l(e))n=((i=s.postprocess)==null?void 0:i.call(r,n,e))||n;return n}const gd={light:"#333333",dark:"#bbbbbb"},pd={light:"#fffffe",dark:"#1e1e1e"},md="__shiki_resolved";function Jh(t){var a,o,c,h,g;if(t!=null&&t[md])return t;const A={...t};A.tokenColors&&!A.settings&&(A.settings=A.tokenColors,delete A.tokenColors),A.type||(A.type="dark"),A.colorReplacements={...A.colorReplacements},A.settings||(A.settings=[]);let{bg:e,fg:r}=A;if(!e||!r){const m=A.settings?A.settings.find(f=>!f.name&&!f.scope):void 0;(a=m==null?void 0:m.settings)!=null&&a.foreground&&(r=m.settings.foreground),(o=m==null?void 0:m.settings)!=null&&o.background&&(e=m.settings.background),!r&&((c=A==null?void 0:A.colors)!=null&&c["editor.foreground"])&&(r=A.colors["editor.foreground"]),!e&&((h=A==null?void 0:A.colors)!=null&&h["editor.background"])&&(e=A.colors["editor.background"]),r||(r=A.type==="light"?gd.light:gd.dark),e||(e=A.type==="light"?pd.light:pd.dark),A.fg=r,A.bg=e}A.settings[0]&&A.settings[0].settings&&!A.settings[0].scope||A.settings.unshift({settings:{foreground:A.fg,background:A.bg}});let n=0;const i=new Map;function s(m){var w;if(i.has(m))return i.get(m);n+=1;const f=`#${n.toString(16).padStart(8,"0").toLowerCase()}`;return(w=A.colorReplacements)!=null&&w[`#${f}`]?s(m):(i.set(m,f),f)}A.settings=A.settings.map(m=>{var F,v;const f=((F=m.settings)==null?void 0:F.foreground)&&!m.settings.foreground.startsWith("#"),w=((v=m.settings)==null?void 0:v.background)&&!m.settings.background.startsWith("#");if(!f&&!w)return m;const y={...m,settings:{...m.settings}};if(f){const L=s(m.settings.foreground);A.colorReplacements[L]=m.settings.foreground,y.settings.foreground=L}if(w){const L=s(m.settings.background);A.colorReplacements[L]=m.settings.background,y.settings.background=L}return y});for(const m of Object.keys(A.colors||{}))if((m==="editor.foreground"||m==="editor.background"||m.startsWith("terminal.ansi"))&&!((g=A.colors[m])!=null&&g.startsWith("#"))){const f=s(A.colors[m]);A.colorReplacements[f]=A.colors[m],A.colors[m]=f}return Object.defineProperty(A,md,{enumerable:!1,writable:!1,value:!0}),A}async function p0(t){return Array.from(new Set((await Promise.all(t.filter(A=>!c0(A)).map(async A=>await l0(A).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function m0(t){return(await Promise.all(t.map(async e=>u0(e)?null:Jh(await l0(e))))).filter(e=>!!e)}let E5=3;function L5(t,A=3){A>E5||console.trace(`[SHIKI DEPRECATE]: ${t}`)}let Bs=class extends Error{constructor(A){super(A),this.name="ShikiError"}};function B0(t,A){if(!A)return t;if(A[t]){const e=new Set([t]);for(;A[t];){if(t=A[t],e.has(t))throw new Bs(`Circular alias \`${Array.from(e).join(" -> ")} -> ${t}\``);e.add(t)}}return t}class S5 extends _2{constructor(e,r,n,i={}){super(e);oA(this,"_resolvedThemes",new Map);oA(this,"_resolvedGrammars",new Map);oA(this,"_langMap",new Map);oA(this,"_langGraph",new Map);oA(this,"_textmateThemeCache",new WeakMap);oA(this,"_loadedThemesCache",null);oA(this,"_loadedLanguagesCache",null);this._resolver=e,this._themes=r,this._langs=n,this._alias=i,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const r=Jh(e);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let r=this._textmateThemeCache.get(e);r||(r=Ql.createFromRawTheme(e),this._textmateThemeCache.set(e,r)),this._syncRegistry.setTheme(r)}getGrammar(e){return e=B0(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){var s,a,o,c;if(this.getGrammar(e.name))return;const r=new Set([...this._langMap.values()].filter(h=>{var g;return(g=h.embeddedLangsLazy)==null?void 0:g.includes(e.name)}));this._resolver.addLanguage(e);const n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const i=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(h=>{this._alias[h]=e.name}),this._loadedLanguagesCache=null,r.size)for(const h of r)this._resolvedGrammars.delete(h.name),this._loadedLanguagesCache=null,(a=(s=this._syncRegistry)==null?void 0:s._injectionGrammars)==null||a.delete(h.scopeName),(c=(o=this._syncRegistry)==null?void 0:o._grammars)==null||c.delete(h.scopeName),this.loadLanguage(this._langMap.get(h.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const i of e)this.resolveEmbeddedLanguages(i);const r=Array.from(this._langGraph.entries()),n=r.filter(([i,s])=>!s);if(n.length){const i=r.filter(([s,a])=>{if(!a)return!1;const o=a.embeddedLanguages||a.embeddedLangs;return o==null?void 0:o.some(c=>n.map(([h])=>h).includes(c))}).filter(s=>!n.includes(s));throw new Bs(`Missing languages ${n.map(([s])=>`\`${s}\``).join(", ")}, required by ${i.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[i,s]of r)this._resolver.addLanguage(s);for(const[i,s]of r)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const r=e.embeddedLanguages??e.embeddedLangs;if(r)for(const n of r)this._langGraph.set(n,this._langMap.get(n))}}class I5{constructor(A,e){oA(this,"_langs",new Map);oA(this,"_scopeToLang",new Map);oA(this,"_injections",new Map);oA(this,"_onigLib");this._onigLib={createOnigScanner:r=>A.createScanner(r),createOnigString:r=>A.createString(r)},e.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(A){return this._langs.get(A)}loadGrammar(A){return this._scopeToLang.get(A)}addLanguage(A){this._langs.set(A.name,A),A.aliases&&A.aliases.forEach(e=>{this._langs.set(e,A)}),this._scopeToLang.set(A.scopeName,A),A.injectTo&&A.injectTo.forEach(e=>{this._injections.get(e)||this._injections.set(e,[]),this._injections.get(e).push(A.scopeName)})}getInjections(A){const e=A.split(".");let r=[];for(let n=1;n<=e.length;n++){const i=e.slice(0,n).join(".");r=[...r,...this._injections.get(i)||[]]}return r}}let oa=0;function _5(t){oa+=1,t.warnings!==!1&&oa>=10&&oa%10===0&&console.warn(`[Shiki] ${oa} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let A=!1;if(!t.engine)throw new Bs("`engine` option is required for synchronous mode");const e=(t.langs||[]).flat(1),r=(t.themes||[]).flat(1).map(Jh),n=new I5(t.engine,e),i=new S5(n,r,e,t.langAlias);let s;function a(N){return B0(N,t.langAlias)}function o(N){v();const _=i.getGrammar(typeof N=="string"?N:N.name);if(!_)throw new Bs(`Language \`${N}\` not found, you may need to load it first`);return _}function c(N){if(N==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const _=i.getTheme(N);if(!_)throw new Bs(`Theme \`${N}\` not found, you may need to load it first`);return _}function h(N){v();const _=c(N);s!==N&&(i.setTheme(_),s=N);const q=i.getColorMap();return{theme:_,colorMap:q}}function g(){return v(),i.getLoadedThemes()}function m(){return v(),i.getLoadedLanguages()}function f(...N){v(),i.loadLanguages(N.flat(1))}async function w(...N){return f(await p0(N))}function y(...N){v();for(const _ of N.flat(1))i.loadTheme(_)}async function F(...N){return v(),y(await m0(N))}function v(){if(A)throw new Bs("Shiki instance has been disposed")}function L(){A||(A=!0,i.dispose(),oa-=1)}return{setTheme:h,getTheme:c,getLanguage:o,getLoadedThemes:g,getLoadedLanguages:m,resolveLangAlias:a,loadLanguage:w,loadLanguageSync:f,loadTheme:F,loadThemeSync:y,dispose:L,[Symbol.dispose]:L}}async function N5(t){t.engine||L5("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[A,e,r]=await Promise.all([m0(t.themes||[]),p0(t.langs||[]),t.engine]);return _5({...t,themes:A,langs:e,engine:r})}async function H5(t){const A=await N5(t);return{getLastGrammarState:(...e)=>g5(A,...e),codeToTokensBase:(e,r)=>$h(A,e,r),codeToTokensWithThemes:(e,r)=>g0(A,e,r),codeToTokens:(e,r)=>Nl(A,e,r),codeToHast:(e,r)=>Hl(A,e,r),codeToHtml:(e,r)=>x5(A,e,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...A,getInternalContext:()=>A}}function k5(t){const A=t.langs,e=t.themes,r=t.engine;async function n(i){function s(g){var m;if(typeof g=="string"){if(g=((m=i.langAlias)==null?void 0:m[g])||g,c0(g))return[];const f=A[g];if(!f)throw new dt(`Language \`${g}\` is not included in this bundle. You may want to load it from external source.`);return f}return g}function a(g){if(u0(g))return"none";if(typeof g=="string"){const m=e[g];if(!m)throw new dt(`Theme \`${g}\` is not included in this bundle. You may want to load it from external source.`);return m}return g}const o=(i.themes??[]).map(g=>a(g)),c=(i.langs??[]).map(g=>s(g)),h=await H5({engine:i.engine??r(),...i,themes:o,langs:c});return{...h,loadLanguage(...g){return h.loadLanguage(...g.map(s))},loadTheme(...g){return h.loadTheme(...g.map(a))},getBundledLanguages(){return A},getBundledThemes(){return e}}}return n}const w0=[{id:"abap",name:"ABAP",import:()=>Promise.resolve().then(()=>require("./abap-DV7Q1lGP.js"))},{id:"actionscript-3",name:"ActionScript",import:()=>Promise.resolve().then(()=>require("./actionscript-3-DXOxkRa2.js"))},{id:"ada",name:"Ada",import:()=>Promise.resolve().then(()=>require("./ada-D46EKCNf.js"))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.resolve().then(()=>require("./angular-html-JXV_E8IE.js")).then(t=>t.angularHtml)},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.resolve().then(()=>require("./angular-ts-ul8EvQZm.js"))},{id:"apache",name:"Apache Conf",import:()=>Promise.resolve().then(()=>require("./apache-DL1xuH1f.js"))},{id:"apex",name:"Apex",import:()=>Promise.resolve().then(()=>require("./apex-6AM9YZbQ.js"))},{id:"apl",name:"APL",import:()=>Promise.resolve().then(()=>require("./apl-BdW4yp7x.js"))},{id:"applescript",name:"AppleScript",import:()=>Promise.resolve().then(()=>require("./applescript-COilsSrZ.js"))},{id:"ara",name:"Ara",import:()=>Promise.resolve().then(()=>require("./ara-B6Lpq1YJ.js"))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>Promise.resolve().then(()=>require("./asciidoc-DcKqW72n.js"))},{id:"asm",name:"Assembly",import:()=>Promise.resolve().then(()=>require("./asm-DYMFy-sD.js"))},{id:"astro",name:"Astro",import:()=>Promise.resolve().then(()=>require("./astro-BAqad-WM.js"))},{id:"awk",name:"AWK",import:()=>Promise.resolve().then(()=>require("./awk-IEszImW6.js"))},{id:"ballerina",name:"Ballerina",import:()=>Promise.resolve().then(()=>require("./ballerina-Dr6dU4hP.js"))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>Promise.resolve().then(()=>require("./bat-DGkUhhn2.js"))},{id:"beancount",name:"Beancount",import:()=>Promise.resolve().then(()=>require("./beancount-Bv1Sweoy.js"))},{id:"berry",name:"Berry",aliases:["be"],import:()=>Promise.resolve().then(()=>require("./berry-DEMs4LK_.js"))},{id:"bibtex",name:"BibTeX",import:()=>Promise.resolve().then(()=>require("./bibtex-BgA36Z3k.js"))},{id:"bicep",name:"Bicep",import:()=>Promise.resolve().then(()=>require("./bicep-DL0zb-7W.js"))},{id:"blade",name:"Blade",import:()=>Promise.resolve().then(()=>require("./blade-CgjUlvXO.js"))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>Promise.resolve().then(()=>require("./bsl-MeEzPwnu.js"))},{id:"c",name:"C",import:()=>Promise.resolve().then(()=>require("./c-CtlmKnPF.js"))},{id:"c3",name:"C3",import:()=>Promise.resolve().then(()=>require("./c3-DtfRRWXN.js"))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>Promise.resolve().then(()=>require("./cadence-DcbmM5v3.js"))},{id:"cairo",name:"Cairo",import:()=>Promise.resolve().then(()=>require("./cairo-Bl3vCTfQ.js"))},{id:"clarity",name:"Clarity",import:()=>Promise.resolve().then(()=>require("./clarity-gPuvqtpF.js"))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>Promise.resolve().then(()=>require("./clojure-OUsr1SUl.js"))},{id:"cmake",name:"CMake",import:()=>Promise.resolve().then(()=>require("./cmake-jM6P58qY.js"))},{id:"cobol",name:"COBOL",import:()=>Promise.resolve().then(()=>require("./cobol-DReJOyN2.js"))},{id:"codeowners",name:"CODEOWNERS",import:()=>Promise.resolve().then(()=>require("./codeowners-QhPK6lIJ.js"))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>Promise.resolve().then(()=>require("./codeql-D9-TdUN8.js"))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.resolve().then(()=>require("./coffee-CUyQUc3M.js"))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>Promise.resolve().then(()=>require("./common-lisp-C77gR-8i.js"))},{id:"coq",name:"Coq",import:()=>Promise.resolve().then(()=>require("./coq-vlPdR5hP.js"))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.resolve().then(()=>require("./cpp-ChNdME6I.js"))},{id:"crystal",name:"Crystal",import:()=>Promise.resolve().then(()=>require("./crystal-CVTji_sR.js"))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>Promise.resolve().then(()=>require("./csharp-BUkAIRXW.js"))},{id:"css",name:"CSS",import:()=>Promise.resolve().then(()=>require("./css-Do0mp2lm.js"))},{id:"csv",name:"CSV",import:()=>Promise.resolve().then(()=>require("./csv-DiEdJzSJ.js"))},{id:"cue",name:"CUE",import:()=>Promise.resolve().then(()=>require("./cue-D1vJRJEx.js"))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>Promise.resolve().then(()=>require("./cypher-atSM3NsM.js"))},{id:"d",name:"D",import:()=>Promise.resolve().then(()=>require("./d-2qe3NhmZ.js"))},{id:"dart",name:"Dart",import:()=>Promise.resolve().then(()=>require("./dart-Ds0_0fwe.js"))},{id:"dax",name:"DAX",import:()=>Promise.resolve().then(()=>require("./dax-DbkQa40E.js"))},{id:"desktop",name:"Desktop",import:()=>Promise.resolve().then(()=>require("./desktop-tn3MFXCZ.js"))},{id:"diff",name:"Diff",import:()=>Promise.resolve().then(()=>require("./diff-CA31fCOg.js"))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>Promise.resolve().then(()=>require("./docker-zJpMwmYa.js"))},{id:"dotenv",name:"dotEnv",import:()=>Promise.resolve().then(()=>require("./dotenv-DpcNCNek.js"))},{id:"dream-maker",name:"Dream Maker",import:()=>Promise.resolve().then(()=>require("./dream-maker-BkijXDkm.js"))},{id:"edge",name:"Edge",import:()=>Promise.resolve().then(()=>require("./edge-B28yp_Zk.js"))},{id:"elixir",name:"Elixir",import:()=>Promise.resolve().then(()=>require("./elixir-D7-1KNL2.js"))},{id:"elm",name:"Elm",import:()=>Promise.resolve().then(()=>require("./elm-BkJa-nJb.js"))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>Promise.resolve().then(()=>require("./emacs-lisp-C1UCIjUO.js"))},{id:"erb",name:"ERB",import:()=>Promise.resolve().then(()=>require("./erb-DJ1tHjRo.js"))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.resolve().then(()=>require("./erlang-DztDLzIS.js"))},{id:"fennel",name:"Fennel",import:()=>Promise.resolve().then(()=>require("./fennel-Bz9-EMMc.js"))},{id:"fish",name:"Fish",import:()=>Promise.resolve().then(()=>require("./fish-DwmQKRZi.js"))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>Promise.resolve().then(()=>require("./fluent-CJtpNuaO.js"))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.resolve().then(()=>require("./fortran-fixed-form-CM5372im.js"))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>Promise.resolve().then(()=>require("./fortran-free-form-Cs4ztolN.js"))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.resolve().then(()=>require("./fsharp-C8GKou_e.js"))},{id:"gdresource",name:"GDResource",import:()=>Promise.resolve().then(()=>require("./gdresource-Bx-5U3z2.js"))},{id:"gdscript",name:"GDScript",import:()=>Promise.resolve().then(()=>require("./gdscript-DSegQKMB.js"))},{id:"gdshader",name:"GDShader",import:()=>Promise.resolve().then(()=>require("./gdshader-DsmqQl4t.js"))},{id:"genie",name:"Genie",import:()=>Promise.resolve().then(()=>require("./genie-Dy2rU8CF.js"))},{id:"gherkin",name:"Gherkin",import:()=>Promise.resolve().then(()=>require("./gherkin-BmiEVBJ1.js"))},{id:"git-commit",name:"Git Commit Message",import:()=>Promise.resolve().then(()=>require("./git-commit-B0NDtut1.js"))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.resolve().then(()=>require("./git-rebase-lJEbayNx.js"))},{id:"gleam",name:"Gleam",import:()=>Promise.resolve().then(()=>require("./gleam-DHVuTCr7.js"))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.resolve().then(()=>require("./glimmer-js-CxLlFUHs.js"))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.resolve().then(()=>require("./glimmer-ts-C8Spe63v.js"))},{id:"glsl",name:"GLSL",import:()=>Promise.resolve().then(()=>require("./glsl-BcHRsW10.js"))},{id:"gn",name:"GN",import:()=>Promise.resolve().then(()=>require("./gn-0WGnAyGi.js"))},{id:"gnuplot",name:"Gnuplot",import:()=>Promise.resolve().then(()=>require("./gnuplot-CDPKvI9X.js"))},{id:"go",name:"Go",import:()=>Promise.resolve().then(()=>require("./go-epHseFUa.js"))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.resolve().then(()=>require("./graphql-BO3Jc_L3.js"))},{id:"groovy",name:"Groovy",import:()=>Promise.resolve().then(()=>require("./groovy-D7VuDBXz.js"))},{id:"hack",name:"Hack",import:()=>Promise.resolve().then(()=>require("./hack-Dr4YFULU.js"))},{id:"haml",name:"Ruby Haml",import:()=>Promise.resolve().then(()=>require("./haml-DjC-8E5i.js"))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.resolve().then(()=>require("./handlebars-vZrL3oRU.js"))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>Promise.resolve().then(()=>require("./haskell-BShesV2P.js"))},{id:"haxe",name:"Haxe",import:()=>Promise.resolve().then(()=>require("./haxe-Bo5XuRS0.js"))},{id:"hcl",name:"HashiCorp HCL",import:()=>Promise.resolve().then(()=>require("./hcl-CrZnvm-1.js"))},{id:"hjson",name:"Hjson",import:()=>Promise.resolve().then(()=>require("./hjson-CEESwTUP.js"))},{id:"hlsl",name:"HLSL",import:()=>Promise.resolve().then(()=>require("./hlsl-CyvYRIb9.js"))},{id:"html",name:"HTML",import:()=>Promise.resolve().then(()=>require("./html-Cub4lUvx.js"))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.resolve().then(()=>require("./html-derivative-DbGZSkO4.js"))},{id:"http",name:"HTTP",import:()=>Promise.resolve().then(()=>require("./http-J4eraUTU.js"))},{id:"hurl",name:"Hurl",import:()=>Promise.resolve().then(()=>require("./hurl-1DL8OH_r.js"))},{id:"hxml",name:"HXML",import:()=>Promise.resolve().then(()=>require("./hxml-DrnMPCCd.js"))},{id:"hy",name:"Hy",import:()=>Promise.resolve().then(()=>require("./hy-a1E2Ed6P.js"))},{id:"imba",name:"Imba",import:()=>Promise.resolve().then(()=>require("./imba-CR1Q6r17.js"))},{id:"ini",name:"INI",aliases:["properties"],import:()=>Promise.resolve().then(()=>require("./ini-Dpu3Xy2p.js"))},{id:"java",name:"Java",import:()=>Promise.resolve().then(()=>require("./java--6gf61wy.js"))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>Promise.resolve().then(()=>require("./javascript-DgmXW4Ha.js"))},{id:"jinja",name:"Jinja",import:()=>Promise.resolve().then(()=>require("./jinja-CJxRwHVK.js"))},{id:"jison",name:"Jison",import:()=>Promise.resolve().then(()=>require("./jison-CH6PZfPk.js"))},{id:"json",name:"JSON",import:()=>Promise.resolve().then(()=>require("./json-YkPizm35.js"))},{id:"json5",name:"JSON5",import:()=>Promise.resolve().then(()=>require("./json5-CCgFZiQn.js"))},{id:"jsonc",name:"JSON with Comments",import:()=>Promise.resolve().then(()=>require("./jsonc-CKPHIcXW.js"))},{id:"jsonl",name:"JSON Lines",import:()=>Promise.resolve().then(()=>require("./jsonl-Dq56Hab-.js"))},{id:"jsonnet",name:"Jsonnet",import:()=>Promise.resolve().then(()=>require("./jsonnet-Csh7E68F.js"))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>Promise.resolve().then(()=>require("./jssm-D0M9iZPY.js"))},{id:"jsx",name:"JSX",import:()=>Promise.resolve().then(()=>require("./jsx-DLX6UGgg.js"))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.resolve().then(()=>require("./julia-DOO7NZhy.js"))},{id:"kdl",name:"KDL",import:()=>Promise.resolve().then(()=>require("./kdl-CDG1p2Qi.js"))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>Promise.resolve().then(()=>require("./kotlin-BHZjvNqT.js"))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>Promise.resolve().then(()=>require("./kusto-C6kOQWT0.js"))},{id:"latex",name:"LaTeX",import:()=>Promise.resolve().then(()=>require("./latex-BkUAME40.js"))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>Promise.resolve().then(()=>require("./lean-DvVQmxVK.js"))},{id:"less",name:"Less",import:()=>Promise.resolve().then(()=>require("./less-Dtg8mm6P.js"))},{id:"liquid",name:"Liquid",import:()=>Promise.resolve().then(()=>require("./liquid-D2h0MxA-.js"))},{id:"llvm",name:"LLVM IR",import:()=>Promise.resolve().then(()=>require("./llvm-DcRvQ_r8.js"))},{id:"log",name:"Log file",import:()=>Promise.resolve().then(()=>require("./log-CjTZ0gSB.js"))},{id:"logo",name:"Logo",import:()=>Promise.resolve().then(()=>require("./logo-BAktp_5i.js"))},{id:"lua",name:"Lua",import:()=>Promise.resolve().then(()=>require("./lua-7_7huFMq.js"))},{id:"luau",name:"Luau",import:()=>Promise.resolve().then(()=>require("./luau-BMXmwtw0.js"))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>Promise.resolve().then(()=>require("./make-NcdIe21U.js"))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>Promise.resolve().then(()=>require("./markdown-Byu9Sdmq.js"))},{id:"marko",name:"Marko",import:()=>Promise.resolve().then(()=>require("./marko-BUUK5Bjn.js"))},{id:"matlab",name:"MATLAB",import:()=>Promise.resolve().then(()=>require("./matlab-CHTOL9Kx.js"))},{id:"mdc",name:"MDC",import:()=>Promise.resolve().then(()=>require("./mdc-DYb1IR0A.js"))},{id:"mdx",name:"MDX",import:()=>Promise.resolve().then(()=>require("./mdx-CjwI68TB.js"))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>Promise.resolve().then(()=>require("./mermaid-BXSwQYo5.js"))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>Promise.resolve().then(()=>require("./mipsasm-BSlRcFIy.js"))},{id:"mojo",name:"Mojo",import:()=>Promise.resolve().then(()=>require("./mojo-D2tXKFxS.js"))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>Promise.resolve().then(()=>require("./moonbit-BweIWWUc.js"))},{id:"move",name:"Move",import:()=>Promise.resolve().then(()=>require("./move-Bm1vlCWg.js"))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>Promise.resolve().then(()=>require("./narrat-CBeKHgTl.js"))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>Promise.resolve().then(()=>require("./nextflow-CM8Ed358.js"))},{id:"nginx",name:"Nginx",import:()=>Promise.resolve().then(()=>require("./nginx-F8v4LkHE.js"))},{id:"nim",name:"Nim",import:()=>Promise.resolve().then(()=>require("./nim-Bz82v_0I.js"))},{id:"nix",name:"Nix",import:()=>Promise.resolve().then(()=>require("./nix-BOiBJUDf.js"))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>Promise.resolve().then(()=>require("./nushell-nGrB_wpI.js"))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>Promise.resolve().then(()=>require("./objective-c-RjkWwFge.js"))},{id:"objective-cpp",name:"Objective-C++",import:()=>Promise.resolve().then(()=>require("./objective-cpp-HnfhWwRe.js"))},{id:"ocaml",name:"OCaml",import:()=>Promise.resolve().then(()=>require("./ocaml-Cx8ewW_A.js"))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>Promise.resolve().then(()=>require("./openscad-D7eUrVPv.js"))},{id:"pascal",name:"Pascal",import:()=>Promise.resolve().then(()=>require("./pascal-DBu9vQ2o.js"))},{id:"perl",name:"Perl",import:()=>Promise.resolve().then(()=>require("./perl-BGWXz6Sf.js"))},{id:"php",name:"PHP",import:()=>Promise.resolve().then(()=>require("./php-BMqBbP55.js"))},{id:"pkl",name:"Pkl",import:()=>Promise.resolve().then(()=>require("./pkl-Dvyry4Rm.js"))},{id:"plsql",name:"PL/SQL",import:()=>Promise.resolve().then(()=>require("./plsql-IJkoPJ9P.js"))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>Promise.resolve().then(()=>require("./po-Rhu6MvnX.js"))},{id:"polar",name:"Polar",import:()=>Promise.resolve().then(()=>require("./polar-BtWqSUq2.js"))},{id:"postcss",name:"PostCSS",import:()=>Promise.resolve().then(()=>require("./postcss-Dh97DcaJ.js"))},{id:"powerquery",name:"PowerQuery",import:()=>Promise.resolve().then(()=>require("./powerquery-BGL6VIw7.js"))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>Promise.resolve().then(()=>require("./powershell-BiEPMjy-.js"))},{id:"prisma",name:"Prisma",import:()=>Promise.resolve().then(()=>require("./prisma-Dp473sn0.js"))},{id:"prolog",name:"Prolog",import:()=>Promise.resolve().then(()=>require("./prolog-N1U-3UeF.js"))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>Promise.resolve().then(()=>require("./proto-DMjUErYA.js"))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.resolve().then(()=>require("./pug-bTUJx3Z-.js"))},{id:"puppet",name:"Puppet",import:()=>Promise.resolve().then(()=>require("./puppet-cDQP_ZC_.js"))},{id:"purescript",name:"PureScript",import:()=>Promise.resolve().then(()=>require("./purescript-DMxb59gF.js"))},{id:"python",name:"Python",aliases:["py"],import:()=>Promise.resolve().then(()=>require("./python-s9jfVbew.js"))},{id:"qml",name:"QML",import:()=>Promise.resolve().then(()=>require("./qml-CDzfIfOz.js"))},{id:"qmldir",name:"QML Directory",import:()=>Promise.resolve().then(()=>require("./qmldir-DNF9H2ir.js"))},{id:"qss",name:"Qt Style Sheets",import:()=>Promise.resolve().then(()=>require("./qss-DwA_oiAM.js"))},{id:"r",name:"R",import:()=>Promise.resolve().then(()=>require("./r-DAqIyZhh.js"))},{id:"racket",name:"Racket",import:()=>Promise.resolve().then(()=>require("./racket-D4laxZit.js"))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>Promise.resolve().then(()=>require("./raku-DHySPsLw.js"))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.resolve().then(()=>require("./razor-DqXh8oK-.js"))},{id:"reg",name:"Windows Registry Script",import:()=>Promise.resolve().then(()=>require("./reg-CevkCKuZ.js"))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>Promise.resolve().then(()=>require("./regexp-DabTWNLE.js"))},{id:"rel",name:"Rel",import:()=>Promise.resolve().then(()=>require("./rel-BS5APza7.js"))},{id:"riscv",name:"RISC-V",import:()=>Promise.resolve().then(()=>require("./riscv-BnGFr6V7.js"))},{id:"rosmsg",name:"ROS Interface",import:()=>Promise.resolve().then(()=>require("./rosmsg-C7VSFzUC.js"))},{id:"rst",name:"reStructuredText",import:()=>Promise.resolve().then(()=>require("./rst-CmsHU1oq.js"))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.resolve().then(()=>require("./ruby-DZp7Kthb.js"))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>Promise.resolve().then(()=>require("./rust-CNeTMPbB.js"))},{id:"sas",name:"SAS",import:()=>Promise.resolve().then(()=>require("./sas-Du-NqkIN.js"))},{id:"sass",name:"Sass",import:()=>Promise.resolve().then(()=>require("./sass-vyo-bUwh.js"))},{id:"scala",name:"Scala",import:()=>Promise.resolve().then(()=>require("./scala-ZSekD-8-.js"))},{id:"scheme",name:"Scheme",import:()=>Promise.resolve().then(()=>require("./scheme-vM0LdD-_.js"))},{id:"scss",name:"SCSS",import:()=>Promise.resolve().then(()=>require("./scss-C9Hu3bmX.js"))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>Promise.resolve().then(()=>require("./sdbl-DeWT5r4i.js"))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>Promise.resolve().then(()=>require("./shaderlab-DFNHwaQA.js"))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>Promise.resolve().then(()=>require("./shellscript-DYWjN7qW.js"))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.resolve().then(()=>require("./shellsession-5qZnCWz3.js"))},{id:"smalltalk",name:"Smalltalk",import:()=>Promise.resolve().then(()=>require("./smalltalk-BNs6hxu4.js"))},{id:"solidity",name:"Solidity",import:()=>Promise.resolve().then(()=>require("./solidity-uQuzgchP.js"))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.resolve().then(()=>require("./soy-BztBK6ie.js"))},{id:"sparql",name:"SPARQL",import:()=>Promise.resolve().then(()=>require("./sparql-Ds57h-sT.js"))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>Promise.resolve().then(()=>require("./splunk-CWPivao_.js"))},{id:"sql",name:"SQL",import:()=>Promise.resolve().then(()=>require("./sql-DhUUVgH1.js"))},{id:"ssh-config",name:"SSH Config",import:()=>Promise.resolve().then(()=>require("./ssh-config-B93wBIBa.js"))},{id:"stata",name:"Stata",import:()=>Promise.resolve().then(()=>require("./stata-B-erP_01.js"))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>Promise.resolve().then(()=>require("./stylus-B64Bt0D4.js"))},{id:"svelte",name:"Svelte",import:()=>Promise.resolve().then(()=>require("./svelte-CPZ3YGr5.js"))},{id:"swift",name:"Swift",import:()=>Promise.resolve().then(()=>require("./swift-BMbGdc3j.js"))},{id:"system-verilog",name:"SystemVerilog",import:()=>Promise.resolve().then(()=>require("./system-verilog-BFclLo9e.js"))},{id:"systemd",name:"Systemd Units",import:()=>Promise.resolve().then(()=>require("./systemd-Dtw7P4tb.js"))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>Promise.resolve().then(()=>require("./talonscript-D8SvZJVc.js"))},{id:"tasl",name:"Tasl",import:()=>Promise.resolve().then(()=>require("./tasl--DC4oX-L.js"))},{id:"tcl",name:"Tcl",import:()=>Promise.resolve().then(()=>require("./tcl-0Q0H86Yn.js"))},{id:"templ",name:"Templ",import:()=>Promise.resolve().then(()=>require("./templ-DADdpFDY.js"))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>Promise.resolve().then(()=>require("./terraform-C0RDrmWi.js"))},{id:"tex",name:"TeX",import:()=>Promise.resolve().then(()=>require("./tex-3QW4GAT7.js"))},{id:"toml",name:"TOML",import:()=>Promise.resolve().then(()=>require("./toml-Q64DoSvG.js"))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.resolve().then(()=>require("./ts-tags-DW4c6MY1.js"))},{id:"tsv",name:"TSV",import:()=>Promise.resolve().then(()=>require("./tsv-DqNGnuVj.js"))},{id:"tsx",name:"TSX",import:()=>Promise.resolve().then(()=>require("./tsx-DIpfUf9u.js"))},{id:"turtle",name:"Turtle",import:()=>Promise.resolve().then(()=>require("./turtle-DipIidr5.js"))},{id:"twig",name:"Twig",import:()=>Promise.resolve().then(()=>require("./twig-DE2P6STQ.js"))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>Promise.resolve().then(()=>require("./typescript-b48wo4zk.js"))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>Promise.resolve().then(()=>require("./typespec-DqXOE4_L.js"))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>Promise.resolve().then(()=>require("./typst-Cqq4j4V-.js"))},{id:"v",name:"V",import:()=>Promise.resolve().then(()=>require("./v-81C2s01-.js"))},{id:"vala",name:"Vala",import:()=>Promise.resolve().then(()=>require("./vala-CsAYdCD2.js"))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>Promise.resolve().then(()=>require("./vb-AiTMb16X.js"))},{id:"verilog",name:"Verilog",import:()=>Promise.resolve().then(()=>require("./verilog-AMohXZcN.js"))},{id:"vhdl",name:"VHDL",import:()=>Promise.resolve().then(()=>require("./vhdl-DIdR1NA5.js"))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>Promise.resolve().then(()=>require("./viml-D01eKeA4.js"))},{id:"vue",name:"Vue",import:()=>Promise.resolve().then(()=>require("./vue-BHXwUkEL.js"))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.resolve().then(()=>require("./vue-html-B4znhqmy.js"))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.resolve().then(()=>require("./vue-vine-CHNjSzYC.js"))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>Promise.resolve().then(()=>require("./vyper-DTzyzn3a.js"))},{id:"wasm",name:"WebAssembly",import:()=>Promise.resolve().then(()=>require("./wasm-Dp-QrJpp.js"))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>Promise.resolve().then(()=>require("./wenyan-CRNx8UP3.js"))},{id:"wgsl",name:"WGSL",import:()=>Promise.resolve().then(()=>require("./wgsl-DF5qc9dd.js"))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>Promise.resolve().then(()=>require("./wikitext-D7uzEIfK.js"))},{id:"wit",name:"WebAssembly Interface Types",import:()=>Promise.resolve().then(()=>require("./wit-BjWgLsJj.js"))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>Promise.resolve().then(()=>require("./wolfram-BR4t3Ffc.js"))},{id:"xml",name:"XML",import:()=>Promise.resolve().then(()=>require("./xml-Vhl3ZuN2.js"))},{id:"xsl",name:"XSL",import:()=>Promise.resolve().then(()=>require("./xsl-B2ZJiKs2.js"))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>Promise.resolve().then(()=>require("./yaml-XVBmpKh-.js"))},{id:"zenscript",name:"ZenScript",import:()=>Promise.resolve().then(()=>require("./zenscript-fNvwKexi.js"))},{id:"zig",name:"Zig",import:()=>Promise.resolve().then(()=>require("./zig-BAyIAcWK.js"))}],P5=Object.fromEntries(w0.map(t=>[t.id,t.import])),T5=Object.fromEntries(w0.flatMap(t=>{var A;return((A=t.aliases)==null?void 0:A.map(e=>[e,t.import]))||[]})),D5={...P5,...T5},R5=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>Promise.resolve().then(()=>require("./andromeeda-DVDxRwp5.js"))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>Promise.resolve().then(()=>require("./aurora-x-C5IpmIOG.js"))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./ayu-dark-CDpQIJw4.js"))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>Promise.resolve().then(()=>require("./catppuccin-frappe-Bn4lgmUk.js"))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>Promise.resolve().then(()=>require("./catppuccin-latte-BPtsb8jD.js"))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>Promise.resolve().then(()=>require("./catppuccin-macchiato-BLfpQWhT.js"))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>Promise.resolve().then(()=>require("./catppuccin-mocha-COMta283.js"))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>Promise.resolve().then(()=>require("./dark-plus-Cd5emcYO.js"))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>Promise.resolve().then(()=>require("./dracula-BNgwAJ-d.js"))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>Promise.resolve().then(()=>require("./dracula-soft-BHZ7sHFu.js"))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./everforest-dark-_sBMomR1.js"))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>Promise.resolve().then(()=>require("./everforest-light-H0xoYxl0.js"))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-BKL9xNgN.js"))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-default-Dsv5MuSi.js"))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-dimmed-CtB9hz8U.js"))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-high-contrast-BqZVM-jF.js"))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>Promise.resolve().then(()=>require("./github-light-BFTOhCbz.js"))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>Promise.resolve().then(()=>require("./github-light-default-BZoWH9dH.js"))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>Promise.resolve().then(()=>require("./github-light-high-contrast-Ks3kPGJU.js"))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>Promise.resolve().then(()=>require("./gruvbox-dark-hard-CUGefKS6.js"))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>Promise.resolve().then(()=>require("./gruvbox-dark-medium-BoKPlKfz.js"))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>Promise.resolve().then(()=>require("./gruvbox-dark-soft-DSrhOWeL.js"))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>Promise.resolve().then(()=>require("./gruvbox-light-hard-De4IuseP.js"))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>Promise.resolve().then(()=>require("./gruvbox-light-medium-CzMY3IEJ.js"))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>Promise.resolve().then(()=>require("./gruvbox-light-soft-U4iAIpWZ.js"))},{id:"houston",displayName:"Houston",type:"dark",import:()=>Promise.resolve().then(()=>require("./houston-T57H3gQZ.js"))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>Promise.resolve().then(()=>require("./kanagawa-dragon-BJZF7xDr.js"))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>Promise.resolve().then(()=>require("./kanagawa-lotus-BhgzmRV4.js"))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>Promise.resolve().then(()=>require("./kanagawa-wave-BgJip59C.js"))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>Promise.resolve().then(()=>require("./laserwave--izBLY1I.js"))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>Promise.resolve().then(()=>require("./light-plus-B5D0le0o.js"))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-Dj0-OyRN.js"))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-darker-Dvfs29ir.js"))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>Promise.resolve().then(()=>require("./material-theme-lighter-EU3ZGl_r.js"))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-ocean-px_3Pwqa.js"))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-palenight-38jxvsGX.js"))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./min-dark-tt5o_I5e.js"))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>Promise.resolve().then(()=>require("./min-light-tmTHl_CQ.js"))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>Promise.resolve().then(()=>require("./monokai-DMIxv6MM.js"))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>Promise.resolve().then(()=>require("./night-owl-BN78kThQ.js"))},{id:"nord",displayName:"Nord",type:"dark",import:()=>Promise.resolve().then(()=>require("./nord-Ca5AGUWc.js"))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>Promise.resolve().then(()=>require("./one-dark-pro-C09VQHwB.js"))},{id:"one-light",displayName:"One Light",type:"light",import:()=>Promise.resolve().then(()=>require("./one-light-020-h_lv.js"))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>Promise.resolve().then(()=>require("./plastic-r5piqq-S.js"))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>Promise.resolve().then(()=>require("./poimandres-BLP3NNjc.js"))},{id:"red",displayName:"Red",type:"dark",import:()=>Promise.resolve().then(()=>require("./red-BQGOv1D5.js"))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>Promise.resolve().then(()=>require("./rose-pine-CfBWm6WX.js"))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>Promise.resolve().then(()=>require("./rose-pine-dawn-CaZ5I2lt.js"))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>Promise.resolve().then(()=>require("./rose-pine-moon-Cql8LDLp.js"))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./slack-dark-akqwQ7ED.js"))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>Promise.resolve().then(()=>require("./slack-ochin-BoQQWmTv.js"))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>Promise.resolve().then(()=>require("./snazzy-light-D_IwRieF.js"))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./solarized-dark-gmm-WbDC.js"))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>Promise.resolve().then(()=>require("./solarized-light-DzcxRSZP.js"))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>Promise.resolve().then(()=>require("./synthwave-84-BBRLOmNT.js"))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>Promise.resolve().then(()=>require("./tokyo-night-GOhjzM5y.js"))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>Promise.resolve().then(()=>require("./vesper-B59Iw4gV.js"))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>Promise.resolve().then(()=>require("./vitesse-black-MF-1S1MG.js"))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./vitesse-dark-SIffJYSe.js"))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>Promise.resolve().then(()=>require("./vitesse-light-U63SkYGT.js"))}],O5=Object.fromEntries(R5.map(t=>[t.id,t.import]));class Yh extends Error{constructor(A){super(A),this.name="ShikiError"}}function M5(){return 2147483648}function K5(){return typeof performance<"u"?performance.now():Date.now()}const j5=(t,A)=>t+(A-t%A)%A;async function G5(t){let A,e;const r={};function n(f){e=f,r.HEAPU8=new Uint8Array(f),r.HEAPU32=new Uint32Array(f)}function i(f,w,y){r.HEAPU8.copyWithin(f,w,w+y)}function s(f){try{return A.grow(f-e.byteLength+65535>>>16),n(A.buffer),1}catch{}}function a(f){const w=r.HEAPU8.length;f=f>>>0;const y=M5();if(f>y)return!1;for(let F=1;F<=4;F*=2){let v=w*(1+.2/F);v=Math.min(v,f+100663296);const L=Math.min(y,j5(Math.max(f,v),65536));if(s(L))return!0}return!1}const o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(f,w,y=1024){const F=w+y;let v=w;for(;f[v]&&!(v>=F);)++v;if(v-w>16&&f.buffer&&o)return o.decode(f.subarray(w,v));let L="";for(;w<v;){let N=f[w++];if(!(N&128)){L+=String.fromCharCode(N);continue}const _=f[w++]&63;if((N&224)===192){L+=String.fromCharCode((N&31)<<6|_);continue}const q=f[w++]&63;if((N&240)===224?N=(N&15)<<12|_<<6|q:N=(N&7)<<18|_<<12|q<<6|f[w++]&63,N<65536)L+=String.fromCharCode(N);else{const X=N-65536;L+=String.fromCharCode(55296|X>>10,56320|X&1023)}}return L}function h(f,w){return f?c(r.HEAPU8,f,w):""}const g={emscripten_get_now:K5,emscripten_memcpy_big:i,emscripten_resize_heap:a,fd_write:()=>0};async function m(){const w=await t({env:g,wasi_snapshot_preview1:g});A=w.memory,n(A.buffer),Object.assign(r,w),r.UTF8ToString=h}return await m(),r}var q5=Object.defineProperty,V5=(t,A,e)=>A in t?q5(t,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[A]=e,Ct=(t,A,e)=>V5(t,typeof A!="symbol"?A+"":A,e);let xt=null;function W5(t){throw new Yh(t.UTF8ToString(t.getLastOnigError()))}class Yl{constructor(A){Ct(this,"utf16Length"),Ct(this,"utf8Length"),Ct(this,"utf16Value"),Ct(this,"utf8Value"),Ct(this,"utf16OffsetToUtf8"),Ct(this,"utf8OffsetToUtf16");const e=A.length,r=Yl._utf8ByteLength(A),n=r!==e,i=n?new Uint32Array(e+1):null;n&&(i[e]=r);const s=n?new Uint32Array(r+1):null;n&&(s[r]=e);const a=new Uint8Array(r);let o=0;for(let c=0;c<e;c++){const h=A.charCodeAt(c);let g=h,m=!1;if(h>=55296&&h<=56319&&c+1<e){const f=A.charCodeAt(c+1);f>=56320&&f<=57343&&(g=(h-55296<<10)+65536|f-56320,m=!0)}n&&(i[c]=o,m&&(i[c+1]=o),g<=127?s[o+0]=c:g<=2047?(s[o+0]=c,s[o+1]=c):g<=65535?(s[o+0]=c,s[o+1]=c,s[o+2]=c):(s[o+0]=c,s[o+1]=c,s[o+2]=c,s[o+3]=c)),g<=127?a[o++]=g:g<=2047?(a[o++]=192|(g&1984)>>>6,a[o++]=128|(g&63)>>>0):g<=65535?(a[o++]=224|(g&61440)>>>12,a[o++]=128|(g&4032)>>>6,a[o++]=128|(g&63)>>>0):(a[o++]=240|(g&1835008)>>>18,a[o++]=128|(g&258048)>>>12,a[o++]=128|(g&4032)>>>6,a[o++]=128|(g&63)>>>0),m&&c++}this.utf16Length=e,this.utf8Length=r,this.utf16Value=A,this.utf8Value=a,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=s}static _utf8ByteLength(A){let e=0;for(let r=0,n=A.length;r<n;r++){const i=A.charCodeAt(r);let s=i,a=!1;if(i>=55296&&i<=56319&&r+1<n){const o=A.charCodeAt(r+1);o>=56320&&o<=57343&&(s=(i-55296<<10)+65536|o-56320,a=!0)}s<=127?e+=1:s<=2047?e+=2:s<=65535?e+=3:e+=4,a&&r++}return e}createString(A){const e=A.omalloc(this.utf8Length);return A.HEAPU8.set(this.utf8Value,e),e}}const Zl=class nn{constructor(A){if(Ct(this,"id",++nn.LAST_ID),Ct(this,"_onigBinding"),Ct(this,"content"),Ct(this,"utf16Length"),Ct(this,"utf8Length"),Ct(this,"utf16OffsetToUtf8"),Ct(this,"utf8OffsetToUtf16"),Ct(this,"ptr"),!xt)throw new Yh("Must invoke loadWasm first.");this._onigBinding=xt,this.content=A;const e=new Yl(A);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!nn._sharedPtrInUse?(nn._sharedPtr||(nn._sharedPtr=xt.omalloc(1e4)),nn._sharedPtrInUse=!0,xt.HEAPU8.set(e.utf8Value,nn._sharedPtr),this.ptr=nn._sharedPtr):this.ptr=e.createString(xt)}convertUtf8OffsetToUtf16(A){return this.utf8OffsetToUtf16?A<0?0:A>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[A]:A}convertUtf16OffsetToUtf8(A){return this.utf16OffsetToUtf8?A<0?0:A>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[A]:A}dispose(){this.ptr===nn._sharedPtr?nn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Ct(Zl,"LAST_ID",0);Ct(Zl,"_sharedPtr",0);Ct(Zl,"_sharedPtrInUse",!1);let v0=Zl;class z5{constructor(A){if(Ct(this,"_onigBinding"),Ct(this,"_ptr"),!xt)throw new Yh("Must invoke loadWasm first.");const e=[],r=[];for(let a=0,o=A.length;a<o;a++){const c=new Yl(A[a]);e[a]=c.createString(xt),r[a]=c.utf8Length}const n=xt.omalloc(4*A.length);xt.HEAPU32.set(e,n/4);const i=xt.omalloc(4*A.length);xt.HEAPU32.set(r,i/4);const s=xt.createOnigScanner(n,i,A.length);for(let a=0,o=A.length;a<o;a++)xt.ofree(e[a]);xt.ofree(i),xt.ofree(n),s===0&&W5(xt),this._onigBinding=xt,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(A,e,r){let n=0;if(typeof r=="number"&&(n=r),typeof A=="string"){A=new v0(A);const i=this._findNextMatchSync(A,e,!1,n);return A.dispose(),i}return this._findNextMatchSync(A,e,!1,n)}_findNextMatchSync(A,e,r,n){const i=this._onigBinding,s=i.findNextOnigScannerMatch(this._ptr,A.id,A.ptr,A.utf8Length,A.convertUtf16OffsetToUtf8(e),n);if(s===0)return null;const a=i.HEAPU32;let o=s/4;const c=a[o++],h=a[o++],g=[];for(let m=0;m<h;m++){const f=A.convertUtf8OffsetToUtf16(a[o++]),w=A.convertUtf8OffsetToUtf16(a[o++]);g[m]={start:f,end:w,length:w-f}}return{index:c,captureIndices:g}}}function $5(t){return typeof t.instantiator=="function"}function X5(t){return typeof t.default=="function"}function J5(t){return typeof t.data<"u"}function Y5(t){return typeof Response<"u"&&t instanceof Response}function Z5(t){var A;return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&((A=Buffer.isBuffer)==null?void 0:A.call(Buffer,t))||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}let Ho;function Av(t){if(Ho)return Ho;async function A(){xt=await G5(async e=>{let r=t;return r=await r,typeof r=="function"&&(r=await r(e)),typeof r=="function"&&(r=await r(e)),$5(r)?r=await r.instantiator(e):X5(r)?r=await r.default(e):(J5(r)&&(r=r.data),Y5(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await ev(r)(e):r=await tv(r)(e):Z5(r)?r=await Jc(r)(e):r instanceof WebAssembly.Module?r=await Jc(r)(e):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Jc(r.default)(e))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Ho=A(),Ho}function Jc(t){return A=>WebAssembly.instantiate(t,A)}function ev(t){return A=>WebAssembly.instantiateStreaming(t,A)}function tv(t){return async A=>{const e=await t.arrayBuffer();return WebAssembly.instantiate(e,A)}}async function rv(t){return t&&await Av(t),{createScanner(A){return new z5(A.map(e=>typeof e=="string"?e:e.source))},createString(A){return new v0(A)}}}const nv=k5({langs:D5,themes:O5,engine:()=>rv(Promise.resolve().then(()=>require("./wasm-Dw4u1m6u.js")))});let Yc=null,la=null;const ns=new Map,iv=500,ah={light:"github-light",dark:"github-dark"},y0={js:"javascript",ts:"typescript",py:"python",sh:"bash",yml:"yaml",dockerfile:"docker","docker-compose":"yaml",kubernetes:"yaml",k8s:"yaml",caddyfile:"nginx",nginx:"nginx",apache:"apache",terraform:"hcl",hcl:"hcl",ansible:"yaml",dotenv:"dotenv",env:"dotenv",ini:"ini",toml:"toml",json:"json",jsonc:"jsonc",jsonl:"json",html:"html",xml:"xml",svg:"xml",css:"css",scss:"scss",less:"less",markdown:"markdown",md:"markdown",mdx:"mdx",jsx:"jsx",tsx:"tsx",go:"go",php:"php",ruby:"ruby",rb:"ruby",java:"java",csharp:"csharp",cs:"csharp",cpp:"cpp","c++":"cpp",c:"c",rust:"rust",rs:"rust",sql:"sql",postgresql:"sql",postgres:"sql",mysql:"sql",bash:"bash",powershell:"powershell",ps1:"powershell",cmd:"bat",bat:"bat",log:"log","nginx-access-log":"log","nginx-error-log":"log",csv:"csv","plain-text":"plaintext"};async function sv(){return Yc||la||(la=nv({themes:[ah.light,ah.dark],langs:[]}).then(t=>(Yc=t,t)).catch(t=>{throw console.error("[Shiki] Failed to initialize highlighter:",t),la=null,t}),la)}async function av(t,A){t.getLoadedLanguages().includes(A)||await t.loadLanguage(A)}function kl(t){const A=t.toLowerCase().trim();return y0[A]||A}function ov(t){const A=kl(t);return["javascript","typescript","jsx","tsx","python","go","php","ruby","java","csharp","cpp","c","rust","bash","powershell","bat","yaml","toml","ini","dotenv","json","jsonc","html","xml","css","scss","less","markdown","mdx","sql","docker","nginx","apache","hcl","log","csv","plaintext"].includes(A)}function lv(t){let A=0;for(let e=0;e<t.length;e++){const r=t.charCodeAt(e);A=(A<<5)-A+r,A=A&A}return A.toString(36)}async function C0(t,A,e="dark"){const r=kl(A),n=`${r}:${e}:${lv(t)}`;if(ns.has(n))return ns.get(n);try{const i=await sv(),s=ov(A)?r:"plaintext";await av(i,s);const a=i.codeToHtml(t,{lang:s,theme:ah[e]});if(ns.size>=iv){const o=ns.keys().next().value;o&&ns.delete(o)}return ns.set(n,a),a}catch(i){return console.error("[Shiki] Highlighting error:",i),`<pre><code>${cv(t)}</code></pre>`}}function cv(t){const A=document.createElement("div");return A.textContent=t,A.innerHTML}function uv(){return Object.keys(y0).sort()}function hv({html:t,theme:A,onExportHtml:e,onExportText:r,onCopyHtml:n,enableSourceTab:i=!0}){const[s,a]=RA.useState("preview"),o=RA.useRef(null),c=A==="light";return RA.useEffect(()=>{if(!o.current||s!=="preview")return;(async()=>{var m;const g=(m=o.current)==null?void 0:m.querySelectorAll("pre.code-block");if(g)for(const f of Array.from(g)){const w=f.querySelector("code");if(!w)continue;const y=f.getAttribute("data-language")||"plain-text",F=w.textContent||"";try{const v=await C0(F,y,A==="auto"?"dark":A),L=document.createElement("div");L.innerHTML=v;const N=L.querySelector("pre");if(N){const _=f.getAttribute("data-language"),q=f.getAttribute("data-display-name");_&&N.setAttribute("data-language",_),q&&N.setAttribute("data-display-name",q),N.className="code-block",f.replaceWith(N)}}catch(v){console.error("Preview highlighting failed:",v)}}})()},[t,A,s]),RA.useEffect(()=>{if(!o.current)return;const h=g=>{const m=g.target,f=m.closest("pre");if(f&&m===f){const w=f.querySelector("code");if(w){navigator.clipboard.writeText(w.textContent||"");const y=f.style.getPropertyValue("--copy-feedback")||"📋";f.style.setProperty("--copy-feedback","✓"),setTimeout(()=>{f.style.setProperty("--copy-feedback",y)},2e3)}}};return o.current.addEventListener("click",h),()=>{var g;(g=o.current)==null||g.removeEventListener("click",h)}},[s]),V.jsxs("div",{className:`${eA.previewPanel} ${c?eA.light:""}`,children:[V.jsxs("div",{className:eA.previewHeader,children:[V.jsxs("div",{style:{display:"flex",gap:"8px"},children:[V.jsxs("button",{className:`${eA.tabBtn} ${s==="preview"?eA.active:""}`,onClick:()=>a("preview"),children:[V.jsx("i",{className:"fas fa-eye",style:{marginRight:"8px"}}),"Предпросмотр"]}),i&&V.jsxs("button",{className:`${eA.tabBtn} ${s==="source"?eA.active:""}`,onClick:()=>a("source"),children:[V.jsx("i",{className:"fas fa-code",style:{marginRight:"8px"}}),"HTML код"]})]}),V.jsxs("div",{style:{display:"flex",gap:"8px"},children:[V.jsx("button",{className:eA.toolbarBtn,onClick:e,title:"Экспорт HTML",style:{color:"white"},children:V.jsx("i",{className:"fas fa-file-code"})}),V.jsx("button",{className:eA.toolbarBtn,onClick:r,title:"Экспорт TXT",style:{color:"white"},children:V.jsx("i",{className:"fas fa-file-alt"})}),V.jsx("button",{className:eA.toolbarBtn,onClick:n,title:"Копировать HTML",style:{color:"white"},children:V.jsx("i",{className:"fas fa-copy"})})]})]}),s==="preview"&&V.jsx("div",{ref:o,className:`${eA.previewContent} ${c?eA.light:""}`,dangerouslySetInnerHTML:{__html:t}}),s==="source"&&V.jsx("pre",{className:`${eA.sourceCode} ${eA.show}`,children:t})]})}function fv({isOpen:t,onClose:A,onInsert:e,theme:r="dark"}){const[n,i]=RA.useState(""),[s,a]=RA.useState(""),[o,c]=RA.useState(!1),h=r==="light";RA.useEffect(()=>{if(t){const f=window.getSelection(),w=f==null?void 0:f.toString().trim();w?(a(w),c(!0)):c(!1)}else i(""),a(""),c(!1)},[t]);const g=()=>{n&&(e(n,s||n),A())},m=f=>{f.key==="Enter"?g():f.key==="Escape"&&A()};return t?V.jsx("div",{className:`${eA.modalOverlay} ${t?eA.show:""}`,onClick:A,children:V.jsxs("div",{className:`${eA.modal} ${h?eA.light:""}`,onClick:f=>f.stopPropagation(),children:[V.jsx("h3",{children:"🔗 Вставить ссылку"}),V.jsx("input",{type:"text",className:`${eA.modalInput} ${h?eA.light:""}`,placeholder:"URL (https://...)",value:n,onChange:f=>i(f.target.value),onKeyDown:m,autoFocus:!0}),!o&&V.jsx("input",{type:"text",className:`${eA.modalInput} ${h?eA.light:""}`,placeholder:"Текст ссылки (необязательно)",value:s,onChange:f=>a(f.target.value),onKeyDown:m}),V.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"16px"},children:[V.jsx("button",{className:`${eA.modalBtn} ${eA.modalBtnSecondary}`,onClick:A,children:"Отмена"}),V.jsx("button",{className:`${eA.modalBtn} ${eA.modalBtnPrimary}`,onClick:g,children:"Вставить"})]})]})}):null}function dv({isOpen:t,onClose:A,onInsert:e,allowUpload:r=!0,onUpload:n}){const[i,s]=RA.useState(""),[a,o]=RA.useState(""),c=RA.useRef(null);RA.useEffect(()=>{t||(s(""),o(""),c.current&&(c.current.value=""))},[t]);const h=async()=>{var f,w;const m=(w=(f=c.current)==null?void 0:f.files)==null?void 0:w[0];if(m)if(n)try{const y=await n(m);e(y,a||"Image"),A()}catch(y){console.error("Image upload failed:",y),alert("Ошибка загрузки изображения")}else{const y=new FileReader;y.onload=F=>{var L;const v=(L=F.target)==null?void 0:L.result;e(v,a||"Image"),A()},y.readAsDataURL(m)}else i&&(e(i,a||"Image"),A())},g=m=>{m.key==="Enter"?h():m.key==="Escape"&&A()};return t?V.jsx("div",{className:`${eA.modalOverlay} ${t?eA.show:""}`,onClick:A,children:V.jsxs("div",{className:eA.modal,onClick:m=>m.stopPropagation(),children:[V.jsx("h3",{children:"🖼️ Вставить изображение"}),V.jsx("input",{type:"text",className:eA.modalInput,placeholder:"URL изображения",value:i,onChange:m=>s(m.target.value),onKeyDown:g,autoFocus:!0}),V.jsx("input",{type:"text",className:eA.modalInput,placeholder:"Альтернативный текст",value:a,onChange:m=>o(m.target.value),onKeyDown:g}),r&&V.jsxs(V.Fragment,{children:[V.jsx("div",{style:{textAlign:"center",margin:"16px 0",color:"#6b7280"},children:"— или —"}),V.jsx("input",{ref:c,type:"file",accept:"image/*",className:eA.modalInput})]}),V.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"16px"},children:[V.jsx("button",{className:`${eA.modalBtn} ${eA.modalBtnSecondary}`,onClick:A,children:"Отмена"}),V.jsx("button",{className:`${eA.modalBtn} ${eA.modalBtnPrimary}`,onClick:h,children:"Вставить"})]})]})}):null}function b0(t){var A,e,r;if(!t)return null;if(t.includes("youtube.com/watch")){const n=(A=t.split("v=")[1])==null?void 0:A.split("&")[0];if(n)return{embedUrl:`https://www.youtube.com/embed/${n}`,provider:"youtube"}}if(t.includes("youtu.be/")){const n=(e=t.split("youtu.be/")[1])==null?void 0:e.split("?")[0];if(n)return{embedUrl:`https://www.youtube.com/embed/${n}`,provider:"youtube"}}if(t.includes("vimeo.com/")){const n=(r=t.split("vimeo.com/")[1])==null?void 0:r.split("?")[0];if(n)return{embedUrl:`https://player.vimeo.com/video/${n}`,provider:"vimeo"}}return null}function F0(t){return`<div style="position:relative;padding-bottom:56.25%;height:0;overflow:hidden;margin:1em 0;">
117
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Hw(t,A,e,r){const n=r.schema,i=n.space==="svg"?!1:r.settings.omitOptionalTags;let s=n.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase());const a=[];let o;n.space==="html"&&t.tagName==="svg"&&(r.schema=s0);const c=Pw(r,t.properties),h=r.all(n.space==="html"&&t.tagName==="template"?t.content:t);return r.schema=n,h&&(s=!1),(c||!i||!Lw(t,A,e))&&(a.push("<",t.tagName,c?" "+c:""),s&&(n.space==="svg"||r.settings.closeSelfClosing)&&(o=c.charAt(c.length-1),(!r.settings.tightSelfClosing||o==="/"||o&&o!=='"'&&o!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(h),!s&&(!i||!$h(t,A,e))&&a.push("</"+t.tagName+">"),a.join("")}function Pw(t,A){const e=[];let r=-1,n;if(A){for(n in A)if(A[n]!==null&&A[n]!==void 0){const i=Tw(t,n,A[n]);i&&e.push(i)}}for(;++r<e.length;){const i=t.settings.tightAttributes?e[r].charAt(e[r].length-1):void 0;r!==e.length-1&&i!=='"'&&i!=="'"&&(e[r]+=" ")}return e.join("")}function Tw(t,A,e){const r=O2(t.schema,A),n=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,i=t.settings.allowDangerousCharacters?0:1;let s=t.quote,a;if(r.overloadedBoolean&&(e===r.attribute||e==="")?e=!0:(r.boolean||r.overloadedBoolean)&&(typeof e!="string"||e===r.attribute||e==="")&&(e=!!e),e==null||e===!1||typeof e=="number"&&Number.isNaN(e))return"";const o=bs(r.attribute,Object.assign({},t.settings.characterReferences,{subset:ko.name[n][i]}));return e===!0||(e=Array.isArray(e)?(r.commaSeparated?hw:fw)(e,{padLeft:!t.settings.tightCommaSeparatedLists}):String(e),t.settings.collapseEmptyAttributes&&!e)?o:(t.settings.preferUnquoted&&(a=bs(e,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:ko.unquoted[n][i]}))),a!==e&&(t.settings.quoteSmart&&hd(e,s)>hd(e,t.alternative)&&(s=t.alternative),a=s+bs(e,Object.assign({},t.settings.characterReferences,{subset:(s==="'"?ko.single:ko.double)[n][i],attribute:!0}))+s),o+(a&&"="+a))}const Dw=["<","&"];function u0(t,A,e,r){return e&&e.type==="element"&&(e.tagName==="script"||e.tagName==="style")?t.value:bs(t.value,Object.assign({},r.settings.characterReferences,{subset:Dw}))}function Rw(t,A,e,r){return r.settings.allowDangerousHtml?t.value:u0(t,A,e,r)}function Ow(t,A,e,r){return r.all(t)}const Mw=G2("type",{invalid:Kw,unknown:jw,handlers:{comment:cw,doctype:uw,element:Hw,raw:Rw,root:Ow,text:u0}});function Kw(t){throw new Error("Expected node, not `"+t+"`")}function jw(t){const A=t;throw new Error("Cannot compile unknown node `"+A.type+"`")}const Gw={},qw={},Vw=[];function Ww(t,A){const e=A||Gw,r=e.quote||'"',n=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:zw,all:$w,settings:{omitOptionalTags:e.omitOptionalTags||!1,allowParseErrors:e.allowParseErrors||!1,allowDangerousCharacters:e.allowDangerousCharacters||!1,quoteSmart:e.quoteSmart||!1,preferUnquoted:e.preferUnquoted||!1,tightAttributes:e.tightAttributes||!1,upperDoctype:e.upperDoctype||!1,tightDoctype:e.tightDoctype||!1,bogusComments:e.bogusComments||!1,tightCommaSeparatedLists:e.tightCommaSeparatedLists||!1,tightSelfClosing:e.tightSelfClosing||!1,collapseEmptyAttributes:e.collapseEmptyAttributes||!1,allowDangerousHtml:e.allowDangerousHtml||!1,voids:e.voids||k2,characterReferences:e.characterReferences||qw,closeSelfClosing:e.closeSelfClosing||!1,closeEmptyElements:e.closeEmptyElements||!1},schema:e.space==="svg"?s0:j2,quote:r,alternative:n}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function zw(t,A,e){return Mw(t,A,e,this)}function $w(t){const A=[],e=t&&t.children||Vw;let r=-1;for(;++r<e.length;)A[r]=this.one(e[r],r,t);return A.join("")}function Il(t,A){const e=typeof t=="string"?{}:{...t.colorReplacements},r=typeof t=="string"?t:t.name;for(const[n,i]of Object.entries((A==null?void 0:A.colorReplacements)||{}))typeof i=="string"?e[n]=i:n===r&&Object.assign(e,i);return e}function li(t,A){return t&&((A==null?void 0:A[t==null?void 0:t.toLowerCase()])||t)}function Xw(t){return Array.isArray(t)?t:[t]}async function h0(t){return Promise.resolve(typeof t=="function"?t():t).then(A=>A.default||A)}function Xh(t){return!t||["plaintext","txt","text","plain"].includes(t)}function f0(t){return t==="ansi"||Xh(t)}function Jh(t){return t==="none"}function d0(t){return Jh(t)}function g0(t,A){var r;if(!A)return t;t.properties||(t.properties={}),(r=t.properties).class||(r.class=[]),typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);const e=Array.isArray(A)?A:A.split(/\s+/g);for(const n of e)n&&!t.properties.class.includes(n)&&t.properties.class.push(n);return t}function Jl(t,A=!1){var i;if(t.length===0)return[["",0]];const e=t.split(/(\r?\n)/g);let r=0;const n=[];for(let s=0;s<e.length;s+=2){const a=A?e[s]+(e[s+1]||""):e[s];n.push([a,r]),r+=e[s].length,r+=((i=e[s+1])==null?void 0:i.length)||0}return n}function Jw(t){const A=Jl(t,!0).map(([n])=>n);function e(n){if(n===t.length)return{line:A.length-1,character:A[A.length-1].length};let i=n,s=0;for(const a of A){if(i<a.length)break;i-=a.length,s++}return{line:s,character:i}}function r(n,i){let s=0;for(let a=0;a<n;a++)s+=A[a].length;return s+=i,s}return{lines:A,indexToPos:e,posToIndex:r}}const Yh="light-dark()",Yw=["color","background-color"];function Zw(t,A){let e=0;const r=[];for(const n of A)n>e&&r.push({...t,content:t.content.slice(e,n),offset:t.offset+e}),e=n;return e<t.content.length&&r.push({...t,content:t.content.slice(e),offset:t.offset+e}),r}function A5(t,A){const e=Array.from(A instanceof Set?A:new Set(A)).sort((r,n)=>r-n);return e.length?t.map(r=>r.flatMap(n=>{const i=e.filter(s=>n.offset<s&&s<n.offset+n.content.length).map(s=>s-n.offset).sort((s,a)=>s-a);return i.length?Zw(n,i):n})):t}function e5(t,A,e,r,n="css-vars"){const i={content:t.content,explanation:t.explanation,offset:t.offset},s=A.map(h=>_l(t.variants[h])),a=new Set(s.flatMap(h=>Object.keys(h))),o={},c=(h,d)=>{const m=d==="color"?"":d==="background-color"?"-bg":`-${d}`;return e+A[h]+(d==="color"?"":m)};return s.forEach((h,d)=>{for(const m of a){const f=h[m]||"inherit";if(d===0&&r&&Yw.includes(m))if(r===Yh&&s.length>1){const w=A.findIndex(L=>L==="light"),y=A.findIndex(L=>L==="dark");if(w===-1||y===-1)throw new gt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const F=s[w][m]||"inherit",v=s[y][m]||"inherit";o[m]=`light-dark(${F}, ${v})`,n==="css-vars"&&(o[c(d,m)]=f)}else o[m]=f;else n==="css-vars"&&(o[c(d,m)]=f)}}),i.htmlStyle=o,i}function _l(t){const A={};if(t.color&&(A.color=t.color),t.bgColor&&(A["background-color"]=t.bgColor),t.fontStyle){t.fontStyle&Wt.Italic&&(A["font-style"]="italic"),t.fontStyle&Wt.Bold&&(A["font-weight"]="bold");const e=[];t.fontStyle&Wt.Underline&&e.push("underline"),t.fontStyle&Wt.Strikethrough&&e.push("line-through"),e.length&&(A["text-decoration"]=e.join(" "))}return A}function ah(t){return typeof t=="string"?t:Object.entries(t).map(([A,e])=>`${A}:${e}`).join(";")}const p0=new WeakMap;function Yl(t,A){p0.set(t,A)}function Ta(t){return p0.get(t)}class Is{constructor(...A){oA(this,"_stacks",{});oA(this,"lang");if(A.length===2){const[e,r]=A;this.lang=r,this._stacks=e}else{const[e,r,n]=A;this.lang=r,this._stacks={[n]:e}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(A,e){return new Is(Object.fromEntries(Xw(e).map(r=>[r,th])),A)}getInternalStack(A=this.theme){return this._stacks[A]}getScopes(A=this.theme){return t5(this._stacks[A])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function t5(t){const A=[],e=new Set;function r(n){var s;if(e.has(n))return;e.add(n);const i=(s=n==null?void 0:n.nameScopesList)==null?void 0:s.scopeName;i&&A.push(i),n.parent&&r(n.parent)}return r(t),A}function r5(t,A){if(!(t instanceof Is))throw new gt("Invalid grammar state");return t.getInternalStack(A)}function n5(){const t=new WeakMap;function A(e){if(!t.has(e.meta)){let r=function(s){if(typeof s=="number"){if(s<0||s>e.source.length)throw new gt(`Invalid decoration offset: ${s}. Code length: ${e.source.length}`);return{...n.indexToPos(s),offset:s}}else{const a=n.lines[s.line];if(a===void 0)throw new gt(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${n.lines.length}`);let o=s.character;if(o<0&&(o=a.length+o),o<0||o>a.length)throw new gt(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${a.length}`);return{...s,character:o,offset:n.posToIndex(s.line,o)}}};const n=Jw(e.source),i=(e.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));i5(i),t.set(e.meta,{decorations:i,converter:n,source:e.source})}return t.get(e.meta)}return{name:"shiki:decorations",tokens(e){var s;if(!((s=this.options.decorations)!=null&&s.length))return;const n=A(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return A5(e,n)},code(e){var h;if(!((h=this.options.decorations)!=null&&h.length))return;const r=A(this),n=Array.from(e.children).filter(d=>d.type==="element"&&d.tagName==="span");if(n.length!==r.converter.lines.length)throw new gt(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function i(d,m,f,w){const y=n[d];let F="",v=-1,L=-1;if(m===0&&(v=0),f===0&&(L=0),f===Number.POSITIVE_INFINITY&&(L=y.children.length),v===-1||L===-1)for(let S=0;S<y.children.length;S++)F+=m0(y.children[S]),v===-1&&F.length===m&&(v=S+1),L===-1&&F.length===f&&(L=S+1);if(v===-1)throw new gt(`Failed to find start index for decoration ${JSON.stringify(w.start)}`);if(L===-1)throw new gt(`Failed to find end index for decoration ${JSON.stringify(w.end)}`);const _=y.children.slice(v,L);if(!w.alwaysWrap&&_.length===y.children.length)a(y,w,"line");else if(!w.alwaysWrap&&_.length===1&&_[0].type==="element")a(_[0],w,"token");else{const S={type:"element",tagName:"span",properties:{},children:_};a(S,w,"wrapper"),y.children.splice(v,_.length,S)}}function s(d,m){n[d]=a(n[d],m,"line")}function a(d,m,f){var F;const w=m.properties||{},y=m.transform||(v=>v);return d.tagName=m.tagName||"span",d.properties={...d.properties,...w,class:d.properties.class},(F=m.properties)!=null&&F.class&&g0(d,m.properties.class),d=y(d,f)||d,d}const o=[],c=r.decorations.sort((d,m)=>m.start.offset-d.start.offset||d.end.offset-m.end.offset);for(const d of c){const{start:m,end:f}=d;if(m.line===f.line)i(m.line,m.character,f.character,d);else if(m.line<f.line){i(m.line,m.character,Number.POSITIVE_INFINITY,d);for(let w=m.line+1;w<f.line;w++)o.unshift(()=>s(w,d));i(f.line,0,f.character,d)}}o.forEach(d=>d())}}}function i5(t){for(let A=0;A<t.length;A++){const e=t[A];if(e.start.offset>e.end.offset)throw new gt(`Invalid decoration range: ${JSON.stringify(e.start)} - ${JSON.stringify(e.end)}`);for(let r=A+1;r<t.length;r++){const n=t[r],i=e.start.offset<=n.start.offset&&n.start.offset<e.end.offset,s=e.start.offset<n.end.offset&&n.end.offset<=e.end.offset,a=n.start.offset<=e.start.offset&&e.start.offset<n.end.offset,o=n.start.offset<e.end.offset&&e.end.offset<=n.end.offset;if(i||s||a||o){if(i&&s||a&&o||a&&e.start.offset===e.end.offset||s&&n.start.offset===n.end.offset)continue;throw new gt(`Decorations ${JSON.stringify(e.start)} and ${JSON.stringify(n.start)} intersect.`)}}}}function m0(t){return t.type==="text"?t.value:t.type==="element"?t.children.map(m0).join(""):""}const s5=[n5()];function Nl(t){const A=a5(t.transformers||[]);return[...A.pre,...A.normal,...A.post,...s5]}function a5(t){const A=[],e=[],r=[];for(const n of t)switch(n.enforce){case"pre":A.push(n);break;case"post":e.push(n);break;default:r.push(n)}return{pre:A,post:e,normal:r}}var Hi=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Jc={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function o5(t,A){const e=t.indexOf("\x1B",A);if(e!==-1&&t[e+1]==="["){const r=t.indexOf("m",e);if(r!==-1)return{sequence:t.substring(e+2,r).split(";"),startPosition:e,position:r+1}}return{position:t.length}}function pd(t){const A=t.shift();if(A==="2"){const e=t.splice(0,3).map(r=>Number.parseInt(r));return e.length!==3||e.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:e}}else if(A==="5"){const e=t.shift();if(e)return{type:"table",index:Number(e)}}}function l5(t){const A=[];for(;t.length>0;){const e=t.shift();if(!e)continue;const r=Number.parseInt(e);if(!Number.isNaN(r))if(r===0)A.push({type:"resetAll"});else if(r<=9)Jc[r]&&A.push({type:"setDecoration",value:Jc[r]});else if(r<=29){const n=Jc[r-20];n&&(A.push({type:"resetDecoration",value:n}),n==="dim"&&A.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)A.push({type:"setForegroundColor",value:{type:"named",name:Hi[r-30]}});else if(r===38){const n=pd(t);n&&A.push({type:"setForegroundColor",value:n})}else if(r===39)A.push({type:"resetForegroundColor"});else if(r<=47)A.push({type:"setBackgroundColor",value:{type:"named",name:Hi[r-40]}});else if(r===48){const n=pd(t);n&&A.push({type:"setBackgroundColor",value:n})}else r===49?A.push({type:"resetBackgroundColor"}):r===53?A.push({type:"setDecoration",value:"overline"}):r===55?A.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?A.push({type:"setForegroundColor",value:{type:"named",name:Hi[r-90+8]}}):r>=100&&r<=107&&A.push({type:"setBackgroundColor",value:{type:"named",name:Hi[r-100+8]}})}return A}function c5(){let t=null,A=null,e=new Set;return{parse(r){const n=[];let i=0;do{const s=o5(r,i),a=s.sequence?r.substring(i,s.startPosition):r.substring(i);if(a.length>0&&n.push({value:a,foreground:t,background:A,decorations:new Set(e)}),s.sequence){const o=l5(s.sequence);for(const c of o)c.type==="resetAll"?(t=null,A=null,e.clear()):c.type==="resetForegroundColor"?t=null:c.type==="resetBackgroundColor"?A=null:c.type==="resetDecoration"&&e.delete(c.value);for(const c of o)c.type==="setForegroundColor"?t=c.value:c.type==="setBackgroundColor"?A=c.value:c.type==="setDecoration"&&e.add(c.value)}i=s.position}while(i<r.length);return n}}}var u5={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function h5(t=u5){function A(a){return t[a]}function e(a){return`#${a.map(o=>Math.max(0,Math.min(o,255)).toString(16).padStart(2,"0")).join("")}`}let r;function n(){if(r)return r;r=[];for(let c=0;c<Hi.length;c++)r.push(A(Hi[c]));let a=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let h=0;h<6;h++)for(let d=0;d<6;d++)r.push(e([a[c],a[h],a[d]]));let o=8;for(let c=0;c<24;c++,o+=10)r.push(e([o,o,o]));return r}function i(a){return n()[a]}function s(a){switch(a.type){case"named":return A(a.name);case"rgb":return e(a.rgb);case"table":return i(a.index)}}return{value:s}}const f5={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function d5(t,A,e){const r=Il(t,e),n=Jl(A),i=Object.fromEntries(Hi.map(o=>{var d;const c=`terminal.ansi${o[0].toUpperCase()}${o.substring(1)}`,h=(d=t.colors)==null?void 0:d[c];return[o,h||f5[o]]})),s=h5(i),a=c5();return n.map(o=>a.parse(o[0]).map(c=>{let h,d;c.decorations.has("reverse")?(h=c.background?s.value(c.background):t.bg,d=c.foreground?s.value(c.foreground):t.fg):(h=c.foreground?s.value(c.foreground):t.fg,d=c.background?s.value(c.background):void 0),h=li(h,r),d=li(d,r),c.decorations.has("dim")&&(h=g5(h));let m=Wt.None;return c.decorations.has("bold")&&(m|=Wt.Bold),c.decorations.has("italic")&&(m|=Wt.Italic),c.decorations.has("underline")&&(m|=Wt.Underline),c.decorations.has("strikethrough")&&(m|=Wt.Strikethrough),{content:c.value,offset:o[1],color:h,bgColor:d,fontStyle:m}}))}function g5(t){const A=t.match(/#([0-9a-f]{3,8})/i);if(A){const r=A[1];if(r.length===8){const n=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${n}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const n=r[0],i=r[1],s=r[2],a=r[3],o=Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0");return`#${n}${n}${i}${i}${s}${s}${o}`}else if(r.length===3){const n=r[0],i=r[1],s=r[2];return`#${n}${n}${i}${i}${s}${s}80`}}}const e=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return e?`var(${e[1]}-dim)`:t}function Zh(t,A,e={}){const{theme:r=t.getLoadedThemes()[0]}=e,n=t.resolveLangAlias(e.lang||"text");if(Xh(n)||Jh(r))return Jl(A).map(o=>[{content:o[0],offset:o[1]}]);const{theme:i,colorMap:s}=t.setTheme(r);if(n==="ansi")return d5(i,A,e);const a=t.getLanguage(e.lang||"text");if(e.grammarState){if(e.grammarState.lang!==a.name)throw new gt(`Grammar state language "${e.grammarState.lang}" does not match highlight language "${a.name}"`);if(!e.grammarState.themes.includes(i.name))throw new gt(`Grammar state themes "${e.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return m5(A,a,i,s,e)}function p5(...t){if(t.length===2)return Ta(t[1]);const[A,e,r={}]=t,{lang:n="text",theme:i=A.getLoadedThemes()[0]}=r;if(Xh(n)||Jh(i))throw new gt("Plain language does not have grammar state");if(n==="ansi")throw new gt("ANSI language does not have grammar state");const{theme:s,colorMap:a}=A.setTheme(i),o=A.getLanguage(n);return new Is(Af(e,o,s,a,r).stateStack,o.name,s.name)}function m5(t,A,e,r,n){const i=Af(t,A,e,r,n),s=new Is(i.stateStack,A.name,e.name);return Yl(i.tokens,s),i.tokens}function Af(t,A,e,r,n){const i=Il(e,n),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:a=500}=n,o=Jl(t);let c=n.grammarState?r5(n.grammarState,e.name)??th:n.grammarContextCode!=null?Af(n.grammarContextCode,A,e,r,{...n,grammarState:void 0,grammarContextCode:void 0}).stateStack:th,h=[];const d=[];for(let m=0,f=o.length;m<f;m++){const[w,y]=o[m];if(w===""){h=[],d.push([]);continue}if(s>0&&w.length>=s){h=[],d.push([{content:w,offset:y,color:"",fontStyle:0}]);continue}let F,v,L;n.includeExplanation&&(F=A.tokenizeLine(w,c,a),v=F.tokens,L=0);const _=A.tokenizeLine2(w,c,a),S=_.tokens.length/2;for(let V=0;V<S;V++){const z=_.tokens[2*V],X=V+1<S?_.tokens[2*V+2]:w.length;if(z===X)continue;const q=_.tokens[2*V+1],k=li(r[Es.getForeground(q)],i),Y=Es.getFontStyle(q),x={content:w.substring(z,X),offset:y+z,color:k,fontStyle:Y};if(n.includeExplanation){const P=[];if(n.includeExplanation!=="scopeName")for(const D of e.settings){let J;switch(typeof D.scope){case"string":J=D.scope.split(/,/).map(lA=>lA.trim());break;case"object":J=D.scope;break;default:continue}P.push({settings:D,selectors:J.map(lA=>lA.split(/ /))})}x.explanation=[];let j=0;for(;z+j<X;){const D=v[L],J=w.substring(D.startIndex,D.endIndex);j+=J.length,x.explanation.push({content:J,scopes:n.includeExplanation==="scopeName"?B5(D.scopes):w5(P,D.scopes)}),L+=1}}h.push(x)}d.push(h),h=[],c=_.ruleStack}return{tokens:d,stateStack:c}}function B5(t){return t.map(A=>({scopeName:A}))}function w5(t,A){const e=[];for(let r=0,n=A.length;r<n;r++){const i=A[r];e[r]={scopeName:i,themeMatches:y5(t,i,A.slice(0,r))}}return e}function md(t,A){return t===A||A.substring(0,t.length)===t&&A[t.length]==="."}function v5(t,A,e){if(!md(t[t.length-1],A))return!1;let r=t.length-2,n=e.length-1;for(;r>=0&&n>=0;)md(t[r],e[n])&&(r-=1),n-=1;return r===-1}function y5(t,A,e){const r=[];for(const{selectors:n,settings:i}of t)for(const s of n)if(v5(s,A,e)){r.push(i);break}return r}function B0(t,A,e){const r=Object.entries(e.themes).filter(o=>o[1]).map(o=>({color:o[0],theme:o[1]})),n=r.map(o=>{const c=Zh(t,A,{...e,theme:o.theme}),h=Ta(c),d=typeof o.theme=="string"?o.theme:o.theme.name;return{tokens:c,state:h,theme:d}}),i=b5(...n.map(o=>o.tokens)),s=i[0].map((o,c)=>o.map((h,d)=>{const m={content:h.content,variants:{},offset:h.offset};return"includeExplanation"in e&&e.includeExplanation&&(m.explanation=h.explanation),i.forEach((f,w)=>{const{content:y,explanation:F,offset:v,...L}=f[c][d];m.variants[r[w].color]=L}),m})),a=n[0].state?new Is(Object.fromEntries(n.map(o=>{var c;return[o.theme,(c=o.state)==null?void 0:c.getInternalStack(o.theme)]})),n[0].state.lang):void 0;return a&&Yl(s,a),s}function b5(...t){const A=t.map(()=>[]),e=t.length;for(let r=0;r<t[0].length;r++){const n=t.map(o=>o[r]),i=A.map(()=>[]);A.forEach((o,c)=>o.push(i[c]));const s=n.map(()=>0),a=n.map(o=>o[0]);for(;a.every(o=>o);){const o=Math.min(...a.map(c=>c.content.length));for(let c=0;c<e;c++){const h=a[c];h.content.length===o?(i[c].push(h),s[c]+=1,a[c]=n[c][s[c]]):(i[c].push({...h,content:h.content.slice(0,o)}),a[c]={...h,content:h.content.slice(o),offset:h.offset+o})}}}return A}function kl(t,A,e){let r,n,i,s,a,o;if("themes"in e){const{defaultColor:c="light",cssVariablePrefix:h="--shiki-",colorsRendering:d="css-vars"}=e,m=Object.entries(e.themes).filter(v=>v[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,L)=>v.color===c?-1:L.color===c?1:0);if(m.length===0)throw new gt("`themes` option must not be empty");const f=B0(t,A,e);if(o=Ta(f),c&&Yh!==c&&!m.find(v=>v.color===c))throw new gt(`\`themes\` option must contain the defaultColor key \`${c}\``);const w=m.map(v=>t.getTheme(v.theme)),y=m.map(v=>v.color);i=f.map(v=>v.map(L=>e5(L,y,h,c,d))),o&&Yl(i,o);const F=m.map(v=>Il(v.theme,e));n=Bd(m,w,F,h,c,"fg",d),r=Bd(m,w,F,h,c,"bg",d),s=`shiki-themes ${w.map(v=>v.name).join(" ")}`,a=c?void 0:[n,r].join(";")}else if("theme"in e){const c=Il(e.theme,e);i=Zh(t,A,e);const h=t.getTheme(e.theme);r=li(h.bg,c),n=li(h.fg,c),s=h.name,o=Ta(i)}else throw new gt("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:n,bg:r,themeName:s,rootStyle:a,grammarState:o}}function Bd(t,A,e,r,n,i,s){return t.map((a,o)=>{const c=li(A[o][i],e[o])||"inherit",h=`${r+a.color}${i==="bg"?"-bg":""}:${c}`;if(o===0&&n){if(n===Yh&&t.length>1){const d=t.findIndex(y=>y.color==="light"),m=t.findIndex(y=>y.color==="dark");if(d===-1||m===-1)throw new gt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const f=li(A[d][i],e[d])||"inherit",w=li(A[m][i],e[m])||"inherit";return`light-dark(${f}, ${w});${h}`}return c}return s==="css-vars"?h:null}).filter(a=>!!a).join(";")}function Hl(t,A,e,r={meta:{},options:e,codeToHast:(n,i)=>Hl(t,n,i),codeToTokens:(n,i)=>kl(t,n,i)}){var w,y;let n=A;for(const F of Nl(e))n=((w=F.preprocess)==null?void 0:w.call(r,n,e))||n;let{tokens:i,fg:s,bg:a,themeName:o,rootStyle:c,grammarState:h}=kl(t,n,e);const{mergeWhitespaces:d=!0,mergeSameStyleTokens:m=!1}=e;d===!0?i=F5(i):d==="never"&&(i=Q5(i)),m&&(i=U5(i));const f={...r,get source(){return n}};for(const F of Nl(e))i=((y=F.tokens)==null?void 0:y.call(f,i))||i;return C5(i,{...e,fg:s,bg:a,themeName:o,rootStyle:e.rootStyle===!1?!1:e.rootStyle??c},f,h)}function C5(t,A,e,r=Ta(t)){var y,F,v,L;const n=Nl(A),i=[],s={type:"root",children:[]},{structure:a="classic",tabindex:o="0"}=A,c={class:`shiki ${A.themeName||""}`};A.rootStyle!==!1&&(A.rootStyle!=null?c.style=A.rootStyle:c.style=`background-color:${A.bg};color:${A.fg}`),o!==!1&&o!=null&&(c.tabindex=o.toString());for(const[_,S]of Object.entries(A.meta||{}))_.startsWith("_")||(c[_]=S);let h={type:"element",tagName:"pre",properties:c,children:[],data:A.data},d={type:"element",tagName:"code",properties:{},children:i};const m=[],f={...e,structure:a,addClassToHast:g0,get source(){return e.source},get tokens(){return t},get options(){return A},get root(){return s},get pre(){return h},get code(){return d},get lines(){return m}};if(t.forEach((_,S)=>{var X,q;S&&(a==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&i.push({type:"text",value:`
118
+ `}));let V={type:"element",tagName:"span",properties:{class:"line"},children:[]},z=0;for(const k of _){let Y={type:"element",tagName:"span",properties:{...k.htmlAttrs},children:[{type:"text",value:k.content}]};const x=ah(k.htmlStyle||_l(k));x&&(Y.properties.style=x);for(const P of n)Y=((X=P==null?void 0:P.span)==null?void 0:X.call(f,Y,S+1,z,V,k))||Y;a==="inline"?s.children.push(Y):a==="classic"&&V.children.push(Y),z+=k.content.length}if(a==="classic"){for(const k of n)V=((q=k==null?void 0:k.line)==null?void 0:q.call(f,V,S+1))||V;m.push(V),i.push(V)}else a==="inline"&&m.push(V)}),a==="classic"){for(const _ of n)d=((y=_==null?void 0:_.code)==null?void 0:y.call(f,d))||d;h.children.push(d);for(const _ of n)h=((F=_==null?void 0:_.pre)==null?void 0:F.call(f,h))||h;s.children.push(h)}else if(a==="inline"){const _=[];let S={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const X of s.children)X.type==="element"&&X.tagName==="br"?(_.push(S),S={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(X.type==="element"||X.type==="text")&&S.children.push(X);_.push(S);let z={type:"element",tagName:"code",properties:{},children:_};for(const X of n)z=((v=X==null?void 0:X.code)==null?void 0:v.call(f,z))||z;s.children=[];for(let X=0;X<z.children.length;X++){X>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});const q=z.children[X];q.type==="element"&&s.children.push(...q.children)}}let w=s;for(const _ of n)w=((L=_==null?void 0:_.root)==null?void 0:L.call(f,w))||w;return r&&Yl(w,r),w}function F5(t){return t.map(A=>{const e=[];let r="",n;return A.forEach((i,s)=>{const o=!(i.fontStyle&&(i.fontStyle&Wt.Underline||i.fontStyle&Wt.Strikethrough));o&&i.content.match(/^\s+$/)&&A[s+1]?(n===void 0&&(n=i.offset),r+=i.content):r?(o?e.push({...i,offset:n,content:r+i.content}):e.push({content:r,offset:n},i),n=void 0,r=""):e.push(i)}),e})}function Q5(t){return t.map(A=>A.flatMap(e=>{if(e.content.match(/^\s+$/))return e;const r=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return e;const[,n,i,s]=r;if(!n&&!s)return e;const a=[{...e,offset:e.offset+n.length,content:i}];return n&&a.unshift({content:n,offset:e.offset}),s&&a.push({content:s,offset:e.offset+n.length+i.length}),a}))}function U5(t){return t.map(A=>{const e=[];for(const r of A){if(e.length===0){e.push({...r});continue}const n=e[e.length-1],i=ah(n.htmlStyle||_l(n)),s=ah(r.htmlStyle||_l(r)),a=n.fontStyle&&(n.fontStyle&Wt.Underline||n.fontStyle&Wt.Strikethrough),o=r.fontStyle&&(r.fontStyle&Wt.Underline||r.fontStyle&Wt.Strikethrough);!a&&!o&&i===s?n.content+=r.content:e.push({...r})}return e})}const x5=Ww;function E5(t,A,e){var i;const r={meta:{},options:e,codeToHast:(s,a)=>Hl(t,s,a),codeToTokens:(s,a)=>kl(t,s,a)};let n=x5(Hl(t,A,e,r));for(const s of Nl(e))n=((i=s.postprocess)==null?void 0:i.call(r,n,e))||n;return n}const wd={light:"#333333",dark:"#bbbbbb"},vd={light:"#fffffe",dark:"#1e1e1e"},yd="__shiki_resolved";function ef(t){var a,o,c,h,d;if(t!=null&&t[yd])return t;const A={...t};A.tokenColors&&!A.settings&&(A.settings=A.tokenColors,delete A.tokenColors),A.type||(A.type="dark"),A.colorReplacements={...A.colorReplacements},A.settings||(A.settings=[]);let{bg:e,fg:r}=A;if(!e||!r){const m=A.settings?A.settings.find(f=>!f.name&&!f.scope):void 0;(a=m==null?void 0:m.settings)!=null&&a.foreground&&(r=m.settings.foreground),(o=m==null?void 0:m.settings)!=null&&o.background&&(e=m.settings.background),!r&&((c=A==null?void 0:A.colors)!=null&&c["editor.foreground"])&&(r=A.colors["editor.foreground"]),!e&&((h=A==null?void 0:A.colors)!=null&&h["editor.background"])&&(e=A.colors["editor.background"]),r||(r=A.type==="light"?wd.light:wd.dark),e||(e=A.type==="light"?vd.light:vd.dark),A.fg=r,A.bg=e}A.settings[0]&&A.settings[0].settings&&!A.settings[0].scope||A.settings.unshift({settings:{foreground:A.fg,background:A.bg}});let n=0;const i=new Map;function s(m){var w;if(i.has(m))return i.get(m);n+=1;const f=`#${n.toString(16).padStart(8,"0").toLowerCase()}`;return(w=A.colorReplacements)!=null&&w[`#${f}`]?s(m):(i.set(m,f),f)}A.settings=A.settings.map(m=>{var F,v;const f=((F=m.settings)==null?void 0:F.foreground)&&!m.settings.foreground.startsWith("#"),w=((v=m.settings)==null?void 0:v.background)&&!m.settings.background.startsWith("#");if(!f&&!w)return m;const y={...m,settings:{...m.settings}};if(f){const L=s(m.settings.foreground);A.colorReplacements[L]=m.settings.foreground,y.settings.foreground=L}if(w){const L=s(m.settings.background);A.colorReplacements[L]=m.settings.background,y.settings.background=L}return y});for(const m of Object.keys(A.colors||{}))if((m==="editor.foreground"||m==="editor.background"||m.startsWith("terminal.ansi"))&&!((d=A.colors[m])!=null&&d.startsWith("#"))){const f=s(A.colors[m]);A.colorReplacements[f]=A.colors[m],A.colors[m]=f}return Object.defineProperty(A,yd,{enumerable:!1,writable:!1,value:!0}),A}async function w0(t){return Array.from(new Set((await Promise.all(t.filter(A=>!f0(A)).map(async A=>await h0(A).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function v0(t){return(await Promise.all(t.map(async e=>d0(e)?null:ef(await h0(e))))).filter(e=>!!e)}let L5=3;function S5(t,A=3){A>L5||console.trace(`[SHIKI DEPRECATE]: ${t}`)}let Bs=class extends Error{constructor(A){super(A),this.name="ShikiError"}};function y0(t,A){if(!A)return t;if(A[t]){const e=new Set([t]);for(;A[t];){if(t=A[t],e.has(t))throw new Bs(`Circular alias \`${Array.from(e).join(" -> ")} -> ${t}\``);e.add(t)}}return t}class I5 extends N2{constructor(e,r,n,i={}){super(e);oA(this,"_resolvedThemes",new Map);oA(this,"_resolvedGrammars",new Map);oA(this,"_langMap",new Map);oA(this,"_langGraph",new Map);oA(this,"_textmateThemeCache",new WeakMap);oA(this,"_loadedThemesCache",null);oA(this,"_loadedLanguagesCache",null);this._resolver=e,this._themes=r,this._langs=n,this._alias=i,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const r=ef(e);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let r=this._textmateThemeCache.get(e);r||(r=Ul.createFromRawTheme(e),this._textmateThemeCache.set(e,r)),this._syncRegistry.setTheme(r)}getGrammar(e){return e=y0(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){var s,a,o,c;if(this.getGrammar(e.name))return;const r=new Set([...this._langMap.values()].filter(h=>{var d;return(d=h.embeddedLangsLazy)==null?void 0:d.includes(e.name)}));this._resolver.addLanguage(e);const n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const i=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(h=>{this._alias[h]=e.name}),this._loadedLanguagesCache=null,r.size)for(const h of r)this._resolvedGrammars.delete(h.name),this._loadedLanguagesCache=null,(a=(s=this._syncRegistry)==null?void 0:s._injectionGrammars)==null||a.delete(h.scopeName),(c=(o=this._syncRegistry)==null?void 0:o._grammars)==null||c.delete(h.scopeName),this.loadLanguage(this._langMap.get(h.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const i of e)this.resolveEmbeddedLanguages(i);const r=Array.from(this._langGraph.entries()),n=r.filter(([i,s])=>!s);if(n.length){const i=r.filter(([s,a])=>{if(!a)return!1;const o=a.embeddedLanguages||a.embeddedLangs;return o==null?void 0:o.some(c=>n.map(([h])=>h).includes(c))}).filter(s=>!n.includes(s));throw new Bs(`Missing languages ${n.map(([s])=>`\`${s}\``).join(", ")}, required by ${i.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[i,s]of r)this._resolver.addLanguage(s);for(const[i,s]of r)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const r=e.embeddedLanguages??e.embeddedLangs;if(r)for(const n of r)this._langGraph.set(n,this._langMap.get(n))}}class _5{constructor(A,e){oA(this,"_langs",new Map);oA(this,"_scopeToLang",new Map);oA(this,"_injections",new Map);oA(this,"_onigLib");this._onigLib={createOnigScanner:r=>A.createScanner(r),createOnigString:r=>A.createString(r)},e.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(A){return this._langs.get(A)}loadGrammar(A){return this._scopeToLang.get(A)}addLanguage(A){this._langs.set(A.name,A),A.aliases&&A.aliases.forEach(e=>{this._langs.set(e,A)}),this._scopeToLang.set(A.scopeName,A),A.injectTo&&A.injectTo.forEach(e=>{this._injections.get(e)||this._injections.set(e,[]),this._injections.get(e).push(A.scopeName)})}getInjections(A){const e=A.split(".");let r=[];for(let n=1;n<=e.length;n++){const i=e.slice(0,n).join(".");r=[...r,...this._injections.get(i)||[]]}return r}}let oa=0;function N5(t){oa+=1,t.warnings!==!1&&oa>=10&&oa%10===0&&console.warn(`[Shiki] ${oa} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let A=!1;if(!t.engine)throw new Bs("`engine` option is required for synchronous mode");const e=(t.langs||[]).flat(1),r=(t.themes||[]).flat(1).map(ef),n=new _5(t.engine,e),i=new I5(n,r,e,t.langAlias);let s;function a(_){return y0(_,t.langAlias)}function o(_){v();const S=i.getGrammar(typeof _=="string"?_:_.name);if(!S)throw new Bs(`Language \`${_}\` not found, you may need to load it first`);return S}function c(_){if(_==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const S=i.getTheme(_);if(!S)throw new Bs(`Theme \`${_}\` not found, you may need to load it first`);return S}function h(_){v();const S=c(_);s!==_&&(i.setTheme(S),s=_);const V=i.getColorMap();return{theme:S,colorMap:V}}function d(){return v(),i.getLoadedThemes()}function m(){return v(),i.getLoadedLanguages()}function f(..._){v(),i.loadLanguages(_.flat(1))}async function w(..._){return f(await w0(_))}function y(..._){v();for(const S of _.flat(1))i.loadTheme(S)}async function F(..._){return v(),y(await v0(_))}function v(){if(A)throw new Bs("Shiki instance has been disposed")}function L(){A||(A=!0,i.dispose(),oa-=1)}return{setTheme:h,getTheme:c,getLanguage:o,getLoadedThemes:d,getLoadedLanguages:m,resolveLangAlias:a,loadLanguage:w,loadLanguageSync:f,loadTheme:F,loadThemeSync:y,dispose:L,[Symbol.dispose]:L}}async function k5(t){t.engine||S5("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[A,e,r]=await Promise.all([v0(t.themes||[]),w0(t.langs||[]),t.engine]);return N5({...t,themes:A,langs:e,engine:r})}async function H5(t){const A=await k5(t);return{getLastGrammarState:(...e)=>p5(A,...e),codeToTokensBase:(e,r)=>Zh(A,e,r),codeToTokensWithThemes:(e,r)=>B0(A,e,r),codeToTokens:(e,r)=>kl(A,e,r),codeToHast:(e,r)=>Hl(A,e,r),codeToHtml:(e,r)=>E5(A,e,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...A,getInternalContext:()=>A}}function P5(t){const A=t.langs,e=t.themes,r=t.engine;async function n(i){function s(d){var m;if(typeof d=="string"){if(d=((m=i.langAlias)==null?void 0:m[d])||d,f0(d))return[];const f=A[d];if(!f)throw new gt(`Language \`${d}\` is not included in this bundle. You may want to load it from external source.`);return f}return d}function a(d){if(d0(d))return"none";if(typeof d=="string"){const m=e[d];if(!m)throw new gt(`Theme \`${d}\` is not included in this bundle. You may want to load it from external source.`);return m}return d}const o=(i.themes??[]).map(d=>a(d)),c=(i.langs??[]).map(d=>s(d)),h=await H5({engine:i.engine??r(),...i,themes:o,langs:c});return{...h,loadLanguage(...d){return h.loadLanguage(...d.map(s))},loadTheme(...d){return h.loadTheme(...d.map(a))},getBundledLanguages(){return A},getBundledThemes(){return e}}}return n}const b0=[{id:"abap",name:"ABAP",import:()=>Promise.resolve().then(()=>require("./abap-DV7Q1lGP.js"))},{id:"actionscript-3",name:"ActionScript",import:()=>Promise.resolve().then(()=>require("./actionscript-3-DXOxkRa2.js"))},{id:"ada",name:"Ada",import:()=>Promise.resolve().then(()=>require("./ada-D46EKCNf.js"))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.resolve().then(()=>require("./angular-html-JXV_E8IE.js")).then(t=>t.angularHtml)},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.resolve().then(()=>require("./angular-ts-ul8EvQZm.js"))},{id:"apache",name:"Apache Conf",import:()=>Promise.resolve().then(()=>require("./apache-DL1xuH1f.js"))},{id:"apex",name:"Apex",import:()=>Promise.resolve().then(()=>require("./apex-6AM9YZbQ.js"))},{id:"apl",name:"APL",import:()=>Promise.resolve().then(()=>require("./apl-BdW4yp7x.js"))},{id:"applescript",name:"AppleScript",import:()=>Promise.resolve().then(()=>require("./applescript-COilsSrZ.js"))},{id:"ara",name:"Ara",import:()=>Promise.resolve().then(()=>require("./ara-B6Lpq1YJ.js"))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>Promise.resolve().then(()=>require("./asciidoc-DcKqW72n.js"))},{id:"asm",name:"Assembly",import:()=>Promise.resolve().then(()=>require("./asm-DYMFy-sD.js"))},{id:"astro",name:"Astro",import:()=>Promise.resolve().then(()=>require("./astro-BAqad-WM.js"))},{id:"awk",name:"AWK",import:()=>Promise.resolve().then(()=>require("./awk-IEszImW6.js"))},{id:"ballerina",name:"Ballerina",import:()=>Promise.resolve().then(()=>require("./ballerina-Dr6dU4hP.js"))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>Promise.resolve().then(()=>require("./bat-DGkUhhn2.js"))},{id:"beancount",name:"Beancount",import:()=>Promise.resolve().then(()=>require("./beancount-Bv1Sweoy.js"))},{id:"berry",name:"Berry",aliases:["be"],import:()=>Promise.resolve().then(()=>require("./berry-DEMs4LK_.js"))},{id:"bibtex",name:"BibTeX",import:()=>Promise.resolve().then(()=>require("./bibtex-BgA36Z3k.js"))},{id:"bicep",name:"Bicep",import:()=>Promise.resolve().then(()=>require("./bicep-DL0zb-7W.js"))},{id:"blade",name:"Blade",import:()=>Promise.resolve().then(()=>require("./blade-CgjUlvXO.js"))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>Promise.resolve().then(()=>require("./bsl-MeEzPwnu.js"))},{id:"c",name:"C",import:()=>Promise.resolve().then(()=>require("./c-CtlmKnPF.js"))},{id:"c3",name:"C3",import:()=>Promise.resolve().then(()=>require("./c3-DtfRRWXN.js"))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>Promise.resolve().then(()=>require("./cadence-DcbmM5v3.js"))},{id:"cairo",name:"Cairo",import:()=>Promise.resolve().then(()=>require("./cairo-Bl3vCTfQ.js"))},{id:"clarity",name:"Clarity",import:()=>Promise.resolve().then(()=>require("./clarity-gPuvqtpF.js"))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>Promise.resolve().then(()=>require("./clojure-OUsr1SUl.js"))},{id:"cmake",name:"CMake",import:()=>Promise.resolve().then(()=>require("./cmake-jM6P58qY.js"))},{id:"cobol",name:"COBOL",import:()=>Promise.resolve().then(()=>require("./cobol-DReJOyN2.js"))},{id:"codeowners",name:"CODEOWNERS",import:()=>Promise.resolve().then(()=>require("./codeowners-QhPK6lIJ.js"))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>Promise.resolve().then(()=>require("./codeql-D9-TdUN8.js"))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.resolve().then(()=>require("./coffee-CUyQUc3M.js"))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>Promise.resolve().then(()=>require("./common-lisp-C77gR-8i.js"))},{id:"coq",name:"Coq",import:()=>Promise.resolve().then(()=>require("./coq-vlPdR5hP.js"))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.resolve().then(()=>require("./cpp-ChNdME6I.js"))},{id:"crystal",name:"Crystal",import:()=>Promise.resolve().then(()=>require("./crystal-CVTji_sR.js"))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>Promise.resolve().then(()=>require("./csharp-BUkAIRXW.js"))},{id:"css",name:"CSS",import:()=>Promise.resolve().then(()=>require("./css-Do0mp2lm.js"))},{id:"csv",name:"CSV",import:()=>Promise.resolve().then(()=>require("./csv-DiEdJzSJ.js"))},{id:"cue",name:"CUE",import:()=>Promise.resolve().then(()=>require("./cue-D1vJRJEx.js"))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>Promise.resolve().then(()=>require("./cypher-atSM3NsM.js"))},{id:"d",name:"D",import:()=>Promise.resolve().then(()=>require("./d-2qe3NhmZ.js"))},{id:"dart",name:"Dart",import:()=>Promise.resolve().then(()=>require("./dart-Ds0_0fwe.js"))},{id:"dax",name:"DAX",import:()=>Promise.resolve().then(()=>require("./dax-DbkQa40E.js"))},{id:"desktop",name:"Desktop",import:()=>Promise.resolve().then(()=>require("./desktop-tn3MFXCZ.js"))},{id:"diff",name:"Diff",import:()=>Promise.resolve().then(()=>require("./diff-CA31fCOg.js"))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>Promise.resolve().then(()=>require("./docker-zJpMwmYa.js"))},{id:"dotenv",name:"dotEnv",import:()=>Promise.resolve().then(()=>require("./dotenv-DpcNCNek.js"))},{id:"dream-maker",name:"Dream Maker",import:()=>Promise.resolve().then(()=>require("./dream-maker-BkijXDkm.js"))},{id:"edge",name:"Edge",import:()=>Promise.resolve().then(()=>require("./edge-B28yp_Zk.js"))},{id:"elixir",name:"Elixir",import:()=>Promise.resolve().then(()=>require("./elixir-D7-1KNL2.js"))},{id:"elm",name:"Elm",import:()=>Promise.resolve().then(()=>require("./elm-BkJa-nJb.js"))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>Promise.resolve().then(()=>require("./emacs-lisp-C1UCIjUO.js"))},{id:"erb",name:"ERB",import:()=>Promise.resolve().then(()=>require("./erb-DJ1tHjRo.js"))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.resolve().then(()=>require("./erlang-DztDLzIS.js"))},{id:"fennel",name:"Fennel",import:()=>Promise.resolve().then(()=>require("./fennel-Bz9-EMMc.js"))},{id:"fish",name:"Fish",import:()=>Promise.resolve().then(()=>require("./fish-DwmQKRZi.js"))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>Promise.resolve().then(()=>require("./fluent-CJtpNuaO.js"))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.resolve().then(()=>require("./fortran-fixed-form-CM5372im.js"))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>Promise.resolve().then(()=>require("./fortran-free-form-Cs4ztolN.js"))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.resolve().then(()=>require("./fsharp-C8GKou_e.js"))},{id:"gdresource",name:"GDResource",import:()=>Promise.resolve().then(()=>require("./gdresource-Bx-5U3z2.js"))},{id:"gdscript",name:"GDScript",import:()=>Promise.resolve().then(()=>require("./gdscript-DSegQKMB.js"))},{id:"gdshader",name:"GDShader",import:()=>Promise.resolve().then(()=>require("./gdshader-DsmqQl4t.js"))},{id:"genie",name:"Genie",import:()=>Promise.resolve().then(()=>require("./genie-Dy2rU8CF.js"))},{id:"gherkin",name:"Gherkin",import:()=>Promise.resolve().then(()=>require("./gherkin-BmiEVBJ1.js"))},{id:"git-commit",name:"Git Commit Message",import:()=>Promise.resolve().then(()=>require("./git-commit-B0NDtut1.js"))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.resolve().then(()=>require("./git-rebase-lJEbayNx.js"))},{id:"gleam",name:"Gleam",import:()=>Promise.resolve().then(()=>require("./gleam-DHVuTCr7.js"))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.resolve().then(()=>require("./glimmer-js-CxLlFUHs.js"))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.resolve().then(()=>require("./glimmer-ts-C8Spe63v.js"))},{id:"glsl",name:"GLSL",import:()=>Promise.resolve().then(()=>require("./glsl-BcHRsW10.js"))},{id:"gn",name:"GN",import:()=>Promise.resolve().then(()=>require("./gn-0WGnAyGi.js"))},{id:"gnuplot",name:"Gnuplot",import:()=>Promise.resolve().then(()=>require("./gnuplot-CDPKvI9X.js"))},{id:"go",name:"Go",import:()=>Promise.resolve().then(()=>require("./go-epHseFUa.js"))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.resolve().then(()=>require("./graphql-BO3Jc_L3.js"))},{id:"groovy",name:"Groovy",import:()=>Promise.resolve().then(()=>require("./groovy-D7VuDBXz.js"))},{id:"hack",name:"Hack",import:()=>Promise.resolve().then(()=>require("./hack-Dr4YFULU.js"))},{id:"haml",name:"Ruby Haml",import:()=>Promise.resolve().then(()=>require("./haml-DjC-8E5i.js"))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.resolve().then(()=>require("./handlebars-vZrL3oRU.js"))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>Promise.resolve().then(()=>require("./haskell-BShesV2P.js"))},{id:"haxe",name:"Haxe",import:()=>Promise.resolve().then(()=>require("./haxe-Bo5XuRS0.js"))},{id:"hcl",name:"HashiCorp HCL",import:()=>Promise.resolve().then(()=>require("./hcl-CrZnvm-1.js"))},{id:"hjson",name:"Hjson",import:()=>Promise.resolve().then(()=>require("./hjson-CEESwTUP.js"))},{id:"hlsl",name:"HLSL",import:()=>Promise.resolve().then(()=>require("./hlsl-CyvYRIb9.js"))},{id:"html",name:"HTML",import:()=>Promise.resolve().then(()=>require("./html-Cub4lUvx.js"))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.resolve().then(()=>require("./html-derivative-DbGZSkO4.js"))},{id:"http",name:"HTTP",import:()=>Promise.resolve().then(()=>require("./http-J4eraUTU.js"))},{id:"hurl",name:"Hurl",import:()=>Promise.resolve().then(()=>require("./hurl-1DL8OH_r.js"))},{id:"hxml",name:"HXML",import:()=>Promise.resolve().then(()=>require("./hxml-DrnMPCCd.js"))},{id:"hy",name:"Hy",import:()=>Promise.resolve().then(()=>require("./hy-a1E2Ed6P.js"))},{id:"imba",name:"Imba",import:()=>Promise.resolve().then(()=>require("./imba-CR1Q6r17.js"))},{id:"ini",name:"INI",aliases:["properties"],import:()=>Promise.resolve().then(()=>require("./ini-Dpu3Xy2p.js"))},{id:"java",name:"Java",import:()=>Promise.resolve().then(()=>require("./java--6gf61wy.js"))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>Promise.resolve().then(()=>require("./javascript-DgmXW4Ha.js"))},{id:"jinja",name:"Jinja",import:()=>Promise.resolve().then(()=>require("./jinja-CJxRwHVK.js"))},{id:"jison",name:"Jison",import:()=>Promise.resolve().then(()=>require("./jison-CH6PZfPk.js"))},{id:"json",name:"JSON",import:()=>Promise.resolve().then(()=>require("./json-YkPizm35.js"))},{id:"json5",name:"JSON5",import:()=>Promise.resolve().then(()=>require("./json5-CCgFZiQn.js"))},{id:"jsonc",name:"JSON with Comments",import:()=>Promise.resolve().then(()=>require("./jsonc-CKPHIcXW.js"))},{id:"jsonl",name:"JSON Lines",import:()=>Promise.resolve().then(()=>require("./jsonl-Dq56Hab-.js"))},{id:"jsonnet",name:"Jsonnet",import:()=>Promise.resolve().then(()=>require("./jsonnet-Csh7E68F.js"))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>Promise.resolve().then(()=>require("./jssm-D0M9iZPY.js"))},{id:"jsx",name:"JSX",import:()=>Promise.resolve().then(()=>require("./jsx-DLX6UGgg.js"))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.resolve().then(()=>require("./julia-DOO7NZhy.js"))},{id:"kdl",name:"KDL",import:()=>Promise.resolve().then(()=>require("./kdl-CDG1p2Qi.js"))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>Promise.resolve().then(()=>require("./kotlin-BHZjvNqT.js"))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>Promise.resolve().then(()=>require("./kusto-C6kOQWT0.js"))},{id:"latex",name:"LaTeX",import:()=>Promise.resolve().then(()=>require("./latex-BkUAME40.js"))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>Promise.resolve().then(()=>require("./lean-DvVQmxVK.js"))},{id:"less",name:"Less",import:()=>Promise.resolve().then(()=>require("./less-Dtg8mm6P.js"))},{id:"liquid",name:"Liquid",import:()=>Promise.resolve().then(()=>require("./liquid-D2h0MxA-.js"))},{id:"llvm",name:"LLVM IR",import:()=>Promise.resolve().then(()=>require("./llvm-DcRvQ_r8.js"))},{id:"log",name:"Log file",import:()=>Promise.resolve().then(()=>require("./log-CjTZ0gSB.js"))},{id:"logo",name:"Logo",import:()=>Promise.resolve().then(()=>require("./logo-BAktp_5i.js"))},{id:"lua",name:"Lua",import:()=>Promise.resolve().then(()=>require("./lua-7_7huFMq.js"))},{id:"luau",name:"Luau",import:()=>Promise.resolve().then(()=>require("./luau-BMXmwtw0.js"))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>Promise.resolve().then(()=>require("./make-NcdIe21U.js"))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>Promise.resolve().then(()=>require("./markdown-Byu9Sdmq.js"))},{id:"marko",name:"Marko",import:()=>Promise.resolve().then(()=>require("./marko-BUUK5Bjn.js"))},{id:"matlab",name:"MATLAB",import:()=>Promise.resolve().then(()=>require("./matlab-CHTOL9Kx.js"))},{id:"mdc",name:"MDC",import:()=>Promise.resolve().then(()=>require("./mdc-DYb1IR0A.js"))},{id:"mdx",name:"MDX",import:()=>Promise.resolve().then(()=>require("./mdx-CjwI68TB.js"))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>Promise.resolve().then(()=>require("./mermaid-BXSwQYo5.js"))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>Promise.resolve().then(()=>require("./mipsasm-BSlRcFIy.js"))},{id:"mojo",name:"Mojo",import:()=>Promise.resolve().then(()=>require("./mojo-D2tXKFxS.js"))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>Promise.resolve().then(()=>require("./moonbit-BweIWWUc.js"))},{id:"move",name:"Move",import:()=>Promise.resolve().then(()=>require("./move-Bm1vlCWg.js"))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>Promise.resolve().then(()=>require("./narrat-CBeKHgTl.js"))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>Promise.resolve().then(()=>require("./nextflow-CM8Ed358.js"))},{id:"nginx",name:"Nginx",import:()=>Promise.resolve().then(()=>require("./nginx-F8v4LkHE.js"))},{id:"nim",name:"Nim",import:()=>Promise.resolve().then(()=>require("./nim-Bz82v_0I.js"))},{id:"nix",name:"Nix",import:()=>Promise.resolve().then(()=>require("./nix-BOiBJUDf.js"))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>Promise.resolve().then(()=>require("./nushell-nGrB_wpI.js"))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>Promise.resolve().then(()=>require("./objective-c-RjkWwFge.js"))},{id:"objective-cpp",name:"Objective-C++",import:()=>Promise.resolve().then(()=>require("./objective-cpp-HnfhWwRe.js"))},{id:"ocaml",name:"OCaml",import:()=>Promise.resolve().then(()=>require("./ocaml-Cx8ewW_A.js"))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>Promise.resolve().then(()=>require("./openscad-D7eUrVPv.js"))},{id:"pascal",name:"Pascal",import:()=>Promise.resolve().then(()=>require("./pascal-DBu9vQ2o.js"))},{id:"perl",name:"Perl",import:()=>Promise.resolve().then(()=>require("./perl-BGWXz6Sf.js"))},{id:"php",name:"PHP",import:()=>Promise.resolve().then(()=>require("./php-BMqBbP55.js"))},{id:"pkl",name:"Pkl",import:()=>Promise.resolve().then(()=>require("./pkl-Dvyry4Rm.js"))},{id:"plsql",name:"PL/SQL",import:()=>Promise.resolve().then(()=>require("./plsql-IJkoPJ9P.js"))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>Promise.resolve().then(()=>require("./po-Rhu6MvnX.js"))},{id:"polar",name:"Polar",import:()=>Promise.resolve().then(()=>require("./polar-BtWqSUq2.js"))},{id:"postcss",name:"PostCSS",import:()=>Promise.resolve().then(()=>require("./postcss-Dh97DcaJ.js"))},{id:"powerquery",name:"PowerQuery",import:()=>Promise.resolve().then(()=>require("./powerquery-BGL6VIw7.js"))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>Promise.resolve().then(()=>require("./powershell-BiEPMjy-.js"))},{id:"prisma",name:"Prisma",import:()=>Promise.resolve().then(()=>require("./prisma-Dp473sn0.js"))},{id:"prolog",name:"Prolog",import:()=>Promise.resolve().then(()=>require("./prolog-N1U-3UeF.js"))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>Promise.resolve().then(()=>require("./proto-DMjUErYA.js"))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.resolve().then(()=>require("./pug-bTUJx3Z-.js"))},{id:"puppet",name:"Puppet",import:()=>Promise.resolve().then(()=>require("./puppet-cDQP_ZC_.js"))},{id:"purescript",name:"PureScript",import:()=>Promise.resolve().then(()=>require("./purescript-DMxb59gF.js"))},{id:"python",name:"Python",aliases:["py"],import:()=>Promise.resolve().then(()=>require("./python-s9jfVbew.js"))},{id:"qml",name:"QML",import:()=>Promise.resolve().then(()=>require("./qml-CDzfIfOz.js"))},{id:"qmldir",name:"QML Directory",import:()=>Promise.resolve().then(()=>require("./qmldir-DNF9H2ir.js"))},{id:"qss",name:"Qt Style Sheets",import:()=>Promise.resolve().then(()=>require("./qss-DwA_oiAM.js"))},{id:"r",name:"R",import:()=>Promise.resolve().then(()=>require("./r-DAqIyZhh.js"))},{id:"racket",name:"Racket",import:()=>Promise.resolve().then(()=>require("./racket-D4laxZit.js"))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>Promise.resolve().then(()=>require("./raku-DHySPsLw.js"))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.resolve().then(()=>require("./razor-DqXh8oK-.js"))},{id:"reg",name:"Windows Registry Script",import:()=>Promise.resolve().then(()=>require("./reg-CevkCKuZ.js"))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>Promise.resolve().then(()=>require("./regexp-DabTWNLE.js"))},{id:"rel",name:"Rel",import:()=>Promise.resolve().then(()=>require("./rel-BS5APza7.js"))},{id:"riscv",name:"RISC-V",import:()=>Promise.resolve().then(()=>require("./riscv-BnGFr6V7.js"))},{id:"rosmsg",name:"ROS Interface",import:()=>Promise.resolve().then(()=>require("./rosmsg-C7VSFzUC.js"))},{id:"rst",name:"reStructuredText",import:()=>Promise.resolve().then(()=>require("./rst-CmsHU1oq.js"))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.resolve().then(()=>require("./ruby-DZp7Kthb.js"))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>Promise.resolve().then(()=>require("./rust-CNeTMPbB.js"))},{id:"sas",name:"SAS",import:()=>Promise.resolve().then(()=>require("./sas-Du-NqkIN.js"))},{id:"sass",name:"Sass",import:()=>Promise.resolve().then(()=>require("./sass-vyo-bUwh.js"))},{id:"scala",name:"Scala",import:()=>Promise.resolve().then(()=>require("./scala-ZSekD-8-.js"))},{id:"scheme",name:"Scheme",import:()=>Promise.resolve().then(()=>require("./scheme-vM0LdD-_.js"))},{id:"scss",name:"SCSS",import:()=>Promise.resolve().then(()=>require("./scss-C9Hu3bmX.js"))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>Promise.resolve().then(()=>require("./sdbl-DeWT5r4i.js"))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>Promise.resolve().then(()=>require("./shaderlab-DFNHwaQA.js"))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>Promise.resolve().then(()=>require("./shellscript-DYWjN7qW.js"))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.resolve().then(()=>require("./shellsession-5qZnCWz3.js"))},{id:"smalltalk",name:"Smalltalk",import:()=>Promise.resolve().then(()=>require("./smalltalk-BNs6hxu4.js"))},{id:"solidity",name:"Solidity",import:()=>Promise.resolve().then(()=>require("./solidity-uQuzgchP.js"))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.resolve().then(()=>require("./soy-BztBK6ie.js"))},{id:"sparql",name:"SPARQL",import:()=>Promise.resolve().then(()=>require("./sparql-Ds57h-sT.js"))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>Promise.resolve().then(()=>require("./splunk-CWPivao_.js"))},{id:"sql",name:"SQL",import:()=>Promise.resolve().then(()=>require("./sql-DhUUVgH1.js"))},{id:"ssh-config",name:"SSH Config",import:()=>Promise.resolve().then(()=>require("./ssh-config-B93wBIBa.js"))},{id:"stata",name:"Stata",import:()=>Promise.resolve().then(()=>require("./stata-B-erP_01.js"))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>Promise.resolve().then(()=>require("./stylus-B64Bt0D4.js"))},{id:"svelte",name:"Svelte",import:()=>Promise.resolve().then(()=>require("./svelte-CPZ3YGr5.js"))},{id:"swift",name:"Swift",import:()=>Promise.resolve().then(()=>require("./swift-BMbGdc3j.js"))},{id:"system-verilog",name:"SystemVerilog",import:()=>Promise.resolve().then(()=>require("./system-verilog-BFclLo9e.js"))},{id:"systemd",name:"Systemd Units",import:()=>Promise.resolve().then(()=>require("./systemd-Dtw7P4tb.js"))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>Promise.resolve().then(()=>require("./talonscript-D8SvZJVc.js"))},{id:"tasl",name:"Tasl",import:()=>Promise.resolve().then(()=>require("./tasl--DC4oX-L.js"))},{id:"tcl",name:"Tcl",import:()=>Promise.resolve().then(()=>require("./tcl-0Q0H86Yn.js"))},{id:"templ",name:"Templ",import:()=>Promise.resolve().then(()=>require("./templ-DADdpFDY.js"))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>Promise.resolve().then(()=>require("./terraform-C0RDrmWi.js"))},{id:"tex",name:"TeX",import:()=>Promise.resolve().then(()=>require("./tex-3QW4GAT7.js"))},{id:"toml",name:"TOML",import:()=>Promise.resolve().then(()=>require("./toml-Q64DoSvG.js"))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.resolve().then(()=>require("./ts-tags-DW4c6MY1.js"))},{id:"tsv",name:"TSV",import:()=>Promise.resolve().then(()=>require("./tsv-DqNGnuVj.js"))},{id:"tsx",name:"TSX",import:()=>Promise.resolve().then(()=>require("./tsx-DIpfUf9u.js"))},{id:"turtle",name:"Turtle",import:()=>Promise.resolve().then(()=>require("./turtle-DipIidr5.js"))},{id:"twig",name:"Twig",import:()=>Promise.resolve().then(()=>require("./twig-DE2P6STQ.js"))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>Promise.resolve().then(()=>require("./typescript-b48wo4zk.js"))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>Promise.resolve().then(()=>require("./typespec-DqXOE4_L.js"))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>Promise.resolve().then(()=>require("./typst-Cqq4j4V-.js"))},{id:"v",name:"V",import:()=>Promise.resolve().then(()=>require("./v-81C2s01-.js"))},{id:"vala",name:"Vala",import:()=>Promise.resolve().then(()=>require("./vala-CsAYdCD2.js"))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>Promise.resolve().then(()=>require("./vb-AiTMb16X.js"))},{id:"verilog",name:"Verilog",import:()=>Promise.resolve().then(()=>require("./verilog-AMohXZcN.js"))},{id:"vhdl",name:"VHDL",import:()=>Promise.resolve().then(()=>require("./vhdl-DIdR1NA5.js"))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>Promise.resolve().then(()=>require("./viml-D01eKeA4.js"))},{id:"vue",name:"Vue",import:()=>Promise.resolve().then(()=>require("./vue-BHXwUkEL.js"))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.resolve().then(()=>require("./vue-html-B4znhqmy.js"))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.resolve().then(()=>require("./vue-vine-CHNjSzYC.js"))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>Promise.resolve().then(()=>require("./vyper-DTzyzn3a.js"))},{id:"wasm",name:"WebAssembly",import:()=>Promise.resolve().then(()=>require("./wasm-Dp-QrJpp.js"))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>Promise.resolve().then(()=>require("./wenyan-CRNx8UP3.js"))},{id:"wgsl",name:"WGSL",import:()=>Promise.resolve().then(()=>require("./wgsl-DF5qc9dd.js"))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>Promise.resolve().then(()=>require("./wikitext-D7uzEIfK.js"))},{id:"wit",name:"WebAssembly Interface Types",import:()=>Promise.resolve().then(()=>require("./wit-BjWgLsJj.js"))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>Promise.resolve().then(()=>require("./wolfram-BR4t3Ffc.js"))},{id:"xml",name:"XML",import:()=>Promise.resolve().then(()=>require("./xml-Vhl3ZuN2.js"))},{id:"xsl",name:"XSL",import:()=>Promise.resolve().then(()=>require("./xsl-B2ZJiKs2.js"))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>Promise.resolve().then(()=>require("./yaml-XVBmpKh-.js"))},{id:"zenscript",name:"ZenScript",import:()=>Promise.resolve().then(()=>require("./zenscript-fNvwKexi.js"))},{id:"zig",name:"Zig",import:()=>Promise.resolve().then(()=>require("./zig-BAyIAcWK.js"))}],T5=Object.fromEntries(b0.map(t=>[t.id,t.import])),D5=Object.fromEntries(b0.flatMap(t=>{var A;return((A=t.aliases)==null?void 0:A.map(e=>[e,t.import]))||[]})),R5={...T5,...D5},O5=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>Promise.resolve().then(()=>require("./andromeeda-DVDxRwp5.js"))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>Promise.resolve().then(()=>require("./aurora-x-C5IpmIOG.js"))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./ayu-dark-CDpQIJw4.js"))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>Promise.resolve().then(()=>require("./catppuccin-frappe-Bn4lgmUk.js"))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>Promise.resolve().then(()=>require("./catppuccin-latte-BPtsb8jD.js"))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>Promise.resolve().then(()=>require("./catppuccin-macchiato-BLfpQWhT.js"))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>Promise.resolve().then(()=>require("./catppuccin-mocha-COMta283.js"))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>Promise.resolve().then(()=>require("./dark-plus-Cd5emcYO.js"))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>Promise.resolve().then(()=>require("./dracula-BNgwAJ-d.js"))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>Promise.resolve().then(()=>require("./dracula-soft-BHZ7sHFu.js"))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./everforest-dark-_sBMomR1.js"))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>Promise.resolve().then(()=>require("./everforest-light-H0xoYxl0.js"))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-BKL9xNgN.js"))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-default-Dsv5MuSi.js"))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-dimmed-CtB9hz8U.js"))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-high-contrast-BqZVM-jF.js"))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>Promise.resolve().then(()=>require("./github-light-BFTOhCbz.js"))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>Promise.resolve().then(()=>require("./github-light-default-BZoWH9dH.js"))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>Promise.resolve().then(()=>require("./github-light-high-contrast-Ks3kPGJU.js"))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>Promise.resolve().then(()=>require("./gruvbox-dark-hard-CUGefKS6.js"))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>Promise.resolve().then(()=>require("./gruvbox-dark-medium-BoKPlKfz.js"))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>Promise.resolve().then(()=>require("./gruvbox-dark-soft-DSrhOWeL.js"))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>Promise.resolve().then(()=>require("./gruvbox-light-hard-De4IuseP.js"))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>Promise.resolve().then(()=>require("./gruvbox-light-medium-CzMY3IEJ.js"))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>Promise.resolve().then(()=>require("./gruvbox-light-soft-U4iAIpWZ.js"))},{id:"houston",displayName:"Houston",type:"dark",import:()=>Promise.resolve().then(()=>require("./houston-T57H3gQZ.js"))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>Promise.resolve().then(()=>require("./kanagawa-dragon-BJZF7xDr.js"))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>Promise.resolve().then(()=>require("./kanagawa-lotus-BhgzmRV4.js"))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>Promise.resolve().then(()=>require("./kanagawa-wave-BgJip59C.js"))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>Promise.resolve().then(()=>require("./laserwave--izBLY1I.js"))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>Promise.resolve().then(()=>require("./light-plus-B5D0le0o.js"))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-Dj0-OyRN.js"))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-darker-Dvfs29ir.js"))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>Promise.resolve().then(()=>require("./material-theme-lighter-EU3ZGl_r.js"))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-ocean-px_3Pwqa.js"))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-palenight-38jxvsGX.js"))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./min-dark-tt5o_I5e.js"))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>Promise.resolve().then(()=>require("./min-light-tmTHl_CQ.js"))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>Promise.resolve().then(()=>require("./monokai-DMIxv6MM.js"))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>Promise.resolve().then(()=>require("./night-owl-BN78kThQ.js"))},{id:"nord",displayName:"Nord",type:"dark",import:()=>Promise.resolve().then(()=>require("./nord-Ca5AGUWc.js"))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>Promise.resolve().then(()=>require("./one-dark-pro-C09VQHwB.js"))},{id:"one-light",displayName:"One Light",type:"light",import:()=>Promise.resolve().then(()=>require("./one-light-020-h_lv.js"))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>Promise.resolve().then(()=>require("./plastic-r5piqq-S.js"))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>Promise.resolve().then(()=>require("./poimandres-BLP3NNjc.js"))},{id:"red",displayName:"Red",type:"dark",import:()=>Promise.resolve().then(()=>require("./red-BQGOv1D5.js"))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>Promise.resolve().then(()=>require("./rose-pine-CfBWm6WX.js"))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>Promise.resolve().then(()=>require("./rose-pine-dawn-CaZ5I2lt.js"))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>Promise.resolve().then(()=>require("./rose-pine-moon-Cql8LDLp.js"))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./slack-dark-akqwQ7ED.js"))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>Promise.resolve().then(()=>require("./slack-ochin-BoQQWmTv.js"))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>Promise.resolve().then(()=>require("./snazzy-light-D_IwRieF.js"))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./solarized-dark-gmm-WbDC.js"))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>Promise.resolve().then(()=>require("./solarized-light-DzcxRSZP.js"))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>Promise.resolve().then(()=>require("./synthwave-84-BBRLOmNT.js"))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>Promise.resolve().then(()=>require("./tokyo-night-GOhjzM5y.js"))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>Promise.resolve().then(()=>require("./vesper-B59Iw4gV.js"))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>Promise.resolve().then(()=>require("./vitesse-black-MF-1S1MG.js"))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./vitesse-dark-SIffJYSe.js"))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>Promise.resolve().then(()=>require("./vitesse-light-U63SkYGT.js"))}],M5=Object.fromEntries(O5.map(t=>[t.id,t.import]));class tf extends Error{constructor(A){super(A),this.name="ShikiError"}}function K5(){return 2147483648}function j5(){return typeof performance<"u"?performance.now():Date.now()}const G5=(t,A)=>t+(A-t%A)%A;async function q5(t){let A,e;const r={};function n(f){e=f,r.HEAPU8=new Uint8Array(f),r.HEAPU32=new Uint32Array(f)}function i(f,w,y){r.HEAPU8.copyWithin(f,w,w+y)}function s(f){try{return A.grow(f-e.byteLength+65535>>>16),n(A.buffer),1}catch{}}function a(f){const w=r.HEAPU8.length;f=f>>>0;const y=K5();if(f>y)return!1;for(let F=1;F<=4;F*=2){let v=w*(1+.2/F);v=Math.min(v,f+100663296);const L=Math.min(y,G5(Math.max(f,v),65536));if(s(L))return!0}return!1}const o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(f,w,y=1024){const F=w+y;let v=w;for(;f[v]&&!(v>=F);)++v;if(v-w>16&&f.buffer&&o)return o.decode(f.subarray(w,v));let L="";for(;w<v;){let _=f[w++];if(!(_&128)){L+=String.fromCharCode(_);continue}const S=f[w++]&63;if((_&224)===192){L+=String.fromCharCode((_&31)<<6|S);continue}const V=f[w++]&63;if((_&240)===224?_=(_&15)<<12|S<<6|V:_=(_&7)<<18|S<<12|V<<6|f[w++]&63,_<65536)L+=String.fromCharCode(_);else{const z=_-65536;L+=String.fromCharCode(55296|z>>10,56320|z&1023)}}return L}function h(f,w){return f?c(r.HEAPU8,f,w):""}const d={emscripten_get_now:j5,emscripten_memcpy_big:i,emscripten_resize_heap:a,fd_write:()=>0};async function m(){const w=await t({env:d,wasi_snapshot_preview1:d});A=w.memory,n(A.buffer),Object.assign(r,w),r.UTF8ToString=h}return await m(),r}var V5=Object.defineProperty,W5=(t,A,e)=>A in t?V5(t,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[A]=e,Ct=(t,A,e)=>W5(t,typeof A!="symbol"?A+"":A,e);let Et=null;function z5(t){throw new tf(t.UTF8ToString(t.getLastOnigError()))}class Zl{constructor(A){Ct(this,"utf16Length"),Ct(this,"utf8Length"),Ct(this,"utf16Value"),Ct(this,"utf8Value"),Ct(this,"utf16OffsetToUtf8"),Ct(this,"utf8OffsetToUtf16");const e=A.length,r=Zl._utf8ByteLength(A),n=r!==e,i=n?new Uint32Array(e+1):null;n&&(i[e]=r);const s=n?new Uint32Array(r+1):null;n&&(s[r]=e);const a=new Uint8Array(r);let o=0;for(let c=0;c<e;c++){const h=A.charCodeAt(c);let d=h,m=!1;if(h>=55296&&h<=56319&&c+1<e){const f=A.charCodeAt(c+1);f>=56320&&f<=57343&&(d=(h-55296<<10)+65536|f-56320,m=!0)}n&&(i[c]=o,m&&(i[c+1]=o),d<=127?s[o+0]=c:d<=2047?(s[o+0]=c,s[o+1]=c):d<=65535?(s[o+0]=c,s[o+1]=c,s[o+2]=c):(s[o+0]=c,s[o+1]=c,s[o+2]=c,s[o+3]=c)),d<=127?a[o++]=d:d<=2047?(a[o++]=192|(d&1984)>>>6,a[o++]=128|(d&63)>>>0):d<=65535?(a[o++]=224|(d&61440)>>>12,a[o++]=128|(d&4032)>>>6,a[o++]=128|(d&63)>>>0):(a[o++]=240|(d&1835008)>>>18,a[o++]=128|(d&258048)>>>12,a[o++]=128|(d&4032)>>>6,a[o++]=128|(d&63)>>>0),m&&c++}this.utf16Length=e,this.utf8Length=r,this.utf16Value=A,this.utf8Value=a,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=s}static _utf8ByteLength(A){let e=0;for(let r=0,n=A.length;r<n;r++){const i=A.charCodeAt(r);let s=i,a=!1;if(i>=55296&&i<=56319&&r+1<n){const o=A.charCodeAt(r+1);o>=56320&&o<=57343&&(s=(i-55296<<10)+65536|o-56320,a=!0)}s<=127?e+=1:s<=2047?e+=2:s<=65535?e+=3:e+=4,a&&r++}return e}createString(A){const e=A.omalloc(this.utf8Length);return A.HEAPU8.set(this.utf8Value,e),e}}const Ac=class an{constructor(A){if(Ct(this,"id",++an.LAST_ID),Ct(this,"_onigBinding"),Ct(this,"content"),Ct(this,"utf16Length"),Ct(this,"utf8Length"),Ct(this,"utf16OffsetToUtf8"),Ct(this,"utf8OffsetToUtf16"),Ct(this,"ptr"),!Et)throw new tf("Must invoke loadWasm first.");this._onigBinding=Et,this.content=A;const e=new Zl(A);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!an._sharedPtrInUse?(an._sharedPtr||(an._sharedPtr=Et.omalloc(1e4)),an._sharedPtrInUse=!0,Et.HEAPU8.set(e.utf8Value,an._sharedPtr),this.ptr=an._sharedPtr):this.ptr=e.createString(Et)}convertUtf8OffsetToUtf16(A){return this.utf8OffsetToUtf16?A<0?0:A>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[A]:A}convertUtf16OffsetToUtf8(A){return this.utf16OffsetToUtf8?A<0?0:A>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[A]:A}dispose(){this.ptr===an._sharedPtr?an._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Ct(Ac,"LAST_ID",0);Ct(Ac,"_sharedPtr",0);Ct(Ac,"_sharedPtrInUse",!1);let C0=Ac;class $5{constructor(A){if(Ct(this,"_onigBinding"),Ct(this,"_ptr"),!Et)throw new tf("Must invoke loadWasm first.");const e=[],r=[];for(let a=0,o=A.length;a<o;a++){const c=new Zl(A[a]);e[a]=c.createString(Et),r[a]=c.utf8Length}const n=Et.omalloc(4*A.length);Et.HEAPU32.set(e,n/4);const i=Et.omalloc(4*A.length);Et.HEAPU32.set(r,i/4);const s=Et.createOnigScanner(n,i,A.length);for(let a=0,o=A.length;a<o;a++)Et.ofree(e[a]);Et.ofree(i),Et.ofree(n),s===0&&z5(Et),this._onigBinding=Et,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(A,e,r){let n=0;if(typeof r=="number"&&(n=r),typeof A=="string"){A=new C0(A);const i=this._findNextMatchSync(A,e,!1,n);return A.dispose(),i}return this._findNextMatchSync(A,e,!1,n)}_findNextMatchSync(A,e,r,n){const i=this._onigBinding,s=i.findNextOnigScannerMatch(this._ptr,A.id,A.ptr,A.utf8Length,A.convertUtf16OffsetToUtf8(e),n);if(s===0)return null;const a=i.HEAPU32;let o=s/4;const c=a[o++],h=a[o++],d=[];for(let m=0;m<h;m++){const f=A.convertUtf8OffsetToUtf16(a[o++]),w=A.convertUtf8OffsetToUtf16(a[o++]);d[m]={start:f,end:w,length:w-f}}return{index:c,captureIndices:d}}}function X5(t){return typeof t.instantiator=="function"}function J5(t){return typeof t.default=="function"}function Y5(t){return typeof t.data<"u"}function Z5(t){return typeof Response<"u"&&t instanceof Response}function Av(t){var A;return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&((A=Buffer.isBuffer)==null?void 0:A.call(Buffer,t))||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}let Ho;function ev(t){if(Ho)return Ho;async function A(){Et=await q5(async e=>{let r=t;return r=await r,typeof r=="function"&&(r=await r(e)),typeof r=="function"&&(r=await r(e)),X5(r)?r=await r.instantiator(e):J5(r)?r=await r.default(e):(Y5(r)&&(r=r.data),Z5(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await tv(r)(e):r=await rv(r)(e):Av(r)?r=await Yc(r)(e):r instanceof WebAssembly.Module?r=await Yc(r)(e):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Yc(r.default)(e))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Ho=A(),Ho}function Yc(t){return A=>WebAssembly.instantiate(t,A)}function tv(t){return A=>WebAssembly.instantiateStreaming(t,A)}function rv(t){return async A=>{const e=await t.arrayBuffer();return WebAssembly.instantiate(e,A)}}async function nv(t){return t&&await ev(t),{createScanner(A){return new $5(A.map(e=>typeof e=="string"?e:e.source))},createString(A){return new C0(A)}}}const iv=P5({langs:R5,themes:M5,engine:()=>nv(Promise.resolve().then(()=>require("./wasm-Dw4u1m6u.js")))});let Zc=null,la=null;const ns=new Map,sv=500,oh={light:"github-light",dark:"github-dark"},F0={js:"javascript",ts:"typescript",py:"python",sh:"bash",yml:"yaml",dockerfile:"docker","docker-compose":"yaml",kubernetes:"yaml",k8s:"yaml",caddyfile:"nginx",nginx:"nginx",apache:"apache",terraform:"hcl",hcl:"hcl",ansible:"yaml",dotenv:"dotenv",env:"dotenv",ini:"ini",toml:"toml",json:"json",jsonc:"jsonc",jsonl:"json",html:"html",xml:"xml",svg:"xml",css:"css",scss:"scss",less:"less",markdown:"markdown",md:"markdown",mdx:"mdx",jsx:"jsx",tsx:"tsx",go:"go",php:"php",ruby:"ruby",rb:"ruby",java:"java",csharp:"csharp",cs:"csharp",cpp:"cpp","c++":"cpp",c:"c",rust:"rust",rs:"rust",sql:"sql",postgresql:"sql",postgres:"sql",mysql:"sql",bash:"bash",powershell:"powershell",ps1:"powershell",cmd:"bat",bat:"bat",log:"log","nginx-access-log":"log","nginx-error-log":"log",csv:"csv","plain-text":"plaintext"};async function av(){return Zc||la||(la=iv({themes:[oh.light,oh.dark],langs:[]}).then(t=>(Zc=t,t)).catch(t=>{throw console.error("[Shiki] Failed to initialize highlighter:",t),la=null,t}),la)}async function ov(t,A){t.getLoadedLanguages().includes(A)||await t.loadLanguage(A)}function Pl(t){const A=t.toLowerCase().trim();return F0[A]||A}function lv(t){const A=Pl(t);return["javascript","typescript","jsx","tsx","python","go","php","ruby","java","csharp","cpp","c","rust","bash","powershell","bat","yaml","toml","ini","dotenv","json","jsonc","html","xml","css","scss","less","markdown","mdx","sql","docker","nginx","apache","hcl","log","csv","plaintext"].includes(A)}function cv(t){let A=0;for(let e=0;e<t.length;e++){const r=t.charCodeAt(e);A=(A<<5)-A+r,A=A&A}return A.toString(36)}async function Q0(t,A,e="dark"){const r=Pl(A),n=`${r}:${e}:${cv(t)}`;if(ns.has(n))return ns.get(n);try{const i=await av(),s=lv(A)?r:"plaintext";await ov(i,s);const a=i.codeToHtml(t,{lang:s,theme:oh[e]});if(ns.size>=sv){const o=ns.keys().next().value;o&&ns.delete(o)}return ns.set(n,a),a}catch(i){return console.error("[Shiki] Highlighting error:",i),`<pre><code>${uv(t)}</code></pre>`}}function uv(t){const A=document.createElement("div");return A.textContent=t,A.innerHTML}function hv(){return Object.keys(F0).sort()}function lh({html:t,theme:A="dark",onExportHtml:e,onExportText:r,onCopyHtml:n,enableSourceTab:i=!0,headless:s=!1,className:a="",headerClassName:o="",contentClassName:c="",tabClassName:h="",activeTabClassName:d="",buttonClassName:m=""}){const[f,w]=IA.useState("preview"),y=IA.useRef(null),F=A==="light";return IA.useEffect(()=>{if(!y.current||f!=="preview")return;(async()=>{var _;const L=(_=y.current)==null?void 0:_.querySelectorAll("pre.code-block");if(L)for(const S of Array.from(L)){const V=S.querySelector("code");if(!V)continue;const z=S.getAttribute("data-language")||"plain-text",X=V.textContent||"";try{const q=await Q0(X,z,A==="auto"?"dark":A),k=document.createElement("div");k.innerHTML=q;const Y=k.querySelector("pre");if(Y){const x=S.getAttribute("data-language"),P=S.getAttribute("data-display-name");x&&Y.setAttribute("data-language",x),P&&Y.setAttribute("data-display-name",P),Y.className="code-block",S.replaceWith(Y)}}catch(q){console.error("Preview highlighting failed:",q)}}})()},[t,A,f]),IA.useEffect(()=>{if(!y.current)return;const v=L=>{const _=L.target,S=_.closest("pre");if(S&&_===S){const V=S.querySelector("code");V&&navigator.clipboard.writeText(V.textContent||"")}};return y.current.addEventListener("click",v),()=>{var L;(L=y.current)==null||L.removeEventListener("click",v)}},[f]),s?N.jsxs("div",{className:a,"data-preview-panel":!0,children:[(e||r||n||i)&&N.jsxs("div",{className:o,"data-preview-header":!0,children:[N.jsxs("div",{"data-preview-tabs":!0,children:[N.jsx("button",{className:`${h} ${f==="preview"?d:""}`,onClick:()=>w("preview"),"data-tab":"preview","data-active":f==="preview",children:"Предпросмотр"}),i&&N.jsx("button",{className:`${h} ${f==="source"?d:""}`,onClick:()=>w("source"),"data-tab":"source","data-active":f==="source",children:"HTML код"})]}),N.jsxs("div",{"data-preview-actions":!0,children:[e&&N.jsx("button",{className:m,onClick:e,"data-action":"export-html",children:"Экспорт HTML"}),r&&N.jsx("button",{className:m,onClick:r,"data-action":"export-text",children:"Экспорт TXT"}),n&&N.jsx("button",{className:m,onClick:n,"data-action":"copy-html",children:"Копировать"})]})]}),f==="preview"&&N.jsx("div",{ref:y,className:c,dangerouslySetInnerHTML:{__html:t},"data-preview-content":!0}),f==="source"&&N.jsx("pre",{className:c,"data-preview-source":!0,children:t})]}):N.jsxs("div",{className:`${AA.previewPanel} ${F?AA.light:""} ${a}`,children:[N.jsxs("div",{className:`${AA.previewHeader} ${o}`,children:[N.jsxs("div",{style:{display:"flex",gap:"8px"},children:[N.jsxs("button",{className:`${AA.tabBtn} ${f==="preview"?AA.active:""} ${h}`,onClick:()=>w("preview"),children:[N.jsx("i",{className:"fas fa-eye",style:{marginRight:"8px"}}),"Предпросмотр"]}),i&&N.jsxs("button",{className:`${AA.tabBtn} ${f==="source"?AA.active:""} ${h}`,onClick:()=>w("source"),children:[N.jsx("i",{className:"fas fa-code",style:{marginRight:"8px"}}),"HTML код"]})]}),N.jsxs("div",{style:{display:"flex",gap:"8px"},children:[e&&N.jsx("button",{className:`${AA.toolbarBtn} ${m}`,onClick:e,title:"Экспорт HTML",style:{color:"white"},children:N.jsx("i",{className:"fas fa-file-code"})}),r&&N.jsx("button",{className:`${AA.toolbarBtn} ${m}`,onClick:r,title:"Экспорт TXT",style:{color:"white"},children:N.jsx("i",{className:"fas fa-file-alt"})}),n&&N.jsx("button",{className:`${AA.toolbarBtn} ${m}`,onClick:n,title:"Копировать HTML",style:{color:"white"},children:N.jsx("i",{className:"fas fa-copy"})})]})]}),f==="preview"&&N.jsx("div",{ref:y,className:`${AA.previewContent} ${F?AA.light:""} ${c}`,dangerouslySetInnerHTML:{__html:t}}),f==="source"&&N.jsx("pre",{className:`${AA.sourceCode} ${AA.show} ${c}`,children:t})]})}function fv({isOpen:t,onClose:A,onInsert:e,theme:r="dark"}){const[n,i]=IA.useState(""),[s,a]=IA.useState(""),[o,c]=IA.useState(!1),h=r==="light";IA.useEffect(()=>{if(t){const f=window.getSelection(),w=f==null?void 0:f.toString().trim();w?(a(w),c(!0)):c(!1)}else i(""),a(""),c(!1)},[t]);const d=()=>{n&&(e(n,s||n),A())},m=f=>{f.key==="Enter"?d():f.key==="Escape"&&A()};return t?N.jsx("div",{className:`${AA.modalOverlay} ${t?AA.show:""}`,onClick:A,children:N.jsxs("div",{className:`${AA.modal} ${h?AA.light:""}`,onClick:f=>f.stopPropagation(),children:[N.jsx("h3",{children:"🔗 Вставить ссылку"}),N.jsx("input",{type:"text",className:`${AA.modalInput} ${h?AA.light:""}`,placeholder:"URL (https://...)",value:n,onChange:f=>i(f.target.value),onKeyDown:m,autoFocus:!0}),!o&&N.jsx("input",{type:"text",className:`${AA.modalInput} ${h?AA.light:""}`,placeholder:"Текст ссылки (необязательно)",value:s,onChange:f=>a(f.target.value),onKeyDown:m}),N.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"16px"},children:[N.jsx("button",{className:`${AA.modalBtn} ${AA.modalBtnSecondary}`,onClick:A,children:"Отмена"}),N.jsx("button",{className:`${AA.modalBtn} ${AA.modalBtnPrimary}`,onClick:d,children:"Вставить"})]})]})}):null}function dv({isOpen:t,onClose:A,onInsert:e,allowUpload:r=!0,onUpload:n}){const[i,s]=IA.useState(""),[a,o]=IA.useState(""),c=IA.useRef(null);IA.useEffect(()=>{t||(s(""),o(""),c.current&&(c.current.value=""))},[t]);const h=async()=>{var f,w;const m=(w=(f=c.current)==null?void 0:f.files)==null?void 0:w[0];if(m)if(n)try{const y=await n(m);e(y,a||"Image"),A()}catch(y){console.error("Image upload failed:",y),alert("Ошибка загрузки изображения")}else{const y=new FileReader;y.onload=F=>{var L;const v=(L=F.target)==null?void 0:L.result;e(v,a||"Image"),A()},y.readAsDataURL(m)}else i&&(e(i,a||"Image"),A())},d=m=>{m.key==="Enter"?h():m.key==="Escape"&&A()};return t?N.jsx("div",{className:`${AA.modalOverlay} ${t?AA.show:""}`,onClick:A,children:N.jsxs("div",{className:AA.modal,onClick:m=>m.stopPropagation(),children:[N.jsx("h3",{children:"🖼️ Вставить изображение"}),N.jsx("input",{type:"text",className:AA.modalInput,placeholder:"URL изображения",value:i,onChange:m=>s(m.target.value),onKeyDown:d,autoFocus:!0}),N.jsx("input",{type:"text",className:AA.modalInput,placeholder:"Альтернативный текст",value:a,onChange:m=>o(m.target.value),onKeyDown:d}),r&&N.jsxs(N.Fragment,{children:[N.jsx("div",{style:{textAlign:"center",margin:"16px 0",color:"#6b7280"},children:"— или —"}),N.jsx("input",{ref:c,type:"file",accept:"image/*",className:AA.modalInput})]}),N.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"16px"},children:[N.jsx("button",{className:`${AA.modalBtn} ${AA.modalBtnSecondary}`,onClick:A,children:"Отмена"}),N.jsx("button",{className:`${AA.modalBtn} ${AA.modalBtnPrimary}`,onClick:h,children:"Вставить"})]})]})}):null}function U0(t){var A,e,r;if(!t)return null;if(t.includes("youtube.com/watch")){const n=(A=t.split("v=")[1])==null?void 0:A.split("&")[0];if(n)return{embedUrl:`https://www.youtube.com/embed/${n}`,provider:"youtube"}}if(t.includes("youtu.be/")){const n=(e=t.split("youtu.be/")[1])==null?void 0:e.split("?")[0];if(n)return{embedUrl:`https://www.youtube.com/embed/${n}`,provider:"youtube"}}if(t.includes("vimeo.com/")){const n=(r=t.split("vimeo.com/")[1])==null?void 0:r.split("?")[0];if(n)return{embedUrl:`https://player.vimeo.com/video/${n}`,provider:"vimeo"}}return null}function x0(t){return`<div style="position:relative;padding-bottom:56.25%;height:0;overflow:hidden;margin:1em 0;">
116
119
  <iframe src="${t}" style="position:absolute;top:0;left:0;width:100%;height:100%;border:0;" allowfullscreen></iframe>
117
- </div>`}function gv({isOpen:t,onClose:A,onInsert:e,onUpload:r,allowUpload:n=!1}){const[i,s]=RA.useState(""),[a,o]=RA.useState(!1),[c,h]=RA.useState(!1),[g,m]=RA.useState(0);RA.useEffect(()=>{t||(s(""),o(!1),h(!1),m(0))},[t]);const f=()=>{if(i){const F=b0(i);if(F){const v=F0(F.embedUrl);e(v),A()}else{const v=`
120
+ </div>`}function gv({isOpen:t,onClose:A,onInsert:e,onUpload:r,allowUpload:n=!1}){const[i,s]=IA.useState(""),[a,o]=IA.useState(!1),[c,h]=IA.useState(!1),[d,m]=IA.useState(0);IA.useEffect(()=>{t||(s(""),o(!1),h(!1),m(0))},[t]);const f=()=>{if(i){const F=U0(i);if(F){const v=x0(F.embedUrl);e(v),A()}else{const v=`
118
121
  <div style="position:relative;padding-bottom:56.25%;height:0;overflow:hidden;margin:1em 0;">
119
122
  <video controls style="position:absolute;top:0;left:0;width:100%;height:100%;">
120
123
  <source src="${i}" type="video/mp4">
121
124
  Ваш браузер не поддерживает видео.
122
125
  </video>
123
126
  </div>
124
- `;e(v),A()}}},w=async F=>{var N;const v=(N=F.target.files)==null?void 0:N[0];if(!v)return;if(!v.type.startsWith("video/")){alert("Пожалуйста, выберите видео файл");return}const L=100*1024*1024;if(v.size>L){alert("Файл слишком большой. Максимальный размер: 100MB");return}if(!r){alert("Загрузка видео не настроена. Пожалуйста, настройте onUpload callback.");return}h(!0),m(0);try{const _=setInterval(()=>{m(J=>Math.min(J+10,90))},200),q=await r(v);clearInterval(_),m(100);const X=`
127
+ `;e(v),A()}}},w=async F=>{var _;const v=(_=F.target.files)==null?void 0:_[0];if(!v)return;if(!v.type.startsWith("video/")){alert("Пожалуйста, выберите видео файл");return}const L=100*1024*1024;if(v.size>L){alert("Файл слишком большой. Максимальный размер: 100MB");return}if(!r){alert("Загрузка видео не настроена. Пожалуйста, настройте onUpload callback.");return}h(!0),m(0);try{const S=setInterval(()=>{m(X=>Math.min(X+10,90))},200),V=await r(v);clearInterval(S),m(100);const z=`
125
128
  <div style="position:relative;padding-bottom:56.25%;height:0;overflow:hidden;margin:1em 0;">
126
129
  <video controls style="position:absolute;top:0;left:0;width:100%;height:100%;">
127
- <source src="${q}" type="${v.type}">
130
+ <source src="${V}" type="${v.type}">
128
131
  Ваш браузер не поддерживает видео.
129
132
  </video>
130
133
  </div>
131
- `;e(X),A()}catch(_){console.error("Upload failed:",_),alert("Ошибка загрузки видео: "+(_ instanceof Error?_.message:"Unknown error"))}finally{h(!1),m(0)}},y=F=>{F.key==="Enter"&&!c?f():F.key==="Escape"&&A()};return t?V.jsx("div",{className:`${eA.modalOverlay} ${t?eA.show:""}`,onClick:A,children:V.jsxs("div",{className:eA.modal,onClick:F=>F.stopPropagation(),children:[V.jsx("h3",{children:"🎥 Вставить видео"}),n&&V.jsxs("div",{style:{marginBottom:"16px",display:"flex",gap:"8px"},children:[V.jsx("button",{className:`${eA.modalBtn} ${a?eA.modalBtnSecondary:eA.modalBtnPrimary}`,onClick:()=>o(!1),style:{flex:1},children:"URL"}),V.jsx("button",{className:`${eA.modalBtn} ${a?eA.modalBtnPrimary:eA.modalBtnSecondary}`,onClick:()=>o(!0),style:{flex:1},children:"Загрузить файл"})]}),a?V.jsxs(V.Fragment,{children:[V.jsx("input",{type:"file",accept:"video/*",onChange:w,disabled:c,style:{width:"100%",padding:"12px",marginBottom:"8px",border:"2px dashed #6366f1",borderRadius:"8px",cursor:c?"not-allowed":"pointer"}}),c&&V.jsxs("div",{style:{marginTop:"12px"},children:[V.jsx("div",{style:{width:"100%",height:"8px",background:"#2d2d3f",borderRadius:"4px",overflow:"hidden"},children:V.jsx("div",{style:{width:`${g}%`,height:"100%",background:"#6366f1",transition:"width 0.3s"}})}),V.jsxs("p",{style:{fontSize:"12px",color:"#888",marginTop:"8px",textAlign:"center"},children:["Загрузка... ",g,"%"]})]}),V.jsx("p",{style:{fontSize:"12px",color:"#888",marginTop:"8px"},children:"Максимальный размер: 100MB. Форматы: MP4, WebM, OGG"})]}):V.jsxs(V.Fragment,{children:[V.jsx("input",{type:"text",className:eA.modalInput,placeholder:"URL видео (YouTube, Vimeo или прямая ссылка)",value:i,onChange:F=>s(F.target.value),onKeyDown:y,autoFocus:!0}),V.jsx("p",{style:{fontSize:"12px",color:"#888",marginTop:"8px"},children:"Поддерживаются: YouTube, Vimeo, прямые ссылки на .mp4"})]}),V.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"16px"},children:[V.jsx("button",{className:`${eA.modalBtn} ${eA.modalBtnSecondary}`,onClick:A,disabled:c,children:"Отмена"}),!a&&V.jsx("button",{className:`${eA.modalBtn} ${eA.modalBtnPrimary}`,onClick:f,disabled:c,children:"Вставить"})]})]})}):null}function pv({isOpen:t,onClose:A,onInsert:e}){const[r,n]=RA.useState(3),[i,s]=RA.useState(3);RA.useEffect(()=>{t||(n(3),s(3))},[t]);const a=()=>{r>0&&i>0&&(e(r,i),A())},o=c=>{c.key==="Enter"?a():c.key==="Escape"&&A()};return t?V.jsx("div",{className:`${eA.modalOverlay} ${t?eA.show:""}`,onClick:A,children:V.jsxs("div",{className:eA.modal,onClick:c=>c.stopPropagation(),children:[V.jsx("h3",{children:"📊 Вставить таблицу"}),V.jsxs("div",{style:{display:"flex",gap:"16px"},children:[V.jsxs("div",{style:{flex:1},children:[V.jsx("label",{style:{color:"#9ca3af",fontSize:"14px"},children:"Строк"}),V.jsx("input",{type:"number",className:eA.modalInput,value:r,onChange:c=>n(parseInt(c.target.value)||1),onKeyDown:o,min:"1",max:"20",autoFocus:!0})]}),V.jsxs("div",{style:{flex:1},children:[V.jsx("label",{style:{color:"#9ca3af",fontSize:"14px"},children:"Столбцов"}),V.jsx("input",{type:"number",className:eA.modalInput,value:i,onChange:c=>s(parseInt(c.target.value)||1),onKeyDown:o,min:"1",max:"10"})]})]}),V.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"16px"},children:[V.jsx("button",{className:`${eA.modalBtn} ${eA.modalBtnSecondary}`,onClick:A,children:"Отмена"}),V.jsx("button",{className:`${eA.modalBtn} ${eA.modalBtnPrimary}`,onClick:a,children:"Вставить"})]})]})}):null}function _e(t){"@babel/helpers - typeof";return _e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},_e(t)}var Kr=Uint8Array,gr=Uint16Array,Zh=Int32Array,Af=new Kr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ef=new Kr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Bd=new Kr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Q0=function(t,A){for(var e=new gr(31),r=0;r<31;++r)e[r]=A+=1<<t[r-1];for(var n=new Zh(e[30]),r=1;r<30;++r)for(var i=e[r];i<e[r+1];++i)n[i]=i-e[r]<<5|r;return{b:e,r:n}},U0=Q0(Af,2),mv=U0.b,oh=U0.r;mv[28]=258,oh[258]=28;var Bv=Q0(ef,0),wd=Bv.r,lh=new gr(32768);for(var qe=0;qe<32768;++qe){var Zn=(qe&43690)>>1|(qe&21845)<<1;Zn=(Zn&52428)>>2|(Zn&13107)<<2,Zn=(Zn&61680)>>4|(Zn&3855)<<4,lh[qe]=((Zn&65280)>>8|(Zn&255)<<8)>>1}var Ua=function(t,A,e){for(var r=t.length,n=0,i=new gr(A);n<r;++n)t[n]&&++i[t[n]-1];var s=new gr(A);for(n=1;n<A;++n)s[n]=s[n-1]+i[n-1]<<1;var a;if(e){a=new gr(1<<A);var o=15-A;for(n=0;n<r;++n)if(t[n])for(var c=n<<4|t[n],h=A-t[n],g=s[t[n]-1]++<<h,m=g|(1<<h)-1;g<=m;++g)a[lh[g]>>o]=c}else for(a=new gr(r),n=0;n<r;++n)t[n]&&(a[n]=lh[s[t[n]-1]++]>>15-t[n]);return a},Oi=new Kr(288);for(var qe=0;qe<144;++qe)Oi[qe]=8;for(var qe=144;qe<256;++qe)Oi[qe]=9;for(var qe=256;qe<280;++qe)Oi[qe]=7;for(var qe=280;qe<288;++qe)Oi[qe]=8;var Pl=new Kr(32);for(var qe=0;qe<32;++qe)Pl[qe]=5;var wv=Ua(Oi,9,0),vv=Ua(Pl,5,0),x0=function(t){return(t+7)/8|0},yv=function(t,A,e){return(e==null||e>t.length)&&(e=t.length),new Kr(t.subarray(A,e))},Ln=function(t,A,e){e<<=A&7;var r=A/8|0;t[r]|=e,t[r+1]|=e>>8},ca=function(t,A,e){e<<=A&7;var r=A/8|0;t[r]|=e,t[r+1]|=e>>8,t[r+2]|=e>>16},Zc=function(t,A){for(var e=[],r=0;r<t.length;++r)t[r]&&e.push({s:r,f:t[r]});var n=e.length,i=e.slice();if(!n)return{t:L0,l:0};if(n==1){var s=new Kr(e[0].s+1);return s[e[0].s]=1,{t:s,l:1}}e.sort(function(q,X){return q.f-X.f}),e.push({s:-1,f:25001});var a=e[0],o=e[1],c=0,h=1,g=2;for(e[0]={s:-1,f:a.f+o.f,l:a,r:o};h!=n-1;)a=e[e[c].f<e[g].f?c++:g++],o=e[c!=h&&e[c].f<e[g].f?c++:g++],e[h++]={s:-1,f:a.f+o.f,l:a,r:o};for(var m=i[0].s,r=1;r<n;++r)i[r].s>m&&(m=i[r].s);var f=new gr(m+1),w=ch(e[h-1],f,0);if(w>A){var r=0,y=0,F=w-A,v=1<<F;for(i.sort(function(X,J){return f[J.s]-f[X.s]||X.f-J.f});r<n;++r){var L=i[r].s;if(f[L]>A)y+=v-(1<<w-f[L]),f[L]=A;else break}for(y>>=F;y>0;){var N=i[r].s;f[N]<A?y-=1<<A-f[N]++-1:++r}for(;r>=0&&y;--r){var _=i[r].s;f[_]==A&&(--f[_],++y)}w=A}return{t:new Kr(f),l:w}},ch=function(t,A,e){return t.s==-1?Math.max(ch(t.l,A,e+1),ch(t.r,A,e+1)):A[t.s]=e},vd=function(t){for(var A=t.length;A&&!t[--A];);for(var e=new gr(++A),r=0,n=t[0],i=1,s=function(o){e[r++]=o},a=1;a<=A;++a)if(t[a]==n&&a!=A)++i;else{if(!n&&i>2){for(;i>138;i-=138)s(32754);i>2&&(s(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(s(n),--i;i>6;i-=6)s(8304);i>2&&(s(i-3<<5|8208),i=0)}for(;i--;)s(n);i=1,n=t[a]}return{c:e.subarray(0,r),n:A}},ua=function(t,A){for(var e=0,r=0;r<A.length;++r)e+=t[r]*A[r];return e},E0=function(t,A,e){var r=e.length,n=x0(A+2);t[n]=r&255,t[n+1]=r>>8,t[n+2]=t[n]^255,t[n+3]=t[n+1]^255;for(var i=0;i<r;++i)t[n+i+4]=e[i];return(n+4+r)*8},yd=function(t,A,e,r,n,i,s,a,o,c,h){Ln(A,h++,e),++n[256];for(var g=Zc(n,15),m=g.t,f=g.l,w=Zc(i,15),y=w.t,F=w.l,v=vd(m),L=v.c,N=v.n,_=vd(y),q=_.c,X=_.n,J=new gr(19),G=0;G<L.length;++G)++J[L[G]&31];for(var G=0;G<q.length;++G)++J[q[G]&31];for(var k=Zc(J,7),Z=k.t,x=k.l,S=19;S>4&&!Z[Bd[S-1]];--S);var K=c+5<<3,T=ua(n,Oi)+ua(i,Pl)+s,z=ua(n,m)+ua(i,y)+s+14+3*S+ua(J,Z)+2*J[16]+3*J[17]+7*J[18];if(o>=0&&K<=T&&K<=z)return E0(A,h,t.subarray(o,o+c));var lA,hA,iA,dA;if(Ln(A,h,1+(z<T)),h+=2,z<T){lA=Ua(m,f,0),hA=m,iA=Ua(y,F,0),dA=y;var QA=Ua(Z,x,0);Ln(A,h,N-257),Ln(A,h+5,X-1),Ln(A,h+10,S-4),h+=14;for(var G=0;G<S;++G)Ln(A,h+3*G,Z[Bd[G]]);h+=3*S;for(var CA=[L,q],U=0;U<2;++U)for(var M=CA[U],G=0;G<M.length;++G){var j=M[G]&31;Ln(A,h,QA[j]),h+=Z[j],j>15&&(Ln(A,h,M[G]>>5&127),h+=M[G]>>12)}}else lA=wv,hA=Oi,iA=vv,dA=Pl;for(var G=0;G<a;++G){var $=r[G];if($>255){var j=$>>18&31;ca(A,h,lA[j+257]),h+=hA[j+257],j>7&&(Ln(A,h,$>>23&31),h+=Af[j]);var AA=$&31;ca(A,h,iA[AA]),h+=dA[AA],AA>3&&(ca(A,h,$>>5&8191),h+=ef[AA])}else ca(A,h,lA[$]),h+=hA[$]}return ca(A,h,lA[256]),h+hA[256]},Cv=new Zh([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),L0=new Kr(0),bv=function(t,A,e,r,n,i){var s=i.z||t.length,a=new Kr(r+s+5*(1+Math.ceil(s/7e3))+n),o=a.subarray(r,a.length-n),c=i.l,h=(i.r||0)&7;if(A){h&&(o[0]=i.r>>3);for(var g=Cv[A-1],m=g>>13,f=g&8191,w=(1<<e)-1,y=i.p||new gr(32768),F=i.h||new gr(w+1),v=Math.ceil(e/3),L=2*v,N=function($A){return(t[$A]^t[$A+1]<<v^t[$A+2]<<L)&w},_=new Zh(25e3),q=new gr(288),X=new gr(32),J=0,G=0,k=i.i||0,Z=0,x=i.w||0,S=0;k+2<s;++k){var K=N(k),T=k&32767,z=F[K];if(y[T]=z,F[K]=T,x<=k){var lA=s-k;if((J>7e3||Z>24576)&&(lA>423||!c)){h=yd(t,o,0,_,q,X,G,Z,S,k-S,h),Z=J=G=0,S=k;for(var hA=0;hA<286;++hA)q[hA]=0;for(var hA=0;hA<30;++hA)X[hA]=0}var iA=2,dA=0,QA=f,CA=T-z&32767;if(lA>2&&K==N(k-CA))for(var U=Math.min(m,lA)-1,M=Math.min(32767,k),j=Math.min(258,lA);CA<=M&&--QA&&T!=z;){if(t[k+iA]==t[k+iA-CA]){for(var $=0;$<j&&t[k+$]==t[k+$-CA];++$);if($>iA){if(iA=$,dA=CA,$>U)break;for(var AA=Math.min(CA,$-2),sA=0,hA=0;hA<AA;++hA){var fA=k-CA+hA&32767,gA=y[fA],yA=fA-gA&32767;yA>sA&&(sA=yA,z=fA)}}}T=z,z=y[T],CA+=T-z&32767}if(dA){_[Z++]=268435456|oh[iA]<<18|wd[dA];var xA=oh[iA]&31,NA=wd[dA]&31;G+=Af[xA]+ef[NA],++q[257+xA],++X[NA],x=k+iA,++J}else _[Z++]=t[k],++q[t[k]]}}for(k=Math.max(k,x);k<s;++k)_[Z++]=t[k],++q[t[k]];h=yd(t,o,c,_,q,X,G,Z,S,k-S,h),c||(i.r=h&7|o[h/8|0]<<3,h-=7,i.h=F,i.p=y,i.i=k,i.w=x)}else{for(var k=i.w||0;k<s+c;k+=65535){var _A=k+65535;_A>=s&&(o[h/8|0]=c,_A=s),h=E0(o,h+1,t.subarray(k,_A))}i.i=s}return yv(a,0,r+x0(h)+n)},S0=function(){var t=1,A=0;return{p:function(e){for(var r=t,n=A,i=e.length|0,s=0;s!=i;){for(var a=Math.min(s+2655,i);s<a;++s)n+=r+=e[s];r=(r&65535)+15*(r>>16),n=(n&65535)+15*(n>>16)}t=r,A=n},d:function(){return t%=65521,A%=65521,(t&255)<<24|(t&65280)<<8|(A&255)<<8|A>>8}}},Fv=function(t,A,e,r,n){if(!n&&(n={l:1},A.dictionary)){var i=A.dictionary.subarray(-32768),s=new Kr(i.length+t.length);s.set(i),s.set(t,i.length),t=s,n.w=i.length}return bv(t,A.level==null?6:A.level,A.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+A.mem,e,r,n)},I0=function(t,A,e){for(;e;++A)t[A]=e,e>>>=8},Qv=function(t,A){var e=A.level,r=e==0?0:e<6?1:e==9?3:2;if(t[0]=120,t[1]=r<<6|(A.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,A.dictionary){var n=S0();n.p(A.dictionary),I0(t,2,n.d())}};function uh(t,A){A||(A={});var e=S0();e.p(t);var r=Fv(t,A,A.dictionary?6:2,4);return Qv(r,A),I0(r,r.length-4,e.d()),r}var Uv=typeof TextDecoder<"u"&&new TextDecoder,xv=0;try{Uv.decode(L0,{stream:!0}),xv=1}catch{}function Ev(t){if(Array.isArray(t))return t}function Lv(t,A){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var r,n,i,s,a=[],o=!0,c=!1;try{if(i=(e=e.call(t)).next,A!==0)for(;!(o=(r=i.call(e)).done)&&(a.push(r.value),a.length!==A);o=!0);}catch(h){c=!0,n=h}finally{try{if(!o&&e.return!=null&&(s=e.return(),Object(s)!==s))return}finally{if(c)throw n}}return a}}function Cd(t,A){(A==null||A>t.length)&&(A=t.length);for(var e=0,r=Array(A);e<A;e++)r[e]=t[e];return r}function Sv(t,A){if(t){if(typeof t=="string")return Cd(t,A);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Cd(t,A):void 0}}function Iv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
132
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bd(t,A){return Ev(t)||Lv(t,A)||Sv(t,A)||Iv()}function Fd(t,A="utf8"){return new TextDecoder(A).decode(t)}const _v=new TextEncoder;function Nv(t){return _v.encode(t)}const Hv=1024*8,kv=(()=>{const t=new Uint8Array(4),A=new Uint32Array(t.buffer);return!((A[0]=1)&t[0])})(),Au={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class tf{constructor(A=Hv,e={}){oA(this,"buffer");oA(this,"byteLength");oA(this,"byteOffset");oA(this,"length");oA(this,"offset");oA(this,"lastWrittenByte");oA(this,"littleEndian");oA(this,"_data");oA(this,"_mark");oA(this,"_marks");let r=!1;typeof A=="number"?A=new ArrayBuffer(A):(r=!0,this.lastWrittenByte=A.byteLength);const n=e.offset?e.offset>>>0:0,i=A.byteLength-n;let s=n;(ArrayBuffer.isView(A)||A instanceof tf)&&(A.byteLength!==A.buffer.byteLength&&(s=A.byteOffset+n),A=A.buffer),r?this.lastWrittenByte=i:this.lastWrittenByte=0,this.buffer=A,this.length=i,this.byteLength=i,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,i),this._mark=0,this._marks=[]}available(A=1){return this.offset+A<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(A=1){return this.offset+=A,this}back(A=1){return this.offset-=A,this}seek(A){return this.offset=A,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const A=this._marks.pop();if(A===void 0)throw new Error("Mark stack empty");return this.seek(A),this}rewind(){return this.offset=0,this}ensureAvailable(A=1){if(!this.available(A)){const r=(this.offset+A)*2,n=new Uint8Array(r);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(A=1){return this.readArray(A,"uint8")}readArray(A,e){const r=Au[e].BYTES_PER_ELEMENT*A,n=this.byteOffset+this.offset,i=this.buffer.slice(n,n+r);if(this.littleEndian===kv&&e!=="uint8"&&e!=="int8"){const a=new Uint8Array(this.buffer.slice(n,n+r));a.reverse();const o=new Au[e](a.buffer);return this.offset+=r,o.reverse(),o}const s=new Au[e](i);return this.offset+=r,s}readInt16(){const A=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,A}readUint16(){const A=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,A}readInt32(){const A=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,A}readUint32(){const A=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,A}readFloat32(){const A=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,A}readFloat64(){const A=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,A}readBigInt64(){const A=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,A}readBigUint64(){const A=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,A}readChar(){return String.fromCharCode(this.readInt8())}readChars(A=1){let e="";for(let r=0;r<A;r++)e+=this.readChar();return e}readUtf8(A=1){return Fd(this.readBytes(A))}decodeText(A=1,e="utf8"){return Fd(this.readBytes(A),e)}writeBoolean(A){return this.writeUint8(A?255:0),this}writeInt8(A){return this.ensureAvailable(1),this._data.setInt8(this.offset++,A),this._updateLastWrittenByte(),this}writeUint8(A){return this.ensureAvailable(1),this._data.setUint8(this.offset++,A),this._updateLastWrittenByte(),this}writeByte(A){return this.writeUint8(A)}writeBytes(A){this.ensureAvailable(A.length);for(let e=0;e<A.length;e++)this._data.setUint8(this.offset++,A[e]);return this._updateLastWrittenByte(),this}writeInt16(A){return this.ensureAvailable(2),this._data.setInt16(this.offset,A,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(A){return this.ensureAvailable(2),this._data.setUint16(this.offset,A,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(A){return this.ensureAvailable(4),this._data.setInt32(this.offset,A,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(A){return this.ensureAvailable(4),this._data.setUint32(this.offset,A,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(A){return this.ensureAvailable(4),this._data.setFloat32(this.offset,A,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(A){return this.ensureAvailable(8),this._data.setFloat64(this.offset,A,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(A){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,A,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(A){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,A,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(A){return this.writeUint8(A.charCodeAt(0))}writeChars(A){for(let e=0;e<A.length;e++)this.writeUint8(A.charCodeAt(e));return this}writeUtf8(A){return this.writeBytes(Nv(A))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function _s(t){let A=t.length;for(;--A>=0;)t[A]=0}const Pv=3,Tv=258,_0=29,Dv=256,Rv=Dv+1+_0,N0=30,Ov=512,Mv=new Array((Rv+2)*2);_s(Mv);const Kv=new Array(N0*2);_s(Kv);const jv=new Array(Ov);_s(jv);const Gv=new Array(Tv-Pv+1);_s(Gv);const qv=new Array(_0);_s(qv);const Vv=new Array(N0);_s(Vv);const Wv=(t,A,e,r)=>{let n=t&65535|0,i=t>>>16&65535|0,s=0;for(;e!==0;){s=e>2e3?2e3:e,e-=s;do n=n+A[r++]|0,i=i+n|0;while(--s);n%=65521,i%=65521}return n|i<<16|0};var hh=Wv;const zv=()=>{let t,A=[];for(var e=0;e<256;e++){t=e;for(var r=0;r<8;r++)t=t&1?3988292384^t>>>1:t>>>1;A[e]=t}return A},$v=new Uint32Array(zv()),Xv=(t,A,e,r)=>{const n=$v,i=r+e;t^=-1;for(let s=r;s<i;s++)t=t>>>8^n[(t^A[s])&255];return t^-1};var en=Xv,fh={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},H0={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const Jv=(t,A)=>Object.prototype.hasOwnProperty.call(t,A);var Yv=function(t){const A=Array.prototype.slice.call(arguments,1);for(;A.length;){const e=A.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const r in e)Jv(e,r)&&(t[r]=e[r])}}return t},Zv=t=>{let A=0;for(let r=0,n=t.length;r<n;r++)A+=t[r].length;const e=new Uint8Array(A);for(let r=0,n=0,i=t.length;r<i;r++){let s=t[r];e.set(s,n),n+=s.length}return e},k0={assign:Yv,flattenChunks:Zv};let P0=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{P0=!1}const Ta=new Uint8Array(256);for(let t=0;t<256;t++)Ta[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Ta[254]=Ta[254]=1;var Ay=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let A,e,r,n,i,s=t.length,a=0;for(n=0;n<s;n++)e=t.charCodeAt(n),(e&64512)===55296&&n+1<s&&(r=t.charCodeAt(n+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),n++)),a+=e<128?1:e<2048?2:e<65536?3:4;for(A=new Uint8Array(a),i=0,n=0;i<a;n++)e=t.charCodeAt(n),(e&64512)===55296&&n+1<s&&(r=t.charCodeAt(n+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),n++)),e<128?A[i++]=e:e<2048?(A[i++]=192|e>>>6,A[i++]=128|e&63):e<65536?(A[i++]=224|e>>>12,A[i++]=128|e>>>6&63,A[i++]=128|e&63):(A[i++]=240|e>>>18,A[i++]=128|e>>>12&63,A[i++]=128|e>>>6&63,A[i++]=128|e&63);return A};const ey=(t,A)=>{if(A<65534&&t.subarray&&P0)return String.fromCharCode.apply(null,t.length===A?t:t.subarray(0,A));let e="";for(let r=0;r<A;r++)e+=String.fromCharCode(t[r]);return e};var ty=(t,A)=>{const e=A||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,A));let r,n;const i=new Array(e*2);for(n=0,r=0;r<e;){let s=t[r++];if(s<128){i[n++]=s;continue}let a=Ta[s];if(a>4){i[n++]=65533,r+=a-1;continue}for(s&=a===2?31:a===3?15:7;a>1&&r<e;)s=s<<6|t[r++]&63,a--;if(a>1){i[n++]=65533;continue}s<65536?i[n++]=s:(s-=65536,i[n++]=55296|s>>10&1023,i[n++]=56320|s&1023)}return ey(i,n)},ry=(t,A)=>{A=A||t.length,A>t.length&&(A=t.length);let e=A-1;for(;e>=0&&(t[e]&192)===128;)e--;return e<0||e===0?A:e+Ta[t[e]]>A?e:A},dh={string2buf:Ay,buf2string:ty,utf8border:ry};function ny(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var iy=ny;const ko=16209,sy=16191;var ay=function(A,e){let r,n,i,s,a,o,c,h,g,m,f,w,y,F,v,L,N,_,q,X,J,G,k,Z;const x=A.state;r=A.next_in,k=A.input,n=r+(A.avail_in-5),i=A.next_out,Z=A.output,s=i-(e-A.avail_out),a=i+(A.avail_out-257),o=x.dmax,c=x.wsize,h=x.whave,g=x.wnext,m=x.window,f=x.hold,w=x.bits,y=x.lencode,F=x.distcode,v=(1<<x.lenbits)-1,L=(1<<x.distbits)-1;A:do{w<15&&(f+=k[r++]<<w,w+=8,f+=k[r++]<<w,w+=8),N=y[f&v];e:for(;;){if(_=N>>>24,f>>>=_,w-=_,_=N>>>16&255,_===0)Z[i++]=N&65535;else if(_&16){q=N&65535,_&=15,_&&(w<_&&(f+=k[r++]<<w,w+=8),q+=f&(1<<_)-1,f>>>=_,w-=_),w<15&&(f+=k[r++]<<w,w+=8,f+=k[r++]<<w,w+=8),N=F[f&L];t:for(;;){if(_=N>>>24,f>>>=_,w-=_,_=N>>>16&255,_&16){if(X=N&65535,_&=15,w<_&&(f+=k[r++]<<w,w+=8,w<_&&(f+=k[r++]<<w,w+=8)),X+=f&(1<<_)-1,X>o){A.msg="invalid distance too far back",x.mode=ko;break A}if(f>>>=_,w-=_,_=i-s,X>_){if(_=X-_,_>h&&x.sane){A.msg="invalid distance too far back",x.mode=ko;break A}if(J=0,G=m,g===0){if(J+=c-_,_<q){q-=_;do Z[i++]=m[J++];while(--_);J=i-X,G=Z}}else if(g<_){if(J+=c+g-_,_-=g,_<q){q-=_;do Z[i++]=m[J++];while(--_);if(J=0,g<q){_=g,q-=_;do Z[i++]=m[J++];while(--_);J=i-X,G=Z}}}else if(J+=g-_,_<q){q-=_;do Z[i++]=m[J++];while(--_);J=i-X,G=Z}for(;q>2;)Z[i++]=G[J++],Z[i++]=G[J++],Z[i++]=G[J++],q-=3;q&&(Z[i++]=G[J++],q>1&&(Z[i++]=G[J++]))}else{J=i-X;do Z[i++]=Z[J++],Z[i++]=Z[J++],Z[i++]=Z[J++],q-=3;while(q>2);q&&(Z[i++]=Z[J++],q>1&&(Z[i++]=Z[J++]))}}else if(_&64){A.msg="invalid distance code",x.mode=ko;break A}else{N=F[(N&65535)+(f&(1<<_)-1)];continue t}break}}else if(_&64)if(_&32){x.mode=sy;break A}else{A.msg="invalid literal/length code",x.mode=ko;break A}else{N=y[(N&65535)+(f&(1<<_)-1)];continue e}break}}while(r<n&&i<a);q=w>>3,r-=q,w-=q<<3,f&=(1<<w)-1,A.next_in=r,A.next_out=i,A.avail_in=r<n?5+(n-r):5-(r-n),A.avail_out=i<a?257+(a-i):257-(i-a),x.hold=f,x.bits=w};const is=15,Qd=852,Ud=592,xd=0,eu=1,Ed=2,oy=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ly=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),cy=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),uy=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),hy=(t,A,e,r,n,i,s,a)=>{const o=a.bits;let c=0,h=0,g=0,m=0,f=0,w=0,y=0,F=0,v=0,L=0,N,_,q,X,J,G=null,k;const Z=new Uint16Array(is+1),x=new Uint16Array(is+1);let S=null,K,T,z;for(c=0;c<=is;c++)Z[c]=0;for(h=0;h<r;h++)Z[A[e+h]]++;for(f=o,m=is;m>=1&&Z[m]===0;m--);if(f>m&&(f=m),m===0)return n[i++]=1<<24|64<<16|0,n[i++]=1<<24|64<<16|0,a.bits=1,0;for(g=1;g<m&&Z[g]===0;g++);for(f<g&&(f=g),F=1,c=1;c<=is;c++)if(F<<=1,F-=Z[c],F<0)return-1;if(F>0&&(t===xd||m!==1))return-1;for(x[1]=0,c=1;c<is;c++)x[c+1]=x[c]+Z[c];for(h=0;h<r;h++)A[e+h]!==0&&(s[x[A[e+h]]++]=h);if(t===xd?(G=S=s,k=20):t===eu?(G=oy,S=ly,k=257):(G=cy,S=uy,k=0),L=0,h=0,c=g,J=i,w=f,y=0,q=-1,v=1<<f,X=v-1,t===eu&&v>Qd||t===Ed&&v>Ud)return 1;for(;;){K=c-y,s[h]+1<k?(T=0,z=s[h]):s[h]>=k?(T=S[s[h]-k],z=G[s[h]-k]):(T=96,z=0),N=1<<c-y,_=1<<w,g=_;do _-=N,n[J+(L>>y)+_]=K<<24|T<<16|z|0;while(_!==0);for(N=1<<c-1;L&N;)N>>=1;if(N!==0?(L&=N-1,L+=N):L=0,h++,--Z[c]===0){if(c===m)break;c=A[e+s[h]]}if(c>f&&(L&X)!==q){for(y===0&&(y=f),J+=g,w=c-y,F=1<<w;w+y<m&&(F-=Z[w+y],!(F<=0));)w++,F<<=1;if(v+=1<<w,t===eu&&v>Qd||t===Ed&&v>Ud)return 1;q=L&X,n[q]=f<<24|w<<16|J-i|0}}return L!==0&&(n[J+L]=c-y<<24|64<<16|0),a.bits=f,0};var xa=hy;const fy=0,T0=1,D0=2,{Z_FINISH:Ld,Z_BLOCK:dy,Z_TREES:Po,Z_OK:Mi,Z_STREAM_END:gy,Z_NEED_DICT:py,Z_STREAM_ERROR:Ir,Z_DATA_ERROR:R0,Z_MEM_ERROR:O0,Z_BUF_ERROR:my,Z_DEFLATED:Sd}=H0,Ac=16180,Id=16181,_d=16182,Nd=16183,Hd=16184,kd=16185,Pd=16186,Td=16187,Dd=16188,Rd=16189,Tl=16190,Sn=16191,tu=16192,Od=16193,ru=16194,Md=16195,Kd=16196,jd=16197,Gd=16198,To=16199,Do=16200,qd=16201,Vd=16202,Wd=16203,zd=16204,$d=16205,nu=16206,Xd=16207,Jd=16208,ze=16209,M0=16210,K0=16211,By=852,wy=592,vy=15,yy=vy,Yd=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function Cy(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ji=t=>{if(!t)return 1;const A=t.state;return!A||A.strm!==t||A.mode<Ac||A.mode>K0?1:0},j0=t=>{if(ji(t))return Ir;const A=t.state;return t.total_in=t.total_out=A.total=0,t.msg="",A.wrap&&(t.adler=A.wrap&1),A.mode=Ac,A.last=0,A.havedict=0,A.flags=-1,A.dmax=32768,A.head=null,A.hold=0,A.bits=0,A.lencode=A.lendyn=new Int32Array(By),A.distcode=A.distdyn=new Int32Array(wy),A.sane=1,A.back=-1,Mi},G0=t=>{if(ji(t))return Ir;const A=t.state;return A.wsize=0,A.whave=0,A.wnext=0,j0(t)},q0=(t,A)=>{let e;if(ji(t))return Ir;const r=t.state;return A<0?(e=0,A=-A):(e=(A>>4)+5,A<48&&(A&=15)),A&&(A<8||A>15)?Ir:(r.window!==null&&r.wbits!==A&&(r.window=null),r.wrap=e,r.wbits=A,G0(t))},V0=(t,A)=>{if(!t)return Ir;const e=new Cy;t.state=e,e.strm=t,e.window=null,e.mode=Ac;const r=q0(t,A);return r!==Mi&&(t.state=null),r},by=t=>V0(t,yy);let Zd=!0,iu,su;const Fy=t=>{if(Zd){iu=new Int32Array(512),su=new Int32Array(32);let A=0;for(;A<144;)t.lens[A++]=8;for(;A<256;)t.lens[A++]=9;for(;A<280;)t.lens[A++]=7;for(;A<288;)t.lens[A++]=8;for(xa(T0,t.lens,0,288,iu,0,t.work,{bits:9}),A=0;A<32;)t.lens[A++]=5;xa(D0,t.lens,0,32,su,0,t.work,{bits:5}),Zd=!1}t.lencode=iu,t.lenbits=9,t.distcode=su,t.distbits=5},W0=(t,A,e,r)=>{let n;const i=t.state;return i.window===null&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),r>=i.wsize?(i.window.set(A.subarray(e-i.wsize,e),0),i.wnext=0,i.whave=i.wsize):(n=i.wsize-i.wnext,n>r&&(n=r),i.window.set(A.subarray(e-r,e-r+n),i.wnext),r-=n,r?(i.window.set(A.subarray(e-r,e),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=n,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=n))),0},Qy=(t,A)=>{let e,r,n,i,s,a,o,c,h,g,m,f,w,y,F=0,v,L,N,_,q,X,J,G;const k=new Uint8Array(4);let Z,x;const S=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ji(t)||!t.output||!t.input&&t.avail_in!==0)return Ir;e=t.state,e.mode===Sn&&(e.mode=tu),s=t.next_out,n=t.output,o=t.avail_out,i=t.next_in,r=t.input,a=t.avail_in,c=e.hold,h=e.bits,g=a,m=o,G=Mi;A:for(;;)switch(e.mode){case Ac:if(e.wrap===0){e.mode=tu;break}for(;h<16;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(e.wrap&2&&c===35615){e.wbits===0&&(e.wbits=15),e.check=0,k[0]=c&255,k[1]=c>>>8&255,e.check=en(e.check,k,2,0),c=0,h=0,e.mode=Id;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((c&255)<<8)+(c>>8))%31){t.msg="incorrect header check",e.mode=ze;break}if((c&15)!==Sd){t.msg="unknown compression method",e.mode=ze;break}if(c>>>=4,h-=4,J=(c&15)+8,e.wbits===0&&(e.wbits=J),J>15||J>e.wbits){t.msg="invalid window size",e.mode=ze;break}e.dmax=1<<e.wbits,e.flags=0,t.adler=e.check=1,e.mode=c&512?Rd:Sn,c=0,h=0;break;case Id:for(;h<16;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(e.flags=c,(e.flags&255)!==Sd){t.msg="unknown compression method",e.mode=ze;break}if(e.flags&57344){t.msg="unknown header flags set",e.mode=ze;break}e.head&&(e.head.text=c>>8&1),e.flags&512&&e.wrap&4&&(k[0]=c&255,k[1]=c>>>8&255,e.check=en(e.check,k,2,0)),c=0,h=0,e.mode=_d;case _d:for(;h<32;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}e.head&&(e.head.time=c),e.flags&512&&e.wrap&4&&(k[0]=c&255,k[1]=c>>>8&255,k[2]=c>>>16&255,k[3]=c>>>24&255,e.check=en(e.check,k,4,0)),c=0,h=0,e.mode=Nd;case Nd:for(;h<16;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}e.head&&(e.head.xflags=c&255,e.head.os=c>>8),e.flags&512&&e.wrap&4&&(k[0]=c&255,k[1]=c>>>8&255,e.check=en(e.check,k,2,0)),c=0,h=0,e.mode=Hd;case Hd:if(e.flags&1024){for(;h<16;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}e.length=c,e.head&&(e.head.extra_len=c),e.flags&512&&e.wrap&4&&(k[0]=c&255,k[1]=c>>>8&255,e.check=en(e.check,k,2,0)),c=0,h=0}else e.head&&(e.head.extra=null);e.mode=kd;case kd:if(e.flags&1024&&(f=e.length,f>a&&(f=a),f&&(e.head&&(J=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(r.subarray(i,i+f),J)),e.flags&512&&e.wrap&4&&(e.check=en(e.check,r,f,i)),a-=f,i+=f,e.length-=f),e.length))break A;e.length=0,e.mode=Pd;case Pd:if(e.flags&2048){if(a===0)break A;f=0;do J=r[i+f++],e.head&&J&&e.length<65536&&(e.head.name+=String.fromCharCode(J));while(J&&f<a);if(e.flags&512&&e.wrap&4&&(e.check=en(e.check,r,f,i)),a-=f,i+=f,J)break A}else e.head&&(e.head.name=null);e.length=0,e.mode=Td;case Td:if(e.flags&4096){if(a===0)break A;f=0;do J=r[i+f++],e.head&&J&&e.length<65536&&(e.head.comment+=String.fromCharCode(J));while(J&&f<a);if(e.flags&512&&e.wrap&4&&(e.check=en(e.check,r,f,i)),a-=f,i+=f,J)break A}else e.head&&(e.head.comment=null);e.mode=Dd;case Dd:if(e.flags&512){for(;h<16;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(e.wrap&4&&c!==(e.check&65535)){t.msg="header crc mismatch",e.mode=ze;break}c=0,h=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),t.adler=e.check=0,e.mode=Sn;break;case Rd:for(;h<32;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}t.adler=e.check=Yd(c),c=0,h=0,e.mode=Tl;case Tl:if(e.havedict===0)return t.next_out=s,t.avail_out=o,t.next_in=i,t.avail_in=a,e.hold=c,e.bits=h,py;t.adler=e.check=1,e.mode=Sn;case Sn:if(A===dy||A===Po)break A;case tu:if(e.last){c>>>=h&7,h-=h&7,e.mode=nu;break}for(;h<3;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}switch(e.last=c&1,c>>>=1,h-=1,c&3){case 0:e.mode=Od;break;case 1:if(Fy(e),e.mode=To,A===Po){c>>>=2,h-=2;break A}break;case 2:e.mode=Kd;break;case 3:t.msg="invalid block type",e.mode=ze}c>>>=2,h-=2;break;case Od:for(c>>>=h&7,h-=h&7;h<32;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if((c&65535)!==(c>>>16^65535)){t.msg="invalid stored block lengths",e.mode=ze;break}if(e.length=c&65535,c=0,h=0,e.mode=ru,A===Po)break A;case ru:e.mode=Md;case Md:if(f=e.length,f){if(f>a&&(f=a),f>o&&(f=o),f===0)break A;n.set(r.subarray(i,i+f),s),a-=f,i+=f,o-=f,s+=f,e.length-=f;break}e.mode=Sn;break;case Kd:for(;h<14;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(e.nlen=(c&31)+257,c>>>=5,h-=5,e.ndist=(c&31)+1,c>>>=5,h-=5,e.ncode=(c&15)+4,c>>>=4,h-=4,e.nlen>286||e.ndist>30){t.msg="too many length or distance symbols",e.mode=ze;break}e.have=0,e.mode=jd;case jd:for(;e.have<e.ncode;){for(;h<3;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}e.lens[S[e.have++]]=c&7,c>>>=3,h-=3}for(;e.have<19;)e.lens[S[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,Z={bits:e.lenbits},G=xa(fy,e.lens,0,19,e.lencode,0,e.work,Z),e.lenbits=Z.bits,G){t.msg="invalid code lengths set",e.mode=ze;break}e.have=0,e.mode=Gd;case Gd:for(;e.have<e.nlen+e.ndist;){for(;F=e.lencode[c&(1<<e.lenbits)-1],v=F>>>24,L=F>>>16&255,N=F&65535,!(v<=h);){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(N<16)c>>>=v,h-=v,e.lens[e.have++]=N;else{if(N===16){for(x=v+2;h<x;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(c>>>=v,h-=v,e.have===0){t.msg="invalid bit length repeat",e.mode=ze;break}J=e.lens[e.have-1],f=3+(c&3),c>>>=2,h-=2}else if(N===17){for(x=v+3;h<x;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}c>>>=v,h-=v,J=0,f=3+(c&7),c>>>=3,h-=3}else{for(x=v+7;h<x;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}c>>>=v,h-=v,J=0,f=11+(c&127),c>>>=7,h-=7}if(e.have+f>e.nlen+e.ndist){t.msg="invalid bit length repeat",e.mode=ze;break}for(;f--;)e.lens[e.have++]=J}}if(e.mode===ze)break;if(e.lens[256]===0){t.msg="invalid code -- missing end-of-block",e.mode=ze;break}if(e.lenbits=9,Z={bits:e.lenbits},G=xa(T0,e.lens,0,e.nlen,e.lencode,0,e.work,Z),e.lenbits=Z.bits,G){t.msg="invalid literal/lengths set",e.mode=ze;break}if(e.distbits=6,e.distcode=e.distdyn,Z={bits:e.distbits},G=xa(D0,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,Z),e.distbits=Z.bits,G){t.msg="invalid distances set",e.mode=ze;break}if(e.mode=To,A===Po)break A;case To:e.mode=Do;case Do:if(a>=6&&o>=258){t.next_out=s,t.avail_out=o,t.next_in=i,t.avail_in=a,e.hold=c,e.bits=h,ay(t,m),s=t.next_out,n=t.output,o=t.avail_out,i=t.next_in,r=t.input,a=t.avail_in,c=e.hold,h=e.bits,e.mode===Sn&&(e.back=-1);break}for(e.back=0;F=e.lencode[c&(1<<e.lenbits)-1],v=F>>>24,L=F>>>16&255,N=F&65535,!(v<=h);){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(L&&!(L&240)){for(_=v,q=L,X=N;F=e.lencode[X+((c&(1<<_+q)-1)>>_)],v=F>>>24,L=F>>>16&255,N=F&65535,!(_+v<=h);){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}c>>>=_,h-=_,e.back+=_}if(c>>>=v,h-=v,e.back+=v,e.length=N,L===0){e.mode=$d;break}if(L&32){e.back=-1,e.mode=Sn;break}if(L&64){t.msg="invalid literal/length code",e.mode=ze;break}e.extra=L&15,e.mode=qd;case qd:if(e.extra){for(x=e.extra;h<x;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}e.length+=c&(1<<e.extra)-1,c>>>=e.extra,h-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=Vd;case Vd:for(;F=e.distcode[c&(1<<e.distbits)-1],v=F>>>24,L=F>>>16&255,N=F&65535,!(v<=h);){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(!(L&240)){for(_=v,q=L,X=N;F=e.distcode[X+((c&(1<<_+q)-1)>>_)],v=F>>>24,L=F>>>16&255,N=F&65535,!(_+v<=h);){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}c>>>=_,h-=_,e.back+=_}if(c>>>=v,h-=v,e.back+=v,L&64){t.msg="invalid distance code",e.mode=ze;break}e.offset=N,e.extra=L&15,e.mode=Wd;case Wd:if(e.extra){for(x=e.extra;h<x;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}e.offset+=c&(1<<e.extra)-1,c>>>=e.extra,h-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){t.msg="invalid distance too far back",e.mode=ze;break}e.mode=zd;case zd:if(o===0)break A;if(f=m-o,e.offset>f){if(f=e.offset-f,f>e.whave&&e.sane){t.msg="invalid distance too far back",e.mode=ze;break}f>e.wnext?(f-=e.wnext,w=e.wsize-f):w=e.wnext-f,f>e.length&&(f=e.length),y=e.window}else y=n,w=s-e.offset,f=e.length;f>o&&(f=o),o-=f,e.length-=f;do n[s++]=y[w++];while(--f);e.length===0&&(e.mode=Do);break;case $d:if(o===0)break A;n[s++]=e.length,o--,e.mode=Do;break;case nu:if(e.wrap){for(;h<32;){if(a===0)break A;a--,c|=r[i++]<<h,h+=8}if(m-=o,t.total_out+=m,e.total+=m,e.wrap&4&&m&&(t.adler=e.check=e.flags?en(e.check,n,m,s-m):hh(e.check,n,m,s-m)),m=o,e.wrap&4&&(e.flags?c:Yd(c))!==e.check){t.msg="incorrect data check",e.mode=ze;break}c=0,h=0}e.mode=Xd;case Xd:if(e.wrap&&e.flags){for(;h<32;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(e.wrap&4&&c!==(e.total&4294967295)){t.msg="incorrect length check",e.mode=ze;break}c=0,h=0}e.mode=Jd;case Jd:G=gy;break A;case ze:G=R0;break A;case M0:return O0;case K0:default:return Ir}return t.next_out=s,t.avail_out=o,t.next_in=i,t.avail_in=a,e.hold=c,e.bits=h,(e.wsize||m!==t.avail_out&&e.mode<ze&&(e.mode<nu||A!==Ld))&&W0(t,t.output,t.next_out,m-t.avail_out),g-=t.avail_in,m-=t.avail_out,t.total_in+=g,t.total_out+=m,e.total+=m,e.wrap&4&&m&&(t.adler=e.check=e.flags?en(e.check,n,m,t.next_out-m):hh(e.check,n,m,t.next_out-m)),t.data_type=e.bits+(e.last?64:0)+(e.mode===Sn?128:0)+(e.mode===To||e.mode===ru?256:0),(g===0&&m===0||A===Ld)&&G===Mi&&(G=my),G},Uy=t=>{if(ji(t))return Ir;let A=t.state;return A.window&&(A.window=null),t.state=null,Mi},xy=(t,A)=>{if(ji(t))return Ir;const e=t.state;return e.wrap&2?(e.head=A,A.done=!1,Mi):Ir},Ey=(t,A)=>{const e=A.length;let r,n,i;return ji(t)||(r=t.state,r.wrap!==0&&r.mode!==Tl)?Ir:r.mode===Tl&&(n=1,n=hh(n,A,e,0),n!==r.check)?R0:(i=W0(t,A,e,e),i?(r.mode=M0,O0):(r.havedict=1,Mi))};var Ly=G0,Sy=q0,Iy=j0,_y=by,Ny=V0,Hy=Qy,ky=Uy,Py=xy,Ty=Ey,Dy="pako inflate (from Nodeca project)",Nn={inflateReset:Ly,inflateReset2:Sy,inflateResetKeep:Iy,inflateInit:_y,inflateInit2:Ny,inflate:Hy,inflateEnd:ky,inflateGetHeader:Py,inflateSetDictionary:Ty,inflateInfo:Dy};function Ry(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Oy=Ry;const z0=Object.prototype.toString,{Z_NO_FLUSH:My,Z_FINISH:Ky,Z_OK:Da,Z_STREAM_END:au,Z_NEED_DICT:ou,Z_STREAM_ERROR:jy,Z_DATA_ERROR:Ag,Z_MEM_ERROR:Gy}=H0;function Ga(t){this.options=k0.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const A=this.options;A.raw&&A.windowBits>=0&&A.windowBits<16&&(A.windowBits=-A.windowBits,A.windowBits===0&&(A.windowBits=-15)),A.windowBits>=0&&A.windowBits<16&&!(t&&t.windowBits)&&(A.windowBits+=32),A.windowBits>15&&A.windowBits<48&&(A.windowBits&15||(A.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new iy,this.strm.avail_out=0;let e=Nn.inflateInit2(this.strm,A.windowBits);if(e!==Da)throw new Error(fh[e]);if(this.header=new Oy,Nn.inflateGetHeader(this.strm,this.header),A.dictionary&&(typeof A.dictionary=="string"?A.dictionary=dh.string2buf(A.dictionary):z0.call(A.dictionary)==="[object ArrayBuffer]"&&(A.dictionary=new Uint8Array(A.dictionary)),A.raw&&(e=Nn.inflateSetDictionary(this.strm,A.dictionary),e!==Da)))throw new Error(fh[e])}Ga.prototype.push=function(t,A){const e=this.strm,r=this.options.chunkSize,n=this.options.dictionary;let i,s,a;if(this.ended)return!1;for(A===~~A?s=A:s=A===!0?Ky:My,z0.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),i=Nn.inflate(e,s),i===ou&&n&&(i=Nn.inflateSetDictionary(e,n),i===Da?i=Nn.inflate(e,s):i===Ag&&(i=ou));e.avail_in>0&&i===au&&e.state.wrap>0&&t[e.next_in]!==0;)Nn.inflateReset(e),i=Nn.inflate(e,s);switch(i){case jy:case Ag:case ou:case Gy:return this.onEnd(i),this.ended=!0,!1}if(a=e.avail_out,e.next_out&&(e.avail_out===0||i===au))if(this.options.to==="string"){let o=dh.utf8border(e.output,e.next_out),c=e.next_out-o,h=dh.buf2string(e.output,o);e.next_out=c,e.avail_out=r-c,c&&e.output.set(e.output.subarray(o,o+c),0),this.onData(h)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(i===Da&&a===0)){if(i===au)return i=Nn.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};Ga.prototype.onData=function(t){this.chunks.push(t)};Ga.prototype.onEnd=function(t){t===Da&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=k0.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function qy(t,A){const e=new Ga(A);if(e.push(t),e.err)throw e.msg||fh[e.err];return e.result}var Vy=Ga,Wy=qy,zy={Inflate:Vy,inflate:Wy};const{Inflate:$y,inflate:Xy}=zy;var eg=$y,Jy=Xy;const $0=[];for(let t=0;t<256;t++){let A=t;for(let e=0;e<8;e++)A&1?A=3988292384^A>>>1:A=A>>>1;$0[t]=A}const tg=4294967295;function Yy(t,A,e){let r=t;for(let n=0;n<e;n++)r=$0[(r^A[n])&255]^r>>>8;return r}function Zy(t,A){return(Yy(tg,t,A)^tg)>>>0}function rg(t,A,e){const r=t.readUint32(),n=Zy(new Uint8Array(t.buffer,t.byteOffset+t.offset-A-4,A),A);if(n!==r)throw new Error(`CRC mismatch for chunk ${e}. Expected ${r}, found ${n}`)}function X0(t,A,e){for(let r=0;r<e;r++)A[r]=t[r]}function J0(t,A,e,r){let n=0;for(;n<r;n++)A[n]=t[n];for(;n<e;n++)A[n]=t[n]+A[n-r]&255}function Y0(t,A,e,r){let n=0;if(e.length===0)for(;n<r;n++)A[n]=t[n];else for(;n<r;n++)A[n]=t[n]+e[n]&255}function Z0(t,A,e,r,n){let i=0;if(e.length===0){for(;i<n;i++)A[i]=t[i];for(;i<r;i++)A[i]=t[i]+(A[i-n]>>1)&255}else{for(;i<n;i++)A[i]=t[i]+(e[i]>>1)&255;for(;i<r;i++)A[i]=t[i]+(A[i-n]+e[i]>>1)&255}}function Am(t,A,e,r,n){let i=0;if(e.length===0){for(;i<n;i++)A[i]=t[i];for(;i<r;i++)A[i]=t[i]+A[i-n]&255}else{for(;i<n;i++)A[i]=t[i]+e[i]&255;for(;i<r;i++)A[i]=t[i]+AC(A[i-n],e[i],e[i-n])&255}}function AC(t,A,e){const r=t+A-e,n=Math.abs(r-t),i=Math.abs(r-A),s=Math.abs(r-e);return n<=i&&n<=s?t:i<=s?A:e}function eC(t,A,e,r,n,i){switch(t){case 0:X0(A,e,n);break;case 1:J0(A,e,n,i);break;case 2:Y0(A,e,r,n);break;case 3:Z0(A,e,r,n,i);break;case 4:Am(A,e,r,n,i);break;default:throw new Error(`Unsupported filter: ${t}`)}}const tC=new Uint16Array([255]),rC=new Uint8Array(tC.buffer),nC=rC[0]===255;function iC(t){const{data:A,width:e,height:r,channels:n,depth:i}=t,s=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],a=Math.ceil(i/8)*n,o=new Uint8Array(r*e*a);let c=0;for(let h=0;h<7;h++){const g=s[h],m=Math.ceil((e-g.x)/g.xStep),f=Math.ceil((r-g.y)/g.yStep);if(m<=0||f<=0)continue;const w=m*a,y=new Uint8Array(w);for(let F=0;F<f;F++){const v=A[c++],L=A.subarray(c,c+w);c+=w;const N=new Uint8Array(w);eC(v,L,N,y,w,a),y.set(N);for(let _=0;_<m;_++){const q=g.x+_*g.xStep,X=g.y+F*g.yStep;if(!(q>=e||X>=r))for(let J=0;J<a;J++)o[(X*e+q)*a+J]=N[_*a+J]}}}if(i===16){const h=new Uint16Array(o.buffer);if(nC)for(let g=0;g<h.length;g++)h[g]=sC(h[g]);return h}else return o}function sC(t){return(t&255)<<8|t>>8&255}const aC=new Uint16Array([255]),oC=new Uint8Array(aC.buffer),lC=oC[0]===255,cC=new Uint8Array(0);function ng(t){const{data:A,width:e,height:r,channels:n,depth:i}=t,s=Math.ceil(i/8)*n,a=Math.ceil(i/8*n*e),o=new Uint8Array(r*a);let c=cC,h=0,g,m;for(let f=0;f<r;f++){switch(g=A.subarray(h+1,h+1+a),m=o.subarray(f*a,(f+1)*a),A[h]){case 0:X0(g,m,a);break;case 1:J0(g,m,a,s);break;case 2:Y0(g,m,c,a);break;case 3:Z0(g,m,c,a,s);break;case 4:Am(g,m,c,a,s);break;default:throw new Error(`Unsupported filter: ${A[h]}`)}c=m,h+=a+1}if(i===16){const f=new Uint16Array(o.buffer);if(lC)for(let w=0;w<f.length;w++)f[w]=uC(f[w]);return f}else return o}function uC(t){return(t&255)<<8|t>>8&255}const gl=Uint8Array.of(137,80,78,71,13,10,26,10);function ig(t){if(!hC(t.readBytes(gl.length)))throw new Error("wrong PNG signature")}function hC(t){if(t.length<gl.length)return!1;for(let A=0;A<gl.length;A++)if(t[A]!==gl[A])return!1;return!0}const fC="tEXt",dC=0,em=new TextDecoder("latin1");function gC(t){if(mC(t),t.length===0||t.length>79)throw new Error("keyword length must be between 1 and 79")}const pC=/^[\u0000-\u00FF]*$/;function mC(t){if(!pC.test(t))throw new Error("invalid latin1 text")}function BC(t,A,e){const r=tm(A);t[r]=wC(A,e-r.length-1)}function tm(t){for(t.mark();t.readByte()!==dC;);const A=t.offset;t.reset();const e=em.decode(t.readBytes(A-t.offset-1));return t.skip(1),gC(e),e}function wC(t,A){return em.decode(t.readBytes(A))}const hr={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},lu={UNKNOWN:-1,DEFLATE:0},sg={UNKNOWN:-1,ADAPTIVE:0},cu={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Ro={NONE:0,BACKGROUND:1,PREVIOUS:2},uu={SOURCE:0,OVER:1};class vC extends tf{constructor(e,r={}){super(e);oA(this,"_checkCrc");oA(this,"_inflator");oA(this,"_png");oA(this,"_apng");oA(this,"_end");oA(this,"_hasPalette");oA(this,"_palette");oA(this,"_hasTransparency");oA(this,"_transparency");oA(this,"_compressionMethod");oA(this,"_filterMethod");oA(this,"_interlaceMethod");oA(this,"_colorType");oA(this,"_isAnimated");oA(this,"_numberOfFrames");oA(this,"_numberOfPlays");oA(this,"_frames");oA(this,"_writingDataChunks");const{checkCrc:n=!1}=r;this._checkCrc=n,this._inflator=new eg,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=lu.UNKNOWN,this._filterMethod=sg.UNKNOWN,this._interlaceMethod=cu.UNKNOWN,this._colorType=hr.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(ig(this);!this._end;){const e=this.readUint32(),r=this.readChars(4);this.decodeChunk(e,r)}return this.decodeImage(),this._png}decodeApng(){for(ig(this);!this._end;){const e=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(e,r)}return this.decodeApngImage(),this._apng}decodeChunk(e,r){const n=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case fC:BC(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e);break}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?rg(this,e+4,r):this.skip(4)}decodeApngChunk(e,r){const n=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,r),this.offset=n+e;break}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?rg(this,e+4,r):this.skip(4)}decodeIHDR(){const e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=yC(this.readUint8());const r=this.readUint8();this._colorType=r;let n;switch(r){case hr.GREYSCALE:n=1;break;case hr.TRUECOLOUR:n=3;break;case hr.INDEXED_COLOUR:n=1;break;case hr.GREYSCALE_ALPHA:n=2;break;case hr.TRUECOLOUR_ALPHA:n=4;break;case hr.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==lu.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(e)}decodePLTE(e){if(e%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);const r=e/3;this._hasPalette=!0;const n=[];this._palette=n;for(let i=0;i<r;i++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;const r=e,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let r=e,n=this.offset+this.byteOffset;if(n+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,n,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case hr.GREYSCALE:case hr.TRUECOLOUR:{if(e%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let r=0;r<e/2;r++)this._transparency[r]=this.readUint16();break}case hr.INDEXED_COLOUR:{if(e>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${e} vs ${this._palette.length})`);let r=0;for(;r<e;r++){const n=this.readByte();this._palette[r].push(n)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case hr.UNKNOWN:case hr.GREYSCALE_ALPHA:case hr.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){const r=tm(this),n=this.readUint8();if(n!==lu.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${n}`);const i=this.readBytes(e-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:Jy(i)}}decodepHYs(){const e=this.readUint32(),r=this.readUint32(),n=this.readByte();this._png.resolution={x:e,y:r,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let e=0;e<this._numberOfFrames;e++){const r={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(e);if(n){if(n.data=ng({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),e===0||n.xOffset===0&&n.yOffset===0&&n.width===this._png.width&&n.height===this._png.height)r.data=n.data;else{const i=this._apng.frames.at(e-1);this.disposeFrame(n,i,r),this.addFrameDataToCanvas(r,n)}this._apng.frames.push(r)}}return this._apng}disposeFrame(e,r,n){switch(e.disposeOp){case Ro.NONE:break;case Ro.BACKGROUND:for(let i=0;i<this._png.height;i++)for(let s=0;s<this._png.width;s++){const a=(i*e.width+s)*this._png.channels;for(let o=0;o<this._png.channels;o++)n.data[a+o]=0}break;case Ro.PREVIOUS:n.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(e,r){const n=1<<this._png.depth,i=(s,a)=>{const o=((s+r.yOffset)*this._png.width+r.xOffset+a)*this._png.channels,c=(s*r.width+a)*this._png.channels;return{index:o,frameIndex:c}};switch(r.blendOp){case uu.SOURCE:for(let s=0;s<r.height;s++)for(let a=0;a<r.width;a++){const{index:o,frameIndex:c}=i(s,a);for(let h=0;h<this._png.channels;h++)e.data[o+h]=r.data[c+h]}break;case uu.OVER:for(let s=0;s<r.height;s++)for(let a=0;a<r.width;a++){const{index:o,frameIndex:c}=i(s,a);for(let h=0;h<this._png.channels;h++){const g=r.data[c+this._png.channels-1]/n,m=h%(this._png.channels-1)===0?1:r.data[c+h],f=Math.floor(g*m+(1-g)*e.data[o+h]);e.data[o+h]+=f}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var r;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const e=this._isAnimated?((r=this._frames)==null?void 0:r.at(0)).data:this._inflator.result;if(this._filterMethod!==sg.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===cu.NO_INTERLACE)this._png.data=ng({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===cu.ADAM7)this._png.data=iC({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const e=this._inflator.result,r=this._frames.at(-1);r?r.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Ro.NONE,blendOp:uu.SOURCE,data:e}),this._inflator=new eg,this._writingDataChunks=!1}}function yC(t){if(t!==1&&t!==2&&t!==4&&t!==8&&t!==16)throw new Error(`invalid bit depth: ${t}`);return t}var ag;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"})(ag||(ag={}));function CC(t,A){return new vC(t,A).decode()}/** @license
134
+ `;e(z),A()}catch(S){console.error("Upload failed:",S),alert("Ошибка загрузки видео: "+(S instanceof Error?S.message:"Unknown error"))}finally{h(!1),m(0)}},y=F=>{F.key==="Enter"&&!c?f():F.key==="Escape"&&A()};return t?N.jsx("div",{className:`${AA.modalOverlay} ${t?AA.show:""}`,onClick:A,children:N.jsxs("div",{className:AA.modal,onClick:F=>F.stopPropagation(),children:[N.jsx("h3",{children:"🎥 Вставить видео"}),n&&N.jsxs("div",{style:{marginBottom:"16px",display:"flex",gap:"8px"},children:[N.jsx("button",{className:`${AA.modalBtn} ${a?AA.modalBtnSecondary:AA.modalBtnPrimary}`,onClick:()=>o(!1),style:{flex:1},children:"URL"}),N.jsx("button",{className:`${AA.modalBtn} ${a?AA.modalBtnPrimary:AA.modalBtnSecondary}`,onClick:()=>o(!0),style:{flex:1},children:"Загрузить файл"})]}),a?N.jsxs(N.Fragment,{children:[N.jsx("input",{type:"file",accept:"video/*",onChange:w,disabled:c,style:{width:"100%",padding:"12px",marginBottom:"8px",border:"2px dashed #6366f1",borderRadius:"8px",cursor:c?"not-allowed":"pointer"}}),c&&N.jsxs("div",{style:{marginTop:"12px"},children:[N.jsx("div",{style:{width:"100%",height:"8px",background:"#2d2d3f",borderRadius:"4px",overflow:"hidden"},children:N.jsx("div",{style:{width:`${d}%`,height:"100%",background:"#6366f1",transition:"width 0.3s"}})}),N.jsxs("p",{style:{fontSize:"12px",color:"#888",marginTop:"8px",textAlign:"center"},children:["Загрузка... ",d,"%"]})]}),N.jsx("p",{style:{fontSize:"12px",color:"#888",marginTop:"8px"},children:"Максимальный размер: 100MB. Форматы: MP4, WebM, OGG"})]}):N.jsxs(N.Fragment,{children:[N.jsx("input",{type:"text",className:AA.modalInput,placeholder:"URL видео (YouTube, Vimeo или прямая ссылка)",value:i,onChange:F=>s(F.target.value),onKeyDown:y,autoFocus:!0}),N.jsx("p",{style:{fontSize:"12px",color:"#888",marginTop:"8px"},children:"Поддерживаются: YouTube, Vimeo, прямые ссылки на .mp4"})]}),N.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"16px"},children:[N.jsx("button",{className:`${AA.modalBtn} ${AA.modalBtnSecondary}`,onClick:A,disabled:c,children:"Отмена"}),!a&&N.jsx("button",{className:`${AA.modalBtn} ${AA.modalBtnPrimary}`,onClick:f,disabled:c,children:"Вставить"})]})]})}):null}function pv({isOpen:t,onClose:A,onInsert:e}){const[r,n]=IA.useState(3),[i,s]=IA.useState(3);IA.useEffect(()=>{t||(n(3),s(3))},[t]);const a=()=>{r>0&&i>0&&(e(r,i),A())},o=c=>{c.key==="Enter"?a():c.key==="Escape"&&A()};return t?N.jsx("div",{className:`${AA.modalOverlay} ${t?AA.show:""}`,onClick:A,children:N.jsxs("div",{className:AA.modal,onClick:c=>c.stopPropagation(),children:[N.jsx("h3",{children:"📊 Вставить таблицу"}),N.jsxs("div",{style:{display:"flex",gap:"16px"},children:[N.jsxs("div",{style:{flex:1},children:[N.jsx("label",{style:{color:"#9ca3af",fontSize:"14px"},children:"Строк"}),N.jsx("input",{type:"number",className:AA.modalInput,value:r,onChange:c=>n(parseInt(c.target.value)||1),onKeyDown:o,min:"1",max:"20",autoFocus:!0})]}),N.jsxs("div",{style:{flex:1},children:[N.jsx("label",{style:{color:"#9ca3af",fontSize:"14px"},children:"Столбцов"}),N.jsx("input",{type:"number",className:AA.modalInput,value:i,onChange:c=>s(parseInt(c.target.value)||1),onKeyDown:o,min:"1",max:"10"})]})]}),N.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"16px"},children:[N.jsx("button",{className:`${AA.modalBtn} ${AA.modalBtnSecondary}`,onClick:A,children:"Отмена"}),N.jsx("button",{className:`${AA.modalBtn} ${AA.modalBtnPrimary}`,onClick:a,children:"Вставить"})]})]})}):null}function He(t){"@babel/helpers - typeof";return He=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},He(t)}var Gr=Uint8Array,pr=Uint16Array,rf=Int32Array,nf=new Gr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),sf=new Gr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),bd=new Gr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),E0=function(t,A){for(var e=new pr(31),r=0;r<31;++r)e[r]=A+=1<<t[r-1];for(var n=new rf(e[30]),r=1;r<30;++r)for(var i=e[r];i<e[r+1];++i)n[i]=i-e[r]<<5|r;return{b:e,r:n}},L0=E0(nf,2),mv=L0.b,ch=L0.r;mv[28]=258,ch[258]=28;var Bv=E0(sf,0),Cd=Bv.r,uh=new pr(32768);for(var ze=0;ze<32768;++ze){var Ai=(ze&43690)>>1|(ze&21845)<<1;Ai=(Ai&52428)>>2|(Ai&13107)<<2,Ai=(Ai&61680)>>4|(Ai&3855)<<4,uh[ze]=((Ai&65280)>>8|(Ai&255)<<8)>>1}var Ua=function(t,A,e){for(var r=t.length,n=0,i=new pr(A);n<r;++n)t[n]&&++i[t[n]-1];var s=new pr(A);for(n=1;n<A;++n)s[n]=s[n-1]+i[n-1]<<1;var a;if(e){a=new pr(1<<A);var o=15-A;for(n=0;n<r;++n)if(t[n])for(var c=n<<4|t[n],h=A-t[n],d=s[t[n]-1]++<<h,m=d|(1<<h)-1;d<=m;++d)a[uh[d]>>o]=c}else for(a=new pr(r),n=0;n<r;++n)t[n]&&(a[n]=uh[s[t[n]-1]++]>>15-t[n]);return a},Oi=new Gr(288);for(var ze=0;ze<144;++ze)Oi[ze]=8;for(var ze=144;ze<256;++ze)Oi[ze]=9;for(var ze=256;ze<280;++ze)Oi[ze]=7;for(var ze=280;ze<288;++ze)Oi[ze]=8;var Tl=new Gr(32);for(var ze=0;ze<32;++ze)Tl[ze]=5;var wv=Ua(Oi,9,0),vv=Ua(Tl,5,0),S0=function(t){return(t+7)/8|0},yv=function(t,A,e){return(e==null||e>t.length)&&(e=t.length),new Gr(t.subarray(A,e))},Sn=function(t,A,e){e<<=A&7;var r=A/8|0;t[r]|=e,t[r+1]|=e>>8},ca=function(t,A,e){e<<=A&7;var r=A/8|0;t[r]|=e,t[r+1]|=e>>8,t[r+2]|=e>>16},Au=function(t,A){for(var e=[],r=0;r<t.length;++r)t[r]&&e.push({s:r,f:t[r]});var n=e.length,i=e.slice();if(!n)return{t:_0,l:0};if(n==1){var s=new Gr(e[0].s+1);return s[e[0].s]=1,{t:s,l:1}}e.sort(function(V,z){return V.f-z.f}),e.push({s:-1,f:25001});var a=e[0],o=e[1],c=0,h=1,d=2;for(e[0]={s:-1,f:a.f+o.f,l:a,r:o};h!=n-1;)a=e[e[c].f<e[d].f?c++:d++],o=e[c!=h&&e[c].f<e[d].f?c++:d++],e[h++]={s:-1,f:a.f+o.f,l:a,r:o};for(var m=i[0].s,r=1;r<n;++r)i[r].s>m&&(m=i[r].s);var f=new pr(m+1),w=hh(e[h-1],f,0);if(w>A){var r=0,y=0,F=w-A,v=1<<F;for(i.sort(function(z,X){return f[X.s]-f[z.s]||z.f-X.f});r<n;++r){var L=i[r].s;if(f[L]>A)y+=v-(1<<w-f[L]),f[L]=A;else break}for(y>>=F;y>0;){var _=i[r].s;f[_]<A?y-=1<<A-f[_]++-1:++r}for(;r>=0&&y;--r){var S=i[r].s;f[S]==A&&(--f[S],++y)}w=A}return{t:new Gr(f),l:w}},hh=function(t,A,e){return t.s==-1?Math.max(hh(t.l,A,e+1),hh(t.r,A,e+1)):A[t.s]=e},Fd=function(t){for(var A=t.length;A&&!t[--A];);for(var e=new pr(++A),r=0,n=t[0],i=1,s=function(o){e[r++]=o},a=1;a<=A;++a)if(t[a]==n&&a!=A)++i;else{if(!n&&i>2){for(;i>138;i-=138)s(32754);i>2&&(s(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(s(n),--i;i>6;i-=6)s(8304);i>2&&(s(i-3<<5|8208),i=0)}for(;i--;)s(n);i=1,n=t[a]}return{c:e.subarray(0,r),n:A}},ua=function(t,A){for(var e=0,r=0;r<A.length;++r)e+=t[r]*A[r];return e},I0=function(t,A,e){var r=e.length,n=S0(A+2);t[n]=r&255,t[n+1]=r>>8,t[n+2]=t[n]^255,t[n+3]=t[n+1]^255;for(var i=0;i<r;++i)t[n+i+4]=e[i];return(n+4+r)*8},Qd=function(t,A,e,r,n,i,s,a,o,c,h){Sn(A,h++,e),++n[256];for(var d=Au(n,15),m=d.t,f=d.l,w=Au(i,15),y=w.t,F=w.l,v=Fd(m),L=v.c,_=v.n,S=Fd(y),V=S.c,z=S.n,X=new pr(19),q=0;q<L.length;++q)++X[L[q]&31];for(var q=0;q<V.length;++q)++X[V[q]&31];for(var k=Au(X,7),Y=k.t,x=k.l,P=19;P>4&&!Y[bd[P-1]];--P);var j=c+5<<3,D=ua(n,Oi)+ua(i,Tl)+s,J=ua(n,m)+ua(i,y)+s+14+3*P+ua(X,Y)+2*X[16]+3*X[17]+7*X[18];if(o>=0&&j<=D&&j<=J)return I0(A,h,t.subarray(o,o+c));var lA,fA,aA,dA;if(Sn(A,h,1+(J<D)),h+=2,J<D){lA=Ua(m,f,0),fA=m,aA=Ua(y,F,0),dA=y;var QA=Ua(Y,x,0);Sn(A,h,_-257),Sn(A,h+5,z-1),Sn(A,h+10,P-4),h+=14;for(var q=0;q<P;++q)Sn(A,h+3*q,Y[bd[q]]);h+=3*P;for(var hA=[L,V],U=0;U<2;++U)for(var R=hA[U],q=0;q<R.length;++q){var G=R[q]&31;Sn(A,h,QA[G]),h+=Y[G],G>15&&(Sn(A,h,R[q]>>5&127),h+=R[q]>>12)}}else lA=wv,fA=Oi,aA=vv,dA=Tl;for(var q=0;q<a;++q){var W=r[q];if(W>255){var G=W>>18&31;ca(A,h,lA[G+257]),h+=fA[G+257],G>7&&(Sn(A,h,W>>23&31),h+=nf[G]);var eA=W&31;ca(A,h,aA[eA]),h+=dA[eA],eA>3&&(ca(A,h,W>>5&8191),h+=sf[eA])}else ca(A,h,lA[W]),h+=fA[W]}return ca(A,h,lA[256]),h+fA[256]},bv=new rf([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),_0=new Gr(0),Cv=function(t,A,e,r,n,i){var s=i.z||t.length,a=new Gr(r+s+5*(1+Math.ceil(s/7e3))+n),o=a.subarray(r,a.length-n),c=i.l,h=(i.r||0)&7;if(A){h&&(o[0]=i.r>>3);for(var d=bv[A-1],m=d>>13,f=d&8191,w=(1<<e)-1,y=i.p||new pr(32768),F=i.h||new pr(w+1),v=Math.ceil(e/3),L=2*v,_=function(WA){return(t[WA]^t[WA+1]<<v^t[WA+2]<<L)&w},S=new rf(25e3),V=new pr(288),z=new pr(32),X=0,q=0,k=i.i||0,Y=0,x=i.w||0,P=0;k+2<s;++k){var j=_(k),D=k&32767,J=F[j];if(y[D]=J,F[j]=D,x<=k){var lA=s-k;if((X>7e3||Y>24576)&&(lA>423||!c)){h=Qd(t,o,0,S,V,z,q,Y,P,k-P,h),Y=X=q=0,P=k;for(var fA=0;fA<286;++fA)V[fA]=0;for(var fA=0;fA<30;++fA)z[fA]=0}var aA=2,dA=0,QA=f,hA=D-J&32767;if(lA>2&&j==_(k-hA))for(var U=Math.min(m,lA)-1,R=Math.min(32767,k),G=Math.min(258,lA);hA<=R&&--QA&&D!=J;){if(t[k+aA]==t[k+aA-hA]){for(var W=0;W<G&&t[k+W]==t[k+W-hA];++W);if(W>aA){if(aA=W,dA=hA,W>U)break;for(var eA=Math.min(hA,W-2),nA=0,fA=0;fA<eA;++fA){var gA=k-hA+fA&32767,pA=y[gA],wA=gA-pA&32767;wA>nA&&(nA=wA,J=gA)}}}D=J,J=y[D],hA+=D-J&32767}if(dA){S[Y++]=268435456|ch[aA]<<18|Cd[dA];var xA=ch[aA]&31,DA=Cd[dA]&31;q+=nf[xA]+sf[DA],++V[257+xA],++z[DA],x=k+aA,++X}else S[Y++]=t[k],++V[t[k]]}}for(k=Math.max(k,x);k<s;++k)S[Y++]=t[k],++V[t[k]];h=Qd(t,o,c,S,V,z,q,Y,P,k-P,h),c||(i.r=h&7|o[h/8|0]<<3,h-=7,i.h=F,i.p=y,i.i=k,i.w=x)}else{for(var k=i.w||0;k<s+c;k+=65535){var HA=k+65535;HA>=s&&(o[h/8|0]=c,HA=s),h=I0(o,h+1,t.subarray(k,HA))}i.i=s}return yv(a,0,r+S0(h)+n)},N0=function(){var t=1,A=0;return{p:function(e){for(var r=t,n=A,i=e.length|0,s=0;s!=i;){for(var a=Math.min(s+2655,i);s<a;++s)n+=r+=e[s];r=(r&65535)+15*(r>>16),n=(n&65535)+15*(n>>16)}t=r,A=n},d:function(){return t%=65521,A%=65521,(t&255)<<24|(t&65280)<<8|(A&255)<<8|A>>8}}},Fv=function(t,A,e,r,n){if(!n&&(n={l:1},A.dictionary)){var i=A.dictionary.subarray(-32768),s=new Gr(i.length+t.length);s.set(i),s.set(t,i.length),t=s,n.w=i.length}return Cv(t,A.level==null?6:A.level,A.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+A.mem,e,r,n)},k0=function(t,A,e){for(;e;++A)t[A]=e,e>>>=8},Qv=function(t,A){var e=A.level,r=e==0?0:e<6?1:e==9?3:2;if(t[0]=120,t[1]=r<<6|(A.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,A.dictionary){var n=N0();n.p(A.dictionary),k0(t,2,n.d())}};function fh(t,A){A||(A={});var e=N0();e.p(t);var r=Fv(t,A,A.dictionary?6:2,4);return Qv(r,A),k0(r,r.length-4,e.d()),r}var Uv=typeof TextDecoder<"u"&&new TextDecoder,xv=0;try{Uv.decode(_0,{stream:!0}),xv=1}catch{}function Ev(t){if(Array.isArray(t))return t}function Lv(t,A){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var r,n,i,s,a=[],o=!0,c=!1;try{if(i=(e=e.call(t)).next,A!==0)for(;!(o=(r=i.call(e)).done)&&(a.push(r.value),a.length!==A);o=!0);}catch(h){c=!0,n=h}finally{try{if(!o&&e.return!=null&&(s=e.return(),Object(s)!==s))return}finally{if(c)throw n}}return a}}function Ud(t,A){(A==null||A>t.length)&&(A=t.length);for(var e=0,r=Array(A);e<A;e++)r[e]=t[e];return r}function Sv(t,A){if(t){if(typeof t=="string")return Ud(t,A);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ud(t,A):void 0}}function Iv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
135
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xd(t,A){return Ev(t)||Lv(t,A)||Sv(t,A)||Iv()}function Ed(t,A="utf8"){return new TextDecoder(A).decode(t)}const _v=new TextEncoder;function Nv(t){return _v.encode(t)}const kv=1024*8,Hv=(()=>{const t=new Uint8Array(4),A=new Uint32Array(t.buffer);return!((A[0]=1)&t[0])})(),eu={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class af{constructor(A=kv,e={}){oA(this,"buffer");oA(this,"byteLength");oA(this,"byteOffset");oA(this,"length");oA(this,"offset");oA(this,"lastWrittenByte");oA(this,"littleEndian");oA(this,"_data");oA(this,"_mark");oA(this,"_marks");let r=!1;typeof A=="number"?A=new ArrayBuffer(A):(r=!0,this.lastWrittenByte=A.byteLength);const n=e.offset?e.offset>>>0:0,i=A.byteLength-n;let s=n;(ArrayBuffer.isView(A)||A instanceof af)&&(A.byteLength!==A.buffer.byteLength&&(s=A.byteOffset+n),A=A.buffer),r?this.lastWrittenByte=i:this.lastWrittenByte=0,this.buffer=A,this.length=i,this.byteLength=i,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,i),this._mark=0,this._marks=[]}available(A=1){return this.offset+A<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(A=1){return this.offset+=A,this}back(A=1){return this.offset-=A,this}seek(A){return this.offset=A,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const A=this._marks.pop();if(A===void 0)throw new Error("Mark stack empty");return this.seek(A),this}rewind(){return this.offset=0,this}ensureAvailable(A=1){if(!this.available(A)){const r=(this.offset+A)*2,n=new Uint8Array(r);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(A=1){return this.readArray(A,"uint8")}readArray(A,e){const r=eu[e].BYTES_PER_ELEMENT*A,n=this.byteOffset+this.offset,i=this.buffer.slice(n,n+r);if(this.littleEndian===Hv&&e!=="uint8"&&e!=="int8"){const a=new Uint8Array(this.buffer.slice(n,n+r));a.reverse();const o=new eu[e](a.buffer);return this.offset+=r,o.reverse(),o}const s=new eu[e](i);return this.offset+=r,s}readInt16(){const A=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,A}readUint16(){const A=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,A}readInt32(){const A=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,A}readUint32(){const A=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,A}readFloat32(){const A=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,A}readFloat64(){const A=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,A}readBigInt64(){const A=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,A}readBigUint64(){const A=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,A}readChar(){return String.fromCharCode(this.readInt8())}readChars(A=1){let e="";for(let r=0;r<A;r++)e+=this.readChar();return e}readUtf8(A=1){return Ed(this.readBytes(A))}decodeText(A=1,e="utf8"){return Ed(this.readBytes(A),e)}writeBoolean(A){return this.writeUint8(A?255:0),this}writeInt8(A){return this.ensureAvailable(1),this._data.setInt8(this.offset++,A),this._updateLastWrittenByte(),this}writeUint8(A){return this.ensureAvailable(1),this._data.setUint8(this.offset++,A),this._updateLastWrittenByte(),this}writeByte(A){return this.writeUint8(A)}writeBytes(A){this.ensureAvailable(A.length);for(let e=0;e<A.length;e++)this._data.setUint8(this.offset++,A[e]);return this._updateLastWrittenByte(),this}writeInt16(A){return this.ensureAvailable(2),this._data.setInt16(this.offset,A,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(A){return this.ensureAvailable(2),this._data.setUint16(this.offset,A,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(A){return this.ensureAvailable(4),this._data.setInt32(this.offset,A,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(A){return this.ensureAvailable(4),this._data.setUint32(this.offset,A,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(A){return this.ensureAvailable(4),this._data.setFloat32(this.offset,A,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(A){return this.ensureAvailable(8),this._data.setFloat64(this.offset,A,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(A){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,A,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(A){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,A,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(A){return this.writeUint8(A.charCodeAt(0))}writeChars(A){for(let e=0;e<A.length;e++)this.writeUint8(A.charCodeAt(e));return this}writeUtf8(A){return this.writeBytes(Nv(A))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function _s(t){let A=t.length;for(;--A>=0;)t[A]=0}const Pv=3,Tv=258,H0=29,Dv=256,Rv=Dv+1+H0,P0=30,Ov=512,Mv=new Array((Rv+2)*2);_s(Mv);const Kv=new Array(P0*2);_s(Kv);const jv=new Array(Ov);_s(jv);const Gv=new Array(Tv-Pv+1);_s(Gv);const qv=new Array(H0);_s(qv);const Vv=new Array(P0);_s(Vv);const Wv=(t,A,e,r)=>{let n=t&65535|0,i=t>>>16&65535|0,s=0;for(;e!==0;){s=e>2e3?2e3:e,e-=s;do n=n+A[r++]|0,i=i+n|0;while(--s);n%=65521,i%=65521}return n|i<<16|0};var dh=Wv;const zv=()=>{let t,A=[];for(var e=0;e<256;e++){t=e;for(var r=0;r<8;r++)t=t&1?3988292384^t>>>1:t>>>1;A[e]=t}return A},$v=new Uint32Array(zv()),Xv=(t,A,e,r)=>{const n=$v,i=r+e;t^=-1;for(let s=r;s<i;s++)t=t>>>8^n[(t^A[s])&255];return t^-1};var rn=Xv,gh={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},T0={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const Jv=(t,A)=>Object.prototype.hasOwnProperty.call(t,A);var Yv=function(t){const A=Array.prototype.slice.call(arguments,1);for(;A.length;){const e=A.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const r in e)Jv(e,r)&&(t[r]=e[r])}}return t},Zv=t=>{let A=0;for(let r=0,n=t.length;r<n;r++)A+=t[r].length;const e=new Uint8Array(A);for(let r=0,n=0,i=t.length;r<i;r++){let s=t[r];e.set(s,n),n+=s.length}return e},D0={assign:Yv,flattenChunks:Zv};let R0=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{R0=!1}const Da=new Uint8Array(256);for(let t=0;t<256;t++)Da[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Da[254]=Da[254]=1;var Ay=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let A,e,r,n,i,s=t.length,a=0;for(n=0;n<s;n++)e=t.charCodeAt(n),(e&64512)===55296&&n+1<s&&(r=t.charCodeAt(n+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),n++)),a+=e<128?1:e<2048?2:e<65536?3:4;for(A=new Uint8Array(a),i=0,n=0;i<a;n++)e=t.charCodeAt(n),(e&64512)===55296&&n+1<s&&(r=t.charCodeAt(n+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),n++)),e<128?A[i++]=e:e<2048?(A[i++]=192|e>>>6,A[i++]=128|e&63):e<65536?(A[i++]=224|e>>>12,A[i++]=128|e>>>6&63,A[i++]=128|e&63):(A[i++]=240|e>>>18,A[i++]=128|e>>>12&63,A[i++]=128|e>>>6&63,A[i++]=128|e&63);return A};const ey=(t,A)=>{if(A<65534&&t.subarray&&R0)return String.fromCharCode.apply(null,t.length===A?t:t.subarray(0,A));let e="";for(let r=0;r<A;r++)e+=String.fromCharCode(t[r]);return e};var ty=(t,A)=>{const e=A||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,A));let r,n;const i=new Array(e*2);for(n=0,r=0;r<e;){let s=t[r++];if(s<128){i[n++]=s;continue}let a=Da[s];if(a>4){i[n++]=65533,r+=a-1;continue}for(s&=a===2?31:a===3?15:7;a>1&&r<e;)s=s<<6|t[r++]&63,a--;if(a>1){i[n++]=65533;continue}s<65536?i[n++]=s:(s-=65536,i[n++]=55296|s>>10&1023,i[n++]=56320|s&1023)}return ey(i,n)},ry=(t,A)=>{A=A||t.length,A>t.length&&(A=t.length);let e=A-1;for(;e>=0&&(t[e]&192)===128;)e--;return e<0||e===0?A:e+Da[t[e]]>A?e:A},ph={string2buf:Ay,buf2string:ty,utf8border:ry};function ny(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var iy=ny;const Po=16209,sy=16191;var ay=function(A,e){let r,n,i,s,a,o,c,h,d,m,f,w,y,F,v,L,_,S,V,z,X,q,k,Y;const x=A.state;r=A.next_in,k=A.input,n=r+(A.avail_in-5),i=A.next_out,Y=A.output,s=i-(e-A.avail_out),a=i+(A.avail_out-257),o=x.dmax,c=x.wsize,h=x.whave,d=x.wnext,m=x.window,f=x.hold,w=x.bits,y=x.lencode,F=x.distcode,v=(1<<x.lenbits)-1,L=(1<<x.distbits)-1;A:do{w<15&&(f+=k[r++]<<w,w+=8,f+=k[r++]<<w,w+=8),_=y[f&v];e:for(;;){if(S=_>>>24,f>>>=S,w-=S,S=_>>>16&255,S===0)Y[i++]=_&65535;else if(S&16){V=_&65535,S&=15,S&&(w<S&&(f+=k[r++]<<w,w+=8),V+=f&(1<<S)-1,f>>>=S,w-=S),w<15&&(f+=k[r++]<<w,w+=8,f+=k[r++]<<w,w+=8),_=F[f&L];t:for(;;){if(S=_>>>24,f>>>=S,w-=S,S=_>>>16&255,S&16){if(z=_&65535,S&=15,w<S&&(f+=k[r++]<<w,w+=8,w<S&&(f+=k[r++]<<w,w+=8)),z+=f&(1<<S)-1,z>o){A.msg="invalid distance too far back",x.mode=Po;break A}if(f>>>=S,w-=S,S=i-s,z>S){if(S=z-S,S>h&&x.sane){A.msg="invalid distance too far back",x.mode=Po;break A}if(X=0,q=m,d===0){if(X+=c-S,S<V){V-=S;do Y[i++]=m[X++];while(--S);X=i-z,q=Y}}else if(d<S){if(X+=c+d-S,S-=d,S<V){V-=S;do Y[i++]=m[X++];while(--S);if(X=0,d<V){S=d,V-=S;do Y[i++]=m[X++];while(--S);X=i-z,q=Y}}}else if(X+=d-S,S<V){V-=S;do Y[i++]=m[X++];while(--S);X=i-z,q=Y}for(;V>2;)Y[i++]=q[X++],Y[i++]=q[X++],Y[i++]=q[X++],V-=3;V&&(Y[i++]=q[X++],V>1&&(Y[i++]=q[X++]))}else{X=i-z;do Y[i++]=Y[X++],Y[i++]=Y[X++],Y[i++]=Y[X++],V-=3;while(V>2);V&&(Y[i++]=Y[X++],V>1&&(Y[i++]=Y[X++]))}}else if(S&64){A.msg="invalid distance code",x.mode=Po;break A}else{_=F[(_&65535)+(f&(1<<S)-1)];continue t}break}}else if(S&64)if(S&32){x.mode=sy;break A}else{A.msg="invalid literal/length code",x.mode=Po;break A}else{_=y[(_&65535)+(f&(1<<S)-1)];continue e}break}}while(r<n&&i<a);V=w>>3,r-=V,w-=V<<3,f&=(1<<w)-1,A.next_in=r,A.next_out=i,A.avail_in=r<n?5+(n-r):5-(r-n),A.avail_out=i<a?257+(a-i):257-(i-a),x.hold=f,x.bits=w};const is=15,Ld=852,Sd=592,Id=0,tu=1,_d=2,oy=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ly=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),cy=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),uy=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),hy=(t,A,e,r,n,i,s,a)=>{const o=a.bits;let c=0,h=0,d=0,m=0,f=0,w=0,y=0,F=0,v=0,L=0,_,S,V,z,X,q=null,k;const Y=new Uint16Array(is+1),x=new Uint16Array(is+1);let P=null,j,D,J;for(c=0;c<=is;c++)Y[c]=0;for(h=0;h<r;h++)Y[A[e+h]]++;for(f=o,m=is;m>=1&&Y[m]===0;m--);if(f>m&&(f=m),m===0)return n[i++]=1<<24|64<<16|0,n[i++]=1<<24|64<<16|0,a.bits=1,0;for(d=1;d<m&&Y[d]===0;d++);for(f<d&&(f=d),F=1,c=1;c<=is;c++)if(F<<=1,F-=Y[c],F<0)return-1;if(F>0&&(t===Id||m!==1))return-1;for(x[1]=0,c=1;c<is;c++)x[c+1]=x[c]+Y[c];for(h=0;h<r;h++)A[e+h]!==0&&(s[x[A[e+h]]++]=h);if(t===Id?(q=P=s,k=20):t===tu?(q=oy,P=ly,k=257):(q=cy,P=uy,k=0),L=0,h=0,c=d,X=i,w=f,y=0,V=-1,v=1<<f,z=v-1,t===tu&&v>Ld||t===_d&&v>Sd)return 1;for(;;){j=c-y,s[h]+1<k?(D=0,J=s[h]):s[h]>=k?(D=P[s[h]-k],J=q[s[h]-k]):(D=96,J=0),_=1<<c-y,S=1<<w,d=S;do S-=_,n[X+(L>>y)+S]=j<<24|D<<16|J|0;while(S!==0);for(_=1<<c-1;L&_;)_>>=1;if(_!==0?(L&=_-1,L+=_):L=0,h++,--Y[c]===0){if(c===m)break;c=A[e+s[h]]}if(c>f&&(L&z)!==V){for(y===0&&(y=f),X+=d,w=c-y,F=1<<w;w+y<m&&(F-=Y[w+y],!(F<=0));)w++,F<<=1;if(v+=1<<w,t===tu&&v>Ld||t===_d&&v>Sd)return 1;V=L&z,n[V]=f<<24|w<<16|X-i|0}}return L!==0&&(n[X+L]=c-y<<24|64<<16|0),a.bits=f,0};var xa=hy;const fy=0,O0=1,M0=2,{Z_FINISH:Nd,Z_BLOCK:dy,Z_TREES:To,Z_OK:Mi,Z_STREAM_END:gy,Z_NEED_DICT:py,Z_STREAM_ERROR:Nr,Z_DATA_ERROR:K0,Z_MEM_ERROR:j0,Z_BUF_ERROR:my,Z_DEFLATED:kd}=T0,ec=16180,Hd=16181,Pd=16182,Td=16183,Dd=16184,Rd=16185,Od=16186,Md=16187,Kd=16188,jd=16189,Dl=16190,In=16191,ru=16192,Gd=16193,nu=16194,qd=16195,Vd=16196,Wd=16197,zd=16198,Do=16199,Ro=16200,$d=16201,Xd=16202,Jd=16203,Yd=16204,Zd=16205,iu=16206,Ag=16207,eg=16208,$e=16209,G0=16210,q0=16211,By=852,wy=592,vy=15,yy=vy,tg=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function by(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ji=t=>{if(!t)return 1;const A=t.state;return!A||A.strm!==t||A.mode<ec||A.mode>q0?1:0},V0=t=>{if(ji(t))return Nr;const A=t.state;return t.total_in=t.total_out=A.total=0,t.msg="",A.wrap&&(t.adler=A.wrap&1),A.mode=ec,A.last=0,A.havedict=0,A.flags=-1,A.dmax=32768,A.head=null,A.hold=0,A.bits=0,A.lencode=A.lendyn=new Int32Array(By),A.distcode=A.distdyn=new Int32Array(wy),A.sane=1,A.back=-1,Mi},W0=t=>{if(ji(t))return Nr;const A=t.state;return A.wsize=0,A.whave=0,A.wnext=0,V0(t)},z0=(t,A)=>{let e;if(ji(t))return Nr;const r=t.state;return A<0?(e=0,A=-A):(e=(A>>4)+5,A<48&&(A&=15)),A&&(A<8||A>15)?Nr:(r.window!==null&&r.wbits!==A&&(r.window=null),r.wrap=e,r.wbits=A,W0(t))},$0=(t,A)=>{if(!t)return Nr;const e=new by;t.state=e,e.strm=t,e.window=null,e.mode=ec;const r=z0(t,A);return r!==Mi&&(t.state=null),r},Cy=t=>$0(t,yy);let rg=!0,su,au;const Fy=t=>{if(rg){su=new Int32Array(512),au=new Int32Array(32);let A=0;for(;A<144;)t.lens[A++]=8;for(;A<256;)t.lens[A++]=9;for(;A<280;)t.lens[A++]=7;for(;A<288;)t.lens[A++]=8;for(xa(O0,t.lens,0,288,su,0,t.work,{bits:9}),A=0;A<32;)t.lens[A++]=5;xa(M0,t.lens,0,32,au,0,t.work,{bits:5}),rg=!1}t.lencode=su,t.lenbits=9,t.distcode=au,t.distbits=5},X0=(t,A,e,r)=>{let n;const i=t.state;return i.window===null&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),r>=i.wsize?(i.window.set(A.subarray(e-i.wsize,e),0),i.wnext=0,i.whave=i.wsize):(n=i.wsize-i.wnext,n>r&&(n=r),i.window.set(A.subarray(e-r,e-r+n),i.wnext),r-=n,r?(i.window.set(A.subarray(e-r,e),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=n,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=n))),0},Qy=(t,A)=>{let e,r,n,i,s,a,o,c,h,d,m,f,w,y,F=0,v,L,_,S,V,z,X,q;const k=new Uint8Array(4);let Y,x;const P=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ji(t)||!t.output||!t.input&&t.avail_in!==0)return Nr;e=t.state,e.mode===In&&(e.mode=ru),s=t.next_out,n=t.output,o=t.avail_out,i=t.next_in,r=t.input,a=t.avail_in,c=e.hold,h=e.bits,d=a,m=o,q=Mi;A:for(;;)switch(e.mode){case ec:if(e.wrap===0){e.mode=ru;break}for(;h<16;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(e.wrap&2&&c===35615){e.wbits===0&&(e.wbits=15),e.check=0,k[0]=c&255,k[1]=c>>>8&255,e.check=rn(e.check,k,2,0),c=0,h=0,e.mode=Hd;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((c&255)<<8)+(c>>8))%31){t.msg="incorrect header check",e.mode=$e;break}if((c&15)!==kd){t.msg="unknown compression method",e.mode=$e;break}if(c>>>=4,h-=4,X=(c&15)+8,e.wbits===0&&(e.wbits=X),X>15||X>e.wbits){t.msg="invalid window size",e.mode=$e;break}e.dmax=1<<e.wbits,e.flags=0,t.adler=e.check=1,e.mode=c&512?jd:In,c=0,h=0;break;case Hd:for(;h<16;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(e.flags=c,(e.flags&255)!==kd){t.msg="unknown compression method",e.mode=$e;break}if(e.flags&57344){t.msg="unknown header flags set",e.mode=$e;break}e.head&&(e.head.text=c>>8&1),e.flags&512&&e.wrap&4&&(k[0]=c&255,k[1]=c>>>8&255,e.check=rn(e.check,k,2,0)),c=0,h=0,e.mode=Pd;case Pd:for(;h<32;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}e.head&&(e.head.time=c),e.flags&512&&e.wrap&4&&(k[0]=c&255,k[1]=c>>>8&255,k[2]=c>>>16&255,k[3]=c>>>24&255,e.check=rn(e.check,k,4,0)),c=0,h=0,e.mode=Td;case Td:for(;h<16;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}e.head&&(e.head.xflags=c&255,e.head.os=c>>8),e.flags&512&&e.wrap&4&&(k[0]=c&255,k[1]=c>>>8&255,e.check=rn(e.check,k,2,0)),c=0,h=0,e.mode=Dd;case Dd:if(e.flags&1024){for(;h<16;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}e.length=c,e.head&&(e.head.extra_len=c),e.flags&512&&e.wrap&4&&(k[0]=c&255,k[1]=c>>>8&255,e.check=rn(e.check,k,2,0)),c=0,h=0}else e.head&&(e.head.extra=null);e.mode=Rd;case Rd:if(e.flags&1024&&(f=e.length,f>a&&(f=a),f&&(e.head&&(X=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(r.subarray(i,i+f),X)),e.flags&512&&e.wrap&4&&(e.check=rn(e.check,r,f,i)),a-=f,i+=f,e.length-=f),e.length))break A;e.length=0,e.mode=Od;case Od:if(e.flags&2048){if(a===0)break A;f=0;do X=r[i+f++],e.head&&X&&e.length<65536&&(e.head.name+=String.fromCharCode(X));while(X&&f<a);if(e.flags&512&&e.wrap&4&&(e.check=rn(e.check,r,f,i)),a-=f,i+=f,X)break A}else e.head&&(e.head.name=null);e.length=0,e.mode=Md;case Md:if(e.flags&4096){if(a===0)break A;f=0;do X=r[i+f++],e.head&&X&&e.length<65536&&(e.head.comment+=String.fromCharCode(X));while(X&&f<a);if(e.flags&512&&e.wrap&4&&(e.check=rn(e.check,r,f,i)),a-=f,i+=f,X)break A}else e.head&&(e.head.comment=null);e.mode=Kd;case Kd:if(e.flags&512){for(;h<16;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(e.wrap&4&&c!==(e.check&65535)){t.msg="header crc mismatch",e.mode=$e;break}c=0,h=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),t.adler=e.check=0,e.mode=In;break;case jd:for(;h<32;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}t.adler=e.check=tg(c),c=0,h=0,e.mode=Dl;case Dl:if(e.havedict===0)return t.next_out=s,t.avail_out=o,t.next_in=i,t.avail_in=a,e.hold=c,e.bits=h,py;t.adler=e.check=1,e.mode=In;case In:if(A===dy||A===To)break A;case ru:if(e.last){c>>>=h&7,h-=h&7,e.mode=iu;break}for(;h<3;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}switch(e.last=c&1,c>>>=1,h-=1,c&3){case 0:e.mode=Gd;break;case 1:if(Fy(e),e.mode=Do,A===To){c>>>=2,h-=2;break A}break;case 2:e.mode=Vd;break;case 3:t.msg="invalid block type",e.mode=$e}c>>>=2,h-=2;break;case Gd:for(c>>>=h&7,h-=h&7;h<32;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if((c&65535)!==(c>>>16^65535)){t.msg="invalid stored block lengths",e.mode=$e;break}if(e.length=c&65535,c=0,h=0,e.mode=nu,A===To)break A;case nu:e.mode=qd;case qd:if(f=e.length,f){if(f>a&&(f=a),f>o&&(f=o),f===0)break A;n.set(r.subarray(i,i+f),s),a-=f,i+=f,o-=f,s+=f,e.length-=f;break}e.mode=In;break;case Vd:for(;h<14;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(e.nlen=(c&31)+257,c>>>=5,h-=5,e.ndist=(c&31)+1,c>>>=5,h-=5,e.ncode=(c&15)+4,c>>>=4,h-=4,e.nlen>286||e.ndist>30){t.msg="too many length or distance symbols",e.mode=$e;break}e.have=0,e.mode=Wd;case Wd:for(;e.have<e.ncode;){for(;h<3;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}e.lens[P[e.have++]]=c&7,c>>>=3,h-=3}for(;e.have<19;)e.lens[P[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,Y={bits:e.lenbits},q=xa(fy,e.lens,0,19,e.lencode,0,e.work,Y),e.lenbits=Y.bits,q){t.msg="invalid code lengths set",e.mode=$e;break}e.have=0,e.mode=zd;case zd:for(;e.have<e.nlen+e.ndist;){for(;F=e.lencode[c&(1<<e.lenbits)-1],v=F>>>24,L=F>>>16&255,_=F&65535,!(v<=h);){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(_<16)c>>>=v,h-=v,e.lens[e.have++]=_;else{if(_===16){for(x=v+2;h<x;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(c>>>=v,h-=v,e.have===0){t.msg="invalid bit length repeat",e.mode=$e;break}X=e.lens[e.have-1],f=3+(c&3),c>>>=2,h-=2}else if(_===17){for(x=v+3;h<x;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}c>>>=v,h-=v,X=0,f=3+(c&7),c>>>=3,h-=3}else{for(x=v+7;h<x;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}c>>>=v,h-=v,X=0,f=11+(c&127),c>>>=7,h-=7}if(e.have+f>e.nlen+e.ndist){t.msg="invalid bit length repeat",e.mode=$e;break}for(;f--;)e.lens[e.have++]=X}}if(e.mode===$e)break;if(e.lens[256]===0){t.msg="invalid code -- missing end-of-block",e.mode=$e;break}if(e.lenbits=9,Y={bits:e.lenbits},q=xa(O0,e.lens,0,e.nlen,e.lencode,0,e.work,Y),e.lenbits=Y.bits,q){t.msg="invalid literal/lengths set",e.mode=$e;break}if(e.distbits=6,e.distcode=e.distdyn,Y={bits:e.distbits},q=xa(M0,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,Y),e.distbits=Y.bits,q){t.msg="invalid distances set",e.mode=$e;break}if(e.mode=Do,A===To)break A;case Do:e.mode=Ro;case Ro:if(a>=6&&o>=258){t.next_out=s,t.avail_out=o,t.next_in=i,t.avail_in=a,e.hold=c,e.bits=h,ay(t,m),s=t.next_out,n=t.output,o=t.avail_out,i=t.next_in,r=t.input,a=t.avail_in,c=e.hold,h=e.bits,e.mode===In&&(e.back=-1);break}for(e.back=0;F=e.lencode[c&(1<<e.lenbits)-1],v=F>>>24,L=F>>>16&255,_=F&65535,!(v<=h);){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(L&&!(L&240)){for(S=v,V=L,z=_;F=e.lencode[z+((c&(1<<S+V)-1)>>S)],v=F>>>24,L=F>>>16&255,_=F&65535,!(S+v<=h);){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}c>>>=S,h-=S,e.back+=S}if(c>>>=v,h-=v,e.back+=v,e.length=_,L===0){e.mode=Zd;break}if(L&32){e.back=-1,e.mode=In;break}if(L&64){t.msg="invalid literal/length code",e.mode=$e;break}e.extra=L&15,e.mode=$d;case $d:if(e.extra){for(x=e.extra;h<x;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}e.length+=c&(1<<e.extra)-1,c>>>=e.extra,h-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=Xd;case Xd:for(;F=e.distcode[c&(1<<e.distbits)-1],v=F>>>24,L=F>>>16&255,_=F&65535,!(v<=h);){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(!(L&240)){for(S=v,V=L,z=_;F=e.distcode[z+((c&(1<<S+V)-1)>>S)],v=F>>>24,L=F>>>16&255,_=F&65535,!(S+v<=h);){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}c>>>=S,h-=S,e.back+=S}if(c>>>=v,h-=v,e.back+=v,L&64){t.msg="invalid distance code",e.mode=$e;break}e.offset=_,e.extra=L&15,e.mode=Jd;case Jd:if(e.extra){for(x=e.extra;h<x;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}e.offset+=c&(1<<e.extra)-1,c>>>=e.extra,h-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){t.msg="invalid distance too far back",e.mode=$e;break}e.mode=Yd;case Yd:if(o===0)break A;if(f=m-o,e.offset>f){if(f=e.offset-f,f>e.whave&&e.sane){t.msg="invalid distance too far back",e.mode=$e;break}f>e.wnext?(f-=e.wnext,w=e.wsize-f):w=e.wnext-f,f>e.length&&(f=e.length),y=e.window}else y=n,w=s-e.offset,f=e.length;f>o&&(f=o),o-=f,e.length-=f;do n[s++]=y[w++];while(--f);e.length===0&&(e.mode=Ro);break;case Zd:if(o===0)break A;n[s++]=e.length,o--,e.mode=Ro;break;case iu:if(e.wrap){for(;h<32;){if(a===0)break A;a--,c|=r[i++]<<h,h+=8}if(m-=o,t.total_out+=m,e.total+=m,e.wrap&4&&m&&(t.adler=e.check=e.flags?rn(e.check,n,m,s-m):dh(e.check,n,m,s-m)),m=o,e.wrap&4&&(e.flags?c:tg(c))!==e.check){t.msg="incorrect data check",e.mode=$e;break}c=0,h=0}e.mode=Ag;case Ag:if(e.wrap&&e.flags){for(;h<32;){if(a===0)break A;a--,c+=r[i++]<<h,h+=8}if(e.wrap&4&&c!==(e.total&4294967295)){t.msg="incorrect length check",e.mode=$e;break}c=0,h=0}e.mode=eg;case eg:q=gy;break A;case $e:q=K0;break A;case G0:return j0;case q0:default:return Nr}return t.next_out=s,t.avail_out=o,t.next_in=i,t.avail_in=a,e.hold=c,e.bits=h,(e.wsize||m!==t.avail_out&&e.mode<$e&&(e.mode<iu||A!==Nd))&&X0(t,t.output,t.next_out,m-t.avail_out),d-=t.avail_in,m-=t.avail_out,t.total_in+=d,t.total_out+=m,e.total+=m,e.wrap&4&&m&&(t.adler=e.check=e.flags?rn(e.check,n,m,t.next_out-m):dh(e.check,n,m,t.next_out-m)),t.data_type=e.bits+(e.last?64:0)+(e.mode===In?128:0)+(e.mode===Do||e.mode===nu?256:0),(d===0&&m===0||A===Nd)&&q===Mi&&(q=my),q},Uy=t=>{if(ji(t))return Nr;let A=t.state;return A.window&&(A.window=null),t.state=null,Mi},xy=(t,A)=>{if(ji(t))return Nr;const e=t.state;return e.wrap&2?(e.head=A,A.done=!1,Mi):Nr},Ey=(t,A)=>{const e=A.length;let r,n,i;return ji(t)||(r=t.state,r.wrap!==0&&r.mode!==Dl)?Nr:r.mode===Dl&&(n=1,n=dh(n,A,e,0),n!==r.check)?K0:(i=X0(t,A,e,e),i?(r.mode=G0,j0):(r.havedict=1,Mi))};var Ly=W0,Sy=z0,Iy=V0,_y=Cy,Ny=$0,ky=Qy,Hy=Uy,Py=xy,Ty=Ey,Dy="pako inflate (from Nodeca project)",kn={inflateReset:Ly,inflateReset2:Sy,inflateResetKeep:Iy,inflateInit:_y,inflateInit2:Ny,inflate:ky,inflateEnd:Hy,inflateGetHeader:Py,inflateSetDictionary:Ty,inflateInfo:Dy};function Ry(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Oy=Ry;const J0=Object.prototype.toString,{Z_NO_FLUSH:My,Z_FINISH:Ky,Z_OK:Ra,Z_STREAM_END:ou,Z_NEED_DICT:lu,Z_STREAM_ERROR:jy,Z_DATA_ERROR:ng,Z_MEM_ERROR:Gy}=T0;function qa(t){this.options=D0.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const A=this.options;A.raw&&A.windowBits>=0&&A.windowBits<16&&(A.windowBits=-A.windowBits,A.windowBits===0&&(A.windowBits=-15)),A.windowBits>=0&&A.windowBits<16&&!(t&&t.windowBits)&&(A.windowBits+=32),A.windowBits>15&&A.windowBits<48&&(A.windowBits&15||(A.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new iy,this.strm.avail_out=0;let e=kn.inflateInit2(this.strm,A.windowBits);if(e!==Ra)throw new Error(gh[e]);if(this.header=new Oy,kn.inflateGetHeader(this.strm,this.header),A.dictionary&&(typeof A.dictionary=="string"?A.dictionary=ph.string2buf(A.dictionary):J0.call(A.dictionary)==="[object ArrayBuffer]"&&(A.dictionary=new Uint8Array(A.dictionary)),A.raw&&(e=kn.inflateSetDictionary(this.strm,A.dictionary),e!==Ra)))throw new Error(gh[e])}qa.prototype.push=function(t,A){const e=this.strm,r=this.options.chunkSize,n=this.options.dictionary;let i,s,a;if(this.ended)return!1;for(A===~~A?s=A:s=A===!0?Ky:My,J0.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),i=kn.inflate(e,s),i===lu&&n&&(i=kn.inflateSetDictionary(e,n),i===Ra?i=kn.inflate(e,s):i===ng&&(i=lu));e.avail_in>0&&i===ou&&e.state.wrap>0&&t[e.next_in]!==0;)kn.inflateReset(e),i=kn.inflate(e,s);switch(i){case jy:case ng:case lu:case Gy:return this.onEnd(i),this.ended=!0,!1}if(a=e.avail_out,e.next_out&&(e.avail_out===0||i===ou))if(this.options.to==="string"){let o=ph.utf8border(e.output,e.next_out),c=e.next_out-o,h=ph.buf2string(e.output,o);e.next_out=c,e.avail_out=r-c,c&&e.output.set(e.output.subarray(o,o+c),0),this.onData(h)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(i===Ra&&a===0)){if(i===ou)return i=kn.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};qa.prototype.onData=function(t){this.chunks.push(t)};qa.prototype.onEnd=function(t){t===Ra&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=D0.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function qy(t,A){const e=new qa(A);if(e.push(t),e.err)throw e.msg||gh[e.err];return e.result}var Vy=qa,Wy=qy,zy={Inflate:Vy,inflate:Wy};const{Inflate:$y,inflate:Xy}=zy;var ig=$y,Jy=Xy;const Y0=[];for(let t=0;t<256;t++){let A=t;for(let e=0;e<8;e++)A&1?A=3988292384^A>>>1:A=A>>>1;Y0[t]=A}const sg=4294967295;function Yy(t,A,e){let r=t;for(let n=0;n<e;n++)r=Y0[(r^A[n])&255]^r>>>8;return r}function Zy(t,A){return(Yy(sg,t,A)^sg)>>>0}function ag(t,A,e){const r=t.readUint32(),n=Zy(new Uint8Array(t.buffer,t.byteOffset+t.offset-A-4,A),A);if(n!==r)throw new Error(`CRC mismatch for chunk ${e}. Expected ${r}, found ${n}`)}function Z0(t,A,e){for(let r=0;r<e;r++)A[r]=t[r]}function Am(t,A,e,r){let n=0;for(;n<r;n++)A[n]=t[n];for(;n<e;n++)A[n]=t[n]+A[n-r]&255}function em(t,A,e,r){let n=0;if(e.length===0)for(;n<r;n++)A[n]=t[n];else for(;n<r;n++)A[n]=t[n]+e[n]&255}function tm(t,A,e,r,n){let i=0;if(e.length===0){for(;i<n;i++)A[i]=t[i];for(;i<r;i++)A[i]=t[i]+(A[i-n]>>1)&255}else{for(;i<n;i++)A[i]=t[i]+(e[i]>>1)&255;for(;i<r;i++)A[i]=t[i]+(A[i-n]+e[i]>>1)&255}}function rm(t,A,e,r,n){let i=0;if(e.length===0){for(;i<n;i++)A[i]=t[i];for(;i<r;i++)A[i]=t[i]+A[i-n]&255}else{for(;i<n;i++)A[i]=t[i]+e[i]&255;for(;i<r;i++)A[i]=t[i]+Ab(A[i-n],e[i],e[i-n])&255}}function Ab(t,A,e){const r=t+A-e,n=Math.abs(r-t),i=Math.abs(r-A),s=Math.abs(r-e);return n<=i&&n<=s?t:i<=s?A:e}function eb(t,A,e,r,n,i){switch(t){case 0:Z0(A,e,n);break;case 1:Am(A,e,n,i);break;case 2:em(A,e,r,n);break;case 3:tm(A,e,r,n,i);break;case 4:rm(A,e,r,n,i);break;default:throw new Error(`Unsupported filter: ${t}`)}}const tb=new Uint16Array([255]),rb=new Uint8Array(tb.buffer),nb=rb[0]===255;function ib(t){const{data:A,width:e,height:r,channels:n,depth:i}=t,s=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],a=Math.ceil(i/8)*n,o=new Uint8Array(r*e*a);let c=0;for(let h=0;h<7;h++){const d=s[h],m=Math.ceil((e-d.x)/d.xStep),f=Math.ceil((r-d.y)/d.yStep);if(m<=0||f<=0)continue;const w=m*a,y=new Uint8Array(w);for(let F=0;F<f;F++){const v=A[c++],L=A.subarray(c,c+w);c+=w;const _=new Uint8Array(w);eb(v,L,_,y,w,a),y.set(_);for(let S=0;S<m;S++){const V=d.x+S*d.xStep,z=d.y+F*d.yStep;if(!(V>=e||z>=r))for(let X=0;X<a;X++)o[(z*e+V)*a+X]=_[S*a+X]}}}if(i===16){const h=new Uint16Array(o.buffer);if(nb)for(let d=0;d<h.length;d++)h[d]=sb(h[d]);return h}else return o}function sb(t){return(t&255)<<8|t>>8&255}const ab=new Uint16Array([255]),ob=new Uint8Array(ab.buffer),lb=ob[0]===255,cb=new Uint8Array(0);function og(t){const{data:A,width:e,height:r,channels:n,depth:i}=t,s=Math.ceil(i/8)*n,a=Math.ceil(i/8*n*e),o=new Uint8Array(r*a);let c=cb,h=0,d,m;for(let f=0;f<r;f++){switch(d=A.subarray(h+1,h+1+a),m=o.subarray(f*a,(f+1)*a),A[h]){case 0:Z0(d,m,a);break;case 1:Am(d,m,a,s);break;case 2:em(d,m,c,a);break;case 3:tm(d,m,c,a,s);break;case 4:rm(d,m,c,a,s);break;default:throw new Error(`Unsupported filter: ${A[h]}`)}c=m,h+=a+1}if(i===16){const f=new Uint16Array(o.buffer);if(lb)for(let w=0;w<f.length;w++)f[w]=ub(f[w]);return f}else return o}function ub(t){return(t&255)<<8|t>>8&255}const pl=Uint8Array.of(137,80,78,71,13,10,26,10);function lg(t){if(!hb(t.readBytes(pl.length)))throw new Error("wrong PNG signature")}function hb(t){if(t.length<pl.length)return!1;for(let A=0;A<pl.length;A++)if(t[A]!==pl[A])return!1;return!0}const fb="tEXt",db=0,nm=new TextDecoder("latin1");function gb(t){if(mb(t),t.length===0||t.length>79)throw new Error("keyword length must be between 1 and 79")}const pb=/^[\u0000-\u00FF]*$/;function mb(t){if(!pb.test(t))throw new Error("invalid latin1 text")}function Bb(t,A,e){const r=im(A);t[r]=wb(A,e-r.length-1)}function im(t){for(t.mark();t.readByte()!==db;);const A=t.offset;t.reset();const e=nm.decode(t.readBytes(A-t.offset-1));return t.skip(1),gb(e),e}function wb(t,A){return nm.decode(t.readBytes(A))}const fr={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},cu={UNKNOWN:-1,DEFLATE:0},cg={UNKNOWN:-1,ADAPTIVE:0},uu={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Oo={NONE:0,BACKGROUND:1,PREVIOUS:2},hu={SOURCE:0,OVER:1};class vb extends af{constructor(e,r={}){super(e);oA(this,"_checkCrc");oA(this,"_inflator");oA(this,"_png");oA(this,"_apng");oA(this,"_end");oA(this,"_hasPalette");oA(this,"_palette");oA(this,"_hasTransparency");oA(this,"_transparency");oA(this,"_compressionMethod");oA(this,"_filterMethod");oA(this,"_interlaceMethod");oA(this,"_colorType");oA(this,"_isAnimated");oA(this,"_numberOfFrames");oA(this,"_numberOfPlays");oA(this,"_frames");oA(this,"_writingDataChunks");const{checkCrc:n=!1}=r;this._checkCrc=n,this._inflator=new ig,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=cu.UNKNOWN,this._filterMethod=cg.UNKNOWN,this._interlaceMethod=uu.UNKNOWN,this._colorType=fr.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(lg(this);!this._end;){const e=this.readUint32(),r=this.readChars(4);this.decodeChunk(e,r)}return this.decodeImage(),this._png}decodeApng(){for(lg(this);!this._end;){const e=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(e,r)}return this.decodeApngImage(),this._apng}decodeChunk(e,r){const n=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case fb:Bb(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e);break}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?ag(this,e+4,r):this.skip(4)}decodeApngChunk(e,r){const n=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,r),this.offset=n+e;break}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?ag(this,e+4,r):this.skip(4)}decodeIHDR(){const e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=yb(this.readUint8());const r=this.readUint8();this._colorType=r;let n;switch(r){case fr.GREYSCALE:n=1;break;case fr.TRUECOLOUR:n=3;break;case fr.INDEXED_COLOUR:n=1;break;case fr.GREYSCALE_ALPHA:n=2;break;case fr.TRUECOLOUR_ALPHA:n=4;break;case fr.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==cu.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(e)}decodePLTE(e){if(e%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);const r=e/3;this._hasPalette=!0;const n=[];this._palette=n;for(let i=0;i<r;i++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;const r=e,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let r=e,n=this.offset+this.byteOffset;if(n+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,n,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case fr.GREYSCALE:case fr.TRUECOLOUR:{if(e%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let r=0;r<e/2;r++)this._transparency[r]=this.readUint16();break}case fr.INDEXED_COLOUR:{if(e>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${e} vs ${this._palette.length})`);let r=0;for(;r<e;r++){const n=this.readByte();this._palette[r].push(n)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case fr.UNKNOWN:case fr.GREYSCALE_ALPHA:case fr.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){const r=im(this),n=this.readUint8();if(n!==cu.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${n}`);const i=this.readBytes(e-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:Jy(i)}}decodepHYs(){const e=this.readUint32(),r=this.readUint32(),n=this.readByte();this._png.resolution={x:e,y:r,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let e=0;e<this._numberOfFrames;e++){const r={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(e);if(n){if(n.data=og({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),e===0||n.xOffset===0&&n.yOffset===0&&n.width===this._png.width&&n.height===this._png.height)r.data=n.data;else{const i=this._apng.frames.at(e-1);this.disposeFrame(n,i,r),this.addFrameDataToCanvas(r,n)}this._apng.frames.push(r)}}return this._apng}disposeFrame(e,r,n){switch(e.disposeOp){case Oo.NONE:break;case Oo.BACKGROUND:for(let i=0;i<this._png.height;i++)for(let s=0;s<this._png.width;s++){const a=(i*e.width+s)*this._png.channels;for(let o=0;o<this._png.channels;o++)n.data[a+o]=0}break;case Oo.PREVIOUS:n.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(e,r){const n=1<<this._png.depth,i=(s,a)=>{const o=((s+r.yOffset)*this._png.width+r.xOffset+a)*this._png.channels,c=(s*r.width+a)*this._png.channels;return{index:o,frameIndex:c}};switch(r.blendOp){case hu.SOURCE:for(let s=0;s<r.height;s++)for(let a=0;a<r.width;a++){const{index:o,frameIndex:c}=i(s,a);for(let h=0;h<this._png.channels;h++)e.data[o+h]=r.data[c+h]}break;case hu.OVER:for(let s=0;s<r.height;s++)for(let a=0;a<r.width;a++){const{index:o,frameIndex:c}=i(s,a);for(let h=0;h<this._png.channels;h++){const d=r.data[c+this._png.channels-1]/n,m=h%(this._png.channels-1)===0?1:r.data[c+h],f=Math.floor(d*m+(1-d)*e.data[o+h]);e.data[o+h]+=f}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var r;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const e=this._isAnimated?((r=this._frames)==null?void 0:r.at(0)).data:this._inflator.result;if(this._filterMethod!==cg.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===uu.NO_INTERLACE)this._png.data=og({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===uu.ADAM7)this._png.data=ib({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const e=this._inflator.result,r=this._frames.at(-1);r?r.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Oo.NONE,blendOp:hu.SOURCE,data:e}),this._inflator=new ig,this._writingDataChunks=!1}}function yb(t){if(t!==1&&t!==2&&t!==4&&t!==8&&t!==16)throw new Error(`invalid bit depth: ${t}`);return t}var ug;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"})(ug||(ug={}));function bb(t,A){return new vb(t,A).decode()}/** @license
133
136
  *
134
137
  * jsPDF - PDF Document creation from JavaScript
135
138
  * Version 4.0.0 Built on 2025-12-18T10:27:09.425Z
@@ -177,12 +180,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
177
180
  * Contributor(s):
178
181
  * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
179
182
  * kim3er, mfo, alnorth, Flamenco
180
- */var ne=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function hu(){ne.console&&typeof ne.console.log=="function"&&ne.console.log.apply(ne.console,arguments)}var De={log:hu,warn:function(t){ne.console&&(typeof ne.console.warn=="function"?ne.console.warn.apply(ne.console,arguments):hu.call(null,arguments))},error:function(t){ne.console&&(typeof ne.console.error=="function"?ne.console.error.apply(ne.console,arguments):hu(t))}};function fu(t,A,e){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){_i(r.response,A,e)},r.onerror=function(){De.error("could not download file")},r.send()}function og(t){var A=new XMLHttpRequest;A.open("HEAD",t,!1);try{A.send()}catch{}return A.status>=200&&A.status<=299}function Oo(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(A)}}var _i=ne.saveAs||((typeof window>"u"?"undefined":_e(window))!=="object"||window!==ne?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,A,e){var r=ne.URL||ne.webkitURL,n=document.createElement("a");A=A||t.name||"download",n.download=A,n.rel="noopener",typeof t=="string"?(n.href=t,n.origin!==location.origin?og(n.href)?fu(t,A,e):Oo(n,n.target="_blank"):Oo(n)):(n.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){Oo(n)},0))}:"msSaveOrOpenBlob"in navigator?function(t,A,e){if(A=A||t.name||"download",typeof t=="string")if(og(t))fu(t,A,e);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){Oo(r)})}else navigator.msSaveOrOpenBlob(function(n,i){return i===void 0?i={autoBom:!1}:_e(i)!=="object"&&(De.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n}(t,e),A)}:function(t,A,e,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return fu(t,A,e);var n=t.type==="application/octet-stream",i=/constructor/i.test(ne.HTMLElement)||ne.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||n&&i)&&(typeof FileReader>"u"?"undefined":_e(FileReader))==="object"){var a=new FileReader;a.onloadend=function(){var h=a.result;h=s?h:h.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=h:location=h,r=null},a.readAsDataURL(t)}else{var o=ne.URL||ne.webkitURL,c=o.createObjectURL(t);r?r.location=c:location.href=c,r=null,setTimeout(function(){o.revokeObjectURL(c)},4e4)}});/**
183
+ */var oe=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function fu(){oe.console&&typeof oe.console.log=="function"&&oe.console.log.apply(oe.console,arguments)}var Me={log:fu,warn:function(t){oe.console&&(typeof oe.console.warn=="function"?oe.console.warn.apply(oe.console,arguments):fu.call(null,arguments))},error:function(t){oe.console&&(typeof oe.console.error=="function"?oe.console.error.apply(oe.console,arguments):fu(t))}};function du(t,A,e){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){_i(r.response,A,e)},r.onerror=function(){Me.error("could not download file")},r.send()}function hg(t){var A=new XMLHttpRequest;A.open("HEAD",t,!1);try{A.send()}catch{}return A.status>=200&&A.status<=299}function Mo(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(A)}}var _i=oe.saveAs||((typeof window>"u"?"undefined":He(window))!=="object"||window!==oe?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,A,e){var r=oe.URL||oe.webkitURL,n=document.createElement("a");A=A||t.name||"download",n.download=A,n.rel="noopener",typeof t=="string"?(n.href=t,n.origin!==location.origin?hg(n.href)?du(t,A,e):Mo(n,n.target="_blank"):Mo(n)):(n.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){Mo(n)},0))}:"msSaveOrOpenBlob"in navigator?function(t,A,e){if(A=A||t.name||"download",typeof t=="string")if(hg(t))du(t,A,e);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){Mo(r)})}else navigator.msSaveOrOpenBlob(function(n,i){return i===void 0?i={autoBom:!1}:He(i)!=="object"&&(Me.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n}(t,e),A)}:function(t,A,e,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return du(t,A,e);var n=t.type==="application/octet-stream",i=/constructor/i.test(oe.HTMLElement)||oe.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||n&&i)&&(typeof FileReader>"u"?"undefined":He(FileReader))==="object"){var a=new FileReader;a.onloadend=function(){var h=a.result;h=s?h:h.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=h:location=h,r=null},a.readAsDataURL(t)}else{var o=oe.URL||oe.webkitURL,c=o.createObjectURL(t);r?r.location=c:location.href=c,r=null,setTimeout(function(){o.revokeObjectURL(c)},4e4)}});/**
181
184
  * A class to parse color values
182
185
  * @author Stoyan Stefanov <sstoo@gmail.com>
183
186
  * {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
184
187
  * @license Use it if you like it
185
- */function rm(t){var A;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(a){return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}}],r=0;r<e.length;r++){var n=e[r].re,i=e[r].process,s=n.exec(t);s&&(A=i(s),this.r=A[0],this.g=A[1],this.b=A[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var a=this.r.toString(16),o=this.g.toString(16),c=this.b.toString(16);return a.length==1&&(a="0"+a),o.length==1&&(o="0"+o),c.length==1&&(c="0"+c),"#"+a+o+c}}var pl=ne.atob.bind(ne),lg=ne.btoa.bind(ne);/**
188
+ */function sm(t){var A;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(a){return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}}],r=0;r<e.length;r++){var n=e[r].re,i=e[r].process,s=n.exec(t);s&&(A=i(s),this.r=A[0],this.g=A[1],this.b=A[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var a=this.r.toString(16),o=this.g.toString(16),c=this.b.toString(16);return a.length==1&&(a="0"+a),o.length==1&&(o="0"+o),c.length==1&&(c="0"+c),"#"+a+o+c}}var ml=oe.atob.bind(oe),fg=oe.btoa.bind(oe);/**
186
189
  * @license
187
190
  * Joseph Myers does not specify a particular license for his work.
188
191
  *
@@ -190,14 +193,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
190
193
  * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
191
194
  *
192
195
  * Modified by: Owen Leong
193
- */function du(t,A){var e=t[0],r=t[1],n=t[2],i=t[3];e=Rt(e,r,n,i,A[0],7,-680876936),i=Rt(i,e,r,n,A[1],12,-389564586),n=Rt(n,i,e,r,A[2],17,606105819),r=Rt(r,n,i,e,A[3],22,-1044525330),e=Rt(e,r,n,i,A[4],7,-176418897),i=Rt(i,e,r,n,A[5],12,1200080426),n=Rt(n,i,e,r,A[6],17,-1473231341),r=Rt(r,n,i,e,A[7],22,-45705983),e=Rt(e,r,n,i,A[8],7,1770035416),i=Rt(i,e,r,n,A[9],12,-1958414417),n=Rt(n,i,e,r,A[10],17,-42063),r=Rt(r,n,i,e,A[11],22,-1990404162),e=Rt(e,r,n,i,A[12],7,1804603682),i=Rt(i,e,r,n,A[13],12,-40341101),n=Rt(n,i,e,r,A[14],17,-1502002290),e=Ot(e,r=Rt(r,n,i,e,A[15],22,1236535329),n,i,A[1],5,-165796510),i=Ot(i,e,r,n,A[6],9,-1069501632),n=Ot(n,i,e,r,A[11],14,643717713),r=Ot(r,n,i,e,A[0],20,-373897302),e=Ot(e,r,n,i,A[5],5,-701558691),i=Ot(i,e,r,n,A[10],9,38016083),n=Ot(n,i,e,r,A[15],14,-660478335),r=Ot(r,n,i,e,A[4],20,-405537848),e=Ot(e,r,n,i,A[9],5,568446438),i=Ot(i,e,r,n,A[14],9,-1019803690),n=Ot(n,i,e,r,A[3],14,-187363961),r=Ot(r,n,i,e,A[8],20,1163531501),e=Ot(e,r,n,i,A[13],5,-1444681467),i=Ot(i,e,r,n,A[2],9,-51403784),n=Ot(n,i,e,r,A[7],14,1735328473),e=Mt(e,r=Ot(r,n,i,e,A[12],20,-1926607734),n,i,A[5],4,-378558),i=Mt(i,e,r,n,A[8],11,-2022574463),n=Mt(n,i,e,r,A[11],16,1839030562),r=Mt(r,n,i,e,A[14],23,-35309556),e=Mt(e,r,n,i,A[1],4,-1530992060),i=Mt(i,e,r,n,A[4],11,1272893353),n=Mt(n,i,e,r,A[7],16,-155497632),r=Mt(r,n,i,e,A[10],23,-1094730640),e=Mt(e,r,n,i,A[13],4,681279174),i=Mt(i,e,r,n,A[0],11,-358537222),n=Mt(n,i,e,r,A[3],16,-722521979),r=Mt(r,n,i,e,A[6],23,76029189),e=Mt(e,r,n,i,A[9],4,-640364487),i=Mt(i,e,r,n,A[12],11,-421815835),n=Mt(n,i,e,r,A[15],16,530742520),e=Kt(e,r=Mt(r,n,i,e,A[2],23,-995338651),n,i,A[0],6,-198630844),i=Kt(i,e,r,n,A[7],10,1126891415),n=Kt(n,i,e,r,A[14],15,-1416354905),r=Kt(r,n,i,e,A[5],21,-57434055),e=Kt(e,r,n,i,A[12],6,1700485571),i=Kt(i,e,r,n,A[3],10,-1894986606),n=Kt(n,i,e,r,A[10],15,-1051523),r=Kt(r,n,i,e,A[1],21,-2054922799),e=Kt(e,r,n,i,A[8],6,1873313359),i=Kt(i,e,r,n,A[15],10,-30611744),n=Kt(n,i,e,r,A[6],15,-1560198380),r=Kt(r,n,i,e,A[13],21,1309151649),e=Kt(e,r,n,i,A[4],6,-145523070),i=Kt(i,e,r,n,A[11],10,-1120210379),n=Kt(n,i,e,r,A[2],15,718787259),r=Kt(r,n,i,e,A[9],21,-343485551),t[0]=ni(e,t[0]),t[1]=ni(r,t[1]),t[2]=ni(n,t[2]),t[3]=ni(i,t[3])}function ec(t,A,e,r,n,i){return A=ni(ni(A,t),ni(r,i)),ni(A<<n|A>>>32-n,e)}function Rt(t,A,e,r,n,i,s){return ec(A&e|~A&r,t,A,n,i,s)}function Ot(t,A,e,r,n,i,s){return ec(A&r|e&~r,t,A,n,i,s)}function Mt(t,A,e,r,n,i,s){return ec(A^e^r,t,A,n,i,s)}function Kt(t,A,e,r,n,i,s){return ec(e^(A|~r),t,A,n,i,s)}function nm(t){var A,e=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(A=64;A<=t.length;A+=64)du(r,bC(t.substring(A-64,A)));t=t.substring(A-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(A=0;A<t.length;A++)n[A>>2]|=t.charCodeAt(A)<<(A%4<<3);if(n[A>>2]|=128<<(A%4<<3),A>55)for(du(r,n),A=0;A<16;A++)n[A]=0;return n[14]=8*e,du(r,n),r}function bC(t){var A,e=[];for(A=0;A<64;A+=4)e[A>>2]=t.charCodeAt(A)+(t.charCodeAt(A+1)<<8)+(t.charCodeAt(A+2)<<16)+(t.charCodeAt(A+3)<<24);return e}var cg="0123456789abcdef".split("");function FC(t){for(var A="",e=0;e<4;e++)A+=cg[t>>8*e+4&15]+cg[t>>8*e&15];return A}function QC(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function gh(t){return nm(t).map(QC).join("")}var UC=function(t){for(var A=0;A<t.length;A++)t[A]=FC(t[A]);return t.join("")}(nm("hello"))!="5d41402abc4b2a76b9719d911017c592";function ni(t,A){if(UC){var e=(65535&t)+(65535&A);return(t>>16)+(A>>16)+(e>>16)<<16|65535&e}return t+A&4294967295}/**
196
+ */function gu(t,A){var e=t[0],r=t[1],n=t[2],i=t[3];e=Rt(e,r,n,i,A[0],7,-680876936),i=Rt(i,e,r,n,A[1],12,-389564586),n=Rt(n,i,e,r,A[2],17,606105819),r=Rt(r,n,i,e,A[3],22,-1044525330),e=Rt(e,r,n,i,A[4],7,-176418897),i=Rt(i,e,r,n,A[5],12,1200080426),n=Rt(n,i,e,r,A[6],17,-1473231341),r=Rt(r,n,i,e,A[7],22,-45705983),e=Rt(e,r,n,i,A[8],7,1770035416),i=Rt(i,e,r,n,A[9],12,-1958414417),n=Rt(n,i,e,r,A[10],17,-42063),r=Rt(r,n,i,e,A[11],22,-1990404162),e=Rt(e,r,n,i,A[12],7,1804603682),i=Rt(i,e,r,n,A[13],12,-40341101),n=Rt(n,i,e,r,A[14],17,-1502002290),e=Ot(e,r=Rt(r,n,i,e,A[15],22,1236535329),n,i,A[1],5,-165796510),i=Ot(i,e,r,n,A[6],9,-1069501632),n=Ot(n,i,e,r,A[11],14,643717713),r=Ot(r,n,i,e,A[0],20,-373897302),e=Ot(e,r,n,i,A[5],5,-701558691),i=Ot(i,e,r,n,A[10],9,38016083),n=Ot(n,i,e,r,A[15],14,-660478335),r=Ot(r,n,i,e,A[4],20,-405537848),e=Ot(e,r,n,i,A[9],5,568446438),i=Ot(i,e,r,n,A[14],9,-1019803690),n=Ot(n,i,e,r,A[3],14,-187363961),r=Ot(r,n,i,e,A[8],20,1163531501),e=Ot(e,r,n,i,A[13],5,-1444681467),i=Ot(i,e,r,n,A[2],9,-51403784),n=Ot(n,i,e,r,A[7],14,1735328473),e=Mt(e,r=Ot(r,n,i,e,A[12],20,-1926607734),n,i,A[5],4,-378558),i=Mt(i,e,r,n,A[8],11,-2022574463),n=Mt(n,i,e,r,A[11],16,1839030562),r=Mt(r,n,i,e,A[14],23,-35309556),e=Mt(e,r,n,i,A[1],4,-1530992060),i=Mt(i,e,r,n,A[4],11,1272893353),n=Mt(n,i,e,r,A[7],16,-155497632),r=Mt(r,n,i,e,A[10],23,-1094730640),e=Mt(e,r,n,i,A[13],4,681279174),i=Mt(i,e,r,n,A[0],11,-358537222),n=Mt(n,i,e,r,A[3],16,-722521979),r=Mt(r,n,i,e,A[6],23,76029189),e=Mt(e,r,n,i,A[9],4,-640364487),i=Mt(i,e,r,n,A[12],11,-421815835),n=Mt(n,i,e,r,A[15],16,530742520),e=Kt(e,r=Mt(r,n,i,e,A[2],23,-995338651),n,i,A[0],6,-198630844),i=Kt(i,e,r,n,A[7],10,1126891415),n=Kt(n,i,e,r,A[14],15,-1416354905),r=Kt(r,n,i,e,A[5],21,-57434055),e=Kt(e,r,n,i,A[12],6,1700485571),i=Kt(i,e,r,n,A[3],10,-1894986606),n=Kt(n,i,e,r,A[10],15,-1051523),r=Kt(r,n,i,e,A[1],21,-2054922799),e=Kt(e,r,n,i,A[8],6,1873313359),i=Kt(i,e,r,n,A[15],10,-30611744),n=Kt(n,i,e,r,A[6],15,-1560198380),r=Kt(r,n,i,e,A[13],21,1309151649),e=Kt(e,r,n,i,A[4],6,-145523070),i=Kt(i,e,r,n,A[11],10,-1120210379),n=Kt(n,i,e,r,A[2],15,718787259),r=Kt(r,n,i,e,A[9],21,-343485551),t[0]=ii(e,t[0]),t[1]=ii(r,t[1]),t[2]=ii(n,t[2]),t[3]=ii(i,t[3])}function tc(t,A,e,r,n,i){return A=ii(ii(A,t),ii(r,i)),ii(A<<n|A>>>32-n,e)}function Rt(t,A,e,r,n,i,s){return tc(A&e|~A&r,t,A,n,i,s)}function Ot(t,A,e,r,n,i,s){return tc(A&r|e&~r,t,A,n,i,s)}function Mt(t,A,e,r,n,i,s){return tc(A^e^r,t,A,n,i,s)}function Kt(t,A,e,r,n,i,s){return tc(e^(A|~r),t,A,n,i,s)}function am(t){var A,e=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(A=64;A<=t.length;A+=64)gu(r,Cb(t.substring(A-64,A)));t=t.substring(A-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(A=0;A<t.length;A++)n[A>>2]|=t.charCodeAt(A)<<(A%4<<3);if(n[A>>2]|=128<<(A%4<<3),A>55)for(gu(r,n),A=0;A<16;A++)n[A]=0;return n[14]=8*e,gu(r,n),r}function Cb(t){var A,e=[];for(A=0;A<64;A+=4)e[A>>2]=t.charCodeAt(A)+(t.charCodeAt(A+1)<<8)+(t.charCodeAt(A+2)<<16)+(t.charCodeAt(A+3)<<24);return e}var dg="0123456789abcdef".split("");function Fb(t){for(var A="",e=0;e<4;e++)A+=dg[t>>8*e+4&15]+dg[t>>8*e&15];return A}function Qb(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function mh(t){return am(t).map(Qb).join("")}var Ub=function(t){for(var A=0;A<t.length;A++)t[A]=Fb(t[A]);return t.join("")}(am("hello"))!="5d41402abc4b2a76b9719d911017c592";function ii(t,A){if(Ub){var e=(65535&t)+(65535&A);return(t>>16)+(A>>16)+(e>>16)<<16|65535&e}return t+A&4294967295}/**
194
197
  * @license
195
198
  * FPDF is released under a permissive license: there is no usage restriction.
196
199
  * You may embed it freely in your application (commercial or not), with or
197
200
  * without modifications.
198
201
  *
199
202
  * Reference: http://www.fpdf.org/en/script/script37.php
200
- */function ph(t,A){var e,r,n,i;if(t!==e){for(var s=(n=t,i=1+(256/t.length|0),new Array(i+1).join(n)),a=[],o=0;o<256;o++)a[o]=o;var c=0;for(o=0;o<256;o++){var h=a[o];c=(c+h+s.charCodeAt(o))%256,a[o]=a[c],a[c]=h}e=t,r=a}else a=r;var g=A.length,m=0,f=0,w="";for(o=0;o<g;o++)f=(f+(h=a[m=(m+1)%256]))%256,a[m]=a[f],a[f]=h,s=a[(a[m]+a[f])%256],w+=String.fromCharCode(A.charCodeAt(o)^s);return w}/**
203
+ */function Bh(t,A){var e,r,n,i;if(t!==e){for(var s=(n=t,i=1+(256/t.length|0),new Array(i+1).join(n)),a=[],o=0;o<256;o++)a[o]=o;var c=0;for(o=0;o<256;o++){var h=a[o];c=(c+h+s.charCodeAt(o))%256,a[o]=a[c],a[c]=h}e=t,r=a}else a=r;var d=A.length,m=0,f=0,w="";for(o=0;o<d;o++)f=(f+(h=a[m=(m+1)%256]))%256,a[m]=a[f],a[f]=h,s=a[(a[m]+a[f])%256],w+=String.fromCharCode(A.charCodeAt(o)^s);return w}/**
201
204
  * @license
202
205
  * Licensed under the MIT License.
203
206
  * http://opensource.org/licenses/mit-license
@@ -207,46 +210,46 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
207
210
  * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
208
211
  * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
209
212
  * http://www.fpdf.org/en/script/script37.php
210
- */var ug={print:4,modify:8,copy:16,"annot-forms":32};function ds(t,A,e,r){this.v=1,this.r=2;var n=192;t.forEach(function(a){if(ug.perm!==void 0)throw new Error("Invalid permission: "+a);n+=ug[a]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var i=(A+this.padding).substr(0,32),s=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,s),this.P=-(1+(255^n)),this.encryptionKey=gh(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=ph(this.encryptionKey,this.padding)}function gs(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var A="",e=t.length,r=0;r<e;r++){var n=t.charCodeAt(r);A+=n<33||n===35||n===37||n===40||n===41||n===47||n===60||n===62||n===91||n===93||n===123||n===125||n>126?"#"+("0"+n.toString(16)).slice(-2):t[r]}return A}function hg(t){if(_e(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var A={};this.subscribe=function(e,r,n){if(n=n||!1,typeof e!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");A.hasOwnProperty(e)||(A[e]={});var i=Math.random().toString(35);return A[e][i]=[r,!!n],i},this.unsubscribe=function(e){for(var r in A)if(A[r][e])return delete A[r][e],Object.keys(A[r]).length===0&&delete A[r],!0;return!1},this.publish=function(e){if(A.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in A[e]){var s=A[e][i];try{s[0].apply(t,r)}catch(a){ne.console&&De.error("jsPDF PubSub Error",a.message,a)}s[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return A}}function Dl(t){if(!(this instanceof Dl))return new Dl(t);var A="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&A.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function im(t,A){this.gState=t,this.matrix=A,this.id="",this.objectNumber=-1}function Ni(t,A,e,r,n){if(!(this instanceof Ni))return new Ni(t,A,e,r,n);this.type=t==="axial"?2:3,this.coords=A,this.colors=e,im.call(this,r,n)}function ws(t,A,e,r,n){if(!(this instanceof ws))return new ws(t,A,e,r,n);this.boundingBox=t,this.xStep=A,this.yStep=e,this.stream="",this.cloneIndex=0,im.call(this,r,n)}function zA(t){var A,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],s=[],a=1,o=16,c="S",h=null;_e(t=t||{})==="object"&&(e=t.orientation,r=t.unit||r,n=t.format||n,i=t.compress||t.compressPdf||i,(h=t.encryption||null)!==null&&(h.userPassword=h.userPassword||"",h.ownerPassword=h.ownerPassword||"",h.userPermissions=h.userPermissions||[]),a=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(A=t.precision),t.floatPrecision!==void 0&&(o=t.floatPrecision),c=t.defaultPathOperation||"S"),s=t.filters||(i===!0?["FlateEncode"]:s),r=r||"mm",e=(""+(e||"P")).toLowerCase();var g=t.putOnlyUsedFonts||!1,m={},f={internal:{},__private__:{}};f.__private__.PubSub=hg;var w="1.3",y=f.__private__.getPdfVersion=function(){return w};f.__private__.setPdfVersion=function(d){w=d};var F={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};f.__private__.getPageFormats=function(){return F};var v=f.__private__.getPageFormat=function(d){return F[d]};n=n||"a4";var L="compat",N="advanced",_=L;function q(){this.saveGraphicsState(),P(new ee(se,0,0,-se,0,yi()*se).toString()+" cm"),this.setFontSize(this.getFontSize()/se),c="n",_=N}function X(){this.restoreGraphicsState(),c="S",_=L}var J=f.__private__.combineFontStyleAndFontWeight=function(d,C){if(d=="bold"&&C=="normal"||d=="bold"&&C==400||d=="normal"&&C=="italic"||d=="bold"&&C=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return C&&(d=C==400||C==="normal"?d==="italic"?"italic":"normal":C!=700&&C!=="bold"||d!=="normal"?(C==700?"bold":C)+""+d:"bold"),d};f.advancedAPI=function(d){var C=_===L;return C&&q.call(this),typeof d!="function"||(d(this),C&&X.call(this)),this},f.compatAPI=function(d){var C=_===N;return C&&X.call(this),typeof d!="function"||(d(this),C&&q.call(this)),this},f.isAdvancedAPI=function(){return _===N};var G,k=function(d){if(_!==N)throw new Error(d+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Z=f.roundToPrecision=f.__private__.roundToPrecision=function(d,C){var O=A||C;if(isNaN(d)||isNaN(O))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return d.toFixed(O).replace(/0+$/,"")};G=f.hpf=f.__private__.hpf=typeof o=="number"?function(d){if(isNaN(d))throw new Error("Invalid argument passed to jsPDF.hpf");return Z(d,o)}:o==="smart"?function(d){if(isNaN(d))throw new Error("Invalid argument passed to jsPDF.hpf");return Z(d,d>-1&&d<1?16:5)}:function(d){if(isNaN(d))throw new Error("Invalid argument passed to jsPDF.hpf");return Z(d,16)};var x=f.f2=f.__private__.f2=function(d){if(isNaN(d))throw new Error("Invalid argument passed to jsPDF.f2");return Z(d,2)},S=f.__private__.f3=function(d){if(isNaN(d))throw new Error("Invalid argument passed to jsPDF.f3");return Z(d,3)},K=f.scale=f.__private__.scale=function(d){if(isNaN(d))throw new Error("Invalid argument passed to jsPDF.scale");return _===L?d*se:_===N?d:void 0},T=function(d){return K(function(C){return _===L?yi()-C:_===N?C:void 0}(d))};f.__private__.setPrecision=f.setPrecision=function(d){typeof parseInt(d,10)=="number"&&(A=parseInt(d,10))};var z,lA="00000000000000000000000000000000",hA=f.__private__.getFileId=function(){return lA},iA=f.__private__.setFileId=function(d){return lA=d!==void 0&&/^[a-fA-F0-9]{32}$/.test(d)?d.toUpperCase():lA.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),h!==null&&(pt=new ds(h.userPermissions,h.userPassword,h.ownerPassword,lA)),lA};f.setFileId=function(d){return iA(d),this},f.getFileId=function(){return hA()};var dA=f.__private__.convertDateToPDFDate=function(d){var C=d.getTimezoneOffset(),O=C<0?"+":"-",W=Math.floor(Math.abs(C/60)),rA=Math.abs(C%60),BA=[O,j(W),"'",j(rA),"'"].join("");return["D:",d.getFullYear(),j(d.getMonth()+1),j(d.getDate()),j(d.getHours()),j(d.getMinutes()),j(d.getSeconds()),BA].join("")},QA=f.__private__.convertPDFDateToDate=function(d){var C=parseInt(d.substr(2,4),10),O=parseInt(d.substr(6,2),10)-1,W=parseInt(d.substr(8,2),10),rA=parseInt(d.substr(10,2),10),BA=parseInt(d.substr(12,2),10),bA=parseInt(d.substr(14,2),10);return new Date(C,O,W,rA,BA,bA,0)},CA=f.__private__.setCreationDate=function(d){var C;if(d===void 0&&(d=new Date),d instanceof Date)C=dA(d);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(d))throw new Error("Invalid argument passed to jsPDF.setCreationDate");C=d}return z=C},U=f.__private__.getCreationDate=function(d){var C=z;return d==="jsDate"&&(C=QA(z)),C};f.setCreationDate=function(d){return CA(d),this},f.getCreationDate=function(d){return U(d)};var M,j=f.__private__.padd2=function(d){return("0"+parseInt(d)).slice(-2)},$=f.__private__.padd2Hex=function(d){return("00"+(d=d.toString())).substr(d.length)},AA=0,sA=[],fA=[],gA=0,yA=[],xA=[],NA=!1,_A=fA;f.__private__.setCustomOutputDestination=function(d){NA=!0,_A=d};var $A=function(d){NA||(_A=d)};f.__private__.resetCustomOutputDestination=function(){NA=!1,_A=fA};var P=f.__private__.out=function(d){return d=d.toString(),gA+=d.length+1,_A.push(d),_A},IA=f.__private__.write=function(d){return P(arguments.length===1?d.toString():Array.prototype.join.call(arguments," "))},fe=f.__private__.getArrayBuffer=function(d){for(var C=d.length,O=new ArrayBuffer(C),W=new Uint8Array(O);C--;)W[C]=d.charCodeAt(C);return O},ZA=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];f.__private__.getStandardFonts=function(){return ZA};var wA=t.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(d){return wA=_===N?d/se:d,this};var SA,PA=f.__private__.getFontSize=f.getFontSize=function(){return _===L?wA:wA*se},XA=t.R2L||!1;f.__private__.setR2L=f.setR2L=function(d){return XA=d,this},f.__private__.getR2L=f.getR2L=function(){return XA};var qA,Qe=f.__private__.setZoomMode=function(d){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(d))SA=d;else if(isNaN(d)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(d)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+d+'" is not recognized.');SA=d}else SA=parseInt(d,10)};f.__private__.getZoomMode=function(){return SA};var we,ie=f.__private__.setPageMode=function(d){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(d)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+d+'" is not recognized.');qA=d};f.__private__.getPageMode=function(){return qA};var JA=f.__private__.setLayoutMode=function(d){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(d)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+d+'" is not recognized.');we=d};f.__private__.getLayoutMode=function(){return we},f.__private__.setDisplayMode=f.setDisplayMode=function(d,C,O){return Qe(d),JA(C),ie(O),this};var te={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(d){if(Object.keys(te).indexOf(d)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return te[d]},f.__private__.getDocumentProperties=function(){return te},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(d){for(var C in te)te.hasOwnProperty(C)&&d[C]&&(te[C]=d[C]);return this},f.__private__.setDocumentProperty=function(d,C){if(Object.keys(te).indexOf(d)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return te[d]=C};var KA,se,kA,Ve,Ce,ge={},le={},Ue=[],YA={},Re={},re={},ue={},We=null,ve=0,Ae=[],Le=new hg(f),fi=t.hotfixes||[],Tt={},un={},Vr=[],ee=function d(C,O,W,rA,BA,bA){if(!(this instanceof d))return new d(C,O,W,rA,BA,bA);isNaN(C)&&(C=1),isNaN(O)&&(O=0),isNaN(W)&&(W=0),isNaN(rA)&&(rA=1),isNaN(BA)&&(BA=0),isNaN(bA)&&(bA=0),this._matrix=[C,O,W,rA,BA,bA]};Object.defineProperty(ee.prototype,"sx",{get:function(){return this._matrix[0]},set:function(d){this._matrix[0]=d}}),Object.defineProperty(ee.prototype,"shy",{get:function(){return this._matrix[1]},set:function(d){this._matrix[1]=d}}),Object.defineProperty(ee.prototype,"shx",{get:function(){return this._matrix[2]},set:function(d){this._matrix[2]=d}}),Object.defineProperty(ee.prototype,"sy",{get:function(){return this._matrix[3]},set:function(d){this._matrix[3]=d}}),Object.defineProperty(ee.prototype,"tx",{get:function(){return this._matrix[4]},set:function(d){this._matrix[4]=d}}),Object.defineProperty(ee.prototype,"ty",{get:function(){return this._matrix[5]},set:function(d){this._matrix[5]=d}}),Object.defineProperty(ee.prototype,"a",{get:function(){return this._matrix[0]},set:function(d){this._matrix[0]=d}}),Object.defineProperty(ee.prototype,"b",{get:function(){return this._matrix[1]},set:function(d){this._matrix[1]=d}}),Object.defineProperty(ee.prototype,"c",{get:function(){return this._matrix[2]},set:function(d){this._matrix[2]=d}}),Object.defineProperty(ee.prototype,"d",{get:function(){return this._matrix[3]},set:function(d){this._matrix[3]=d}}),Object.defineProperty(ee.prototype,"e",{get:function(){return this._matrix[4]},set:function(d){this._matrix[4]=d}}),Object.defineProperty(ee.prototype,"f",{get:function(){return this._matrix[5]},set:function(d){this._matrix[5]=d}}),Object.defineProperty(ee.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ee.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ee.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ee.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ee.prototype.join=function(d){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(G).join(d)},ee.prototype.multiply=function(d){var C=d.sx*this.sx+d.shy*this.shx,O=d.sx*this.shy+d.shy*this.sy,W=d.shx*this.sx+d.sy*this.shx,rA=d.shx*this.shy+d.sy*this.sy,BA=d.tx*this.sx+d.ty*this.shx+this.tx,bA=d.tx*this.shy+d.ty*this.sy+this.ty;return new ee(C,O,W,rA,BA,bA)},ee.prototype.decompose=function(){var d=this.sx,C=this.shy,O=this.shx,W=this.sy,rA=this.tx,BA=this.ty,bA=Math.sqrt(d*d+C*C),MA=(d/=bA)*O+(C/=bA)*W;O-=d*MA,W-=C*MA;var VA=Math.sqrt(O*O+W*W);return MA/=VA,d*(W/=VA)<C*(O/=VA)&&(d=-d,C=-C,MA=-MA,bA=-bA),{scale:new ee(bA,0,0,VA,0,0),translate:new ee(1,0,0,1,rA,BA),rotate:new ee(d,C,-C,d,0,0),skew:new ee(1,0,MA,1,0,0)}},ee.prototype.toString=function(d){return this.join(" ")},ee.prototype.inversed=function(){var d=this.sx,C=this.shy,O=this.shx,W=this.sy,rA=this.tx,BA=this.ty,bA=1/(d*W-C*O),MA=W*bA,VA=-C*bA,ae=-O*bA,de=d*bA;return new ee(MA,VA,ae,de,-MA*rA-ae*BA,-VA*rA-de*BA)},ee.prototype.applyToPoint=function(d){var C=d.x*this.sx+d.y*this.shx+this.tx,O=d.x*this.shy+d.y*this.sy+this.ty;return new Bn(C,O)},ee.prototype.applyToRectangle=function(d){var C=this.applyToPoint(d),O=this.applyToPoint(new Bn(d.x+d.w,d.y+d.h));return new Ks(C.x,C.y,O.x-C.x,O.y-C.y)},ee.prototype.clone=function(){var d=this.sx,C=this.shy,O=this.shx,W=this.sy,rA=this.tx,BA=this.ty;return new ee(d,C,O,W,rA,BA)},f.Matrix=ee;var hn=f.matrixMult=function(d,C){return C.multiply(d)},fn=new ee(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=fn;var pr=function(d,C){if(!Re[d]){var O=(C instanceof Ni?"Sh":"P")+(Object.keys(YA).length+1).toString(10);C.id=O,Re[d]=O,YA[O]=C,Le.publish("addPattern",C)}};f.ShadingPattern=Ni,f.TilingPattern=ws,f.addShadingPattern=function(d,C){return k("addShadingPattern()"),pr(d,C),this},f.beginTilingPattern=function(d){k("beginTilingPattern()"),js(d.boundingBox[0],d.boundingBox[1],d.boundingBox[2]-d.boundingBox[0],d.boundingBox[3]-d.boundingBox[1],d.matrix)},f.endTilingPattern=function(d,C){k("endTilingPattern()"),C.stream=xA[M].join(`
211
- `),pr(d,C),Le.publish("endTilingPattern",C),Vr.pop().restore()};var mr,Je=f.__private__.newObject=function(){var d=Qt();return Lt(d,!0),d},Qt=f.__private__.newObjectDeferred=function(){return AA++,sA[AA]=function(){return gA},AA},Lt=function(d,C){return C=typeof C=="boolean"&&C,sA[d]=gA,C&&P(d+" 0 obj"),d},di=f.__private__.newAdditionalObject=function(){var d={objId:Qt(),content:""};return yA.push(d),d},Tn=Qt(),_r=Qt(),Wr=f.__private__.decodeColorString=function(d){var C=d.split(" ");if(C.length!==2||C[1]!=="g"&&C[1]!=="G")C.length!==5||C[4]!=="k"&&C[4]!=="K"||(C=[(1-C[0])*(1-C[3]),(1-C[1])*(1-C[3]),(1-C[2])*(1-C[3]),"r"]);else{var O=parseFloat(C[0]);C=[O,O,O,"r"]}for(var W="#",rA=0;rA<3;rA++)W+=("0"+Math.floor(255*parseFloat(C[rA])).toString(16)).slice(-2);return W},Nr=f.__private__.encodeColorString=function(d){var C;typeof d=="string"&&(d={ch1:d});var O=d.ch1,W=d.ch2,rA=d.ch3,BA=d.ch4,bA=d.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof O=="string"&&O.charAt(0)!=="#"){var MA=new rm(O);if(MA.ok)O=MA.toHex();else if(!/^\d*\.?\d*$/.test(O))throw new Error('Invalid color "'+O+'" passed to jsPDF.encodeColorString.')}if(typeof O=="string"&&/^#[0-9A-Fa-f]{3}$/.test(O)&&(O="#"+O[1]+O[1]+O[2]+O[2]+O[3]+O[3]),typeof O=="string"&&/^#[0-9A-Fa-f]{6}$/.test(O)){var VA=parseInt(O.substr(1),16);O=VA>>16&255,W=VA>>8&255,rA=255&VA}if(W===void 0||BA===void 0&&O===W&&W===rA)C=typeof O=="string"?O+" "+bA[0]:d.precision===2?x(O/255)+" "+bA[0]:S(O/255)+" "+bA[0];else if(BA===void 0||_e(BA)==="object"){if(BA&&!isNaN(BA.a)&&BA.a===0)return["1.","1.","1.",bA[1]].join(" ");C=typeof O=="string"?[O,W,rA,bA[1]].join(" "):d.precision===2?[x(O/255),x(W/255),x(rA/255),bA[1]].join(" "):[S(O/255),S(W/255),S(rA/255),bA[1]].join(" ")}else C=typeof O=="string"?[O,W,rA,BA,bA[2]].join(" "):d.precision===2?[x(O),x(W),x(rA),x(BA),bA[2]].join(" "):[S(O),S(W),S(rA),S(BA),bA[2]].join(" ");return C},Hr=f.__private__.getFilters=function(){return s},Br=f.__private__.putStream=function(d){var C=(d=d||{}).data||"",O=d.filters||Hr(),W=d.alreadyAppliedFilters||[],rA=d.addLength1||!1,BA=C.length,bA=d.objectId,MA=function(mt){return mt};if(h!==null&&bA===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");h!==null&&(MA=pt.encryptor(bA,0));var VA={};O===!0&&(O=["FlateEncode"]);var ae=d.additionalKeyValues||[],de=(VA=zA.API.processDataByFilters!==void 0?zA.API.processDataByFilters(C,O):{data:C,reverseChain:[]}).reverseChain+(Array.isArray(W)?W.join(" "):W.toString());if(VA.data.length!==0&&(ae.push({key:"Length",value:VA.data.length}),rA===!0&&ae.push({key:"Length1",value:BA})),de.length!=0)if(de.split("/").length-1==1)ae.push({key:"Filter",value:de});else{ae.push({key:"Filter",value:"["+de+"]"});for(var xe=0;xe<ae.length;xe+=1)if(ae[xe].key==="DecodeParms"){for(var Xe=[],ut=0;ut<VA.reverseChain.split("/").length-1;ut+=1)Xe.push("null");Xe.push(ae[xe].value),ae[xe].value="["+Xe.join(" ")+"]"}}P("<<");for(var Oe=0;Oe<ae.length;Oe++)P("/"+ae[Oe].key+" "+ae[Oe].value);P(">>"),VA.data.length!==0&&(P("stream"),P(MA(VA.data)),P("endstream"))},gi=f.__private__.putPage=function(d){var C=d.number,O=d.data,W=d.objId,rA=d.contentsObjId;Lt(W,!0),P("<</Type /Page"),P("/Parent "+d.rootDictionaryObjId+" 0 R"),P("/Resources "+d.resourceDictionaryObjId+" 0 R"),P("/MediaBox ["+parseFloat(G(d.mediaBox.bottomLeftX))+" "+parseFloat(G(d.mediaBox.bottomLeftY))+" "+G(d.mediaBox.topRightX)+" "+G(d.mediaBox.topRightY)+"]"),d.cropBox!==null&&P("/CropBox ["+G(d.cropBox.bottomLeftX)+" "+G(d.cropBox.bottomLeftY)+" "+G(d.cropBox.topRightX)+" "+G(d.cropBox.topRightY)+"]"),d.bleedBox!==null&&P("/BleedBox ["+G(d.bleedBox.bottomLeftX)+" "+G(d.bleedBox.bottomLeftY)+" "+G(d.bleedBox.topRightX)+" "+G(d.bleedBox.topRightY)+"]"),d.trimBox!==null&&P("/TrimBox ["+G(d.trimBox.bottomLeftX)+" "+G(d.trimBox.bottomLeftY)+" "+G(d.trimBox.topRightX)+" "+G(d.trimBox.topRightY)+"]"),d.artBox!==null&&P("/ArtBox ["+G(d.artBox.bottomLeftX)+" "+G(d.artBox.bottomLeftY)+" "+G(d.artBox.topRightX)+" "+G(d.artBox.topRightY)+"]"),typeof d.userUnit=="number"&&d.userUnit!==1&&P("/UserUnit "+d.userUnit),Le.publish("putPage",{objId:W,pageContext:Ae[C],pageNumber:C,page:O}),P("/Contents "+rA+" 0 R"),P(">>"),P("endobj");var BA=O.join(`
212
- `);return _===N&&(BA+=`
213
- Q`),Lt(rA,!0),Br({data:BA,filters:Hr(),objectId:rA}),P("endobj"),W},zr=f.__private__.putPages=function(){var d,C,O=[];for(d=1;d<=ve;d++)Ae[d].objId=Qt(),Ae[d].contentsObjId=Qt();for(d=1;d<=ve;d++)O.push(gi({number:d,data:xA[d],objId:Ae[d].objId,contentsObjId:Ae[d].contentsObjId,mediaBox:Ae[d].mediaBox,cropBox:Ae[d].cropBox,bleedBox:Ae[d].bleedBox,trimBox:Ae[d].trimBox,artBox:Ae[d].artBox,userUnit:Ae[d].userUnit,rootDictionaryObjId:Tn,resourceDictionaryObjId:_r}));Lt(Tn,!0),P("<</Type /Pages");var W="/Kids [";for(C=0;C<ve;C++)W+=O[C]+" 0 R ";P(W+"]"),P("/Count "+ve),P(">>"),P("endobj"),Le.publish("postPutPages")},pi=function(d){Le.publish("putFont",{font:d,out:P,newObject:Je,putStream:Br}),d.isAlreadyPutted!==!0&&(d.objectNumber=Je(),P("<<"),P("/Type /Font"),P("/BaseFont /"+gs(d.postScriptName)),P("/Subtype /Type1"),typeof d.encoding=="string"&&P("/Encoding /"+d.encoding),P("/FirstChar 32"),P("/LastChar 255"),P(">>"),P("endobj"))},qi=function(d){d.objectNumber=Je();var C=[];C.push({key:"Type",value:"/XObject"}),C.push({key:"Subtype",value:"/Form"}),C.push({key:"BBox",value:"["+[G(d.x),G(d.y),G(d.x+d.width),G(d.y+d.height)].join(" ")+"]"}),C.push({key:"Matrix",value:"["+d.matrix.toString()+"]"});var O=d.pages[1].join(`
214
- `);Br({data:O,additionalKeyValues:C,objectId:d.objectNumber}),P("endobj")},Vi=function(d,C){C||(C=21);var O=Je(),W=function(bA,MA){var VA,ae=[],de=1/(MA-1);for(VA=0;VA<1;VA+=de)ae.push(VA);if(ae.push(1),bA[0].offset!=0){var xe={offset:0,color:bA[0].color};bA.unshift(xe)}if(bA[bA.length-1].offset!=1){var Xe={offset:1,color:bA[bA.length-1].color};bA.push(Xe)}for(var ut="",Oe=0,mt=0;mt<ae.length;mt++){for(VA=ae[mt];VA>bA[Oe+1].offset;)Oe++;var ht=bA[Oe].offset,St=(VA-ht)/(bA[Oe+1].offset-ht),yn=bA[Oe].color,Pr=bA[Oe+1].color;ut+=$(Math.round((1-St)*yn[0]+St*Pr[0]).toString(16))+$(Math.round((1-St)*yn[1]+St*Pr[1]).toString(16))+$(Math.round((1-St)*yn[2]+St*Pr[2]).toString(16))}return ut.trim()}(d.colors,C),rA=[];rA.push({key:"FunctionType",value:"0"}),rA.push({key:"Domain",value:"[0.0 1.0]"}),rA.push({key:"Size",value:"["+C+"]"}),rA.push({key:"BitsPerSample",value:"8"}),rA.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),rA.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Br({data:W,additionalKeyValues:rA,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:O}),P("endobj"),d.objectNumber=Je(),P("<< /ShadingType "+d.type),P("/ColorSpace /DeviceRGB");var BA="/Coords ["+G(parseFloat(d.coords[0]))+" "+G(parseFloat(d.coords[1]))+" ";d.type===2?BA+=G(parseFloat(d.coords[2]))+" "+G(parseFloat(d.coords[3])):BA+=G(parseFloat(d.coords[2]))+" "+G(parseFloat(d.coords[3]))+" "+G(parseFloat(d.coords[4]))+" "+G(parseFloat(d.coords[5])),P(BA+="]"),d.matrix&&P("/Matrix ["+d.matrix.toString()+"]"),P("/Function "+O+" 0 R"),P("/Extend [true true]"),P(">>"),P("endobj")},Wi=function(d,C){var O=Qt(),W=Je();C.push({resourcesOid:O,objectOid:W}),d.objectNumber=W;var rA=[];rA.push({key:"Type",value:"/Pattern"}),rA.push({key:"PatternType",value:"1"}),rA.push({key:"PaintType",value:"1"}),rA.push({key:"TilingType",value:"1"}),rA.push({key:"BBox",value:"["+d.boundingBox.map(G).join(" ")+"]"}),rA.push({key:"XStep",value:G(d.xStep)}),rA.push({key:"YStep",value:G(d.yStep)}),rA.push({key:"Resources",value:O+" 0 R"}),d.matrix&&rA.push({key:"Matrix",value:"["+d.matrix.toString()+"]"}),Br({data:d.stream,additionalKeyValues:rA,objectId:d.objectNumber}),P("endobj")},hc=function(d){for(var C in d.objectNumber=Je(),P("<<"),d)switch(C){case"opacity":P("/ca "+x(d[C]));break;case"stroke-opacity":P("/CA "+x(d[C]))}P(">>"),P("endobj")},Hs=function(d){Lt(d.resourcesOid,!0),P("<<"),P("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var C in P("/Font <<"),ge)ge.hasOwnProperty(C)&&(g===!1||g===!0&&m.hasOwnProperty(C))&&P("/"+C+" "+ge[C].objectNumber+" 0 R");P(">>")}(),function(){if(Object.keys(YA).length>0){for(var C in P("/Shading <<"),YA)YA.hasOwnProperty(C)&&YA[C]instanceof Ni&&YA[C].objectNumber>=0&&P("/"+C+" "+YA[C].objectNumber+" 0 R");Le.publish("putShadingPatternDict"),P(">>")}}(),function(C){if(Object.keys(YA).length>0){for(var O in P("/Pattern <<"),YA)YA.hasOwnProperty(O)&&YA[O]instanceof f.TilingPattern&&YA[O].objectNumber>=0&&YA[O].objectNumber<C&&P("/"+O+" "+YA[O].objectNumber+" 0 R");Le.publish("putTilingPatternDict"),P(">>")}}(d.objectOid),function(){if(Object.keys(re).length>0){var C;for(C in P("/ExtGState <<"),re)re.hasOwnProperty(C)&&re[C].objectNumber>=0&&P("/"+C+" "+re[C].objectNumber+" 0 R");Le.publish("putGStateDict"),P(">>")}}(),function(){for(var C in P("/XObject <<"),Tt)Tt.hasOwnProperty(C)&&Tt[C].objectNumber>=0&&P("/"+C+" "+Tt[C].objectNumber+" 0 R");Le.publish("putXobjectDict"),P(">>")}(),P(">>"),P("endobj")},Wa=function(d){le[d.fontName]=le[d.fontName]||{},le[d.fontName][d.fontStyle]=d.id},za=function(d,C,O,W,rA){var BA={id:"F"+(Object.keys(ge).length+1).toString(10),postScriptName:d,fontName:C,fontStyle:O,encoding:W,isStandardFont:rA||!1,metadata:{}};return Le.publish("addFont",{font:BA,instance:this}),ge[BA.id]=BA,Wa(BA),BA.id},wr=f.__private__.pdfEscape=f.pdfEscape=function(d,C){return function(O,W){var rA,BA,bA,MA,VA,ae,de,xe,Xe;if(bA=(W=W||{}).sourceEncoding||"Unicode",VA=W.outputEncoding,(W.autoencode||VA)&&ge[KA].metadata&&ge[KA].metadata[bA]&&ge[KA].metadata[bA].encoding&&(MA=ge[KA].metadata[bA].encoding,!VA&&ge[KA].encoding&&(VA=ge[KA].encoding),!VA&&MA.codePages&&(VA=MA.codePages[0]),typeof VA=="string"&&(VA=MA[VA]),VA)){for(de=!1,ae=[],rA=0,BA=O.length;rA<BA;rA++)(xe=VA[O.charCodeAt(rA)])?ae.push(String.fromCharCode(xe)):ae.push(O[rA]),ae[rA].charCodeAt(0)>>8&&(de=!0);O=ae.join("")}for(rA=O.length;de===void 0&&rA!==0;)O.charCodeAt(rA-1)>>8&&(de=!0),rA--;if(!de)return O;for(ae=W.noBOM?[]:[254,255],rA=0,BA=O.length;rA<BA;rA++){if((Xe=(xe=O.charCodeAt(rA))>>8)>>8)throw new Error("Character at position "+rA+" of string '"+O+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ae.push(Xe),ae.push(xe-(Xe<<8))}return String.fromCharCode.apply(void 0,ae)}(d,C).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ks=f.__private__.beginPage=function(d){xA[++ve]=[],Ae[ve]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(d[0]),topRightY:Number(d[1])}},Xa(ve),$A(xA[M])},$a=function(d,C){var O,W,rA;switch(e=C||e,typeof d=="string"&&(O=v(d.toLowerCase()),Array.isArray(O)&&(W=O[0],rA=O[1])),Array.isArray(d)&&(W=d[0]*se,rA=d[1]*se),isNaN(W)&&(W=n[0],rA=n[1]),(W>14400||rA>14400)&&(De.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),W=Math.min(14400,W),rA=Math.min(14400,rA)),n=[W,rA],e.substr(0,1)){case"l":rA>W&&(n=[rA,W]);break;case"p":W>rA&&(n=[rA,W])}ks(n),oe(Ds),P(Ji),Os!==0&&P(Os+" J"),Ms!==0&&P(Ms+" j"),Le.publish("addPage",{pageNumber:ve})},Ps=function(d){d>0&&d<=ve&&(xA.splice(d,1),Ae.splice(d,1),ve--,M>ve&&(M=ve),this.setPage(M))},Xa=function(d){d>0&&d<=ve&&(M=d)},Ja=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return xA.length-1},Ya=function(d,C,O){var W,rA=void 0;return O=O||{},d=d!==void 0?d:ge[KA].fontName,C=C!==void 0?C:ge[KA].fontStyle,W=d.toLowerCase(),le[W]!==void 0&&le[W][C]!==void 0?rA=le[W][C]:le[d]!==void 0&&le[d][C]!==void 0?rA=le[d][C]:O.disableWarning===!1&&De.warn("Unable to look up font label for font '"+d+"', '"+C+"'. Refer to getFontList() for available fonts."),rA||O.noFallback||(rA=le.times[C])==null&&(rA=le.times.normal),rA},$r=f.__private__.putInfo=function(){var d=Je(),C=function(W){return W};for(var O in h!==null&&(C=pt.encryptor(d,0)),P("<<"),P("/Producer ("+wr(C("jsPDF "+zA.version))+")"),te)te.hasOwnProperty(O)&&te[O]&&P("/"+O.substr(0,1).toUpperCase()+O.substr(1)+" ("+wr(C(te[O]))+")");P("/CreationDate ("+wr(C(z))+")"),P(">>"),P("endobj")},zi=f.__private__.putCatalog=function(d){var C=(d=d||{}).rootDictionaryObjId||Tn;switch(Je(),P("<<"),P("/Type /Catalog"),P("/Pages "+C+" 0 R"),SA||(SA="fullwidth"),SA){case"fullwidth":P("/OpenAction [3 0 R /FitH null]");break;case"fullheight":P("/OpenAction [3 0 R /FitV null]");break;case"fullpage":P("/OpenAction [3 0 R /Fit]");break;case"original":P("/OpenAction [3 0 R /XYZ null null 1]");break;default:var O=""+SA;O.substr(O.length-1)==="%"&&(SA=parseInt(SA)/100),typeof SA=="number"&&P("/OpenAction [3 0 R /XYZ null null "+x(SA)+"]")}switch(we||(we="continuous"),we){case"continuous":P("/PageLayout /OneColumn");break;case"single":P("/PageLayout /SinglePage");break;case"two":case"twoleft":P("/PageLayout /TwoColumnLeft");break;case"tworight":P("/PageLayout /TwoColumnRight")}qA&&P("/PageMode /"+qA),Le.publish("putCatalog"),P(">>"),P("endobj")},fc=f.__private__.putTrailer=function(){P("trailer"),P("<<"),P("/Size "+(AA+1)),P("/Root "+AA+" 0 R"),P("/Info "+(AA-1)+" 0 R"),h!==null&&P("/Encrypt "+pt.oid+" 0 R"),P("/ID [ <"+lA+"> <"+lA+"> ]"),P(">>")},ct=f.__private__.putHeader=function(){P("%PDF-"+w),P("%ºß¬à")},Za=f.__private__.putXRef=function(){var d="0000000000";P("xref"),P("0 "+(AA+1)),P("0000000000 65535 f ");for(var C=1;C<=AA;C++)typeof sA[C]=="function"?P((d+sA[C]()).slice(-10)+" 00000 n "):sA[C]!==void 0?P((d+sA[C]).slice(-10)+" 00000 n "):P("0000000000 00000 n ")},Xr=f.__private__.buildDocument=function(){var d;AA=0,gA=0,fA=[],sA=[],yA=[],Tn=Qt(),_r=Qt(),$A(fA),Le.publish("buildDocument"),ct(),zr(),function(){Le.publish("putAdditionalObjects");for(var O=0;O<yA.length;O++){var W=yA[O];Lt(W.objId,!0),P(W.content),P("endobj")}Le.publish("postPutAdditionalObjects")}(),d=[],function(){for(var O in ge)ge.hasOwnProperty(O)&&(g===!1||g===!0&&m.hasOwnProperty(O))&&pi(ge[O])}(),function(){var O;for(O in re)re.hasOwnProperty(O)&&hc(re[O])}(),function(){for(var O in Tt)Tt.hasOwnProperty(O)&&qi(Tt[O])}(),function(O){var W;for(W in YA)YA.hasOwnProperty(W)&&(YA[W]instanceof Ni?Vi(YA[W]):YA[W]instanceof ws&&Wi(YA[W],O))}(d),Le.publish("putResources"),d.forEach(Hs),Hs({resourcesOid:_r,objectOid:Number.MAX_SAFE_INTEGER}),Le.publish("postPutResources"),h!==null&&(pt.oid=Je(),P("<<"),P("/Filter /Standard"),P("/V "+pt.v),P("/R "+pt.r),P("/U <"+pt.toHexString(pt.U)+">"),P("/O <"+pt.toHexString(pt.O)+">"),P("/P "+pt.P),P(">>"),P("endobj")),$r(),zi();var C=gA;return Za(),fc(),P("startxref"),P(""+C),P("%%EOF"),$A(xA[M]),fA.join(`
215
- `)},$i=f.__private__.getBlob=function(d){return new Blob([fe(d)],{type:"application/pdf"})},Ao=f.output=f.__private__.output=(mr=function(d,C){switch(typeof(C=C||{})=="string"?C={filename:C}:C.filename=C.filename||"generated.pdf",d){case void 0:return Xr();case"save":f.save(C.filename);break;case"arraybuffer":return fe(Xr());case"blob":return $i(Xr());case"bloburi":case"bloburl":if(ne.URL!==void 0&&typeof ne.URL.createObjectURL=="function")return ne.URL&&ne.URL.createObjectURL($i(Xr()))||void 0;De.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var O="",W=Xr();try{O=lg(W)}catch{O=lg(unescape(encodeURIComponent(W)))}return"data:application/pdf;filename="+C.filename+";base64,"+O;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ne)==="[object Window]"){var rA="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",BA=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';C.pdfObjectUrl&&(rA=C.pdfObjectUrl,BA="");var bA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+rA+'"'+BA+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(C)+");<\/script></body></html>",MA=ne.open();return MA!==null&&MA.document.write(bA),MA}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(ne)==="[object Window]"){var VA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(C.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+C.filename+'" width="500px" height="400px" /></body></html>',ae=ne.open();if(ae!==null){ae.document.write(VA);var de=this;ae.document.documentElement.querySelector("#pdfViewer").onload=function(){ae.document.title=C.filename,ae.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(de.output("bloburl"))}}return ae}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(ne)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var xe='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",C)+'"></iframe></body></html>',Xe=ne.open();if(Xe!==null&&(Xe.document.write(xe),Xe.document.title=C.filename),Xe||typeof safari>"u")return Xe;break;case"datauri":case"dataurl":return ne.document.location.href=this.output("datauristring",C);default:return null}},mr.foo=function(){try{return mr.apply(this,arguments)}catch(O){var d=O.stack||"";~d.indexOf(" at ")&&(d=d.split(" at ")[1]);var C="Error in function "+d.split(`
216
- `)[0].split("<")[0]+": "+O.message;if(!ne.console)throw new Error(C);ne.console.error(C,O),ne.alert&&alert(C)}},mr.foo.bar=mr,mr.foo),vr=function(d){return Array.isArray(fi)===!0&&fi.indexOf(d)>-1};switch(r){case"pt":se=1;break;case"mm":se=72/25.4;break;case"cm":se=72/2.54;break;case"in":se=72;break;case"px":se=vr("px_scaling")==1?.75:96/72;break;case"pc":case"em":se=12;break;case"ex":se=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);se=r}var pt=null;CA(),iA();var dn=f.__private__.getPageInfo=f.getPageInfo=function(d){if(isNaN(d)||d%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ae[d].objId,pageNumber:d,pageContext:Ae[d]}},eo=f.__private__.getPageInfoByObjId=function(d){if(isNaN(d)||d%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var C in Ae)if(Ae[C].objId===d)break;return dn(C)},dc=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:Ae[M].objId,pageNumber:M,pageContext:Ae[M]}};f.addPage=function(){return $a.apply(this,arguments),this},f.setPage=function(){return Xa.apply(this,arguments),$A.call(this,xA[M]),this},f.insertPage=function(d){return this.addPage(),this.movePage(M,d),this},f.movePage=function(d,C){var O,W;if(d>C){O=xA[d],W=Ae[d];for(var rA=d;rA>C;rA--)xA[rA]=xA[rA-1],Ae[rA]=Ae[rA-1];xA[C]=O,Ae[C]=W,this.setPage(C)}else if(d<C){O=xA[d],W=Ae[d];for(var BA=d;BA<C;BA++)xA[BA]=xA[BA+1],Ae[BA]=Ae[BA+1];xA[C]=O,Ae[C]=W,this.setPage(C)}return this},f.deletePage=function(){return Ps.apply(this,arguments),this},f.__private__.text=f.text=function(d,C,O,W,rA){var BA,bA,MA,VA,ae,de,xe,Xe,ut,Oe=(W=W||{}).scope||this;if(typeof d=="number"&&typeof C=="number"&&(typeof O=="string"||Array.isArray(O))){var mt=O;O=C,C=d,d=mt}if(arguments[3]instanceof ee==0?(MA=arguments[4],VA=arguments[5],_e(xe=arguments[3])==="object"&&xe!==null||(typeof MA=="string"&&(VA=MA,MA=null),typeof xe=="string"&&(VA=xe,xe=null),typeof xe=="number"&&(MA=xe,xe=null),W={flags:xe,angle:MA,align:VA})):(k("The transform parameter of text() with a Matrix value"),ut=rA),isNaN(C)||isNaN(O)||d==null)throw new Error("Invalid arguments passed to jsPDF.text");if(d.length===0)return Oe;var ht,St="",yn=typeof W.lineHeightFactor=="number"?W.lineHeightFactor:Bi,Pr=Oe.internal.scaleFactor;function Cn(Se){return Se=Se.split(" ").join(Array(W.TabLen||9).join(" ")),wr(Se,xe)}function qs(Se){for(var Pe,tt=Se.concat(),Bt=[],Qn=tt.length;Qn--;)typeof(Pe=tt.shift())=="string"?Bt.push(Pe):Array.isArray(Se)&&(Pe.length===1||Pe[1]===void 0&&Pe[2]===void 0)?Bt.push(Pe[0]):Bt.push([Pe[0],Pe[1],Pe[2]]);return Bt}function Zi(Se,Pe){var tt;if(typeof Se=="string")tt=Pe(Se)[0];else if(Array.isArray(Se)){for(var Bt,Qn,ea=Se.concat(),ts=[],ho=ea.length;ho--;)typeof(Bt=ea.shift())=="string"?ts.push(Pe(Bt)[0]):Array.isArray(Bt)&&typeof Bt[0]=="string"&&(Qn=Pe(Bt[0],Bt[1],Bt[2]),ts.push([Qn[0],Qn[1],Qn[2]]));tt=ts}return tt}var Dn=!1,Ci=!0;if(typeof d=="string")Dn=!0;else if(Array.isArray(d)){var bi=d.concat();bA=[];for(var Rn,It=bi.length;It--;)(typeof(Rn=bi.shift())!="string"||Array.isArray(Rn)&&typeof Rn[0]!="string")&&(Ci=!1);Dn=Ci}if(Dn===!1)throw new Error('Type of text must be string or Array. "'+d+'" is not recognized.');typeof d=="string"&&(d=d.match(/[\r?\n]/)?d.split(/\r\n|\r|\n/g):[d]);var Fi=wA/Oe.internal.scaleFactor,Qi=Fi*(yn-1);switch(W.baseline){case"bottom":O-=Qi;break;case"top":O+=Fi-Qi;break;case"hanging":O+=Fi-2*Qi;break;case"middle":O+=Fi/2-Qi}if((de=W.maxWidth||0)>0&&(typeof d=="string"?d=Oe.splitTextToSize(d,de):Object.prototype.toString.call(d)==="[object Array]"&&(d=d.reduce(function(Se,Pe){return Se.concat(Oe.splitTextToSize(Pe,de))},[]))),BA={text:d,x:C,y:O,options:W,mutex:{pdfEscape:wr,activeFontKey:KA,fonts:ge,activeFontSize:wA}},Le.publish("preProcessText",BA),d=BA.text,MA=(W=BA.options).angle,ut instanceof ee==0&&MA&&typeof MA=="number"){MA*=Math.PI/180,W.rotationDirection===0&&(MA=-MA),_===N&&(MA=-MA);var Vs=Math.cos(MA),Ws=Math.sin(MA);ut=new ee(Vs,Ws,-Ws,Vs,0,0)}else MA&&MA instanceof ee&&(ut=MA);_!==N||ut||(ut=fn),(ae=W.charSpace||mn)!==void 0&&(St+=G(K(ae))+` Tc
217
- `,this.setCharSpace(this.getCharSpace()||0)),(Xe=W.horizontalScale)!==void 0&&(St+=G(100*Xe)+` Tz
218
- `),W.lang;var zt=-1,bn=W.renderingMode!==void 0?W.renderingMode:W.stroke,As=Oe.internal.getCurrentPageInfo().pageContext;switch(bn){case 0:case!1:case"fill":zt=0;break;case 1:case!0:case"stroke":zt=1;break;case 2:case"fillThenStroke":zt=2;break;case 3:case"invisible":zt=3;break;case 4:case"fillAndAddForClipping":zt=4;break;case 5:case"strokeAndAddPathForClipping":zt=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":zt=6;break;case 7:case"addToPathForClipping":zt=7}var co=As.usedRenderingMode!==void 0?As.usedRenderingMode:-1;zt!==-1?St+=zt+` Tr
219
- `:co!==-1&&(St+=`0 Tr
220
- `),zt!==-1&&(As.usedRenderingMode=zt),VA=W.align||"left";var yr,Ui=wA*yn,zs=Oe.internal.pageSize.getWidth(),$s=ge[KA];ae=W.charSpace||mn,de=W.maxWidth||0,xe=Object.assign({autoencode:!0,noBOM:!0},W.flags);var On=[],xi=function(Se){return Oe.getStringUnitWidth(Se,{font:$s,charSpace:ae,fontSize:wA,doKerning:!1})*wA/Pr};if(Object.prototype.toString.call(d)==="[object Array]"){var nr;bA=qs(d),VA!=="left"&&(yr=bA.map(xi));var ir,Mn=0;if(VA==="right"){C-=yr[0],d=[],It=bA.length;for(var Fn=0;Fn<It;Fn++)Fn===0?(ir=gn(C),nr=pn(O)):(ir=K(Mn-yr[Fn]),nr=-Ui),d.push([bA[Fn],ir,nr]),Mn=yr[Fn]}else if(VA==="center"){C-=yr[0]/2,d=[],It=bA.length;for(var Kn=0;Kn<It;Kn++)Kn===0?(ir=gn(C),nr=pn(O)):(ir=K((Mn-yr[Kn])/2),nr=-Ui),d.push([bA[Kn],ir,nr]),Mn=yr[Kn]}else if(VA==="left"){d=[],It=bA.length;for(var Xs=0;Xs<It;Xs++)d.push(bA[Xs])}else if(VA==="justify"&&$s.encoding==="Identity-H"){d=[],It=bA.length,de=de!==0?de:zs;for(var es=0,et=0;et<It;et++)if(nr=et===0?pn(O):-Ui,ir=et===0?gn(C):es,et<It-1){var uo=K((de-yr[et])/(bA[et].split(" ").length-1)),Yr=bA[et].split(" ");d.push([Yr[0]+" ",ir,nr]),es=0;for(var Zr=1;Zr<Yr.length;Zr++){var Js=(xi(Yr[Zr-1]+" "+Yr[Zr])-xi(Yr[Zr]))*Pr+uo;Zr==Yr.length-1?d.push([Yr[Zr],Js,0]):d.push([Yr[Zr]+" ",Js,0]),es-=Js}}else d.push([bA[et],ir,nr]);d.push(["",es,0])}else{if(VA!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(d=[],It=bA.length,de=de!==0?de:zs,et=0;et<It;et++){nr=et===0?pn(O):-Ui,ir=et===0?gn(C):0;var Ys=bA[et].split(" ").length-1,Zs=Ys>0?(de-yr[et])/Ys:0;et<It-1?On.push(G(K(Zs))):On.push(0),d.push([bA[et],ir,nr])}}}(typeof W.R2L=="boolean"?W.R2L:XA)===!0&&(d=Zi(d,function(Se,Pe,tt){return[Se.split("").reverse().join(""),Pe,tt]})),BA={text:d,x:C,y:O,options:W,mutex:{pdfEscape:wr,activeFontKey:KA,fonts:ge,activeFontSize:wA}},Le.publish("postProcessText",BA),d=BA.text,ht=BA.mutex.isHex||!1;var Aa=ge[KA].encoding;Aa!=="WinAnsiEncoding"&&Aa!=="StandardEncoding"||(d=Zi(d,function(Se,Pe,tt){return[Cn(Se),Pe,tt]})),bA=qs(d),d=[];for(var jn,Gn,qn,Ei=Array.isArray(bA[0])?1:0,Vn="",Li=function(Se,Pe,tt){var Bt="";return tt instanceof ee?(tt=typeof W.angle=="number"?hn(tt,new ee(1,0,0,1,Se,Pe)):hn(new ee(1,0,0,1,Se,Pe),tt),_===N&&(tt=hn(new ee(1,0,0,-1,0,0),tt)),Bt=tt.join(" ")+` Tm
221
- `):Bt=G(Se)+" "+G(Pe)+` Td
222
- `,Bt},Cr=0;Cr<bA.length;Cr++){switch(Vn="",Ei){case 1:qn=(ht?"<":"(")+bA[Cr][0]+(ht?">":")"),jn=parseFloat(bA[Cr][1]),Gn=parseFloat(bA[Cr][2]);break;case 0:qn=(ht?"<":"(")+bA[Cr]+(ht?">":")"),jn=gn(C),Gn=pn(O)}On!==void 0&&On[Cr]!==void 0&&(Vn=On[Cr]+` Tw
223
- `),Cr===0?d.push(Vn+Li(jn,Gn,ut)+qn):Ei===0?d.push(Vn+qn):Ei===1&&d.push(Vn+Li(jn,Gn,ut)+qn)}d=Ei===0?d.join(` Tj
224
- T* `):d.join(` Tj
225
- `),d+=` Tj
226
- `;var An=`BT
227
- /`;return An+=KA+" "+wA+` Tf
228
- `,An+=G(wA*yn)+` TL
229
- `,An+=wi+`
230
- `,An+=St,An+=d,P(An+="ET"),m[KA]=!0,Oe};var gc=f.__private__.clip=f.clip=function(d){return P(d==="evenodd"?"W*":"W"),this};f.clipEvenOdd=function(){return gc("evenodd")},f.__private__.discardPath=f.discardPath=function(){return P("n"),this};var Jr=f.__private__.isValidStyle=function(d){var C=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(d)!==-1&&(C=!0),C};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(d){return Jr(d)&&(c=d),this};var to=f.__private__.getStyle=f.getStyle=function(d){var C=c;switch(d){case"D":case"S":C="S";break;case"F":C="f";break;case"FD":case"DF":C="B";break;case"f":case"f*":case"B":case"B*":C=d}return C},ro=f.close=function(){return P("h"),this};f.stroke=function(){return P("S"),this},f.fill=function(d){return Xi("f",d),this},f.fillEvenOdd=function(d){return Xi("f*",d),this},f.fillStroke=function(d){return Xi("B",d),this},f.fillStrokeEvenOdd=function(d){return Xi("B*",d),this};var Xi=function(d,C){_e(C)==="object"?mc(C,d):P(d)},mi=function(d){d===null||_===N&&d===void 0||(d=to(d),P(d))};function pc(d,C,O,W,rA){var BA=new ws(C||this.boundingBox,O||this.xStep,W||this.yStep,this.gState,rA||this.matrix);BA.stream=this.stream;var bA=d+"$$"+this.cloneIndex+++"$$";return pr(bA,BA),BA}var mc=function(d,C){var O=Re[d.key],W=YA[O];if(W instanceof Ni)P("q"),P(Bc(C)),W.gState&&f.setGState(W.gState),P(d.matrix.toString()+" cm"),P("/"+O+" sh"),P("Q");else if(W instanceof ws){var rA=new ee(1,0,0,-1,0,yi());d.matrix&&(rA=rA.multiply(d.matrix||fn),O=pc.call(W,d.key,d.boundingBox,d.xStep,d.yStep,rA).id),P("q"),P("/Pattern cs"),P("/"+O+" scn"),W.gState&&f.setGState(W.gState),P(C),P("Q")}},Bc=function(d){switch(d){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Ts=f.moveTo=function(d,C){return P(G(K(d))+" "+G(T(C))+" m"),this},no=f.lineTo=function(d,C){return P(G(K(d))+" "+G(T(C))+" l"),this},kr=f.curveTo=function(d,C,O,W,rA,BA){return P([G(K(d)),G(T(C)),G(K(O)),G(T(W)),G(K(rA)),G(T(BA)),"c"].join(" ")),this};f.__private__.line=f.line=function(d,C,O,W,rA){if(isNaN(d)||isNaN(C)||isNaN(O)||isNaN(W)||!Jr(rA))throw new Error("Invalid arguments passed to jsPDF.line");return _===L?this.lines([[O-d,W-C]],d,C,[1,1],rA||"S"):this.lines([[O-d,W-C]],d,C,[1,1]).stroke()},f.__private__.lines=f.lines=function(d,C,O,W,rA,BA){var bA,MA,VA,ae,de,xe,Xe,ut,Oe,mt,ht,St;if(typeof d=="number"&&(St=O,O=C,C=d,d=St),W=W||[1,1],BA=BA||!1,isNaN(C)||isNaN(O)||!Array.isArray(d)||!Array.isArray(W)||!Jr(rA)||typeof BA!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Ts(C,O),bA=W[0],MA=W[1],ae=d.length,mt=C,ht=O,VA=0;VA<ae;VA++)(de=d[VA]).length===2?(mt=de[0]*bA+mt,ht=de[1]*MA+ht,no(mt,ht)):(xe=de[0]*bA+mt,Xe=de[1]*MA+ht,ut=de[2]*bA+mt,Oe=de[3]*MA+ht,mt=de[4]*bA+mt,ht=de[5]*MA+ht,kr(xe,Xe,ut,Oe,mt,ht));return BA&&ro(),mi(rA),this},f.path=function(d){for(var C=0;C<d.length;C++){var O=d[C],W=O.c;switch(O.op){case"m":Ts(W[0],W[1]);break;case"l":no(W[0],W[1]);break;case"c":kr.apply(this,W);break;case"h":ro()}}return this},f.__private__.rect=f.rect=function(d,C,O,W,rA){if(isNaN(d)||isNaN(C)||isNaN(O)||isNaN(W)||!Jr(rA))throw new Error("Invalid arguments passed to jsPDF.rect");return _===L&&(W=-W),P([G(K(d)),G(T(C)),G(K(O)),G(K(W)),"re"].join(" ")),mi(rA),this},f.__private__.triangle=f.triangle=function(d,C,O,W,rA,BA,bA){if(isNaN(d)||isNaN(C)||isNaN(O)||isNaN(W)||isNaN(rA)||isNaN(BA)||!Jr(bA))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[O-d,W-C],[rA-O,BA-W],[d-rA,C-BA]],d,C,[1,1],bA,!0),this},f.__private__.roundedRect=f.roundedRect=function(d,C,O,W,rA,BA,bA){if(isNaN(d)||isNaN(C)||isNaN(O)||isNaN(W)||isNaN(rA)||isNaN(BA)||!Jr(bA))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var MA=4/3*(Math.SQRT2-1);return rA=Math.min(rA,.5*O),BA=Math.min(BA,.5*W),this.lines([[O-2*rA,0],[rA*MA,0,rA,BA-BA*MA,rA,BA],[0,W-2*BA],[0,BA*MA,-rA*MA,BA,-rA,BA],[2*rA-O,0],[-rA*MA,0,-rA,-BA*MA,-rA,-BA],[0,2*BA-W],[0,-BA*MA,rA*MA,-BA,rA,-BA]],d+rA,C,[1,1],bA,!0),this},f.__private__.ellipse=f.ellipse=function(d,C,O,W,rA){if(isNaN(d)||isNaN(C)||isNaN(O)||isNaN(W)||!Jr(rA))throw new Error("Invalid arguments passed to jsPDF.ellipse");var BA=4/3*(Math.SQRT2-1)*O,bA=4/3*(Math.SQRT2-1)*W;return Ts(d+O,C),kr(d+O,C-bA,d+BA,C-W,d,C-W),kr(d-BA,C-W,d-O,C-bA,d-O,C),kr(d-O,C+bA,d-BA,C+W,d,C+W),kr(d+BA,C+W,d+O,C+bA,d+O,C),mi(rA),this},f.__private__.circle=f.circle=function(d,C,O,W){if(isNaN(d)||isNaN(C)||isNaN(O)||!Jr(W))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(d,C,O,O,W)},f.setFont=function(d,C,O){return O&&(C=J(C,O)),KA=Ya(d,C,{disableWarning:!1}),this};var wc=f.__private__.getFont=f.getFont=function(){return ge[Ya.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var d,C,O={};for(d in le)if(le.hasOwnProperty(d))for(C in O[d]=[],le[d])le[d].hasOwnProperty(C)&&O[d].push(C);return O},f.addFont=function(d,C,O,W,rA){var BA=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&BA.indexOf(arguments[3])!==-1?rA=arguments[3]:arguments[3]&&BA.indexOf(arguments[3])==-1&&(O=J(O,W)),za.call(this,d,C,O,rA=rA||"Identity-H")};var Bi,Ds=t.lineWidth||.200025,vc=f.__private__.getLineWidth=f.getLineWidth=function(){return Ds},oe=f.__private__.setLineWidth=f.setLineWidth=function(d){return Ds=d,P(G(K(d))+" w"),this};f.__private__.setLineDash=zA.API.setLineDash=zA.API.setLineDashPattern=function(d,C){if(d=d||[],C=C||0,isNaN(C)||!Array.isArray(d))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return d=d.map(function(O){return G(K(O))}).join(" "),C=G(K(C)),P("["+d+"] "+C+" d"),this};var yc=f.__private__.getLineHeight=f.getLineHeight=function(){return wA*Bi};f.__private__.getLineHeight=f.getLineHeight=function(){return wA*Bi};var Cc=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(d){return typeof(d=d||1.15)=="number"&&(Bi=d),this},bc=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return Bi};Cc(t.lineHeight);var gn=f.__private__.getHorizontalCoordinate=function(d){return K(d)},pn=f.__private__.getVerticalCoordinate=function(d){return _===N?d:Ae[M].mediaBox.topRightY-Ae[M].mediaBox.bottomLeftY-K(d)},Fc=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(d){return G(gn(d))},Qc=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(d){return G(pn(d))},Ji=t.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return Wr(Ji)},f.__private__.setStrokeColor=f.setDrawColor=function(d,C,O,W){return Ji=Nr({ch1:d,ch2:C,ch3:O,ch4:W,pdfColorType:"draw",precision:2}),P(Ji),this};var Rs=t.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return Wr(Rs)},f.__private__.setFillColor=f.setFillColor=function(d,C,O,W){return Rs=Nr({ch1:d,ch2:C,ch3:O,ch4:W,pdfColorType:"fill",precision:2}),P(Rs),this};var wi=t.textColor||"0 g",Uc=f.__private__.getTextColor=f.getTextColor=function(){return Wr(wi)};f.__private__.setTextColor=f.setTextColor=function(d,C,O,W){return wi=Nr({ch1:d,ch2:C,ch3:O,ch4:W,pdfColorType:"text",precision:3}),this};var mn=t.charSpace,xc=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat(mn||0)};f.__private__.setCharSpace=f.setCharSpace=function(d){if(isNaN(d))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return mn=d,this};var Os=0;f.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},f.__private__.setLineCap=f.setLineCap=function(d){var C=f.CapJoinStyles[d];if(C===void 0)throw new Error("Line cap style of '"+d+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Os=C,P(C+" J"),this};var Ms=0;f.__private__.setLineJoin=f.setLineJoin=function(d){var C=f.CapJoinStyles[d];if(C===void 0)throw new Error("Line join style of '"+d+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ms=C,P(C+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(d){if(d=d||0,isNaN(d))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return P(G(K(d))+" M"),this},f.GState=Dl,f.setGState=function(d){(d=typeof d=="string"?re[ue[d]]:io(null,d)).equals(We)||(P("/"+d.id+" gs"),We=d)};var io=function(d,C){if(!d||!ue[d]){var O=!1;for(var W in re)if(re.hasOwnProperty(W)&&re[W].equals(C)){O=!0;break}if(O)C=re[W];else{var rA="GS"+(Object.keys(re).length+1).toString(10);re[rA]=C,C.id=rA}return d&&(ue[d]=C.id),Le.publish("addGState",C),C}};f.addGState=function(d,C){return io(d,C),this},f.saveGraphicsState=function(){return P("q"),Ue.push({key:KA,size:wA,color:wi}),this},f.restoreGraphicsState=function(){P("Q");var d=Ue.pop();return KA=d.key,wA=d.size,wi=d.color,We=null,this},f.setCurrentTransformationMatrix=function(d){return P(d.toString()+" cm"),this},f.comment=function(d){return P("#"+d),this};var Bn=function(d,C){var O=d||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return O},set:function(BA){isNaN(BA)||(O=parseFloat(BA))}});var W=C||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return W},set:function(BA){isNaN(BA)||(W=parseFloat(BA))}});var rA="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return rA},set:function(BA){rA=BA.toString()}}),this},Ks=function(d,C,O,W){Bn.call(this,d,C),this.type="rect";var rA=O||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return rA},set:function(bA){isNaN(bA)||(rA=parseFloat(bA))}});var BA=W||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return BA},set:function(bA){isNaN(bA)||(BA=parseFloat(bA))}}),this},Yi=function(){this.page=ve,this.currentPage=M,this.pages=xA.slice(0),this.pagesContext=Ae.slice(0),this.x=kA,this.y=Ve,this.matrix=Ce,this.width=Gs(M),this.height=ao(M),this.outputDestination=_A,this.id="",this.objectNumber=-1};Yi.prototype.restore=function(){ve=this.page,M=this.currentPage,Ae=this.pagesContext,xA=this.pages,kA=this.x,Ve=this.y,Ce=this.matrix,so(M,this.width),wn(M,this.height),_A=this.outputDestination};var js=function(d,C,O,W,rA){Vr.push(new Yi),ve=M=0,xA=[],kA=d,Ve=C,Ce=rA,ks([O,W])};for(var vi in f.beginFormObject=function(d,C,O,W,rA){return js(d,C,O,W,rA),this},f.endFormObject=function(d){return function(C){if(un[C])Vr.pop().restore();else{var O=new Yi,W="Xo"+(Object.keys(Tt).length+1).toString(10);O.id=W,un[C]=W,Tt[W]=O,Le.publish("addFormObject",O),Vr.pop().restore()}}(d),this},f.doFormObject=function(d,C){var O=Tt[un[d]];return P("q"),P(C.toString()+" cm"),P("/"+O.id+" Do"),P("Q"),this},f.getFormObject=function(d){var C=Tt[un[d]];return{x:C.x,y:C.y,width:C.width,height:C.height,matrix:C.matrix}},f.save=function(d,C){return d=d||"generated.pdf",(C=C||{}).returnPromise=C.returnPromise||!1,C.returnPromise===!1?(_i($i(Xr()),d),typeof _i.unload=="function"&&ne.setTimeout&&setTimeout(_i.unload,911),this):new Promise(function(O,W){try{var rA=_i($i(Xr()),d);typeof _i.unload=="function"&&ne.setTimeout&&setTimeout(_i.unload,911),O(rA)}catch(BA){W(BA.message)}})},zA.API)zA.API.hasOwnProperty(vi)&&(vi==="events"&&zA.API.events.length?function(d,C){var O,W,rA;for(rA=C.length-1;rA!==-1;rA--)O=C[rA][0],W=C[rA][1],d.subscribe.apply(d,[O].concat(typeof W=="function"?[W]:W))}(Le,zA.API.events):f[vi]=zA.API[vi]);function Gs(d){return Ae[d].mediaBox.topRightX-Ae[d].mediaBox.bottomLeftX}function so(d,C){Ae[d].mediaBox.topRightX=C+Ae[d].mediaBox.bottomLeftX}function ao(d){return Ae[d].mediaBox.topRightY-Ae[d].mediaBox.bottomLeftY}function wn(d,C){Ae[d].mediaBox.topRightY=C+Ae[d].mediaBox.bottomLeftY}var vn=f.getPageWidth=function(d){return Gs(d=d||M)/se},oo=f.setPageWidth=function(d,C){so(d,C*se)},yi=f.getPageHeight=function(d){return ao(d=d||M)/se},lo=f.setPageHeight=function(d,C){wn(d,C*se)};return f.internal={pdfEscape:wr,getStyle:to,getFont:wc,getFontSize:PA,getCharSpace:xc,getTextColor:Uc,getLineHeight:yc,getLineHeightFactor:bc,getLineWidth:vc,write:IA,getHorizontalCoordinate:gn,getVerticalCoordinate:pn,getCoordinateString:Fc,getVerticalCoordinateString:Qc,collections:{},newObject:Je,newAdditionalObject:di,newObjectDeferred:Qt,newObjectDeferredBegin:Lt,getFilters:Hr,putStream:Br,events:Le,scaleFactor:se,pageSize:{getWidth:function(){return vn(M)},setWidth:function(d){oo(M,d)},getHeight:function(){return yi(M)},setHeight:function(d){lo(M,d)}},encryptionOptions:h,encryption:pt,getEncryptor:function(d){return h!==null?pt.encryptor(d,0):function(C){return C}},output:Ao,getNumberOfPages:Ja,get pages(){return xA},out:P,f2:x,f3:S,getPageInfo:dn,getPageInfoByObjId:eo,getCurrentPageInfo:dc,getPDFVersion:y,Point:Bn,Rectangle:Ks,Matrix:ee,hasHotfix:vr},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return vn(M)},set:function(d){oo(M,d)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return yi(M)},set:function(d){lo(M,d)},enumerable:!0,configurable:!0}),(function(d){for(var C=0,O=ZA.length;C<O;C++){var W=za.call(this,d[C][0],d[C][1],d[C][2],ZA[C][3],!0);g===!1&&(m[W]=!0);var rA=d[C][0].split("-");Wa({id:W,fontName:rA[0],fontStyle:rA[1]||""})}Le.publish("addFonts",{fonts:ge,dictionary:le})}).call(f,ZA),KA="F1",$a(n,e),Le.publish("initialized"),f}ds.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},ds.prototype.toHexString=function(t){return t.split("").map(function(A){return("0"+(255&A.charCodeAt(0)).toString(16)).slice(-2)}).join("")},ds.prototype.hexToBytes=function(t){for(var A=[],e=0;e<t.length;e+=2)A.push(String.fromCharCode(parseInt(t.substr(e,2),16)));return A.join("")},ds.prototype.processOwnerPassword=function(t,A){return ph(gh(A).substr(0,5),t)},ds.prototype.encryptor=function(t,A){var e=gh(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&A,A>>8&255)).substr(0,10);return function(r){return ph(e,r)}},Dl.prototype.equals=function(t){var A,e="id,objectNumber,equals";if(!t||_e(t)!==_e(this))return!1;var r=0;for(A in this)if(!(e.indexOf(A)>=0)){if(this.hasOwnProperty(A)&&!t.hasOwnProperty(A)||this[A]!==t[A])return!1;r++}for(A in t)t.hasOwnProperty(A)&&e.indexOf(A)<0&&r--;return r===0},zA.API={events:[]},zA.version="4.0.0";var At=zA.API,rf=1,Gi=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ss=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ce=function(t){return t.toFixed(2)},Ai=function(t){return t.toFixed(5)};At.__acroform__={};var rr=function(t,A){t.prototype=Object.create(A.prototype),t.prototype.constructor=t},fg=function(t){return t*rf},sn=function(t){var A=new am,e=OA.internal.getHeight(t)||0,r=OA.internal.getWidth(t)||0;return A.BBox=[0,0,Number(ce(r)),Number(ce(e))],A},xC=At.__acroform__.setBit=function(t,A){if(t=t||0,A=A||0,isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<A},EC=At.__acroform__.clearBit=function(t,A){if(t=t||0,A=A||0,isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<A)},LC=At.__acroform__.getBit=function(t,A){if(isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<A?1:0},at=At.__acroform__.getBitForPdf=function(t,A){if(isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return LC(t,A-1)},ot=At.__acroform__.setBitForPdf=function(t,A){if(isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return xC(t,A-1)},lt=At.__acroform__.clearBitForPdf=function(t,A){if(isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return EC(t,A-1)},SC=At.__acroform__.calculateCoordinates=function(t,A){var e=A.internal.getHorizontalCoordinate,r=A.internal.getVerticalCoordinate,n=t[0],i=t[1],s=t[2],a=t[3],o={};return o.lowerLeft_X=e(n)||0,o.lowerLeft_Y=r(i+a)||0,o.upperRight_X=e(n+s)||0,o.upperRight_Y=r(i)||0,[Number(ce(o.lowerLeft_X)),Number(ce(o.lowerLeft_Y)),Number(ce(o.upperRight_X)),Number(ce(o.upperRight_Y))]},IC=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var A=[],e=t._V||t.DV,r=mh(t,e),n=t.scope.internal.getFont(t.fontName,t.fontStyle).id;A.push("/Tx BMC"),A.push("q"),A.push("BT"),A.push(t.scope.__private__.encodeColorString(t.color)),A.push("/"+n+" "+ce(r.fontSize)+" Tf"),A.push("1 0 0 1 0 0 Tm"),A.push(r.text),A.push("ET"),A.push("Q"),A.push("EMC");var i=sn(t);return i.scope=t.scope,i.stream=A.join(`
231
- `),i}},mh=function(t,A){var e=t.fontSize===0?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},n=(A=(A=A.substr(0,1)=="("?A.substr(1):A).substr(A.length-1)==")"?A.substr(0,A.length-1):A).split(" ");n=t.multiline?n.map(function(x){return x.split(`
232
- `)}):n.map(function(x){return[x]});var i=e,s=OA.internal.getHeight(t)||0;s=s<0?-s:s;var a=OA.internal.getWidth(t)||0;a=a<0?-a:a;var o=function(x,S,K){if(x+1<n.length){var T=S+" "+n[x+1][0];return Mo(T,t,K).width<=a-4}return!1};i++;A:for(;i>0;){A="",i--;var c,h,g=Mo("3",t,i).height,m=t.multiline?s-i:(s-g)/2,f=m+=2,w=0,y=0,F=0;if(i<=0){A=`(...) Tj
233
- `,A+="% Width of Text: "+Mo(A,t,i=12).width+", FieldWidth:"+a+`
234
- `;break}for(var v="",L=0,N=0;N<n.length;N++)if(n.hasOwnProperty(N)){var _=!1;if(n[N].length!==1&&F!==n[N].length-1){if((g+2)*(L+2)+2>s)continue A;v+=n[N][F],_=!0,y=N,N--}else{v=(v+=n[N][F]+" ").substr(v.length-1)==" "?v.substr(0,v.length-1):v;var q=parseInt(N),X=o(q,v,i),J=N>=n.length-1;if(X&&!J){v+=" ",F=0;continue}if(X||J){if(J)y=q;else if(t.multiline&&(g+2)*(L+2)+2>s)continue A}else{if(!t.multiline||(g+2)*(L+2)+2>s)continue A;y=q}}for(var G="",k=w;k<=y;k++){var Z=n[k];if(t.multiline){if(k===y){G+=Z[F]+" ",F=(F+1)%Z.length;continue}if(k===w){G+=Z[Z.length-1]+" ";continue}}G+=Z[0]+" "}switch(G=G.substr(G.length-1)==" "?G.substr(0,G.length-1):G,h=Mo(G,t,i).width,t.textAlign){case"right":c=a-h-2;break;case"center":c=(a-h)/2;break;default:c=2}A+=ce(c)+" "+ce(f)+` Td
235
- `,A+="("+Gi(G)+`) Tj
236
- `,A+=-ce(c)+` 0 Td
237
- `,f=-(i+2),h=0,w=_?y:y+1,L++,v=""}break}return r.text=A,r.fontSize=i,r},Mo=function(t,A,e){var r=A.scope.internal.getFont(A.fontName,A.fontStyle),n=A.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:A.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:n}},_C={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},NC=function(t,A){var e={type:"reference",object:t};A.internal.getPageInfo(t.page).pageContext.annotations.find(function(r){return r.type===e.type&&r.object===e.object})===void 0&&A.internal.getPageInfo(t.page).pageContext.annotations.push(e)},HC=function(t,A){if(A.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(jr.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(_C)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");rf=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new om,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in r)if(r.hasOwnProperty(n)){var i=r[n];i.objId=void 0,i.hasAnnotation&&NC(i,e)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(e){(function(r,n){var i=!r;for(var s in r||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(s)){var a=r[s],o=[],c=a.Rect;if(a.Rect&&(a.Rect=SC(a.Rect,n)),n.internal.newObjectDeferredBegin(a.objId,!0),a.DA=OA.createDefaultAppearanceStream(a),_e(a)==="object"&&typeof a.getKeyValueListForStream=="function"&&(o=a.getKeyValueListForStream()),a.Rect=c,a.hasAppearanceStream&&!a.appearanceStreamContent){var h=IC(a);o.push({key:"AP",value:"<</N "+h+">>"}),n.internal.acroformPlugin.xForms.push(h)}if(a.appearanceStreamContent){var g="";for(var m in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(m)){var f=a.appearanceStreamContent[m];if(g+="/"+m+" ",g+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var s in f)if(f.hasOwnProperty(s)){var w=f[s];typeof w=="function"&&(w=w.call(n,a)),g+="/"+s+" "+w+" ",n.internal.acroformPlugin.xForms.indexOf(w)>=0||n.internal.acroformPlugin.xForms.push(w)}}else typeof(w=f)=="function"&&(w=w.call(n,a)),g+="/"+s+" "+w,n.internal.acroformPlugin.xForms.indexOf(w)>=0||n.internal.acroformPlugin.xForms.push(w);g+=">>"}o.push({key:"AP",value:`<<
238
- `+g+">>"})}n.internal.putStream({additionalKeyValues:o,objectId:a.objId}),n.internal.out("endobj")}i&&function(y,F){for(var v in y)if(y.hasOwnProperty(v)){var L=v,N=y[v];F.internal.newObjectDeferredBegin(N.objId,!0),_e(N)==="object"&&typeof N.putStream=="function"&&N.putStream(),delete y[L]}}(n.internal.acroformPlugin.xForms,n)})(e,t)}),t.internal.acroformPlugin.isInitialized=!0}},sm=At.__acroform__.arrayToPdfArray=function(t,A,e){var r=function(s){return s};if(Array.isArray(t)){for(var n="[",i=0;i<t.length;i++)switch(i!==0&&(n+=" "),_e(t[i])){case"boolean":case"number":case"object":n+=t[i].toString();break;case"string":t[i].substr(0,1)!=="/"?(A!==void 0&&e&&(r=e.internal.getEncryptor(A)),n+="("+Gi(r(t[i].toString()))+")"):n+=t[i].toString()}return n+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},gu=function(t,A,e){var r=function(n){return n};return A!==void 0&&e&&(r=e.internal.getEncryptor(A)),(t=t||"").toString(),"("+Gi(r(t))+")"},an=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};an.prototype.toString=function(){return this.objId+" 0 R"},an.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},an.prototype.getKeyValueListForStream=function(){var t=[],A=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var e in A)if(Object.getOwnPropertyDescriptor(this,A[e]).configurable===!1){var r=A[e],n=this[r];n&&(Array.isArray(n)?t.push({key:r,value:sm(n,this.objId,this.scope)}):n instanceof an?(n.scope=this.scope,t.push({key:r,value:n.objId+" 0 R"})):typeof n!="function"&&t.push({key:r,value:n}))}return t};var am=function(){an.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,A=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return A},set:function(e){A=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};rr(am,an);var om=function(){an.call(this);var t,A=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return A.length>0?A:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return A}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(r){return r};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Gi(e(t))+")"}},set:function(e){t=e}})};rr(om,an);var jr=function t(){an.call(this);var A=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return A},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute F supplied.');A=v}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!at(A,3)},set:function(v){v?this.F=ot(A,3):this.F=lt(A,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute Ff supplied.');e=v}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(v){r=v!==void 0?v:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(v){r[0]=v}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(v){r[1]=v}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(v){r[2]=v}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(v){r[3]=v}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(v){switch(v){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=v;break;default:throw new Error('Invalid value "'+v+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof Rl)return;i="FieldObject"+t.FieldNum++}var v=function(L){return L};return this.scope&&(v=this.scope.internal.getEncryptor(this.objId)),"("+Gi(v(i))+")"},set:function(v){i=v.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(v){i=v}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(v){s=v}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(v){a=v}});var o=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return o},set:function(v){o=v}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/rf:c},set:function(v){c=v}});var h="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return h},set:function(v){h=v}});var g="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!g||this instanceof Rl||this instanceof Ti))return gu(g,this.objId,this.scope)},set:function(v){v=v.toString(),g=v}});var m=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(m)return this instanceof Et==0?gu(m,this.objId,this.scope):m},set:function(v){v=v.toString(),m=this instanceof Et==0?v.substr(0,1)==="("?ss(v.substr(1,v.length-2)):ss(v):v}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Et==1?ss(m.substr(1,m.length-1)):m},set:function(v){v=v.toString(),m=this instanceof Et==1?"/"+v:v}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(v){this.V=v}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof Et==0?gu(f,this.objId,this.scope):f},set:function(v){v=v.toString(),f=this instanceof Et==0?v.substr(0,1)==="("?ss(v.substr(1,v.length-2)):ss(v):v}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Et==1?ss(f.substr(1,f.length-1)):f},set:function(v){v=v.toString(),f=this instanceof Et==1?"/"+v:v}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var w,y=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return y},set:function(v){v=!!v,y=v}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(w)return w},set:function(v){w=v}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,1)},set:function(v){v?this.Ff=ot(this.Ff,1):this.Ff=lt(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,2)},set:function(v){v?this.Ff=ot(this.Ff,2):this.Ff=lt(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,3)},set:function(v){v?this.Ff=ot(this.Ff,3):this.Ff=lt(this.Ff,3)}});var F=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(F!==null)return F},set:function(v){if([0,1,2].indexOf(v)===-1)throw new Error('Invalid value "'+v+'" for attribute Q supplied.');F=v}}),Object.defineProperty(this,"textAlign",{get:function(){var v;switch(F){case 0:default:v="left";break;case 1:v="center";break;case 2:v="right"}return v},configurable:!0,enumerable:!0,set:function(v){switch(v){case"right":case 2:F=2;break;case"center":case 1:F=1;break;default:F=0}}})};rr(jr,an);var bs=function(){jr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var A=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return sm(A,this.objId,this.scope)},set:function(e){var r,n;n=[],typeof(r=e)=="string"&&(n=function(i,s,a){a||(a=1);for(var o,c=[];o=s.exec(i);)c.push(o[a]);return c}(r,/\((.*?)\)/g)),A=n}}),this.getOptions=function(){return A},this.setOptions=function(e){A=e,this.sort&&A.sort()},this.addOption=function(e){e=(e=e||"").toString(),A.push(e),this.sort&&A.sort()},this.removeOption=function(e,r){for(r=r||!1,e=(e=e||"").toString();A.indexOf(e)!==-1&&(A.splice(A.indexOf(e),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,18)},set:function(e){e?this.Ff=ot(this.Ff,18):this.Ff=lt(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=ot(this.Ff,19):this.Ff=lt(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,20)},set:function(e){e?(this.Ff=ot(this.Ff,20),A.sort()):this.Ff=lt(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,22)},set:function(e){e?this.Ff=ot(this.Ff,22):this.Ff=lt(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,23)},set:function(e){e?this.Ff=ot(this.Ff,23):this.Ff=lt(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,27)},set:function(e){e?this.Ff=ot(this.Ff,27):this.Ff=lt(this.Ff,27)}}),this.hasAppearanceStream=!1};rr(bs,jr);var Fs=function(){bs.call(this),this.fontName="helvetica",this.combo=!1};rr(Fs,bs);var Qs=function(){Fs.call(this),this.combo=!0};rr(Qs,Fs);var ml=function(){Qs.call(this),this.edit=!0};rr(ml,Qs);var Et=function(){jr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,15)},set:function(e){e?this.Ff=ot(this.Ff,15):this.Ff=lt(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,16)},set:function(e){e?this.Ff=ot(this.Ff,16):this.Ff=lt(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,17)},set:function(e){e?this.Ff=ot(this.Ff,17):this.Ff=lt(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,26)},set:function(e){e?this.Ff=ot(this.Ff,26):this.Ff=lt(this.Ff,26)}});var t,A={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(i){return i};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(A).length!==0){var r,n=[];for(r in n.push("<<"),A)n.push("/"+r+" ("+Gi(e(A[r]))+")");return n.push(">>"),n.join(`
239
- `)}},set:function(e){_e(e)==="object"&&(A=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return A.CA||""},set:function(e){typeof e=="string"&&(A.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};rr(Et,jr);var Bl=function(){Et.call(this),this.pushButton=!0};rr(Bl,Et);var Us=function(){Et.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(A){t=A!==void 0?A:[]}})};rr(Us,Et);var Rl=function(){var t,A;jr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(n){A=n}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(a){return a};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var i,s=[];for(i in s.push("<<"),r)s.push("/"+i+" ("+Gi(n(r[i]))+")");return s.push(">>"),s.join(`
240
- `)},set:function(n){_e(n)==="object"&&(r=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(n){typeof n=="string"&&(r.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+n}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=OA.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};rr(Rl,jr),Us.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var A in this.Kids)if(this.Kids.hasOwnProperty(A)){var e=this.Kids[A];e.appearanceStreamContent=t.createAppearanceStream(e.optionName),e.caption=t.getCA()}},Us.prototype.createOption=function(t){var A=new Rl;return A.Parent=this,A.optionName=t,this.Kids.push(A),kC.call(this.scope,A),A};var wl=function(){Et.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=OA.CheckBox.createAppearanceStream()};rr(wl,Et);var Ti=function(){jr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,13)},set:function(A){A?this.Ff=ot(this.Ff,13):this.Ff=lt(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,21)},set:function(A){A?this.Ff=ot(this.Ff,21):this.Ff=lt(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,23)},set:function(A){A?this.Ff=ot(this.Ff,23):this.Ff=lt(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,24)},set:function(A){A?this.Ff=ot(this.Ff,24):this.Ff=lt(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,25)},set:function(A){A?this.Ff=ot(this.Ff,25):this.Ff=lt(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,26)},set:function(A){A?this.Ff=ot(this.Ff,26):this.Ff=lt(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(A){t=A}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(A){Number.isInteger(A)&&(t=A)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};rr(Ti,jr);var vl=function(){Ti.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!at(this.Ff,14)},set:function(t){t?this.Ff=ot(this.Ff,14):this.Ff=lt(this.Ff,14)}}),this.password=!0};rr(vl,Ti);var OA={CheckBox:{createAppearanceStream:function(){return{N:{On:OA.CheckBox.YesNormal},D:{On:OA.CheckBox.YesPushDown,Off:OA.CheckBox.OffPushDown}}},YesPushDown:function(t){var A=sn(t);A.scope=t.scope;var e=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),i=mh(t,t.caption);return e.push("0.749023 g"),e.push("0 0 "+ce(OA.internal.getWidth(t))+" "+ce(OA.internal.getHeight(t))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+ce(i.fontSize)+" Tf "+n),e.push("BT"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC"),A.stream=e.join(`
241
- `),A},YesNormal:function(t){var A=sn(t);A.scope=t.scope;var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),n=[],i=OA.internal.getHeight(t),s=OA.internal.getWidth(t),a=mh(t,t.caption);return n.push("1 g"),n.push("0 0 "+ce(s)+" "+ce(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+ce(s-1)+" "+ce(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+e+" "+ce(a.fontSize)+" Tf "+r),n.push(a.text),n.push("ET"),n.push("Q"),A.stream=n.join(`
242
- `),A},OffPushDown:function(t){var A=sn(t);A.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+ce(OA.internal.getWidth(t))+" "+ce(OA.internal.getHeight(t))+" re"),e.push("f"),A.stream=e.join(`
243
- `),A}},RadioButton:{Circle:{createAppearanceStream:function(t){var A={D:{Off:OA.RadioButton.Circle.OffPushDown},N:{}};return A.N[t]=OA.RadioButton.Circle.YesNormal,A.D[t]=OA.RadioButton.Circle.YesPushDown,A},getCA:function(){return"l"},YesNormal:function(t){var A=sn(t);A.scope=t.scope;var e=[],r=OA.internal.getWidth(t)<=OA.internal.getHeight(t)?OA.internal.getWidth(t)/4:OA.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=OA.internal.Bezier_C,i=Number((r*n).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+Ai(OA.internal.getWidth(t)/2)+" "+Ai(OA.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),e.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),e.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),e.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),e.push("f"),e.push("Q"),A.stream=e.join(`
244
- `),A},YesPushDown:function(t){var A=sn(t);A.scope=t.scope;var e=[],r=OA.internal.getWidth(t)<=OA.internal.getHeight(t)?OA.internal.getWidth(t)/4:OA.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*OA.internal.Bezier_C).toFixed(5)),s=Number((r*OA.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+Ai(OA.internal.getWidth(t)/2)+" "+Ai(OA.internal.getHeight(t)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+Ai(OA.internal.getWidth(t)/2)+" "+Ai(OA.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),e.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),e.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),e.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),e.push("f"),e.push("Q"),A.stream=e.join(`
245
- `),A},OffPushDown:function(t){var A=sn(t);A.scope=t.scope;var e=[],r=OA.internal.getWidth(t)<=OA.internal.getHeight(t)?OA.internal.getWidth(t)/4:OA.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*OA.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+Ai(OA.internal.getWidth(t)/2)+" "+Ai(OA.internal.getHeight(t)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),A.stream=e.join(`
246
- `),A}},Cross:{createAppearanceStream:function(t){var A={D:{Off:OA.RadioButton.Cross.OffPushDown},N:{}};return A.N[t]=OA.RadioButton.Cross.YesNormal,A.D[t]=OA.RadioButton.Cross.YesPushDown,A},getCA:function(){return"8"},YesNormal:function(t){var A=sn(t);A.scope=t.scope;var e=[],r=OA.internal.calculateCross(t);return e.push("q"),e.push("1 1 "+ce(OA.internal.getWidth(t)-2)+" "+ce(OA.internal.getHeight(t)-2)+" re"),e.push("W"),e.push("n"),e.push(ce(r.x1.x)+" "+ce(r.x1.y)+" m"),e.push(ce(r.x2.x)+" "+ce(r.x2.y)+" l"),e.push(ce(r.x4.x)+" "+ce(r.x4.y)+" m"),e.push(ce(r.x3.x)+" "+ce(r.x3.y)+" l"),e.push("s"),e.push("Q"),A.stream=e.join(`
247
- `),A},YesPushDown:function(t){var A=sn(t);A.scope=t.scope;var e=OA.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+ce(OA.internal.getWidth(t))+" "+ce(OA.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+ce(OA.internal.getWidth(t)-2)+" "+ce(OA.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(ce(e.x1.x)+" "+ce(e.x1.y)+" m"),r.push(ce(e.x2.x)+" "+ce(e.x2.y)+" l"),r.push(ce(e.x4.x)+" "+ce(e.x4.y)+" m"),r.push(ce(e.x3.x)+" "+ce(e.x3.y)+" l"),r.push("s"),r.push("Q"),A.stream=r.join(`
248
- `),A},OffPushDown:function(t){var A=sn(t);A.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+ce(OA.internal.getWidth(t))+" "+ce(OA.internal.getHeight(t))+" re"),e.push("f"),A.stream=e.join(`
249
- `),A}}},createDefaultAppearanceStream:function(t){var A=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+A+" "+t.fontSize+" Tf "+e}};OA.internal={Bezier_C:.551915024494,calculateCross:function(t){var A=OA.internal.getWidth(t),e=OA.internal.getHeight(t),r=Math.min(A,e);return{x1:{x:(A-r)/2,y:(e-r)/2+r},x2:{x:(A-r)/2+r,y:(e-r)/2},x3:{x:(A-r)/2,y:(e-r)/2},x4:{x:(A-r)/2+r,y:(e-r)/2+r}}}},OA.internal.getWidth=function(t){var A=0;return _e(t)==="object"&&(A=fg(t.Rect[2])),A},OA.internal.getHeight=function(t){var A=0;return _e(t)==="object"&&(A=fg(t.Rect[3])),A};var kC=At.addField=function(t){if(HC(this,t),!(t instanceof jr))throw new Error("Invalid argument passed to jsPDF.addField.");var A;return(A=t).scope.internal.acroformPlugin.printedOut&&(A.scope.internal.acroformPlugin.printedOut=!1,A.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),A.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(A),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};At.AcroFormChoiceField=bs,At.AcroFormListBox=Fs,At.AcroFormComboBox=Qs,At.AcroFormEditBox=ml,At.AcroFormButton=Et,At.AcroFormPushButton=Bl,At.AcroFormRadioButton=Us,At.AcroFormCheckBox=wl,At.AcroFormTextField=Ti,At.AcroFormPasswordField=vl,At.AcroFormAppearance=OA,At.AcroForm={ChoiceField:bs,ListBox:Fs,ComboBox:Qs,EditBox:ml,Button:Et,PushButton:Bl,RadioButton:Us,CheckBox:wl,TextField:Ti,PasswordField:vl,Appearance:OA},zA.AcroForm={ChoiceField:bs,ListBox:Fs,ComboBox:Qs,EditBox:ml,Button:Et,PushButton:Bl,RadioButton:Us,CheckBox:wl,TextField:Ti,PasswordField:vl,Appearance:OA};zA.AcroForm;function lm(t){return t.reduce(function(A,e,r){return A[e]=r,A},{})}(function(t){var A="addImage_";t.__addimage__={};var e="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=t.__addimage__.getImageFileTypeByImageData=function(x,S){var K,T,z,lA,hA,iA=e;if((S=S||e)==="RGBA"||x.data!==void 0&&x.data instanceof Uint8ClampedArray&&"height"in x&&"width"in x)return"RGBA";if(X(x))for(hA in r)for(z=r[hA],K=0;K<z.length;K+=1){for(lA=!0,T=0;T<z[K].length;T+=1)if(z[K][T]!==void 0&&z[K][T]!==x[T]){lA=!1;break}if(lA===!0){iA=hA;break}}else for(hA in r)for(z=r[hA],K=0;K<z.length;K+=1){for(lA=!0,T=0;T<z[K].length;T+=1)if(z[K][T]!==void 0&&z[K][T]!==x.charCodeAt(T)){lA=!1;break}if(lA===!0){iA=hA;break}}return iA===e&&S!==e&&(iA=S),iA},i=function x(S){for(var K=this.internal.write,T=this.internal.putStream,z=(0,this.internal.getFilters)();z.indexOf("FlateEncode")!==-1;)z.splice(z.indexOf("FlateEncode"),1);S.objectId=this.internal.newObject();var lA=[];if(lA.push({key:"Type",value:"/XObject"}),lA.push({key:"Subtype",value:"/Image"}),lA.push({key:"Width",value:S.width}),lA.push({key:"Height",value:S.height}),S.colorSpace===v.INDEXED?lA.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(S.palette.length/3-1)+" "+("sMask"in S&&S.sMask!==void 0?S.objectId+2:S.objectId+1)+" 0 R]"}):(lA.push({key:"ColorSpace",value:"/"+S.colorSpace}),S.colorSpace===v.DEVICE_CMYK&&lA.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),lA.push({key:"BitsPerComponent",value:S.bitsPerComponent}),"decodeParameters"in S&&S.decodeParameters!==void 0&&lA.push({key:"DecodeParms",value:"<<"+S.decodeParameters+">>"}),"transparency"in S&&Array.isArray(S.transparency)&&S.transparency.length>0){for(var hA="",iA=0,dA=S.transparency.length;iA<dA;iA++)hA+=S.transparency[iA]+" "+S.transparency[iA]+" ";lA.push({key:"Mask",value:"["+hA+"]"})}S.sMask!==void 0&&lA.push({key:"SMask",value:S.objectId+1+" 0 R"});var QA=S.filter!==void 0?["/"+S.filter]:void 0;if(T({data:S.data,additionalKeyValues:lA,alreadyAppliedFilters:QA,objectId:S.objectId}),K("endobj"),"sMask"in S&&S.sMask!==void 0){var CA,U=(CA=S.sMaskBitsPerComponent)!==null&&CA!==void 0?CA:S.bitsPerComponent,M={width:S.width,height:S.height,colorSpace:"DeviceGray",bitsPerComponent:U,data:S.sMask};"filter"in S&&(M.decodeParameters="/Predictor ".concat(S.predictor," /Colors 1 /BitsPerComponent ").concat(U," /Columns ").concat(S.width),M.filter=S.filter),x.call(this,M)}if(S.colorSpace===v.INDEXED){var j=this.internal.newObject();T({data:G(new Uint8Array(S.palette)),objectId:j}),K("endobj")}},s=function(){var x=this.internal.collections[A+"images"];for(var S in x)i.call(this,x[S])},a=function(){var x,S=this.internal.collections[A+"images"],K=this.internal.write;for(var T in S)K("/I"+(x=S[T]).index,x.objectId,"0","R")},o=function(){this.internal.collections[A+"images"]||(this.internal.collections[A+"images"]={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",a))},c=function(){var x=this.internal.collections[A+"images"];return o.call(this),x},h=function(){return Object.keys(this.internal.collections[A+"images"]).length},g=function(x){return typeof t["process"+x.toUpperCase()]=="function"},m=function(x){return _e(x)==="object"&&x.nodeType===1},f=function(x,S){if(x.nodeName==="IMG"&&x.hasAttribute("src")){var K=""+x.getAttribute("src");if(K.indexOf("data:image/")===0)return pl(unescape(K).split("base64,").pop());var T=t.loadFile(K,!0);if(T!==void 0)return T}if(x.nodeName==="CANVAS"){if(x.width===0||x.height===0)throw new Error("Given canvas must have data. Canvas width: "+x.width+", height: "+x.height);var z;switch(S){case"PNG":z="image/png";break;case"WEBP":z="image/webp";break;default:z="image/jpeg"}return pl(x.toDataURL(z,1).split("base64,").pop())}},w=function(x){var S=this.internal.collections[A+"images"];if(S){for(var K in S)if(x===S[K].alias)return S[K]}},y=function(x,S,K){return x||S||(x=-96,S=-96),x<0&&(x=-1*K.width*72/x/this.internal.scaleFactor),S<0&&(S=-1*K.height*72/S/this.internal.scaleFactor),x===0&&(x=S*K.width/K.height),S===0&&(S=x*K.height/K.width),[x,S]},F=function(x,S,K,T,z,lA){var hA=y.call(this,K,T,z),iA=this.internal.getCoordinateString,dA=this.internal.getVerticalCoordinateString,QA=c.call(this);if(K=hA[0],T=hA[1],QA[z.index]=z,lA){lA*=Math.PI/180;var CA=Math.cos(lA),U=Math.sin(lA),M=function($){return $.toFixed(4)},j=[M(CA),M(U),M(-1*U),M(CA),0,0,"cm"]}this.internal.write("q"),lA?(this.internal.write([1,"0","0",1,iA(x),dA(S+T),"cm"].join(" ")),this.internal.write(j.join(" ")),this.internal.write([iA(K),"0","0",iA(T),"0","0","cm"].join(" "))):this.internal.write([iA(K),"0","0",iA(T),iA(x),dA(S+T),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+z.index+" Do"),this.internal.write("Q")},v=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var L=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},N=t.__addimage__.sHashCode=function(x){var S,K,T=0;if(typeof x=="string")for(K=x.length,S=0;S<K;S++)T=(T<<5)-T+x.charCodeAt(S),T|=0;else if(X(x))for(K=x.byteLength/2,S=0;S<K;S++)T=(T<<5)-T+x[S],T|=0;return T},_=t.__addimage__.validateStringAsBase64=function(x){(x=x||"").toString().trim();var S=!0;return x.length===0&&(S=!1),x.length%4!=0&&(S=!1),/^[A-Za-z0-9+/]+$/.test(x.substr(0,x.length-2))===!1&&(S=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(x.substr(-2))===!1&&(S=!1),S},q=t.__addimage__.extractImageFromDataUrl=function(x){if(x==null||!(x=x.trim()).startsWith("data:"))return null;var S=x.indexOf(",");return S<0?null:x.substring(0,S).trim().endsWith("base64")?x.substring(S+1):null};t.__addimage__.isArrayBuffer=function(x){return x instanceof ArrayBuffer};var X=t.__addimage__.isArrayBufferView=function(x){return x instanceof Int8Array||x instanceof Uint8Array||x instanceof Uint8ClampedArray||x instanceof Int16Array||x instanceof Uint16Array||x instanceof Int32Array||x instanceof Uint32Array||x instanceof Float32Array||x instanceof Float64Array},J=t.__addimage__.binaryStringToUint8Array=function(x){for(var S=x.length,K=new Uint8Array(S),T=0;T<S;T++)K[T]=x.charCodeAt(T);return K},G=t.__addimage__.arrayBufferToBinaryString=function(x){for(var S="",K=X(x)?x:new Uint8Array(x),T=0;T<K.length;T+=8192)S+=String.fromCharCode.apply(null,K.subarray(T,T+8192));return S};t.addImage=function(){var x,S,K,T,z,lA,hA,iA,dA;if(typeof arguments[1]=="number"?(S=e,K=arguments[1],T=arguments[2],z=arguments[3],lA=arguments[4],hA=arguments[5],iA=arguments[6],dA=arguments[7]):(S=arguments[1],K=arguments[2],T=arguments[3],z=arguments[4],lA=arguments[5],hA=arguments[6],iA=arguments[7],dA=arguments[8]),_e(x=arguments[0])==="object"&&!m(x)&&"imageData"in x){var QA=x;x=QA.imageData,S=QA.format||S||e,K=QA.x||K||0,T=QA.y||T||0,z=QA.w||QA.width||z,lA=QA.h||QA.height||lA,hA=QA.alias||hA,iA=QA.compression||iA,dA=QA.rotation||QA.angle||dA}var CA=this.internal.getFilters();if(iA===void 0&&CA.indexOf("FlateEncode")!==-1&&(iA="SLOW"),isNaN(K)||isNaN(T))throw new Error("Invalid coordinates passed to jsPDF.addImage");o.call(this);var U=k.call(this,x,S,hA,iA);return F.call(this,K,T,z,lA,U,dA),this};var k=function(x,S,K,T){var z,lA,hA;if(typeof x=="string"&&n(x)===e){x=unescape(x);var iA=Z(x,!1);(iA!==""||(iA=t.loadFile(x,!0))!==void 0)&&(x=iA)}if(m(x)&&(x=f(x,S)),S=n(x,S),!g(S))throw new Error("addImage does not support files of type '"+S+"', please ensure that a plugin for '"+S+"' support is added.");if(((hA=K)==null||hA.length===0)&&(K=function(dA){return typeof dA=="string"||X(dA)?N(dA):X(dA.data)?N(dA.data):null}(x)),(z=w.call(this,K))||(x instanceof Uint8Array||S==="RGBA"||(lA=x,x=J(x)),z=this["process"+S.toUpperCase()](x,h.call(this),K,function(dA){return dA&&typeof dA=="string"&&(dA=dA.toUpperCase()),dA in t.image_compression?dA:L.NONE}(T),lA)),!z)throw new Error("An unknown error occurred whilst processing the image.");return z},Z=t.__addimage__.convertBase64ToBinaryString=function(x,S){S=typeof S!="boolean"||S;var K,T="";if(typeof x=="string"){var z;K=(z=q(x))!==null&&z!==void 0?z:x;try{T=pl(K)}catch(lA){if(S)throw _(K)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+lA.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return T};t.getImageProperties=function(x){var S,K,T="";if(m(x)&&(x=f(x)),typeof x=="string"&&n(x)===e&&((T=Z(x,!1))===""&&(T=t.loadFile(x)||""),x=T),K=n(x),!g(K))throw new Error("addImage does not support files of type '"+K+"', please ensure that a plugin for '"+K+"' support is added.");if(x instanceof Uint8Array||(x=J(x)),!(S=this["process"+K.toUpperCase()](x)))throw new Error("An unknown error occurred whilst processing the image");return S.fileType=K,S}})(zA.API),function(t){var A=function(e){if(e!==void 0&&e!="")return!0};zA.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(e){for(var r,n,i,s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(e.objId),c=e.pageContext.annotations,h=!1,g=0;g<c.length&&!h;g++)switch((r=c[g]).type){case"link":(A(r.options.url)||A(r.options.pageNumber))&&(h=!0);break;case"reference":case"text":case"freetext":h=!0}if(h!=0){this.internal.write("/Annots [");for(var m=0;m<c.length;m++){r=c[m];var f=this.internal.pdfEscape,w=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var y=this.internal.newAdditionalObject(),F=this.internal.newAdditionalObject(),v=this.internal.getEncryptor(y.objId),L=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+s(r.bounds.x)+" "+a(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y)+"] ")+"/Contents ("+f(v(r.contents))+")",i+=" /Popup "+F.objId+" 0 R",i+=" /P "+o.objId+" 0 R",i+=" /T ("+f(v(L))+") >>",y.content=i;var N=y.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+s(r.bounds.x+30)+" "+a(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w+30)+" "+a(r.bounds.y)+"] ")+" /Parent "+N,r.open&&(i+=" /Open true"),i+=" >>",F.content=i,this.internal.write(y.objId,"0 R",F.objId,"0 R");break;case"freetext":n="/Rect ["+s(r.bounds.x)+" "+a(r.bounds.y)+" "+s(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y+r.bounds.h)+"] ";var _=r.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+f(w(r.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+_+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var q=this.annotations._nameMap[r.options.name];r.options.pageNumber=q.page,r.options.top=q.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",i="",r.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+f(w(r.options.url))+") >>";else if(r.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,i+=" /FitV "+r.options.left+"]";break;default:var X=a(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+X+" "+r.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),t.createAnnotation=function(e){var r=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":r.pageContext.annotations.push(e)}},t.link=function(e,r,n,i,s){var a=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:o(e),y:c(r),w:o(e+n),h:c(r+i)},options:s,type:"link"})},t.textWithLink=function(e,r,n,i){var s,a,o=this.getTextWidth(e),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){a=i.maxWidth;var h=this.splitTextToSize(e,a).length;s=Math.ceil(c*h)}else a=o,s=c;return this.text(e,r,n,i),n+=.2*c,i.align==="center"&&(r-=o/2),i.align==="right"&&(r-=o),this.link(r,n-c,a,s,i),o},t.getTextWidth=function(e){var r=this.internal.getFontSize();return this.getStringUnitWidth(e)*r/this.internal.scaleFactor}}(zA.API),function(t){var A={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},e={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];t.__arabicParser__={};var i=t.__arabicParser__.isInArabicSubstitutionA=function(y){return A[y.charCodeAt(0)]!==void 0},s=t.__arabicParser__.isArabicLetter=function(y){return typeof y=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(y)},a=t.__arabicParser__.isArabicEndLetter=function(y){return s(y)&&i(y)&&A[y.charCodeAt(0)].length<=2},o=t.__arabicParser__.isArabicAlfLetter=function(y){return s(y)&&n.indexOf(y.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(y){return s(y)&&i(y)&&A[y.charCodeAt(0)].length>=1};var c=t.__arabicParser__.arabicLetterHasFinalForm=function(y){return s(y)&&i(y)&&A[y.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(y){return s(y)&&i(y)&&A[y.charCodeAt(0)].length>=3};var h=t.__arabicParser__.arabicLetterHasMedialForm=function(y){return s(y)&&i(y)&&A[y.charCodeAt(0)].length==4},g=t.__arabicParser__.resolveLigatures=function(y){var F=0,v=e,L="",N=0;for(F=0;F<y.length;F+=1)v[y.charCodeAt(F)]!==void 0?(N++,typeof(v=v[y.charCodeAt(F)])=="number"&&(L+=String.fromCharCode(v),v=e,N=0),F===y.length-1&&(v=e,L+=y.charAt(F-(N-1)),F-=N-1,N=0)):(v=e,L+=y.charAt(F-N),F-=N,N=0);return L};t.__arabicParser__.isArabicDiacritic=function(y){return y!==void 0&&r[y.charCodeAt(0)]!==void 0};var m=t.__arabicParser__.getCorrectForm=function(y,F,v){return s(y)?i(y)===!1?-1:!c(y)||!s(F)&&!s(v)||!s(v)&&a(F)||a(y)&&!s(F)||a(y)&&o(F)||a(y)&&a(F)?0:h(y)&&s(F)&&!a(F)&&s(v)&&c(v)?3:a(y)||!s(v)?1:2:-1},f=function(y){var F=0,v=0,L=0,N="",_="",q="",X=(y=y||"").split("\\s+"),J=[];for(F=0;F<X.length;F+=1){for(J.push(""),v=0;v<X[F].length;v+=1)N=X[F][v],_=X[F][v-1],q=X[F][v+1],s(N)?(L=m(N,_,q),J[F]+=L!==-1?String.fromCharCode(A[N.charCodeAt(0)][L]):N):J[F]+=N;J[F]=g(J[F])}return J.join(" ")},w=t.__arabicParser__.processArabic=t.processArabic=function(){var y,F=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,v=[];if(Array.isArray(F)){var L=0;for(v=[],L=0;L<F.length;L+=1)Array.isArray(F[L])?v.push([f(F[L][0]),F[L][1],F[L][2]]):v.push([f(F[L])]);y=v}else y=f(F);return typeof arguments[0]=="string"?y:(arguments[0].text=y,arguments[0])};t.events.push(["preProcessText",w])}(zA.API),zA.API.autoPrint=function(t){var A;return(t=t||{}).variant=t.variant||"non-conform",t.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){A=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+A+" 0 R")})),this},function(t){var A=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(a){e=a}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(a){r=isNaN(a)||Number.isInteger(a)===!1||a<0?150:a,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(a){n=isNaN(a)||Number.isInteger(a)===!1||a<0?300:a,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(a){i=a}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(a){s=a}}),Object.defineProperty(this,"parentNode",{})};A.prototype.getContext=function(e,r){var n;if((e=e||"2d")!=="2d")return null;for(n in r)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=r[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},A.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new A,this.canvas.pdf=this}])}(zA.API),function(t){var A={left:0,top:0,bottom:0,right:0},e=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},A),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var o=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return o},set:function(y){o=y}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(y){c=y}});var h=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return h},set:function(y){h=y}});var g=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return g},set:function(y){g=y}});var m=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return m},set:function(y){m=y}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(y){f=y}});var w=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return w},set:function(y){w=y}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(o){return r.call(this),this.internal.__cell__.headerFunction=typeof o=="function"?o:void 0,this},t.getTextDimensions=function(o,c){r.call(this);var h=(c=c||{}).fontSize||this.getFontSize(),g=c.font||this.getFont(),m=c.scaleFactor||this.internal.scaleFactor,f=0,w=0,y=0,F=this;if(!Array.isArray(o)&&typeof o!="string"){if(typeof o!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");o=String(o)}var v=c.maxWidth;v>0?typeof o=="string"?o=this.splitTextToSize(o,v):Object.prototype.toString.call(o)==="[object Array]"&&(o=o.reduce(function(N,_){return N.concat(F.splitTextToSize(_,v))},[])):o=Array.isArray(o)?o:[o];for(var L=0;L<o.length;L++)f<(y=this.getStringUnitWidth(o[L],{font:g})*h)&&(f=y);return f!==0&&(w=o.length),{w:f/=m,h:Math.max((w*h*this.getLineHeightFactor()-h*(this.getLineHeightFactor()-1))/m,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var o=this.internal.__cell__.margins||A;return this.internal.__cell__.lastCell=new i(o.left,o.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=t.cell=function(){var o;o=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var c=this.internal.__cell__.lastCell,h=this.internal.__cell__.padding,g=this.internal.__cell__.margins||A,m=this.internal.__cell__.tableHeaderRow,f=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===o.lineNumber?(o.x=(c.x||0)+(c.width||0),o.y=c.y||0):c.y+c.height+o.height+g.bottom>this.getPageHeight()?(this.cellAddPage(),o.y=g.top,f&&m&&(this.printHeaderRow(o.lineNumber,!0),o.y+=m[0].height)):o.y=c.y+c.height||o.y),o.text[0]!==void 0&&(this.rect(o.x,o.y,o.width,o.height,e===!0?"FD":void 0),o.align==="right"?this.text(o.text,o.x+o.width-h,o.y+h,{align:"right",baseline:"top"}):o.align==="center"?this.text(o.text,o.x+o.width/2,o.y+h,{align:"center",baseline:"top",maxWidth:o.width-h-h}):this.text(o.text,o.x+h,o.y+h,{align:"left",baseline:"top",maxWidth:o.width-h-h})),this.internal.__cell__.lastCell=o,this};t.table=function(o,c,h,g,m){if(r.call(this),!h)throw new Error("No data for PDF table.");var f,w,y,F,v=[],L=[],N=[],_={},q={},X=[],J=[],G=(m=m||{}).autoSize||!1,k=m.printHeaders!==!1,Z=m.css&&m.css["font-size"]!==void 0?16*m.css["font-size"]:m.fontSize||12,x=m.margins||Object.assign({width:this.getPageWidth()},A),S=typeof m.padding=="number"?m.padding:3,K=m.headerBackgroundColor||"#c8c8c8",T=m.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=k,this.internal.__cell__.margins=x,this.internal.__cell__.table_font_size=Z,this.internal.__cell__.padding=S,this.internal.__cell__.headerBackgroundColor=K,this.internal.__cell__.headerTextColor=T,this.setFontSize(Z),g==null)L=v=Object.keys(h[0]),N=v.map(function(){return"left"});else if(Array.isArray(g)&&_e(g[0])==="object")for(v=g.map(function(QA){return QA.name}),L=g.map(function(QA){return QA.prompt||QA.name||""}),N=g.map(function(QA){return QA.align||"left"}),f=0;f<g.length;f+=1)q[g[f].name]=.7499990551181103*g[f].width;else Array.isArray(g)&&typeof g[0]=="string"&&(L=v=g,N=v.map(function(){return"left"}));if(G||Array.isArray(g)&&typeof g[0]=="string")for(f=0;f<v.length;f+=1){for(_[F=v[f]]=h.map(function(QA){return QA[F]}),this.setFont(void 0,"bold"),X.push(this.getTextDimensions(L[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),w=_[F],this.setFont(void 0,"normal"),y=0;y<w.length;y+=1)X.push(this.getTextDimensions(w[y],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);q[F]=Math.max.apply(null,X)+S+S,X=[]}if(k){var z={};for(f=0;f<v.length;f+=1)z[v[f]]={},z[v[f]].text=L[f],z[v[f]].align=N[f];var lA=a.call(this,z,q);J=v.map(function(QA){return new i(o,c,q[QA],lA,z[QA].text,void 0,z[QA].align)}),this.setTableHeaderRow(J),this.printHeaderRow(1,!1)}var hA=g.reduce(function(QA,CA){return QA[CA.name]=CA.align,QA},{});for(f=0;f<h.length;f+=1){"rowStart"in m&&m.rowStart instanceof Function&&m.rowStart({row:f,data:h[f]},this);var iA=a.call(this,h[f],q);for(y=0;y<v.length;y+=1){var dA=h[f][v[y]];"cellStart"in m&&m.cellStart instanceof Function&&m.cellStart({row:f,col:y,data:dA},this),s.call(this,new i(o,c,q[v[y]],iA,dA,f+2,hA[v[y]]))}}return this.internal.__cell__.table_x=o,this.internal.__cell__.table_y=c,this};var a=function(o,c){var h=this.internal.__cell__.padding,g=this.internal.__cell__.table_font_size,m=this.internal.scaleFactor;return Object.keys(o).map(function(f){var w=o[f];return this.splitTextToSize(w.hasOwnProperty("text")?w.text:w,c[f]-h-h)},this).map(function(f){return this.getLineHeightFactor()*f.length*g/m+h+h},this).reduce(function(f,w){return Math.max(f,w)},0)};t.setTableHeaderRow=function(o){r.call(this),this.internal.__cell__.tableHeaderRow=o},t.printHeaderRow=function(o,c){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var h;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var g=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(g[0],g[1],g[2],g[3],void 0,-1)}this.setFont(void 0,"bold");for(var m=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){h=this.internal.__cell__.tableHeaderRow[f].clone(),c&&(h.y=this.internal.__cell__.margins.top||0,m.push(h)),h.lineNumber=o;var w=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,h),this.setTextColor(w)}m.length>0&&this.setTableHeaderRow(m),this.setFont(void 0,"normal"),e=!1}}(zA.API);var cm={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},um=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Bh=lm(um),hm=[100,200,300,400,500,600,700,800,900],PC=lm(hm);function pu(t){var A=t.family.replace(/"|'/g,"").toLowerCase(),e=function(i){return cm[i=i||"normal"]?i:"normal"}(t.style),r=function(i){return i?typeof i=="number"?i>=100&&i<=900&&i%100==0?i:400:/^\d00$/.test(i)?parseInt(i):i==="bold"?700:400:400}(t.weight),n=function(i){return typeof Bh[i=i||"normal"]=="number"?i:"normal"}(t.stretch);return{family:A,style:e,weight:r,stretch:n,src:t.src||[],ref:t.ref||{name:A,style:[n,e,r].join(" ")}}}function dg(t,A,e,r){var n;for(n=e;n>=0&&n<A.length;n+=r)if(t[A[n]])return t[A[n]];for(n=e;n>=0&&n<A.length;n-=r)if(t[A[n]])return t[A[n]]}var TC={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},gg={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function pg(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function mg(t){return t.trimLeft()}function DC(t,A){for(var e=0;e<t.length;){if(t.charAt(e)===A)return[t.substring(0,e),t.substring(e+1)];e+=1}return null}function RC(t){var A=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return A===null?null:[A[0],t.substring(A[0].length)]}var Ko,Bg,wg,as,jo,vg,yg,Cg,mu=["times"];function bg(t,A,e,r,n){var i=4,s=Qg;switch(n){case zA.API.image_compression.FAST:i=1,s=Fg;break;case zA.API.image_compression.MEDIUM:i=6,s=Ug;break;case zA.API.image_compression.SLOW:i=9,s=xg}t=function(o,c,h,g){for(var m,f=o.length/c,w=new Uint8Array(o.length+f),y=[OC,Fg,Qg,Ug,xg],F=0;F<f;F+=1){var v=F*c,L=o.subarray(v,v+c);if(g)w.set(g(L,h,m),v+F);else{for(var N=y.length,_=[],q=0;q<N;q+=1)_[q]=y[q](L,h,m);var X=KC(_.concat());w.set(_[X],v+F)}m=L}return w}(t,A,Math.ceil(e*r/8),s);var a=uh(t,{level:i});return zA.API.__addimage__.arrayBufferToBinaryString(a)}function OC(t){var A=Array.apply([],t);return A.unshift(0),A}function Fg(t,A){var e=t.length,r=[];r[0]=1;for(var n=0;n<e;n+=1){var i=t[n-A]||0;r[n+1]=t[n]-i+256&255}return r}function Qg(t,A,e){var r=t.length,n=[];n[0]=2;for(var i=0;i<r;i+=1){var s=e&&e[i]||0;n[i+1]=t[i]-s+256&255}return n}function Ug(t,A,e){var r=t.length,n=[];n[0]=3;for(var i=0;i<r;i+=1){var s=t[i-A]||0,a=e&&e[i]||0;n[i+1]=t[i]+256-(s+a>>>1)&255}return n}function xg(t,A,e){var r=t.length,n=[];n[0]=4;for(var i=0;i<r;i+=1){var s=MC(t[i-A]||0,e&&e[i]||0,e&&e[i-A]||0);n[i+1]=t[i]-s+256&255}return n}function MC(t,A,e){if(t===A&&A===e)return t;var r=Math.abs(A-e),n=Math.abs(t-e),i=Math.abs(t+A-e-e);return r<=n&&r<=i?t:n<=i?A:e}function KC(t){var A=t.map(function(e){return e.reduce(function(r,n){return r+Math.abs(n)},0)});return A.indexOf(Math.min.apply(null,A))}function Bu(t,A,e){var r=A*e,n=Math.floor(r/8),i=16-(r-8*n+e),s=(1<<e)-1;return fm(t,n)>>i&s}function Eg(t,A,e,r){var n=e*r,i=Math.floor(n/8),s=16-(n-8*i+r),a=(1<<r)-1,o=(A&a)<<s;(function(c,h,g){if(h+1<c.byteLength)c.setUint16(h,g,!1);else{var m=g>>8&255;c.setUint8(h,m)}})(t,i,fm(t,i)&~(a<<s)&65535|o)}function fm(t,A){return A+1<t.byteLength?t.getUint16(A,!1):t.getUint8(A)<<8}function jC(t){var A=0;if(t[A++]!==71||t[A++]!==73||t[A++]!==70||t[A++]!==56||(t[A++]+1&253)!=56||t[A++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=t[A++]|t[A++]<<8,r=t[A++]|t[A++]<<8,n=t[A++],i=n>>7,s=1<<1+(7&n);t[A++],t[A++];var a=null,o=null;i&&(a=A,o=s,A+=3*s);var c=!0,h=[],g=0,m=null,f=0,w=null;for(this.width=e,this.height=r;c&&A<t.length;)switch(t[A++]){case 33:switch(t[A++]){case 255:if(t[A]!==11||t[A+1]==78&&t[A+2]==69&&t[A+3]==84&&t[A+4]==83&&t[A+5]==67&&t[A+6]==65&&t[A+7]==80&&t[A+8]==69&&t[A+9]==50&&t[A+10]==46&&t[A+11]==48&&t[A+12]==3&&t[A+13]==1&&t[A+16]==0)A+=14,w=t[A++]|t[A++]<<8,A++;else for(A+=12;;){if(!((x=t[A++])>=0))throw Error("Invalid block size");if(x===0)break;A+=x}break;case 249:if(t[A++]!==4||t[A+4]!==0)throw new Error("Invalid graphics extension block.");var y=t[A++];g=t[A++]|t[A++]<<8,m=t[A++],1&y||(m=null),f=y>>2&7,A++;break;case 254:for(;;){if(!((x=t[A++])>=0))throw Error("Invalid block size");if(x===0)break;A+=x}break;default:throw new Error("Unknown graphic control label: 0x"+t[A-1].toString(16))}break;case 44:var F=t[A++]|t[A++]<<8,v=t[A++]|t[A++]<<8,L=t[A++]|t[A++]<<8,N=t[A++]|t[A++]<<8,_=t[A++],q=_>>6&1,X=1<<1+(7&_),J=a,G=o,k=!1;_>>7&&(k=!0,J=A,G=X,A+=3*X);var Z=A;for(A++;;){var x;if(!((x=t[A++])>=0))throw Error("Invalid block size");if(x===0)break;A+=x}h.push({x:F,y:v,width:L,height:N,has_local_palette:k,palette_offset:J,palette_size:G,data_offset:Z,data_length:A-Z,transparent_index:m,interlaced:!!q,delay:g,disposal:f});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+t[A-1].toString(16))}this.numFrames=function(){return h.length},this.loopCount=function(){return w},this.frameInfo=function(S){if(S<0||S>=h.length)throw new Error("Frame index out of range.");return h[S]},this.decodeAndBlitFrameBGRA=function(S,K){var T=this.frameInfo(S),z=T.width*T.height,lA=new Uint8Array(z);Lg(t,T.data_offset,lA,z);var hA=T.palette_offset,iA=T.transparent_index;iA===null&&(iA=256);var dA=T.width,QA=e-dA,CA=dA,U=4*(T.y*e+T.x),M=4*((T.y+T.height)*e+T.x),j=U,$=4*QA;T.interlaced===!0&&($+=4*e*7);for(var AA=8,sA=0,fA=lA.length;sA<fA;++sA){var gA=lA[sA];if(CA===0&&(CA=dA,(j+=$)>=M&&($=4*QA+4*e*(AA-1),j=U+(dA+QA)*(AA<<1),AA>>=1)),gA===iA)j+=4;else{var yA=t[hA+3*gA],xA=t[hA+3*gA+1],NA=t[hA+3*gA+2];K[j++]=NA,K[j++]=xA,K[j++]=yA,K[j++]=255}--CA}},this.decodeAndBlitFrameRGBA=function(S,K){var T=this.frameInfo(S),z=T.width*T.height,lA=new Uint8Array(z);Lg(t,T.data_offset,lA,z);var hA=T.palette_offset,iA=T.transparent_index;iA===null&&(iA=256);var dA=T.width,QA=e-dA,CA=dA,U=4*(T.y*e+T.x),M=4*((T.y+T.height)*e+T.x),j=U,$=4*QA;T.interlaced===!0&&($+=4*e*7);for(var AA=8,sA=0,fA=lA.length;sA<fA;++sA){var gA=lA[sA];if(CA===0&&(CA=dA,(j+=$)>=M&&($=4*QA+4*e*(AA-1),j=U+(dA+QA)*(AA<<1),AA>>=1)),gA===iA)j+=4;else{var yA=t[hA+3*gA],xA=t[hA+3*gA+1],NA=t[hA+3*gA+2];K[j++]=yA,K[j++]=xA,K[j++]=NA,K[j++]=255}--CA}}}function Lg(t,A,e,r){for(var n=t[A++],i=1<<n,s=i+1,a=s+1,o=n+1,c=(1<<o)-1,h=0,g=0,m=0,f=t[A++],w=new Int32Array(4096),y=null;;){for(;h<16&&f!==0;)g|=t[A++]<<h,h+=8,f===1?f=t[A++]:--f;if(h<o)break;var F=g&c;if(g>>=o,h-=o,F!==i){if(F===s)break;for(var v=F<a?F:y,L=0,N=v;N>i;)N=w[N]>>8,++L;var _=N;if(m+L+(v!==F?1:0)>r)return void De.log("Warning, gif stream longer than expected.");e[m++]=_;var q=m+=L;for(v!==F&&(e[m++]=_),N=v;L--;)N=w[N],e[--q]=255&N,N>>=8;y!==null&&a<4096&&(w[a++]=y<<8|_,a>=c+1&&o<12&&(++o,c=c<<1|1)),y=F}else a=s+1,c=(1<<(o=n+1))-1,y=null}return m!==r&&De.log("Warning, gif stream shorter than expected."),e}/**
213
+ */var gg={print:4,modify:8,copy:16,"annot-forms":32};function ds(t,A,e,r){this.v=1,this.r=2;var n=192;t.forEach(function(a){if(gg.perm!==void 0)throw new Error("Invalid permission: "+a);n+=gg[a]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var i=(A+this.padding).substr(0,32),s=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,s),this.P=-(1+(255^n)),this.encryptionKey=mh(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Bh(this.encryptionKey,this.padding)}function gs(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var A="",e=t.length,r=0;r<e;r++){var n=t.charCodeAt(r);A+=n<33||n===35||n===37||n===40||n===41||n===47||n===60||n===62||n===91||n===93||n===123||n===125||n>126?"#"+("0"+n.toString(16)).slice(-2):t[r]}return A}function pg(t){if(He(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var A={};this.subscribe=function(e,r,n){if(n=n||!1,typeof e!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");A.hasOwnProperty(e)||(A[e]={});var i=Math.random().toString(35);return A[e][i]=[r,!!n],i},this.unsubscribe=function(e){for(var r in A)if(A[r][e])return delete A[r][e],Object.keys(A[r]).length===0&&delete A[r],!0;return!1},this.publish=function(e){if(A.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in A[e]){var s=A[e][i];try{s[0].apply(t,r)}catch(a){oe.console&&Me.error("jsPDF PubSub Error",a.message,a)}s[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return A}}function Rl(t){if(!(this instanceof Rl))return new Rl(t);var A="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&A.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function om(t,A){this.gState=t,this.matrix=A,this.id="",this.objectNumber=-1}function Ni(t,A,e,r,n){if(!(this instanceof Ni))return new Ni(t,A,e,r,n);this.type=t==="axial"?2:3,this.coords=A,this.colors=e,om.call(this,r,n)}function ws(t,A,e,r,n){if(!(this instanceof ws))return new ws(t,A,e,r,n);this.boundingBox=t,this.xStep=A,this.yStep=e,this.stream="",this.cloneIndex=0,om.call(this,r,n)}function Ae(t){var A,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],s=[],a=1,o=16,c="S",h=null;He(t=t||{})==="object"&&(e=t.orientation,r=t.unit||r,n=t.format||n,i=t.compress||t.compressPdf||i,(h=t.encryption||null)!==null&&(h.userPassword=h.userPassword||"",h.ownerPassword=h.ownerPassword||"",h.userPermissions=h.userPermissions||[]),a=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(A=t.precision),t.floatPrecision!==void 0&&(o=t.floatPrecision),c=t.defaultPathOperation||"S"),s=t.filters||(i===!0?["FlateEncode"]:s),r=r||"mm",e=(""+(e||"P")).toLowerCase();var d=t.putOnlyUsedFonts||!1,m={},f={internal:{},__private__:{}};f.__private__.PubSub=pg;var w="1.3",y=f.__private__.getPdfVersion=function(){return w};f.__private__.setPdfVersion=function(g){w=g};var F={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};f.__private__.getPageFormats=function(){return F};var v=f.__private__.getPageFormat=function(g){return F[g]};n=n||"a4";var L="compat",_="advanced",S=L;function V(){this.saveGraphicsState(),T(new ne(TA,0,0,-TA,0,yi()*TA).toString()+" cm"),this.setFontSize(this.getFontSize()/TA),c="n",S=_}function z(){this.restoreGraphicsState(),c="S",S=L}var X=f.__private__.combineFontStyleAndFontWeight=function(g,b){if(g=="bold"&&b=="normal"||g=="bold"&&b==400||g=="normal"&&b=="italic"||g=="bold"&&b=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return b&&(g=b==400||b==="normal"?g==="italic"?"italic":"normal":b!=700&&b!=="bold"||g!=="normal"?(b==700?"bold":b)+""+g:"bold"),g};f.advancedAPI=function(g){var b=S===L;return b&&V.call(this),typeof g!="function"||(g(this),b&&z.call(this)),this},f.compatAPI=function(g){var b=S===_;return b&&z.call(this),typeof g!="function"||(g(this),b&&V.call(this)),this},f.isAdvancedAPI=function(){return S===_};var q,k=function(g){if(S!==_)throw new Error(g+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Y=f.roundToPrecision=f.__private__.roundToPrecision=function(g,b){var K=A||b;if(isNaN(g)||isNaN(K))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return g.toFixed(K).replace(/0+$/,"")};q=f.hpf=f.__private__.hpf=typeof o=="number"?function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return Y(g,o)}:o==="smart"?function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return Y(g,g>-1&&g<1?16:5)}:function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return Y(g,16)};var x=f.f2=f.__private__.f2=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.f2");return Y(g,2)},P=f.__private__.f3=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.f3");return Y(g,3)},j=f.scale=f.__private__.scale=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.scale");return S===L?g*TA:S===_?g:void 0},D=function(g){return j(function(b){return S===L?yi()-b:S===_?b:void 0}(g))};f.__private__.setPrecision=f.setPrecision=function(g){typeof parseInt(g,10)=="number"&&(A=parseInt(g,10))};var J,lA="00000000000000000000000000000000",fA=f.__private__.getFileId=function(){return lA},aA=f.__private__.setFileId=function(g){return lA=g!==void 0&&/^[a-fA-F0-9]{32}$/.test(g)?g.toUpperCase():lA.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),h!==null&&(mt=new ds(h.userPermissions,h.userPassword,h.ownerPassword,lA)),lA};f.setFileId=function(g){return aA(g),this},f.getFileId=function(){return fA()};var dA=f.__private__.convertDateToPDFDate=function(g){var b=g.getTimezoneOffset(),K=b<0?"+":"-",$=Math.floor(Math.abs(b/60)),rA=Math.abs(b%60),vA=[K,G($),"'",G(rA),"'"].join("");return["D:",g.getFullYear(),G(g.getMonth()+1),G(g.getDate()),G(g.getHours()),G(g.getMinutes()),G(g.getSeconds()),vA].join("")},QA=f.__private__.convertPDFDateToDate=function(g){var b=parseInt(g.substr(2,4),10),K=parseInt(g.substr(6,2),10)-1,$=parseInt(g.substr(8,2),10),rA=parseInt(g.substr(10,2),10),vA=parseInt(g.substr(12,2),10),CA=parseInt(g.substr(14,2),10);return new Date(b,K,$,rA,vA,CA,0)},hA=f.__private__.setCreationDate=function(g){var b;if(g===void 0&&(g=new Date),g instanceof Date)b=dA(g);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(g))throw new Error("Invalid argument passed to jsPDF.setCreationDate");b=g}return J=b},U=f.__private__.getCreationDate=function(g){var b=J;return g==="jsDate"&&(b=QA(J)),b};f.setCreationDate=function(g){return hA(g),this},f.getCreationDate=function(g){return U(g)};var R,G=f.__private__.padd2=function(g){return("0"+parseInt(g)).slice(-2)},W=f.__private__.padd2Hex=function(g){return("00"+(g=g.toString())).substr(g.length)},eA=0,nA=[],gA=[],pA=0,wA=[],xA=[],DA=!1,HA=gA;f.__private__.setCustomOutputDestination=function(g){DA=!0,HA=g};var WA=function(g){DA||(HA=g)};f.__private__.resetCustomOutputDestination=function(){DA=!1,HA=gA};var T=f.__private__.out=function(g){return g=g.toString(),pA+=g.length+1,HA.push(g),HA},kA=f.__private__.write=function(g){return T(arguments.length===1?g.toString():Array.prototype.join.call(arguments," "))},ie=f.__private__.getArrayBuffer=function(g){for(var b=g.length,K=new ArrayBuffer(b),$=new Uint8Array(K);b--;)$[b]=g.charCodeAt(b);return K},JA=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];f.__private__.getStandardFonts=function(){return JA};var UA=t.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(g){return UA=S===_?g/TA:g,this};var _A,MA=f.__private__.getFontSize=f.getFontSize=function(){return S===L?UA:UA*TA},ee=t.R2L||!1;f.__private__.setR2L=f.setR2L=function(g){return ee=g,this},f.__private__.getR2L=f.getR2L=function(){return ee};var YA,Ue=f.__private__.setZoomMode=function(g){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(g))_A=g;else if(isNaN(g)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(g)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+g+'" is not recognized.');_A=g}else _A=parseInt(g,10)};f.__private__.getZoomMode=function(){return _A};var ge,se=f.__private__.setPageMode=function(g){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(g)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+g+'" is not recognized.');YA=g};f.__private__.getPageMode=function(){return YA};var pe=f.__private__.setLayoutMode=function(g){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(g)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+g+'" is not recognized.');ge=g};f.__private__.getLayoutMode=function(){return ge},f.__private__.setDisplayMode=f.setDisplayMode=function(g,b,K){return Ue(g),pe(b),se(K),this};var fe={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(g){if(Object.keys(fe).indexOf(g)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return fe[g]},f.__private__.getDocumentProperties=function(){return fe},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(g){for(var b in fe)fe.hasOwnProperty(b)&&g[b]&&(fe[b]=g[b]);return this},f.__private__.setDocumentProperty=function(g,b){if(Object.keys(fe).indexOf(g)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return fe[g]=b};var SA,TA,KA,_e,me,bA={},GA={},be=[],NA={},Ce={},te={},ae={},Fe=null,Be=0,re=[],Ie=new pg(f),mr=t.hotfixes||[],Ve={},nr={},zr=[],ne=function g(b,K,$,rA,vA,CA){if(!(this instanceof g))return new g(b,K,$,rA,vA,CA);isNaN(b)&&(b=1),isNaN(K)&&(K=0),isNaN($)&&($=0),isNaN(rA)&&(rA=1),isNaN(vA)&&(vA=0),isNaN(CA)&&(CA=0),this._matrix=[b,K,$,rA,vA,CA]};Object.defineProperty(ne.prototype,"sx",{get:function(){return this._matrix[0]},set:function(g){this._matrix[0]=g}}),Object.defineProperty(ne.prototype,"shy",{get:function(){return this._matrix[1]},set:function(g){this._matrix[1]=g}}),Object.defineProperty(ne.prototype,"shx",{get:function(){return this._matrix[2]},set:function(g){this._matrix[2]=g}}),Object.defineProperty(ne.prototype,"sy",{get:function(){return this._matrix[3]},set:function(g){this._matrix[3]=g}}),Object.defineProperty(ne.prototype,"tx",{get:function(){return this._matrix[4]},set:function(g){this._matrix[4]=g}}),Object.defineProperty(ne.prototype,"ty",{get:function(){return this._matrix[5]},set:function(g){this._matrix[5]=g}}),Object.defineProperty(ne.prototype,"a",{get:function(){return this._matrix[0]},set:function(g){this._matrix[0]=g}}),Object.defineProperty(ne.prototype,"b",{get:function(){return this._matrix[1]},set:function(g){this._matrix[1]=g}}),Object.defineProperty(ne.prototype,"c",{get:function(){return this._matrix[2]},set:function(g){this._matrix[2]=g}}),Object.defineProperty(ne.prototype,"d",{get:function(){return this._matrix[3]},set:function(g){this._matrix[3]=g}}),Object.defineProperty(ne.prototype,"e",{get:function(){return this._matrix[4]},set:function(g){this._matrix[4]=g}}),Object.defineProperty(ne.prototype,"f",{get:function(){return this._matrix[5]},set:function(g){this._matrix[5]=g}}),Object.defineProperty(ne.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ne.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ne.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ne.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ne.prototype.join=function(g){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(q).join(g)},ne.prototype.multiply=function(g){var b=g.sx*this.sx+g.shy*this.shx,K=g.sx*this.shy+g.shy*this.sy,$=g.shx*this.sx+g.sy*this.shx,rA=g.shx*this.shy+g.sy*this.sy,vA=g.tx*this.sx+g.ty*this.shx+this.tx,CA=g.tx*this.shy+g.ty*this.sy+this.ty;return new ne(b,K,$,rA,vA,CA)},ne.prototype.decompose=function(){var g=this.sx,b=this.shy,K=this.shx,$=this.sy,rA=this.tx,vA=this.ty,CA=Math.sqrt(g*g+b*b),VA=(g/=CA)*K+(b/=CA)*$;K-=g*VA,$-=b*VA;var XA=Math.sqrt(K*K+$*$);return VA/=XA,g*($/=XA)<b*(K/=XA)&&(g=-g,b=-b,VA=-VA,CA=-CA),{scale:new ne(CA,0,0,XA,0,0),translate:new ne(1,0,0,1,rA,vA),rotate:new ne(g,b,-b,g,0,0),skew:new ne(1,0,VA,1,0,0)}},ne.prototype.toString=function(g){return this.join(" ")},ne.prototype.inversed=function(){var g=this.sx,b=this.shy,K=this.shx,$=this.sy,rA=this.tx,vA=this.ty,CA=1/(g*$-b*K),VA=$*CA,XA=-b*CA,le=-K*CA,de=g*CA;return new ne(VA,XA,le,de,-VA*rA-le*vA,-XA*rA-de*vA)},ne.prototype.applyToPoint=function(g){var b=g.x*this.sx+g.y*this.shx+this.tx,K=g.x*this.shy+g.y*this.sy+this.ty;return new wn(b,K)},ne.prototype.applyToRectangle=function(g){var b=this.applyToPoint(g),K=this.applyToPoint(new wn(g.x+g.w,g.y+g.h));return new Ks(b.x,b.y,K.x-b.x,K.y-b.y)},ne.prototype.clone=function(){var g=this.sx,b=this.shy,K=this.shx,$=this.sy,rA=this.tx,vA=this.ty;return new ne(g,b,K,$,rA,vA)},f.Matrix=ne;var fn=f.matrixMult=function(g,b){return b.multiply(g)},dn=new ne(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=dn;var Br=function(g,b){if(!Ce[g]){var K=(b instanceof Ni?"Sh":"P")+(Object.keys(NA).length+1).toString(10);b.id=K,Ce[g]=K,NA[K]=b,Ie.publish("addPattern",b)}};f.ShadingPattern=Ni,f.TilingPattern=ws,f.addShadingPattern=function(g,b){return k("addShadingPattern()"),Br(g,b),this},f.beginTilingPattern=function(g){k("beginTilingPattern()"),js(g.boundingBox[0],g.boundingBox[1],g.boundingBox[2]-g.boundingBox[0],g.boundingBox[3]-g.boundingBox[1],g.matrix)},f.endTilingPattern=function(g,b){k("endTilingPattern()"),b.stream=xA[R].join(`
214
+ `),Br(g,b),Ie.publish("endTilingPattern",b),zr.pop().restore()};var wr,Ye=f.__private__.newObject=function(){var g=Ut();return St(g,!0),g},Ut=f.__private__.newObjectDeferred=function(){return eA++,nA[eA]=function(){return pA},eA},St=function(g,b){return b=typeof b=="boolean"&&b,nA[g]=pA,b&&T(g+" 0 obj"),g},di=f.__private__.newAdditionalObject=function(){var g={objId:Ut(),content:""};return wA.push(g),g},Dn=Ut(),kr=Ut(),$r=f.__private__.decodeColorString=function(g){var b=g.split(" ");if(b.length!==2||b[1]!=="g"&&b[1]!=="G")b.length!==5||b[4]!=="k"&&b[4]!=="K"||(b=[(1-b[0])*(1-b[3]),(1-b[1])*(1-b[3]),(1-b[2])*(1-b[3]),"r"]);else{var K=parseFloat(b[0]);b=[K,K,K,"r"]}for(var $="#",rA=0;rA<3;rA++)$+=("0"+Math.floor(255*parseFloat(b[rA])).toString(16)).slice(-2);return $},Hr=f.__private__.encodeColorString=function(g){var b;typeof g=="string"&&(g={ch1:g});var K=g.ch1,$=g.ch2,rA=g.ch3,vA=g.ch4,CA=g.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof K=="string"&&K.charAt(0)!=="#"){var VA=new sm(K);if(VA.ok)K=VA.toHex();else if(!/^\d*\.?\d*$/.test(K))throw new Error('Invalid color "'+K+'" passed to jsPDF.encodeColorString.')}if(typeof K=="string"&&/^#[0-9A-Fa-f]{3}$/.test(K)&&(K="#"+K[1]+K[1]+K[2]+K[2]+K[3]+K[3]),typeof K=="string"&&/^#[0-9A-Fa-f]{6}$/.test(K)){var XA=parseInt(K.substr(1),16);K=XA>>16&255,$=XA>>8&255,rA=255&XA}if($===void 0||vA===void 0&&K===$&&$===rA)b=typeof K=="string"?K+" "+CA[0]:g.precision===2?x(K/255)+" "+CA[0]:P(K/255)+" "+CA[0];else if(vA===void 0||He(vA)==="object"){if(vA&&!isNaN(vA.a)&&vA.a===0)return["1.","1.","1.",CA[1]].join(" ");b=typeof K=="string"?[K,$,rA,CA[1]].join(" "):g.precision===2?[x(K/255),x($/255),x(rA/255),CA[1]].join(" "):[P(K/255),P($/255),P(rA/255),CA[1]].join(" ")}else b=typeof K=="string"?[K,$,rA,vA,CA[2]].join(" "):g.precision===2?[x(K),x($),x(rA),x(vA),CA[2]].join(" "):[P(K),P($),P(rA),P(vA),CA[2]].join(" ");return b},Pr=f.__private__.getFilters=function(){return s},vr=f.__private__.putStream=function(g){var b=(g=g||{}).data||"",K=g.filters||Pr(),$=g.alreadyAppliedFilters||[],rA=g.addLength1||!1,vA=b.length,CA=g.objectId,VA=function(Bt){return Bt};if(h!==null&&CA===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");h!==null&&(VA=mt.encryptor(CA,0));var XA={};K===!0&&(K=["FlateEncode"]);var le=g.additionalKeyValues||[],de=(XA=Ae.API.processDataByFilters!==void 0?Ae.API.processDataByFilters(b,K):{data:b,reverseChain:[]}).reverseChain+(Array.isArray($)?$.join(" "):$.toString());if(XA.data.length!==0&&(le.push({key:"Length",value:XA.data.length}),rA===!0&&le.push({key:"Length1",value:vA})),de.length!=0)if(de.split("/").length-1==1)le.push({key:"Filter",value:de});else{le.push({key:"Filter",value:"["+de+"]"});for(var Le=0;Le<le.length;Le+=1)if(le[Le].key==="DecodeParms"){for(var Je=[],ht=0;ht<XA.reverseChain.split("/").length-1;ht+=1)Je.push("null");Je.push(le[Le].value),le[Le].value="["+Je.join(" ")+"]"}}T("<<");for(var Ke=0;Ke<le.length;Ke++)T("/"+le[Ke].key+" "+le[Ke].value);T(">>"),XA.data.length!==0&&(T("stream"),T(VA(XA.data)),T("endstream"))},gi=f.__private__.putPage=function(g){var b=g.number,K=g.data,$=g.objId,rA=g.contentsObjId;St($,!0),T("<</Type /Page"),T("/Parent "+g.rootDictionaryObjId+" 0 R"),T("/Resources "+g.resourceDictionaryObjId+" 0 R"),T("/MediaBox ["+parseFloat(q(g.mediaBox.bottomLeftX))+" "+parseFloat(q(g.mediaBox.bottomLeftY))+" "+q(g.mediaBox.topRightX)+" "+q(g.mediaBox.topRightY)+"]"),g.cropBox!==null&&T("/CropBox ["+q(g.cropBox.bottomLeftX)+" "+q(g.cropBox.bottomLeftY)+" "+q(g.cropBox.topRightX)+" "+q(g.cropBox.topRightY)+"]"),g.bleedBox!==null&&T("/BleedBox ["+q(g.bleedBox.bottomLeftX)+" "+q(g.bleedBox.bottomLeftY)+" "+q(g.bleedBox.topRightX)+" "+q(g.bleedBox.topRightY)+"]"),g.trimBox!==null&&T("/TrimBox ["+q(g.trimBox.bottomLeftX)+" "+q(g.trimBox.bottomLeftY)+" "+q(g.trimBox.topRightX)+" "+q(g.trimBox.topRightY)+"]"),g.artBox!==null&&T("/ArtBox ["+q(g.artBox.bottomLeftX)+" "+q(g.artBox.bottomLeftY)+" "+q(g.artBox.topRightX)+" "+q(g.artBox.topRightY)+"]"),typeof g.userUnit=="number"&&g.userUnit!==1&&T("/UserUnit "+g.userUnit),Ie.publish("putPage",{objId:$,pageContext:re[b],pageNumber:b,page:K}),T("/Contents "+rA+" 0 R"),T(">>"),T("endobj");var vA=K.join(`
215
+ `);return S===_&&(vA+=`
216
+ Q`),St(rA,!0),vr({data:vA,filters:Pr(),objectId:rA}),T("endobj"),$},Xr=f.__private__.putPages=function(){var g,b,K=[];for(g=1;g<=Be;g++)re[g].objId=Ut(),re[g].contentsObjId=Ut();for(g=1;g<=Be;g++)K.push(gi({number:g,data:xA[g],objId:re[g].objId,contentsObjId:re[g].contentsObjId,mediaBox:re[g].mediaBox,cropBox:re[g].cropBox,bleedBox:re[g].bleedBox,trimBox:re[g].trimBox,artBox:re[g].artBox,userUnit:re[g].userUnit,rootDictionaryObjId:Dn,resourceDictionaryObjId:kr}));St(Dn,!0),T("<</Type /Pages");var $="/Kids [";for(b=0;b<Be;b++)$+=K[b]+" 0 R ";T($+"]"),T("/Count "+Be),T(">>"),T("endobj"),Ie.publish("postPutPages")},pi=function(g){Ie.publish("putFont",{font:g,out:T,newObject:Ye,putStream:vr}),g.isAlreadyPutted!==!0&&(g.objectNumber=Ye(),T("<<"),T("/Type /Font"),T("/BaseFont /"+gs(g.postScriptName)),T("/Subtype /Type1"),typeof g.encoding=="string"&&T("/Encoding /"+g.encoding),T("/FirstChar 32"),T("/LastChar 255"),T(">>"),T("endobj"))},qi=function(g){g.objectNumber=Ye();var b=[];b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Form"}),b.push({key:"BBox",value:"["+[q(g.x),q(g.y),q(g.x+g.width),q(g.y+g.height)].join(" ")+"]"}),b.push({key:"Matrix",value:"["+g.matrix.toString()+"]"});var K=g.pages[1].join(`
217
+ `);vr({data:K,additionalKeyValues:b,objectId:g.objectNumber}),T("endobj")},Vi=function(g,b){b||(b=21);var K=Ye(),$=function(CA,VA){var XA,le=[],de=1/(VA-1);for(XA=0;XA<1;XA+=de)le.push(XA);if(le.push(1),CA[0].offset!=0){var Le={offset:0,color:CA[0].color};CA.unshift(Le)}if(CA[CA.length-1].offset!=1){var Je={offset:1,color:CA[CA.length-1].color};CA.push(Je)}for(var ht="",Ke=0,Bt=0;Bt<le.length;Bt++){for(XA=le[Bt];XA>CA[Ke+1].offset;)Ke++;var ft=CA[Ke].offset,It=(XA-ft)/(CA[Ke+1].offset-ft),bn=CA[Ke].color,Dr=CA[Ke+1].color;ht+=W(Math.round((1-It)*bn[0]+It*Dr[0]).toString(16))+W(Math.round((1-It)*bn[1]+It*Dr[1]).toString(16))+W(Math.round((1-It)*bn[2]+It*Dr[2]).toString(16))}return ht.trim()}(g.colors,b),rA=[];rA.push({key:"FunctionType",value:"0"}),rA.push({key:"Domain",value:"[0.0 1.0]"}),rA.push({key:"Size",value:"["+b+"]"}),rA.push({key:"BitsPerSample",value:"8"}),rA.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),rA.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),vr({data:$,additionalKeyValues:rA,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:K}),T("endobj"),g.objectNumber=Ye(),T("<< /ShadingType "+g.type),T("/ColorSpace /DeviceRGB");var vA="/Coords ["+q(parseFloat(g.coords[0]))+" "+q(parseFloat(g.coords[1]))+" ";g.type===2?vA+=q(parseFloat(g.coords[2]))+" "+q(parseFloat(g.coords[3])):vA+=q(parseFloat(g.coords[2]))+" "+q(parseFloat(g.coords[3]))+" "+q(parseFloat(g.coords[4]))+" "+q(parseFloat(g.coords[5])),T(vA+="]"),g.matrix&&T("/Matrix ["+g.matrix.toString()+"]"),T("/Function "+K+" 0 R"),T("/Extend [true true]"),T(">>"),T("endobj")},Wi=function(g,b){var K=Ut(),$=Ye();b.push({resourcesOid:K,objectOid:$}),g.objectNumber=$;var rA=[];rA.push({key:"Type",value:"/Pattern"}),rA.push({key:"PatternType",value:"1"}),rA.push({key:"PaintType",value:"1"}),rA.push({key:"TilingType",value:"1"}),rA.push({key:"BBox",value:"["+g.boundingBox.map(q).join(" ")+"]"}),rA.push({key:"XStep",value:q(g.xStep)}),rA.push({key:"YStep",value:q(g.yStep)}),rA.push({key:"Resources",value:K+" 0 R"}),g.matrix&&rA.push({key:"Matrix",value:"["+g.matrix.toString()+"]"}),vr({data:g.stream,additionalKeyValues:rA,objectId:g.objectNumber}),T("endobj")},fc=function(g){for(var b in g.objectNumber=Ye(),T("<<"),g)switch(b){case"opacity":T("/ca "+x(g[b]));break;case"stroke-opacity":T("/CA "+x(g[b]))}T(">>"),T("endobj")},ks=function(g){St(g.resourcesOid,!0),T("<<"),T("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var b in T("/Font <<"),bA)bA.hasOwnProperty(b)&&(d===!1||d===!0&&m.hasOwnProperty(b))&&T("/"+b+" "+bA[b].objectNumber+" 0 R");T(">>")}(),function(){if(Object.keys(NA).length>0){for(var b in T("/Shading <<"),NA)NA.hasOwnProperty(b)&&NA[b]instanceof Ni&&NA[b].objectNumber>=0&&T("/"+b+" "+NA[b].objectNumber+" 0 R");Ie.publish("putShadingPatternDict"),T(">>")}}(),function(b){if(Object.keys(NA).length>0){for(var K in T("/Pattern <<"),NA)NA.hasOwnProperty(K)&&NA[K]instanceof f.TilingPattern&&NA[K].objectNumber>=0&&NA[K].objectNumber<b&&T("/"+K+" "+NA[K].objectNumber+" 0 R");Ie.publish("putTilingPatternDict"),T(">>")}}(g.objectOid),function(){if(Object.keys(te).length>0){var b;for(b in T("/ExtGState <<"),te)te.hasOwnProperty(b)&&te[b].objectNumber>=0&&T("/"+b+" "+te[b].objectNumber+" 0 R");Ie.publish("putGStateDict"),T(">>")}}(),function(){for(var b in T("/XObject <<"),Ve)Ve.hasOwnProperty(b)&&Ve[b].objectNumber>=0&&T("/"+b+" "+Ve[b].objectNumber+" 0 R");Ie.publish("putXobjectDict"),T(">>")}(),T(">>"),T("endobj")},za=function(g){GA[g.fontName]=GA[g.fontName]||{},GA[g.fontName][g.fontStyle]=g.id},$a=function(g,b,K,$,rA){var vA={id:"F"+(Object.keys(bA).length+1).toString(10),postScriptName:g,fontName:b,fontStyle:K,encoding:$,isStandardFont:rA||!1,metadata:{}};return Ie.publish("addFont",{font:vA,instance:this}),bA[vA.id]=vA,za(vA),vA.id},yr=f.__private__.pdfEscape=f.pdfEscape=function(g,b){return function(K,$){var rA,vA,CA,VA,XA,le,de,Le,Je;if(CA=($=$||{}).sourceEncoding||"Unicode",XA=$.outputEncoding,($.autoencode||XA)&&bA[SA].metadata&&bA[SA].metadata[CA]&&bA[SA].metadata[CA].encoding&&(VA=bA[SA].metadata[CA].encoding,!XA&&bA[SA].encoding&&(XA=bA[SA].encoding),!XA&&VA.codePages&&(XA=VA.codePages[0]),typeof XA=="string"&&(XA=VA[XA]),XA)){for(de=!1,le=[],rA=0,vA=K.length;rA<vA;rA++)(Le=XA[K.charCodeAt(rA)])?le.push(String.fromCharCode(Le)):le.push(K[rA]),le[rA].charCodeAt(0)>>8&&(de=!0);K=le.join("")}for(rA=K.length;de===void 0&&rA!==0;)K.charCodeAt(rA-1)>>8&&(de=!0),rA--;if(!de)return K;for(le=$.noBOM?[]:[254,255],rA=0,vA=K.length;rA<vA;rA++){if((Je=(Le=K.charCodeAt(rA))>>8)>>8)throw new Error("Character at position "+rA+" of string '"+K+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");le.push(Je),le.push(Le-(Je<<8))}return String.fromCharCode.apply(void 0,le)}(g,b).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Hs=f.__private__.beginPage=function(g){xA[++Be]=[],re[Be]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(g[0]),topRightY:Number(g[1])}},Ja(Be),WA(xA[R])},Xa=function(g,b){var K,$,rA;switch(e=b||e,typeof g=="string"&&(K=v(g.toLowerCase()),Array.isArray(K)&&($=K[0],rA=K[1])),Array.isArray(g)&&($=g[0]*TA,rA=g[1]*TA),isNaN($)&&($=n[0],rA=n[1]),($>14400||rA>14400)&&(Me.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),$=Math.min(14400,$),rA=Math.min(14400,rA)),n=[$,rA],e.substr(0,1)){case"l":rA>$&&(n=[rA,$]);break;case"p":$>rA&&(n=[rA,$])}Hs(n),ce(Ds),T(Ji),Os!==0&&T(Os+" J"),Ms!==0&&T(Ms+" j"),Ie.publish("addPage",{pageNumber:Be})},Ps=function(g){g>0&&g<=Be&&(xA.splice(g,1),re.splice(g,1),Be--,R>Be&&(R=Be),this.setPage(R))},Ja=function(g){g>0&&g<=Be&&(R=g)},Ya=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return xA.length-1},Za=function(g,b,K){var $,rA=void 0;return K=K||{},g=g!==void 0?g:bA[SA].fontName,b=b!==void 0?b:bA[SA].fontStyle,$=g.toLowerCase(),GA[$]!==void 0&&GA[$][b]!==void 0?rA=GA[$][b]:GA[g]!==void 0&&GA[g][b]!==void 0?rA=GA[g][b]:K.disableWarning===!1&&Me.warn("Unable to look up font label for font '"+g+"', '"+b+"'. Refer to getFontList() for available fonts."),rA||K.noFallback||(rA=GA.times[b])==null&&(rA=GA.times.normal),rA},Jr=f.__private__.putInfo=function(){var g=Ye(),b=function($){return $};for(var K in h!==null&&(b=mt.encryptor(g,0)),T("<<"),T("/Producer ("+yr(b("jsPDF "+Ae.version))+")"),fe)fe.hasOwnProperty(K)&&fe[K]&&T("/"+K.substr(0,1).toUpperCase()+K.substr(1)+" ("+yr(b(fe[K]))+")");T("/CreationDate ("+yr(b(J))+")"),T(">>"),T("endobj")},zi=f.__private__.putCatalog=function(g){var b=(g=g||{}).rootDictionaryObjId||Dn;switch(Ye(),T("<<"),T("/Type /Catalog"),T("/Pages "+b+" 0 R"),_A||(_A="fullwidth"),_A){case"fullwidth":T("/OpenAction [3 0 R /FitH null]");break;case"fullheight":T("/OpenAction [3 0 R /FitV null]");break;case"fullpage":T("/OpenAction [3 0 R /Fit]");break;case"original":T("/OpenAction [3 0 R /XYZ null null 1]");break;default:var K=""+_A;K.substr(K.length-1)==="%"&&(_A=parseInt(_A)/100),typeof _A=="number"&&T("/OpenAction [3 0 R /XYZ null null "+x(_A)+"]")}switch(ge||(ge="continuous"),ge){case"continuous":T("/PageLayout /OneColumn");break;case"single":T("/PageLayout /SinglePage");break;case"two":case"twoleft":T("/PageLayout /TwoColumnLeft");break;case"tworight":T("/PageLayout /TwoColumnRight")}YA&&T("/PageMode /"+YA),Ie.publish("putCatalog"),T(">>"),T("endobj")},dc=f.__private__.putTrailer=function(){T("trailer"),T("<<"),T("/Size "+(eA+1)),T("/Root "+eA+" 0 R"),T("/Info "+(eA-1)+" 0 R"),h!==null&&T("/Encrypt "+mt.oid+" 0 R"),T("/ID [ <"+lA+"> <"+lA+"> ]"),T(">>")},ut=f.__private__.putHeader=function(){T("%PDF-"+w),T("%ºß¬à")},Ao=f.__private__.putXRef=function(){var g="0000000000";T("xref"),T("0 "+(eA+1)),T("0000000000 65535 f ");for(var b=1;b<=eA;b++)typeof nA[b]=="function"?T((g+nA[b]()).slice(-10)+" 00000 n "):nA[b]!==void 0?T((g+nA[b]).slice(-10)+" 00000 n "):T("0000000000 00000 n ")},Yr=f.__private__.buildDocument=function(){var g;eA=0,pA=0,gA=[],nA=[],wA=[],Dn=Ut(),kr=Ut(),WA(gA),Ie.publish("buildDocument"),ut(),Xr(),function(){Ie.publish("putAdditionalObjects");for(var K=0;K<wA.length;K++){var $=wA[K];St($.objId,!0),T($.content),T("endobj")}Ie.publish("postPutAdditionalObjects")}(),g=[],function(){for(var K in bA)bA.hasOwnProperty(K)&&(d===!1||d===!0&&m.hasOwnProperty(K))&&pi(bA[K])}(),function(){var K;for(K in te)te.hasOwnProperty(K)&&fc(te[K])}(),function(){for(var K in Ve)Ve.hasOwnProperty(K)&&qi(Ve[K])}(),function(K){var $;for($ in NA)NA.hasOwnProperty($)&&(NA[$]instanceof Ni?Vi(NA[$]):NA[$]instanceof ws&&Wi(NA[$],K))}(g),Ie.publish("putResources"),g.forEach(ks),ks({resourcesOid:kr,objectOid:Number.MAX_SAFE_INTEGER}),Ie.publish("postPutResources"),h!==null&&(mt.oid=Ye(),T("<<"),T("/Filter /Standard"),T("/V "+mt.v),T("/R "+mt.r),T("/U <"+mt.toHexString(mt.U)+">"),T("/O <"+mt.toHexString(mt.O)+">"),T("/P "+mt.P),T(">>"),T("endobj")),Jr(),zi();var b=pA;return Ao(),dc(),T("startxref"),T(""+b),T("%%EOF"),WA(xA[R]),gA.join(`
218
+ `)},$i=f.__private__.getBlob=function(g){return new Blob([ie(g)],{type:"application/pdf"})},eo=f.output=f.__private__.output=(wr=function(g,b){switch(typeof(b=b||{})=="string"?b={filename:b}:b.filename=b.filename||"generated.pdf",g){case void 0:return Yr();case"save":f.save(b.filename);break;case"arraybuffer":return ie(Yr());case"blob":return $i(Yr());case"bloburi":case"bloburl":if(oe.URL!==void 0&&typeof oe.URL.createObjectURL=="function")return oe.URL&&oe.URL.createObjectURL($i(Yr()))||void 0;Me.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var K="",$=Yr();try{K=fg($)}catch{K=fg(unescape(encodeURIComponent($)))}return"data:application/pdf;filename="+b.filename+";base64,"+K;case"pdfobjectnewwindow":if(Object.prototype.toString.call(oe)==="[object Window]"){var rA="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",vA=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';b.pdfObjectUrl&&(rA=b.pdfObjectUrl,vA="");var CA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+rA+'"'+vA+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(b)+");<\/script></body></html>",VA=oe.open();return VA!==null&&VA.document.write(CA),VA}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(oe)==="[object Window]"){var XA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(b.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+b.filename+'" width="500px" height="400px" /></body></html>',le=oe.open();if(le!==null){le.document.write(XA);var de=this;le.document.documentElement.querySelector("#pdfViewer").onload=function(){le.document.title=b.filename,le.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(de.output("bloburl"))}}return le}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(oe)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Le='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",b)+'"></iframe></body></html>',Je=oe.open();if(Je!==null&&(Je.document.write(Le),Je.document.title=b.filename),Je||typeof safari>"u")return Je;break;case"datauri":case"dataurl":return oe.document.location.href=this.output("datauristring",b);default:return null}},wr.foo=function(){try{return wr.apply(this,arguments)}catch(K){var g=K.stack||"";~g.indexOf(" at ")&&(g=g.split(" at ")[1]);var b="Error in function "+g.split(`
219
+ `)[0].split("<")[0]+": "+K.message;if(!oe.console)throw new Error(b);oe.console.error(b,K),oe.alert&&alert(b)}},wr.foo.bar=wr,wr.foo),br=function(g){return Array.isArray(mr)===!0&&mr.indexOf(g)>-1};switch(r){case"pt":TA=1;break;case"mm":TA=72/25.4;break;case"cm":TA=72/2.54;break;case"in":TA=72;break;case"px":TA=br("px_scaling")==1?.75:96/72;break;case"pc":case"em":TA=12;break;case"ex":TA=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);TA=r}var mt=null;hA(),aA();var gn=f.__private__.getPageInfo=f.getPageInfo=function(g){if(isNaN(g)||g%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:re[g].objId,pageNumber:g,pageContext:re[g]}},to=f.__private__.getPageInfoByObjId=function(g){if(isNaN(g)||g%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var b in re)if(re[b].objId===g)break;return gn(b)},gc=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:re[R].objId,pageNumber:R,pageContext:re[R]}};f.addPage=function(){return Xa.apply(this,arguments),this},f.setPage=function(){return Ja.apply(this,arguments),WA.call(this,xA[R]),this},f.insertPage=function(g){return this.addPage(),this.movePage(R,g),this},f.movePage=function(g,b){var K,$;if(g>b){K=xA[g],$=re[g];for(var rA=g;rA>b;rA--)xA[rA]=xA[rA-1],re[rA]=re[rA-1];xA[b]=K,re[b]=$,this.setPage(b)}else if(g<b){K=xA[g],$=re[g];for(var vA=g;vA<b;vA++)xA[vA]=xA[vA+1],re[vA]=re[vA+1];xA[b]=K,re[b]=$,this.setPage(b)}return this},f.deletePage=function(){return Ps.apply(this,arguments),this},f.__private__.text=f.text=function(g,b,K,$,rA){var vA,CA,VA,XA,le,de,Le,Je,ht,Ke=($=$||{}).scope||this;if(typeof g=="number"&&typeof b=="number"&&(typeof K=="string"||Array.isArray(K))){var Bt=K;K=b,b=g,g=Bt}if(arguments[3]instanceof ne==0?(VA=arguments[4],XA=arguments[5],He(Le=arguments[3])==="object"&&Le!==null||(typeof VA=="string"&&(XA=VA,VA=null),typeof Le=="string"&&(XA=Le,Le=null),typeof Le=="number"&&(VA=Le,Le=null),$={flags:Le,angle:VA,align:XA})):(k("The transform parameter of text() with a Matrix value"),ht=rA),isNaN(b)||isNaN(K)||g==null)throw new Error("Invalid arguments passed to jsPDF.text");if(g.length===0)return Ke;var ft,It="",bn=typeof $.lineHeightFactor=="number"?$.lineHeightFactor:Bi,Dr=Ke.internal.scaleFactor;function Cn(Ne){return Ne=Ne.split(" ").join(Array($.TabLen||9).join(" ")),yr(Ne,Le)}function qs(Ne){for(var Re,rt=Ne.concat(),wt=[],Un=rt.length;Un--;)typeof(Re=rt.shift())=="string"?wt.push(Re):Array.isArray(Ne)&&(Re.length===1||Re[1]===void 0&&Re[2]===void 0)?wt.push(Re[0]):wt.push([Re[0],Re[1],Re[2]]);return wt}function Zi(Ne,Re){var rt;if(typeof Ne=="string")rt=Re(Ne)[0];else if(Array.isArray(Ne)){for(var wt,Un,ea=Ne.concat(),ts=[],fo=ea.length;fo--;)typeof(wt=ea.shift())=="string"?ts.push(Re(wt)[0]):Array.isArray(wt)&&typeof wt[0]=="string"&&(Un=Re(wt[0],wt[1],wt[2]),ts.push([Un[0],Un[1],Un[2]]));rt=ts}return rt}var Rn=!1,bi=!0;if(typeof g=="string")Rn=!0;else if(Array.isArray(g)){var Ci=g.concat();CA=[];for(var On,_t=Ci.length;_t--;)(typeof(On=Ci.shift())!="string"||Array.isArray(On)&&typeof On[0]!="string")&&(bi=!1);Rn=bi}if(Rn===!1)throw new Error('Type of text must be string or Array. "'+g+'" is not recognized.');typeof g=="string"&&(g=g.match(/[\r?\n]/)?g.split(/\r\n|\r|\n/g):[g]);var Fi=UA/Ke.internal.scaleFactor,Qi=Fi*(bn-1);switch($.baseline){case"bottom":K-=Qi;break;case"top":K+=Fi-Qi;break;case"hanging":K+=Fi-2*Qi;break;case"middle":K+=Fi/2-Qi}if((de=$.maxWidth||0)>0&&(typeof g=="string"?g=Ke.splitTextToSize(g,de):Object.prototype.toString.call(g)==="[object Array]"&&(g=g.reduce(function(Ne,Re){return Ne.concat(Ke.splitTextToSize(Re,de))},[]))),vA={text:g,x:b,y:K,options:$,mutex:{pdfEscape:yr,activeFontKey:SA,fonts:bA,activeFontSize:UA}},Ie.publish("preProcessText",vA),g=vA.text,VA=($=vA.options).angle,ht instanceof ne==0&&VA&&typeof VA=="number"){VA*=Math.PI/180,$.rotationDirection===0&&(VA=-VA),S===_&&(VA=-VA);var Vs=Math.cos(VA),Ws=Math.sin(VA);ht=new ne(Vs,Ws,-Ws,Vs,0,0)}else VA&&VA instanceof ne&&(ht=VA);S!==_||ht||(ht=dn),(le=$.charSpace||Bn)!==void 0&&(It+=q(j(le))+` Tc
220
+ `,this.setCharSpace(this.getCharSpace()||0)),(Je=$.horizontalScale)!==void 0&&(It+=q(100*Je)+` Tz
221
+ `),$.lang;var zt=-1,Fn=$.renderingMode!==void 0?$.renderingMode:$.stroke,As=Ke.internal.getCurrentPageInfo().pageContext;switch(Fn){case 0:case!1:case"fill":zt=0;break;case 1:case!0:case"stroke":zt=1;break;case 2:case"fillThenStroke":zt=2;break;case 3:case"invisible":zt=3;break;case 4:case"fillAndAddForClipping":zt=4;break;case 5:case"strokeAndAddPathForClipping":zt=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":zt=6;break;case 7:case"addToPathForClipping":zt=7}var uo=As.usedRenderingMode!==void 0?As.usedRenderingMode:-1;zt!==-1?It+=zt+` Tr
222
+ `:uo!==-1&&(It+=`0 Tr
223
+ `),zt!==-1&&(As.usedRenderingMode=zt),XA=$.align||"left";var Cr,Ui=UA*bn,zs=Ke.internal.pageSize.getWidth(),$s=bA[SA];le=$.charSpace||Bn,de=$.maxWidth||0,Le=Object.assign({autoencode:!0,noBOM:!0},$.flags);var Mn=[],xi=function(Ne){return Ke.getStringUnitWidth(Ne,{font:$s,charSpace:le,fontSize:UA,doKerning:!1})*UA/Dr};if(Object.prototype.toString.call(g)==="[object Array]"){var ir;CA=qs(g),XA!=="left"&&(Cr=CA.map(xi));var sr,Kn=0;if(XA==="right"){b-=Cr[0],g=[],_t=CA.length;for(var Qn=0;Qn<_t;Qn++)Qn===0?(sr=pn(b),ir=mn(K)):(sr=j(Kn-Cr[Qn]),ir=-Ui),g.push([CA[Qn],sr,ir]),Kn=Cr[Qn]}else if(XA==="center"){b-=Cr[0]/2,g=[],_t=CA.length;for(var jn=0;jn<_t;jn++)jn===0?(sr=pn(b),ir=mn(K)):(sr=j((Kn-Cr[jn])/2),ir=-Ui),g.push([CA[jn],sr,ir]),Kn=Cr[jn]}else if(XA==="left"){g=[],_t=CA.length;for(var Xs=0;Xs<_t;Xs++)g.push(CA[Xs])}else if(XA==="justify"&&$s.encoding==="Identity-H"){g=[],_t=CA.length,de=de!==0?de:zs;for(var es=0,tt=0;tt<_t;tt++)if(ir=tt===0?mn(K):-Ui,sr=tt===0?pn(b):es,tt<_t-1){var ho=j((de-Cr[tt])/(CA[tt].split(" ").length-1)),An=CA[tt].split(" ");g.push([An[0]+" ",sr,ir]),es=0;for(var en=1;en<An.length;en++){var Js=(xi(An[en-1]+" "+An[en])-xi(An[en]))*Dr+ho;en==An.length-1?g.push([An[en],Js,0]):g.push([An[en]+" ",Js,0]),es-=Js}}else g.push([CA[tt],sr,ir]);g.push(["",es,0])}else{if(XA!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(g=[],_t=CA.length,de=de!==0?de:zs,tt=0;tt<_t;tt++){ir=tt===0?mn(K):-Ui,sr=tt===0?pn(b):0;var Ys=CA[tt].split(" ").length-1,Zs=Ys>0?(de-Cr[tt])/Ys:0;tt<_t-1?Mn.push(q(j(Zs))):Mn.push(0),g.push([CA[tt],sr,ir])}}}(typeof $.R2L=="boolean"?$.R2L:ee)===!0&&(g=Zi(g,function(Ne,Re,rt){return[Ne.split("").reverse().join(""),Re,rt]})),vA={text:g,x:b,y:K,options:$,mutex:{pdfEscape:yr,activeFontKey:SA,fonts:bA,activeFontSize:UA}},Ie.publish("postProcessText",vA),g=vA.text,ft=vA.mutex.isHex||!1;var Aa=bA[SA].encoding;Aa!=="WinAnsiEncoding"&&Aa!=="StandardEncoding"||(g=Zi(g,function(Ne,Re,rt){return[Cn(Ne),Re,rt]})),CA=qs(g),g=[];for(var Gn,qn,Vn,Ei=Array.isArray(CA[0])?1:0,Wn="",Li=function(Ne,Re,rt){var wt="";return rt instanceof ne?(rt=typeof $.angle=="number"?fn(rt,new ne(1,0,0,1,Ne,Re)):fn(new ne(1,0,0,1,Ne,Re),rt),S===_&&(rt=fn(new ne(1,0,0,-1,0,0),rt)),wt=rt.join(" ")+` Tm
224
+ `):wt=q(Ne)+" "+q(Re)+` Td
225
+ `,wt},Fr=0;Fr<CA.length;Fr++){switch(Wn="",Ei){case 1:Vn=(ft?"<":"(")+CA[Fr][0]+(ft?">":")"),Gn=parseFloat(CA[Fr][1]),qn=parseFloat(CA[Fr][2]);break;case 0:Vn=(ft?"<":"(")+CA[Fr]+(ft?">":")"),Gn=pn(b),qn=mn(K)}Mn!==void 0&&Mn[Fr]!==void 0&&(Wn=Mn[Fr]+` Tw
226
+ `),Fr===0?g.push(Wn+Li(Gn,qn,ht)+Vn):Ei===0?g.push(Wn+Vn):Ei===1&&g.push(Wn+Li(Gn,qn,ht)+Vn)}g=Ei===0?g.join(` Tj
227
+ T* `):g.join(` Tj
228
+ `),g+=` Tj
229
+ `;var tn=`BT
230
+ /`;return tn+=SA+" "+UA+` Tf
231
+ `,tn+=q(UA*bn)+` TL
232
+ `,tn+=wi+`
233
+ `,tn+=It,tn+=g,T(tn+="ET"),m[SA]=!0,Ke};var pc=f.__private__.clip=f.clip=function(g){return T(g==="evenodd"?"W*":"W"),this};f.clipEvenOdd=function(){return pc("evenodd")},f.__private__.discardPath=f.discardPath=function(){return T("n"),this};var Zr=f.__private__.isValidStyle=function(g){var b=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(g)!==-1&&(b=!0),b};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(g){return Zr(g)&&(c=g),this};var ro=f.__private__.getStyle=f.getStyle=function(g){var b=c;switch(g){case"D":case"S":b="S";break;case"F":b="f";break;case"FD":case"DF":b="B";break;case"f":case"f*":case"B":case"B*":b=g}return b},no=f.close=function(){return T("h"),this};f.stroke=function(){return T("S"),this},f.fill=function(g){return Xi("f",g),this},f.fillEvenOdd=function(g){return Xi("f*",g),this},f.fillStroke=function(g){return Xi("B",g),this},f.fillStrokeEvenOdd=function(g){return Xi("B*",g),this};var Xi=function(g,b){He(b)==="object"?Bc(b,g):T(g)},mi=function(g){g===null||S===_&&g===void 0||(g=ro(g),T(g))};function mc(g,b,K,$,rA){var vA=new ws(b||this.boundingBox,K||this.xStep,$||this.yStep,this.gState,rA||this.matrix);vA.stream=this.stream;var CA=g+"$$"+this.cloneIndex+++"$$";return Br(CA,vA),vA}var Bc=function(g,b){var K=Ce[g.key],$=NA[K];if($ instanceof Ni)T("q"),T(wc(b)),$.gState&&f.setGState($.gState),T(g.matrix.toString()+" cm"),T("/"+K+" sh"),T("Q");else if($ instanceof ws){var rA=new ne(1,0,0,-1,0,yi());g.matrix&&(rA=rA.multiply(g.matrix||dn),K=mc.call($,g.key,g.boundingBox,g.xStep,g.yStep,rA).id),T("q"),T("/Pattern cs"),T("/"+K+" scn"),$.gState&&f.setGState($.gState),T(b),T("Q")}},wc=function(g){switch(g){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Ts=f.moveTo=function(g,b){return T(q(j(g))+" "+q(D(b))+" m"),this},io=f.lineTo=function(g,b){return T(q(j(g))+" "+q(D(b))+" l"),this},Tr=f.curveTo=function(g,b,K,$,rA,vA){return T([q(j(g)),q(D(b)),q(j(K)),q(D($)),q(j(rA)),q(D(vA)),"c"].join(" ")),this};f.__private__.line=f.line=function(g,b,K,$,rA){if(isNaN(g)||isNaN(b)||isNaN(K)||isNaN($)||!Zr(rA))throw new Error("Invalid arguments passed to jsPDF.line");return S===L?this.lines([[K-g,$-b]],g,b,[1,1],rA||"S"):this.lines([[K-g,$-b]],g,b,[1,1]).stroke()},f.__private__.lines=f.lines=function(g,b,K,$,rA,vA){var CA,VA,XA,le,de,Le,Je,ht,Ke,Bt,ft,It;if(typeof g=="number"&&(It=K,K=b,b=g,g=It),$=$||[1,1],vA=vA||!1,isNaN(b)||isNaN(K)||!Array.isArray(g)||!Array.isArray($)||!Zr(rA)||typeof vA!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Ts(b,K),CA=$[0],VA=$[1],le=g.length,Bt=b,ft=K,XA=0;XA<le;XA++)(de=g[XA]).length===2?(Bt=de[0]*CA+Bt,ft=de[1]*VA+ft,io(Bt,ft)):(Le=de[0]*CA+Bt,Je=de[1]*VA+ft,ht=de[2]*CA+Bt,Ke=de[3]*VA+ft,Bt=de[4]*CA+Bt,ft=de[5]*VA+ft,Tr(Le,Je,ht,Ke,Bt,ft));return vA&&no(),mi(rA),this},f.path=function(g){for(var b=0;b<g.length;b++){var K=g[b],$=K.c;switch(K.op){case"m":Ts($[0],$[1]);break;case"l":io($[0],$[1]);break;case"c":Tr.apply(this,$);break;case"h":no()}}return this},f.__private__.rect=f.rect=function(g,b,K,$,rA){if(isNaN(g)||isNaN(b)||isNaN(K)||isNaN($)||!Zr(rA))throw new Error("Invalid arguments passed to jsPDF.rect");return S===L&&($=-$),T([q(j(g)),q(D(b)),q(j(K)),q(j($)),"re"].join(" ")),mi(rA),this},f.__private__.triangle=f.triangle=function(g,b,K,$,rA,vA,CA){if(isNaN(g)||isNaN(b)||isNaN(K)||isNaN($)||isNaN(rA)||isNaN(vA)||!Zr(CA))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[K-g,$-b],[rA-K,vA-$],[g-rA,b-vA]],g,b,[1,1],CA,!0),this},f.__private__.roundedRect=f.roundedRect=function(g,b,K,$,rA,vA,CA){if(isNaN(g)||isNaN(b)||isNaN(K)||isNaN($)||isNaN(rA)||isNaN(vA)||!Zr(CA))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var VA=4/3*(Math.SQRT2-1);return rA=Math.min(rA,.5*K),vA=Math.min(vA,.5*$),this.lines([[K-2*rA,0],[rA*VA,0,rA,vA-vA*VA,rA,vA],[0,$-2*vA],[0,vA*VA,-rA*VA,vA,-rA,vA],[2*rA-K,0],[-rA*VA,0,-rA,-vA*VA,-rA,-vA],[0,2*vA-$],[0,-vA*VA,rA*VA,-vA,rA,-vA]],g+rA,b,[1,1],CA,!0),this},f.__private__.ellipse=f.ellipse=function(g,b,K,$,rA){if(isNaN(g)||isNaN(b)||isNaN(K)||isNaN($)||!Zr(rA))throw new Error("Invalid arguments passed to jsPDF.ellipse");var vA=4/3*(Math.SQRT2-1)*K,CA=4/3*(Math.SQRT2-1)*$;return Ts(g+K,b),Tr(g+K,b-CA,g+vA,b-$,g,b-$),Tr(g-vA,b-$,g-K,b-CA,g-K,b),Tr(g-K,b+CA,g-vA,b+$,g,b+$),Tr(g+vA,b+$,g+K,b+CA,g+K,b),mi(rA),this},f.__private__.circle=f.circle=function(g,b,K,$){if(isNaN(g)||isNaN(b)||isNaN(K)||!Zr($))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(g,b,K,K,$)},f.setFont=function(g,b,K){return K&&(b=X(b,K)),SA=Za(g,b,{disableWarning:!1}),this};var vc=f.__private__.getFont=f.getFont=function(){return bA[Za.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var g,b,K={};for(g in GA)if(GA.hasOwnProperty(g))for(b in K[g]=[],GA[g])GA[g].hasOwnProperty(b)&&K[g].push(b);return K},f.addFont=function(g,b,K,$,rA){var vA=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&vA.indexOf(arguments[3])!==-1?rA=arguments[3]:arguments[3]&&vA.indexOf(arguments[3])==-1&&(K=X(K,$)),$a.call(this,g,b,K,rA=rA||"Identity-H")};var Bi,Ds=t.lineWidth||.200025,yc=f.__private__.getLineWidth=f.getLineWidth=function(){return Ds},ce=f.__private__.setLineWidth=f.setLineWidth=function(g){return Ds=g,T(q(j(g))+" w"),this};f.__private__.setLineDash=Ae.API.setLineDash=Ae.API.setLineDashPattern=function(g,b){if(g=g||[],b=b||0,isNaN(b)||!Array.isArray(g))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return g=g.map(function(K){return q(j(K))}).join(" "),b=q(j(b)),T("["+g+"] "+b+" d"),this};var bc=f.__private__.getLineHeight=f.getLineHeight=function(){return UA*Bi};f.__private__.getLineHeight=f.getLineHeight=function(){return UA*Bi};var Cc=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(g){return typeof(g=g||1.15)=="number"&&(Bi=g),this},Fc=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return Bi};Cc(t.lineHeight);var pn=f.__private__.getHorizontalCoordinate=function(g){return j(g)},mn=f.__private__.getVerticalCoordinate=function(g){return S===_?g:re[R].mediaBox.topRightY-re[R].mediaBox.bottomLeftY-j(g)},Qc=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(g){return q(pn(g))},Uc=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(g){return q(mn(g))},Ji=t.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return $r(Ji)},f.__private__.setStrokeColor=f.setDrawColor=function(g,b,K,$){return Ji=Hr({ch1:g,ch2:b,ch3:K,ch4:$,pdfColorType:"draw",precision:2}),T(Ji),this};var Rs=t.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return $r(Rs)},f.__private__.setFillColor=f.setFillColor=function(g,b,K,$){return Rs=Hr({ch1:g,ch2:b,ch3:K,ch4:$,pdfColorType:"fill",precision:2}),T(Rs),this};var wi=t.textColor||"0 g",xc=f.__private__.getTextColor=f.getTextColor=function(){return $r(wi)};f.__private__.setTextColor=f.setTextColor=function(g,b,K,$){return wi=Hr({ch1:g,ch2:b,ch3:K,ch4:$,pdfColorType:"text",precision:3}),this};var Bn=t.charSpace,Ec=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat(Bn||0)};f.__private__.setCharSpace=f.setCharSpace=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Bn=g,this};var Os=0;f.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},f.__private__.setLineCap=f.setLineCap=function(g){var b=f.CapJoinStyles[g];if(b===void 0)throw new Error("Line cap style of '"+g+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Os=b,T(b+" J"),this};var Ms=0;f.__private__.setLineJoin=f.setLineJoin=function(g){var b=f.CapJoinStyles[g];if(b===void 0)throw new Error("Line join style of '"+g+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ms=b,T(b+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(g){if(g=g||0,isNaN(g))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return T(q(j(g))+" M"),this},f.GState=Rl,f.setGState=function(g){(g=typeof g=="string"?te[ae[g]]:so(null,g)).equals(Fe)||(T("/"+g.id+" gs"),Fe=g)};var so=function(g,b){if(!g||!ae[g]){var K=!1;for(var $ in te)if(te.hasOwnProperty($)&&te[$].equals(b)){K=!0;break}if(K)b=te[$];else{var rA="GS"+(Object.keys(te).length+1).toString(10);te[rA]=b,b.id=rA}return g&&(ae[g]=b.id),Ie.publish("addGState",b),b}};f.addGState=function(g,b){return so(g,b),this},f.saveGraphicsState=function(){return T("q"),be.push({key:SA,size:UA,color:wi}),this},f.restoreGraphicsState=function(){T("Q");var g=be.pop();return SA=g.key,UA=g.size,wi=g.color,Fe=null,this},f.setCurrentTransformationMatrix=function(g){return T(g.toString()+" cm"),this},f.comment=function(g){return T("#"+g),this};var wn=function(g,b){var K=g||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return K},set:function(vA){isNaN(vA)||(K=parseFloat(vA))}});var $=b||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return $},set:function(vA){isNaN(vA)||($=parseFloat(vA))}});var rA="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return rA},set:function(vA){rA=vA.toString()}}),this},Ks=function(g,b,K,$){wn.call(this,g,b),this.type="rect";var rA=K||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return rA},set:function(CA){isNaN(CA)||(rA=parseFloat(CA))}});var vA=$||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return vA},set:function(CA){isNaN(CA)||(vA=parseFloat(CA))}}),this},Yi=function(){this.page=Be,this.currentPage=R,this.pages=xA.slice(0),this.pagesContext=re.slice(0),this.x=KA,this.y=_e,this.matrix=me,this.width=Gs(R),this.height=oo(R),this.outputDestination=HA,this.id="",this.objectNumber=-1};Yi.prototype.restore=function(){Be=this.page,R=this.currentPage,re=this.pagesContext,xA=this.pages,KA=this.x,_e=this.y,me=this.matrix,ao(R,this.width),vn(R,this.height),HA=this.outputDestination};var js=function(g,b,K,$,rA){zr.push(new Yi),Be=R=0,xA=[],KA=g,_e=b,me=rA,Hs([K,$])};for(var vi in f.beginFormObject=function(g,b,K,$,rA){return js(g,b,K,$,rA),this},f.endFormObject=function(g){return function(b){if(nr[b])zr.pop().restore();else{var K=new Yi,$="Xo"+(Object.keys(Ve).length+1).toString(10);K.id=$,nr[b]=$,Ve[$]=K,Ie.publish("addFormObject",K),zr.pop().restore()}}(g),this},f.doFormObject=function(g,b){var K=Ve[nr[g]];return T("q"),T(b.toString()+" cm"),T("/"+K.id+" Do"),T("Q"),this},f.getFormObject=function(g){var b=Ve[nr[g]];return{x:b.x,y:b.y,width:b.width,height:b.height,matrix:b.matrix}},f.save=function(g,b){return g=g||"generated.pdf",(b=b||{}).returnPromise=b.returnPromise||!1,b.returnPromise===!1?(_i($i(Yr()),g),typeof _i.unload=="function"&&oe.setTimeout&&setTimeout(_i.unload,911),this):new Promise(function(K,$){try{var rA=_i($i(Yr()),g);typeof _i.unload=="function"&&oe.setTimeout&&setTimeout(_i.unload,911),K(rA)}catch(vA){$(vA.message)}})},Ae.API)Ae.API.hasOwnProperty(vi)&&(vi==="events"&&Ae.API.events.length?function(g,b){var K,$,rA;for(rA=b.length-1;rA!==-1;rA--)K=b[rA][0],$=b[rA][1],g.subscribe.apply(g,[K].concat(typeof $=="function"?[$]:$))}(Ie,Ae.API.events):f[vi]=Ae.API[vi]);function Gs(g){return re[g].mediaBox.topRightX-re[g].mediaBox.bottomLeftX}function ao(g,b){re[g].mediaBox.topRightX=b+re[g].mediaBox.bottomLeftX}function oo(g){return re[g].mediaBox.topRightY-re[g].mediaBox.bottomLeftY}function vn(g,b){re[g].mediaBox.topRightY=b+re[g].mediaBox.bottomLeftY}var yn=f.getPageWidth=function(g){return Gs(g=g||R)/TA},lo=f.setPageWidth=function(g,b){ao(g,b*TA)},yi=f.getPageHeight=function(g){return oo(g=g||R)/TA},co=f.setPageHeight=function(g,b){vn(g,b*TA)};return f.internal={pdfEscape:yr,getStyle:ro,getFont:vc,getFontSize:MA,getCharSpace:Ec,getTextColor:xc,getLineHeight:bc,getLineHeightFactor:Fc,getLineWidth:yc,write:kA,getHorizontalCoordinate:pn,getVerticalCoordinate:mn,getCoordinateString:Qc,getVerticalCoordinateString:Uc,collections:{},newObject:Ye,newAdditionalObject:di,newObjectDeferred:Ut,newObjectDeferredBegin:St,getFilters:Pr,putStream:vr,events:Ie,scaleFactor:TA,pageSize:{getWidth:function(){return yn(R)},setWidth:function(g){lo(R,g)},getHeight:function(){return yi(R)},setHeight:function(g){co(R,g)}},encryptionOptions:h,encryption:mt,getEncryptor:function(g){return h!==null?mt.encryptor(g,0):function(b){return b}},output:eo,getNumberOfPages:Ya,get pages(){return xA},out:T,f2:x,f3:P,getPageInfo:gn,getPageInfoByObjId:to,getCurrentPageInfo:gc,getPDFVersion:y,Point:wn,Rectangle:Ks,Matrix:ne,hasHotfix:br},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return yn(R)},set:function(g){lo(R,g)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return yi(R)},set:function(g){co(R,g)},enumerable:!0,configurable:!0}),(function(g){for(var b=0,K=JA.length;b<K;b++){var $=$a.call(this,g[b][0],g[b][1],g[b][2],JA[b][3],!0);d===!1&&(m[$]=!0);var rA=g[b][0].split("-");za({id:$,fontName:rA[0],fontStyle:rA[1]||""})}Ie.publish("addFonts",{fonts:bA,dictionary:GA})}).call(f,JA),SA="F1",Xa(n,e),Ie.publish("initialized"),f}ds.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},ds.prototype.toHexString=function(t){return t.split("").map(function(A){return("0"+(255&A.charCodeAt(0)).toString(16)).slice(-2)}).join("")},ds.prototype.hexToBytes=function(t){for(var A=[],e=0;e<t.length;e+=2)A.push(String.fromCharCode(parseInt(t.substr(e,2),16)));return A.join("")},ds.prototype.processOwnerPassword=function(t,A){return Bh(mh(A).substr(0,5),t)},ds.prototype.encryptor=function(t,A){var e=mh(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&A,A>>8&255)).substr(0,10);return function(r){return Bh(e,r)}},Rl.prototype.equals=function(t){var A,e="id,objectNumber,equals";if(!t||He(t)!==He(this))return!1;var r=0;for(A in this)if(!(e.indexOf(A)>=0)){if(this.hasOwnProperty(A)&&!t.hasOwnProperty(A)||this[A]!==t[A])return!1;r++}for(A in t)t.hasOwnProperty(A)&&e.indexOf(A)<0&&r--;return r===0},Ae.API={events:[]},Ae.version="4.0.0";var et=Ae.API,of=1,Gi=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ss=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ue=function(t){return t.toFixed(2)},ei=function(t){return t.toFixed(5)};et.__acroform__={};var rr=function(t,A){t.prototype=Object.create(A.prototype),t.prototype.constructor=t},mg=function(t){return t*of},on=function(t){var A=new cm,e=qA.internal.getHeight(t)||0,r=qA.internal.getWidth(t)||0;return A.BBox=[0,0,Number(ue(r)),Number(ue(e))],A},xb=et.__acroform__.setBit=function(t,A){if(t=t||0,A=A||0,isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<A},Eb=et.__acroform__.clearBit=function(t,A){if(t=t||0,A=A||0,isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<A)},Lb=et.__acroform__.getBit=function(t,A){if(isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<A?1:0},ot=et.__acroform__.getBitForPdf=function(t,A){if(isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Lb(t,A-1)},lt=et.__acroform__.setBitForPdf=function(t,A){if(isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return xb(t,A-1)},ct=et.__acroform__.clearBitForPdf=function(t,A){if(isNaN(t)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Eb(t,A-1)},Sb=et.__acroform__.calculateCoordinates=function(t,A){var e=A.internal.getHorizontalCoordinate,r=A.internal.getVerticalCoordinate,n=t[0],i=t[1],s=t[2],a=t[3],o={};return o.lowerLeft_X=e(n)||0,o.lowerLeft_Y=r(i+a)||0,o.upperRight_X=e(n+s)||0,o.upperRight_Y=r(i)||0,[Number(ue(o.lowerLeft_X)),Number(ue(o.lowerLeft_Y)),Number(ue(o.upperRight_X)),Number(ue(o.upperRight_Y))]},Ib=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var A=[],e=t._V||t.DV,r=wh(t,e),n=t.scope.internal.getFont(t.fontName,t.fontStyle).id;A.push("/Tx BMC"),A.push("q"),A.push("BT"),A.push(t.scope.__private__.encodeColorString(t.color)),A.push("/"+n+" "+ue(r.fontSize)+" Tf"),A.push("1 0 0 1 0 0 Tm"),A.push(r.text),A.push("ET"),A.push("Q"),A.push("EMC");var i=on(t);return i.scope=t.scope,i.stream=A.join(`
234
+ `),i}},wh=function(t,A){var e=t.fontSize===0?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},n=(A=(A=A.substr(0,1)=="("?A.substr(1):A).substr(A.length-1)==")"?A.substr(0,A.length-1):A).split(" ");n=t.multiline?n.map(function(x){return x.split(`
235
+ `)}):n.map(function(x){return[x]});var i=e,s=qA.internal.getHeight(t)||0;s=s<0?-s:s;var a=qA.internal.getWidth(t)||0;a=a<0?-a:a;var o=function(x,P,j){if(x+1<n.length){var D=P+" "+n[x+1][0];return Ko(D,t,j).width<=a-4}return!1};i++;A:for(;i>0;){A="",i--;var c,h,d=Ko("3",t,i).height,m=t.multiline?s-i:(s-d)/2,f=m+=2,w=0,y=0,F=0;if(i<=0){A=`(...) Tj
236
+ `,A+="% Width of Text: "+Ko(A,t,i=12).width+", FieldWidth:"+a+`
237
+ `;break}for(var v="",L=0,_=0;_<n.length;_++)if(n.hasOwnProperty(_)){var S=!1;if(n[_].length!==1&&F!==n[_].length-1){if((d+2)*(L+2)+2>s)continue A;v+=n[_][F],S=!0,y=_,_--}else{v=(v+=n[_][F]+" ").substr(v.length-1)==" "?v.substr(0,v.length-1):v;var V=parseInt(_),z=o(V,v,i),X=_>=n.length-1;if(z&&!X){v+=" ",F=0;continue}if(z||X){if(X)y=V;else if(t.multiline&&(d+2)*(L+2)+2>s)continue A}else{if(!t.multiline||(d+2)*(L+2)+2>s)continue A;y=V}}for(var q="",k=w;k<=y;k++){var Y=n[k];if(t.multiline){if(k===y){q+=Y[F]+" ",F=(F+1)%Y.length;continue}if(k===w){q+=Y[Y.length-1]+" ";continue}}q+=Y[0]+" "}switch(q=q.substr(q.length-1)==" "?q.substr(0,q.length-1):q,h=Ko(q,t,i).width,t.textAlign){case"right":c=a-h-2;break;case"center":c=(a-h)/2;break;default:c=2}A+=ue(c)+" "+ue(f)+` Td
238
+ `,A+="("+Gi(q)+`) Tj
239
+ `,A+=-ue(c)+` 0 Td
240
+ `,f=-(i+2),h=0,w=S?y:y+1,L++,v=""}break}return r.text=A,r.fontSize=i,r},Ko=function(t,A,e){var r=A.scope.internal.getFont(A.fontName,A.fontStyle),n=A.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:A.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:n}},_b={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Nb=function(t,A){var e={type:"reference",object:t};A.internal.getPageInfo(t.page).pageContext.annotations.find(function(r){return r.type===e.type&&r.object===e.object})===void 0&&A.internal.getPageInfo(t.page).pageContext.annotations.push(e)},kb=function(t,A){if(A.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(qr.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(_b)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");of=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new um,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in r)if(r.hasOwnProperty(n)){var i=r[n];i.objId=void 0,i.hasAnnotation&&Nb(i,e)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(e){(function(r,n){var i=!r;for(var s in r||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(s)){var a=r[s],o=[],c=a.Rect;if(a.Rect&&(a.Rect=Sb(a.Rect,n)),n.internal.newObjectDeferredBegin(a.objId,!0),a.DA=qA.createDefaultAppearanceStream(a),He(a)==="object"&&typeof a.getKeyValueListForStream=="function"&&(o=a.getKeyValueListForStream()),a.Rect=c,a.hasAppearanceStream&&!a.appearanceStreamContent){var h=Ib(a);o.push({key:"AP",value:"<</N "+h+">>"}),n.internal.acroformPlugin.xForms.push(h)}if(a.appearanceStreamContent){var d="";for(var m in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(m)){var f=a.appearanceStreamContent[m];if(d+="/"+m+" ",d+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var s in f)if(f.hasOwnProperty(s)){var w=f[s];typeof w=="function"&&(w=w.call(n,a)),d+="/"+s+" "+w+" ",n.internal.acroformPlugin.xForms.indexOf(w)>=0||n.internal.acroformPlugin.xForms.push(w)}}else typeof(w=f)=="function"&&(w=w.call(n,a)),d+="/"+s+" "+w,n.internal.acroformPlugin.xForms.indexOf(w)>=0||n.internal.acroformPlugin.xForms.push(w);d+=">>"}o.push({key:"AP",value:`<<
241
+ `+d+">>"})}n.internal.putStream({additionalKeyValues:o,objectId:a.objId}),n.internal.out("endobj")}i&&function(y,F){for(var v in y)if(y.hasOwnProperty(v)){var L=v,_=y[v];F.internal.newObjectDeferredBegin(_.objId,!0),He(_)==="object"&&typeof _.putStream=="function"&&_.putStream(),delete y[L]}}(n.internal.acroformPlugin.xForms,n)})(e,t)}),t.internal.acroformPlugin.isInitialized=!0}},lm=et.__acroform__.arrayToPdfArray=function(t,A,e){var r=function(s){return s};if(Array.isArray(t)){for(var n="[",i=0;i<t.length;i++)switch(i!==0&&(n+=" "),He(t[i])){case"boolean":case"number":case"object":n+=t[i].toString();break;case"string":t[i].substr(0,1)!=="/"?(A!==void 0&&e&&(r=e.internal.getEncryptor(A)),n+="("+Gi(r(t[i].toString()))+")"):n+=t[i].toString()}return n+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},pu=function(t,A,e){var r=function(n){return n};return A!==void 0&&e&&(r=e.internal.getEncryptor(A)),(t=t||"").toString(),"("+Gi(r(t))+")"},ln=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ln.prototype.toString=function(){return this.objId+" 0 R"},ln.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},ln.prototype.getKeyValueListForStream=function(){var t=[],A=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var e in A)if(Object.getOwnPropertyDescriptor(this,A[e]).configurable===!1){var r=A[e],n=this[r];n&&(Array.isArray(n)?t.push({key:r,value:lm(n,this.objId,this.scope)}):n instanceof ln?(n.scope=this.scope,t.push({key:r,value:n.objId+" 0 R"})):typeof n!="function"&&t.push({key:r,value:n}))}return t};var cm=function(){ln.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,A=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return A},set:function(e){A=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};rr(cm,ln);var um=function(){ln.call(this);var t,A=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return A.length>0?A:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return A}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(r){return r};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Gi(e(t))+")"}},set:function(e){t=e}})};rr(um,ln);var qr=function t(){ln.call(this);var A=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return A},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute F supplied.');A=v}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!ot(A,3)},set:function(v){v?this.F=lt(A,3):this.F=ct(A,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute Ff supplied.');e=v}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(v){r=v!==void 0?v:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(v){r[0]=v}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(v){r[1]=v}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(v){r[2]=v}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(v){r[3]=v}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(v){switch(v){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=v;break;default:throw new Error('Invalid value "'+v+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof Ol)return;i="FieldObject"+t.FieldNum++}var v=function(L){return L};return this.scope&&(v=this.scope.internal.getEncryptor(this.objId)),"("+Gi(v(i))+")"},set:function(v){i=v.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(v){i=v}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(v){s=v}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(v){a=v}});var o=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return o},set:function(v){o=v}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/of:c},set:function(v){c=v}});var h="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return h},set:function(v){h=v}});var d="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof Ol||this instanceof Ti))return pu(d,this.objId,this.scope)},set:function(v){v=v.toString(),d=v}});var m=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(m)return this instanceof Lt==0?pu(m,this.objId,this.scope):m},set:function(v){v=v.toString(),m=this instanceof Lt==0?v.substr(0,1)==="("?ss(v.substr(1,v.length-2)):ss(v):v}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Lt==1?ss(m.substr(1,m.length-1)):m},set:function(v){v=v.toString(),m=this instanceof Lt==1?"/"+v:v}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(v){this.V=v}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof Lt==0?pu(f,this.objId,this.scope):f},set:function(v){v=v.toString(),f=this instanceof Lt==0?v.substr(0,1)==="("?ss(v.substr(1,v.length-2)):ss(v):v}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Lt==1?ss(f.substr(1,f.length-1)):f},set:function(v){v=v.toString(),f=this instanceof Lt==1?"/"+v:v}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var w,y=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return y},set:function(v){v=!!v,y=v}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(w)return w},set:function(v){w=v}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,1)},set:function(v){v?this.Ff=lt(this.Ff,1):this.Ff=ct(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,2)},set:function(v){v?this.Ff=lt(this.Ff,2):this.Ff=ct(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,3)},set:function(v){v?this.Ff=lt(this.Ff,3):this.Ff=ct(this.Ff,3)}});var F=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(F!==null)return F},set:function(v){if([0,1,2].indexOf(v)===-1)throw new Error('Invalid value "'+v+'" for attribute Q supplied.');F=v}}),Object.defineProperty(this,"textAlign",{get:function(){var v;switch(F){case 0:default:v="left";break;case 1:v="center";break;case 2:v="right"}return v},configurable:!0,enumerable:!0,set:function(v){switch(v){case"right":case 2:F=2;break;case"center":case 1:F=1;break;default:F=0}}})};rr(qr,ln);var Cs=function(){qr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var A=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return lm(A,this.objId,this.scope)},set:function(e){var r,n;n=[],typeof(r=e)=="string"&&(n=function(i,s,a){a||(a=1);for(var o,c=[];o=s.exec(i);)c.push(o[a]);return c}(r,/\((.*?)\)/g)),A=n}}),this.getOptions=function(){return A},this.setOptions=function(e){A=e,this.sort&&A.sort()},this.addOption=function(e){e=(e=e||"").toString(),A.push(e),this.sort&&A.sort()},this.removeOption=function(e,r){for(r=r||!1,e=(e=e||"").toString();A.indexOf(e)!==-1&&(A.splice(A.indexOf(e),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,18)},set:function(e){e?this.Ff=lt(this.Ff,18):this.Ff=ct(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=lt(this.Ff,19):this.Ff=ct(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,20)},set:function(e){e?(this.Ff=lt(this.Ff,20),A.sort()):this.Ff=ct(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,22)},set:function(e){e?this.Ff=lt(this.Ff,22):this.Ff=ct(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,23)},set:function(e){e?this.Ff=lt(this.Ff,23):this.Ff=ct(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,27)},set:function(e){e?this.Ff=lt(this.Ff,27):this.Ff=ct(this.Ff,27)}}),this.hasAppearanceStream=!1};rr(Cs,qr);var Fs=function(){Cs.call(this),this.fontName="helvetica",this.combo=!1};rr(Fs,Cs);var Qs=function(){Fs.call(this),this.combo=!0};rr(Qs,Fs);var Bl=function(){Qs.call(this),this.edit=!0};rr(Bl,Qs);var Lt=function(){qr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,15)},set:function(e){e?this.Ff=lt(this.Ff,15):this.Ff=ct(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,16)},set:function(e){e?this.Ff=lt(this.Ff,16):this.Ff=ct(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,17)},set:function(e){e?this.Ff=lt(this.Ff,17):this.Ff=ct(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,26)},set:function(e){e?this.Ff=lt(this.Ff,26):this.Ff=ct(this.Ff,26)}});var t,A={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(i){return i};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(A).length!==0){var r,n=[];for(r in n.push("<<"),A)n.push("/"+r+" ("+Gi(e(A[r]))+")");return n.push(">>"),n.join(`
242
+ `)}},set:function(e){He(e)==="object"&&(A=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return A.CA||""},set:function(e){typeof e=="string"&&(A.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};rr(Lt,qr);var wl=function(){Lt.call(this),this.pushButton=!0};rr(wl,Lt);var Us=function(){Lt.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(A){t=A!==void 0?A:[]}})};rr(Us,Lt);var Ol=function(){var t,A;qr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(n){A=n}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(a){return a};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var i,s=[];for(i in s.push("<<"),r)s.push("/"+i+" ("+Gi(n(r[i]))+")");return s.push(">>"),s.join(`
243
+ `)},set:function(n){He(n)==="object"&&(r=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(n){typeof n=="string"&&(r.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+n}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=qA.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};rr(Ol,qr),Us.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var A in this.Kids)if(this.Kids.hasOwnProperty(A)){var e=this.Kids[A];e.appearanceStreamContent=t.createAppearanceStream(e.optionName),e.caption=t.getCA()}},Us.prototype.createOption=function(t){var A=new Ol;return A.Parent=this,A.optionName=t,this.Kids.push(A),Hb.call(this.scope,A),A};var vl=function(){Lt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=qA.CheckBox.createAppearanceStream()};rr(vl,Lt);var Ti=function(){qr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,13)},set:function(A){A?this.Ff=lt(this.Ff,13):this.Ff=ct(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,21)},set:function(A){A?this.Ff=lt(this.Ff,21):this.Ff=ct(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,23)},set:function(A){A?this.Ff=lt(this.Ff,23):this.Ff=ct(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,24)},set:function(A){A?this.Ff=lt(this.Ff,24):this.Ff=ct(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,25)},set:function(A){A?this.Ff=lt(this.Ff,25):this.Ff=ct(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,26)},set:function(A){A?this.Ff=lt(this.Ff,26):this.Ff=ct(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(A){t=A}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(A){Number.isInteger(A)&&(t=A)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};rr(Ti,qr);var yl=function(){Ti.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!ot(this.Ff,14)},set:function(t){t?this.Ff=lt(this.Ff,14):this.Ff=ct(this.Ff,14)}}),this.password=!0};rr(yl,Ti);var qA={CheckBox:{createAppearanceStream:function(){return{N:{On:qA.CheckBox.YesNormal},D:{On:qA.CheckBox.YesPushDown,Off:qA.CheckBox.OffPushDown}}},YesPushDown:function(t){var A=on(t);A.scope=t.scope;var e=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),i=wh(t,t.caption);return e.push("0.749023 g"),e.push("0 0 "+ue(qA.internal.getWidth(t))+" "+ue(qA.internal.getHeight(t))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+ue(i.fontSize)+" Tf "+n),e.push("BT"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC"),A.stream=e.join(`
244
+ `),A},YesNormal:function(t){var A=on(t);A.scope=t.scope;var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),n=[],i=qA.internal.getHeight(t),s=qA.internal.getWidth(t),a=wh(t,t.caption);return n.push("1 g"),n.push("0 0 "+ue(s)+" "+ue(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+ue(s-1)+" "+ue(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+e+" "+ue(a.fontSize)+" Tf "+r),n.push(a.text),n.push("ET"),n.push("Q"),A.stream=n.join(`
245
+ `),A},OffPushDown:function(t){var A=on(t);A.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+ue(qA.internal.getWidth(t))+" "+ue(qA.internal.getHeight(t))+" re"),e.push("f"),A.stream=e.join(`
246
+ `),A}},RadioButton:{Circle:{createAppearanceStream:function(t){var A={D:{Off:qA.RadioButton.Circle.OffPushDown},N:{}};return A.N[t]=qA.RadioButton.Circle.YesNormal,A.D[t]=qA.RadioButton.Circle.YesPushDown,A},getCA:function(){return"l"},YesNormal:function(t){var A=on(t);A.scope=t.scope;var e=[],r=qA.internal.getWidth(t)<=qA.internal.getHeight(t)?qA.internal.getWidth(t)/4:qA.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=qA.internal.Bezier_C,i=Number((r*n).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+ei(qA.internal.getWidth(t)/2)+" "+ei(qA.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),e.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),e.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),e.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),e.push("f"),e.push("Q"),A.stream=e.join(`
247
+ `),A},YesPushDown:function(t){var A=on(t);A.scope=t.scope;var e=[],r=qA.internal.getWidth(t)<=qA.internal.getHeight(t)?qA.internal.getWidth(t)/4:qA.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*qA.internal.Bezier_C).toFixed(5)),s=Number((r*qA.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+ei(qA.internal.getWidth(t)/2)+" "+ei(qA.internal.getHeight(t)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+ei(qA.internal.getWidth(t)/2)+" "+ei(qA.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),e.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),e.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),e.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),e.push("f"),e.push("Q"),A.stream=e.join(`
248
+ `),A},OffPushDown:function(t){var A=on(t);A.scope=t.scope;var e=[],r=qA.internal.getWidth(t)<=qA.internal.getHeight(t)?qA.internal.getWidth(t)/4:qA.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*qA.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+ei(qA.internal.getWidth(t)/2)+" "+ei(qA.internal.getHeight(t)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),A.stream=e.join(`
249
+ `),A}},Cross:{createAppearanceStream:function(t){var A={D:{Off:qA.RadioButton.Cross.OffPushDown},N:{}};return A.N[t]=qA.RadioButton.Cross.YesNormal,A.D[t]=qA.RadioButton.Cross.YesPushDown,A},getCA:function(){return"8"},YesNormal:function(t){var A=on(t);A.scope=t.scope;var e=[],r=qA.internal.calculateCross(t);return e.push("q"),e.push("1 1 "+ue(qA.internal.getWidth(t)-2)+" "+ue(qA.internal.getHeight(t)-2)+" re"),e.push("W"),e.push("n"),e.push(ue(r.x1.x)+" "+ue(r.x1.y)+" m"),e.push(ue(r.x2.x)+" "+ue(r.x2.y)+" l"),e.push(ue(r.x4.x)+" "+ue(r.x4.y)+" m"),e.push(ue(r.x3.x)+" "+ue(r.x3.y)+" l"),e.push("s"),e.push("Q"),A.stream=e.join(`
250
+ `),A},YesPushDown:function(t){var A=on(t);A.scope=t.scope;var e=qA.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+ue(qA.internal.getWidth(t))+" "+ue(qA.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+ue(qA.internal.getWidth(t)-2)+" "+ue(qA.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(ue(e.x1.x)+" "+ue(e.x1.y)+" m"),r.push(ue(e.x2.x)+" "+ue(e.x2.y)+" l"),r.push(ue(e.x4.x)+" "+ue(e.x4.y)+" m"),r.push(ue(e.x3.x)+" "+ue(e.x3.y)+" l"),r.push("s"),r.push("Q"),A.stream=r.join(`
251
+ `),A},OffPushDown:function(t){var A=on(t);A.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+ue(qA.internal.getWidth(t))+" "+ue(qA.internal.getHeight(t))+" re"),e.push("f"),A.stream=e.join(`
252
+ `),A}}},createDefaultAppearanceStream:function(t){var A=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+A+" "+t.fontSize+" Tf "+e}};qA.internal={Bezier_C:.551915024494,calculateCross:function(t){var A=qA.internal.getWidth(t),e=qA.internal.getHeight(t),r=Math.min(A,e);return{x1:{x:(A-r)/2,y:(e-r)/2+r},x2:{x:(A-r)/2+r,y:(e-r)/2},x3:{x:(A-r)/2,y:(e-r)/2},x4:{x:(A-r)/2+r,y:(e-r)/2+r}}}},qA.internal.getWidth=function(t){var A=0;return He(t)==="object"&&(A=mg(t.Rect[2])),A},qA.internal.getHeight=function(t){var A=0;return He(t)==="object"&&(A=mg(t.Rect[3])),A};var Hb=et.addField=function(t){if(kb(this,t),!(t instanceof qr))throw new Error("Invalid argument passed to jsPDF.addField.");var A;return(A=t).scope.internal.acroformPlugin.printedOut&&(A.scope.internal.acroformPlugin.printedOut=!1,A.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),A.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(A),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};et.AcroFormChoiceField=Cs,et.AcroFormListBox=Fs,et.AcroFormComboBox=Qs,et.AcroFormEditBox=Bl,et.AcroFormButton=Lt,et.AcroFormPushButton=wl,et.AcroFormRadioButton=Us,et.AcroFormCheckBox=vl,et.AcroFormTextField=Ti,et.AcroFormPasswordField=yl,et.AcroFormAppearance=qA,et.AcroForm={ChoiceField:Cs,ListBox:Fs,ComboBox:Qs,EditBox:Bl,Button:Lt,PushButton:wl,RadioButton:Us,CheckBox:vl,TextField:Ti,PasswordField:yl,Appearance:qA},Ae.AcroForm={ChoiceField:Cs,ListBox:Fs,ComboBox:Qs,EditBox:Bl,Button:Lt,PushButton:wl,RadioButton:Us,CheckBox:vl,TextField:Ti,PasswordField:yl,Appearance:qA};Ae.AcroForm;function hm(t){return t.reduce(function(A,e,r){return A[e]=r,A},{})}(function(t){var A="addImage_";t.__addimage__={};var e="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=t.__addimage__.getImageFileTypeByImageData=function(x,P){var j,D,J,lA,fA,aA=e;if((P=P||e)==="RGBA"||x.data!==void 0&&x.data instanceof Uint8ClampedArray&&"height"in x&&"width"in x)return"RGBA";if(z(x))for(fA in r)for(J=r[fA],j=0;j<J.length;j+=1){for(lA=!0,D=0;D<J[j].length;D+=1)if(J[j][D]!==void 0&&J[j][D]!==x[D]){lA=!1;break}if(lA===!0){aA=fA;break}}else for(fA in r)for(J=r[fA],j=0;j<J.length;j+=1){for(lA=!0,D=0;D<J[j].length;D+=1)if(J[j][D]!==void 0&&J[j][D]!==x.charCodeAt(D)){lA=!1;break}if(lA===!0){aA=fA;break}}return aA===e&&P!==e&&(aA=P),aA},i=function x(P){for(var j=this.internal.write,D=this.internal.putStream,J=(0,this.internal.getFilters)();J.indexOf("FlateEncode")!==-1;)J.splice(J.indexOf("FlateEncode"),1);P.objectId=this.internal.newObject();var lA=[];if(lA.push({key:"Type",value:"/XObject"}),lA.push({key:"Subtype",value:"/Image"}),lA.push({key:"Width",value:P.width}),lA.push({key:"Height",value:P.height}),P.colorSpace===v.INDEXED?lA.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(P.palette.length/3-1)+" "+("sMask"in P&&P.sMask!==void 0?P.objectId+2:P.objectId+1)+" 0 R]"}):(lA.push({key:"ColorSpace",value:"/"+P.colorSpace}),P.colorSpace===v.DEVICE_CMYK&&lA.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),lA.push({key:"BitsPerComponent",value:P.bitsPerComponent}),"decodeParameters"in P&&P.decodeParameters!==void 0&&lA.push({key:"DecodeParms",value:"<<"+P.decodeParameters+">>"}),"transparency"in P&&Array.isArray(P.transparency)&&P.transparency.length>0){for(var fA="",aA=0,dA=P.transparency.length;aA<dA;aA++)fA+=P.transparency[aA]+" "+P.transparency[aA]+" ";lA.push({key:"Mask",value:"["+fA+"]"})}P.sMask!==void 0&&lA.push({key:"SMask",value:P.objectId+1+" 0 R"});var QA=P.filter!==void 0?["/"+P.filter]:void 0;if(D({data:P.data,additionalKeyValues:lA,alreadyAppliedFilters:QA,objectId:P.objectId}),j("endobj"),"sMask"in P&&P.sMask!==void 0){var hA,U=(hA=P.sMaskBitsPerComponent)!==null&&hA!==void 0?hA:P.bitsPerComponent,R={width:P.width,height:P.height,colorSpace:"DeviceGray",bitsPerComponent:U,data:P.sMask};"filter"in P&&(R.decodeParameters="/Predictor ".concat(P.predictor," /Colors 1 /BitsPerComponent ").concat(U," /Columns ").concat(P.width),R.filter=P.filter),x.call(this,R)}if(P.colorSpace===v.INDEXED){var G=this.internal.newObject();D({data:q(new Uint8Array(P.palette)),objectId:G}),j("endobj")}},s=function(){var x=this.internal.collections[A+"images"];for(var P in x)i.call(this,x[P])},a=function(){var x,P=this.internal.collections[A+"images"],j=this.internal.write;for(var D in P)j("/I"+(x=P[D]).index,x.objectId,"0","R")},o=function(){this.internal.collections[A+"images"]||(this.internal.collections[A+"images"]={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",a))},c=function(){var x=this.internal.collections[A+"images"];return o.call(this),x},h=function(){return Object.keys(this.internal.collections[A+"images"]).length},d=function(x){return typeof t["process"+x.toUpperCase()]=="function"},m=function(x){return He(x)==="object"&&x.nodeType===1},f=function(x,P){if(x.nodeName==="IMG"&&x.hasAttribute("src")){var j=""+x.getAttribute("src");if(j.indexOf("data:image/")===0)return ml(unescape(j).split("base64,").pop());var D=t.loadFile(j,!0);if(D!==void 0)return D}if(x.nodeName==="CANVAS"){if(x.width===0||x.height===0)throw new Error("Given canvas must have data. Canvas width: "+x.width+", height: "+x.height);var J;switch(P){case"PNG":J="image/png";break;case"WEBP":J="image/webp";break;default:J="image/jpeg"}return ml(x.toDataURL(J,1).split("base64,").pop())}},w=function(x){var P=this.internal.collections[A+"images"];if(P){for(var j in P)if(x===P[j].alias)return P[j]}},y=function(x,P,j){return x||P||(x=-96,P=-96),x<0&&(x=-1*j.width*72/x/this.internal.scaleFactor),P<0&&(P=-1*j.height*72/P/this.internal.scaleFactor),x===0&&(x=P*j.width/j.height),P===0&&(P=x*j.height/j.width),[x,P]},F=function(x,P,j,D,J,lA){var fA=y.call(this,j,D,J),aA=this.internal.getCoordinateString,dA=this.internal.getVerticalCoordinateString,QA=c.call(this);if(j=fA[0],D=fA[1],QA[J.index]=J,lA){lA*=Math.PI/180;var hA=Math.cos(lA),U=Math.sin(lA),R=function(W){return W.toFixed(4)},G=[R(hA),R(U),R(-1*U),R(hA),0,0,"cm"]}this.internal.write("q"),lA?(this.internal.write([1,"0","0",1,aA(x),dA(P+D),"cm"].join(" ")),this.internal.write(G.join(" ")),this.internal.write([aA(j),"0","0",aA(D),"0","0","cm"].join(" "))):this.internal.write([aA(j),"0","0",aA(D),aA(x),dA(P+D),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+J.index+" Do"),this.internal.write("Q")},v=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var L=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},_=t.__addimage__.sHashCode=function(x){var P,j,D=0;if(typeof x=="string")for(j=x.length,P=0;P<j;P++)D=(D<<5)-D+x.charCodeAt(P),D|=0;else if(z(x))for(j=x.byteLength/2,P=0;P<j;P++)D=(D<<5)-D+x[P],D|=0;return D},S=t.__addimage__.validateStringAsBase64=function(x){(x=x||"").toString().trim();var P=!0;return x.length===0&&(P=!1),x.length%4!=0&&(P=!1),/^[A-Za-z0-9+/]+$/.test(x.substr(0,x.length-2))===!1&&(P=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(x.substr(-2))===!1&&(P=!1),P},V=t.__addimage__.extractImageFromDataUrl=function(x){if(x==null||!(x=x.trim()).startsWith("data:"))return null;var P=x.indexOf(",");return P<0?null:x.substring(0,P).trim().endsWith("base64")?x.substring(P+1):null};t.__addimage__.isArrayBuffer=function(x){return x instanceof ArrayBuffer};var z=t.__addimage__.isArrayBufferView=function(x){return x instanceof Int8Array||x instanceof Uint8Array||x instanceof Uint8ClampedArray||x instanceof Int16Array||x instanceof Uint16Array||x instanceof Int32Array||x instanceof Uint32Array||x instanceof Float32Array||x instanceof Float64Array},X=t.__addimage__.binaryStringToUint8Array=function(x){for(var P=x.length,j=new Uint8Array(P),D=0;D<P;D++)j[D]=x.charCodeAt(D);return j},q=t.__addimage__.arrayBufferToBinaryString=function(x){for(var P="",j=z(x)?x:new Uint8Array(x),D=0;D<j.length;D+=8192)P+=String.fromCharCode.apply(null,j.subarray(D,D+8192));return P};t.addImage=function(){var x,P,j,D,J,lA,fA,aA,dA;if(typeof arguments[1]=="number"?(P=e,j=arguments[1],D=arguments[2],J=arguments[3],lA=arguments[4],fA=arguments[5],aA=arguments[6],dA=arguments[7]):(P=arguments[1],j=arguments[2],D=arguments[3],J=arguments[4],lA=arguments[5],fA=arguments[6],aA=arguments[7],dA=arguments[8]),He(x=arguments[0])==="object"&&!m(x)&&"imageData"in x){var QA=x;x=QA.imageData,P=QA.format||P||e,j=QA.x||j||0,D=QA.y||D||0,J=QA.w||QA.width||J,lA=QA.h||QA.height||lA,fA=QA.alias||fA,aA=QA.compression||aA,dA=QA.rotation||QA.angle||dA}var hA=this.internal.getFilters();if(aA===void 0&&hA.indexOf("FlateEncode")!==-1&&(aA="SLOW"),isNaN(j)||isNaN(D))throw new Error("Invalid coordinates passed to jsPDF.addImage");o.call(this);var U=k.call(this,x,P,fA,aA);return F.call(this,j,D,J,lA,U,dA),this};var k=function(x,P,j,D){var J,lA,fA;if(typeof x=="string"&&n(x)===e){x=unescape(x);var aA=Y(x,!1);(aA!==""||(aA=t.loadFile(x,!0))!==void 0)&&(x=aA)}if(m(x)&&(x=f(x,P)),P=n(x,P),!d(P))throw new Error("addImage does not support files of type '"+P+"', please ensure that a plugin for '"+P+"' support is added.");if(((fA=j)==null||fA.length===0)&&(j=function(dA){return typeof dA=="string"||z(dA)?_(dA):z(dA.data)?_(dA.data):null}(x)),(J=w.call(this,j))||(x instanceof Uint8Array||P==="RGBA"||(lA=x,x=X(x)),J=this["process"+P.toUpperCase()](x,h.call(this),j,function(dA){return dA&&typeof dA=="string"&&(dA=dA.toUpperCase()),dA in t.image_compression?dA:L.NONE}(D),lA)),!J)throw new Error("An unknown error occurred whilst processing the image.");return J},Y=t.__addimage__.convertBase64ToBinaryString=function(x,P){P=typeof P!="boolean"||P;var j,D="";if(typeof x=="string"){var J;j=(J=V(x))!==null&&J!==void 0?J:x;try{D=ml(j)}catch(lA){if(P)throw S(j)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+lA.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return D};t.getImageProperties=function(x){var P,j,D="";if(m(x)&&(x=f(x)),typeof x=="string"&&n(x)===e&&((D=Y(x,!1))===""&&(D=t.loadFile(x)||""),x=D),j=n(x),!d(j))throw new Error("addImage does not support files of type '"+j+"', please ensure that a plugin for '"+j+"' support is added.");if(x instanceof Uint8Array||(x=X(x)),!(P=this["process"+j.toUpperCase()](x)))throw new Error("An unknown error occurred whilst processing the image");return P.fileType=j,P}})(Ae.API),function(t){var A=function(e){if(e!==void 0&&e!="")return!0};Ae.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(e){for(var r,n,i,s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(e.objId),c=e.pageContext.annotations,h=!1,d=0;d<c.length&&!h;d++)switch((r=c[d]).type){case"link":(A(r.options.url)||A(r.options.pageNumber))&&(h=!0);break;case"reference":case"text":case"freetext":h=!0}if(h!=0){this.internal.write("/Annots [");for(var m=0;m<c.length;m++){r=c[m];var f=this.internal.pdfEscape,w=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var y=this.internal.newAdditionalObject(),F=this.internal.newAdditionalObject(),v=this.internal.getEncryptor(y.objId),L=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+s(r.bounds.x)+" "+a(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y)+"] ")+"/Contents ("+f(v(r.contents))+")",i+=" /Popup "+F.objId+" 0 R",i+=" /P "+o.objId+" 0 R",i+=" /T ("+f(v(L))+") >>",y.content=i;var _=y.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+s(r.bounds.x+30)+" "+a(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w+30)+" "+a(r.bounds.y)+"] ")+" /Parent "+_,r.open&&(i+=" /Open true"),i+=" >>",F.content=i,this.internal.write(y.objId,"0 R",F.objId,"0 R");break;case"freetext":n="/Rect ["+s(r.bounds.x)+" "+a(r.bounds.y)+" "+s(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y+r.bounds.h)+"] ";var S=r.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+f(w(r.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+S+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var V=this.annotations._nameMap[r.options.name];r.options.pageNumber=V.page,r.options.top=V.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",i="",r.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+f(w(r.options.url))+") >>";else if(r.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,i+=" /FitV "+r.options.left+"]";break;default:var z=a(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+z+" "+r.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),t.createAnnotation=function(e){var r=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":r.pageContext.annotations.push(e)}},t.link=function(e,r,n,i,s){var a=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:o(e),y:c(r),w:o(e+n),h:c(r+i)},options:s,type:"link"})},t.textWithLink=function(e,r,n,i){var s,a,o=this.getTextWidth(e),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){a=i.maxWidth;var h=this.splitTextToSize(e,a).length;s=Math.ceil(c*h)}else a=o,s=c;return this.text(e,r,n,i),n+=.2*c,i.align==="center"&&(r-=o/2),i.align==="right"&&(r-=o),this.link(r,n-c,a,s,i),o},t.getTextWidth=function(e){var r=this.internal.getFontSize();return this.getStringUnitWidth(e)*r/this.internal.scaleFactor}}(Ae.API),function(t){var A={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},e={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];t.__arabicParser__={};var i=t.__arabicParser__.isInArabicSubstitutionA=function(y){return A[y.charCodeAt(0)]!==void 0},s=t.__arabicParser__.isArabicLetter=function(y){return typeof y=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(y)},a=t.__arabicParser__.isArabicEndLetter=function(y){return s(y)&&i(y)&&A[y.charCodeAt(0)].length<=2},o=t.__arabicParser__.isArabicAlfLetter=function(y){return s(y)&&n.indexOf(y.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(y){return s(y)&&i(y)&&A[y.charCodeAt(0)].length>=1};var c=t.__arabicParser__.arabicLetterHasFinalForm=function(y){return s(y)&&i(y)&&A[y.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(y){return s(y)&&i(y)&&A[y.charCodeAt(0)].length>=3};var h=t.__arabicParser__.arabicLetterHasMedialForm=function(y){return s(y)&&i(y)&&A[y.charCodeAt(0)].length==4},d=t.__arabicParser__.resolveLigatures=function(y){var F=0,v=e,L="",_=0;for(F=0;F<y.length;F+=1)v[y.charCodeAt(F)]!==void 0?(_++,typeof(v=v[y.charCodeAt(F)])=="number"&&(L+=String.fromCharCode(v),v=e,_=0),F===y.length-1&&(v=e,L+=y.charAt(F-(_-1)),F-=_-1,_=0)):(v=e,L+=y.charAt(F-_),F-=_,_=0);return L};t.__arabicParser__.isArabicDiacritic=function(y){return y!==void 0&&r[y.charCodeAt(0)]!==void 0};var m=t.__arabicParser__.getCorrectForm=function(y,F,v){return s(y)?i(y)===!1?-1:!c(y)||!s(F)&&!s(v)||!s(v)&&a(F)||a(y)&&!s(F)||a(y)&&o(F)||a(y)&&a(F)?0:h(y)&&s(F)&&!a(F)&&s(v)&&c(v)?3:a(y)||!s(v)?1:2:-1},f=function(y){var F=0,v=0,L=0,_="",S="",V="",z=(y=y||"").split("\\s+"),X=[];for(F=0;F<z.length;F+=1){for(X.push(""),v=0;v<z[F].length;v+=1)_=z[F][v],S=z[F][v-1],V=z[F][v+1],s(_)?(L=m(_,S,V),X[F]+=L!==-1?String.fromCharCode(A[_.charCodeAt(0)][L]):_):X[F]+=_;X[F]=d(X[F])}return X.join(" ")},w=t.__arabicParser__.processArabic=t.processArabic=function(){var y,F=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,v=[];if(Array.isArray(F)){var L=0;for(v=[],L=0;L<F.length;L+=1)Array.isArray(F[L])?v.push([f(F[L][0]),F[L][1],F[L][2]]):v.push([f(F[L])]);y=v}else y=f(F);return typeof arguments[0]=="string"?y:(arguments[0].text=y,arguments[0])};t.events.push(["preProcessText",w])}(Ae.API),Ae.API.autoPrint=function(t){var A;return(t=t||{}).variant=t.variant||"non-conform",t.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){A=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+A+" 0 R")})),this},function(t){var A=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(a){e=a}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(a){r=isNaN(a)||Number.isInteger(a)===!1||a<0?150:a,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(a){n=isNaN(a)||Number.isInteger(a)===!1||a<0?300:a,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(a){i=a}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(a){s=a}}),Object.defineProperty(this,"parentNode",{})};A.prototype.getContext=function(e,r){var n;if((e=e||"2d")!=="2d")return null;for(n in r)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=r[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},A.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new A,this.canvas.pdf=this}])}(Ae.API),function(t){var A={left:0,top:0,bottom:0,right:0},e=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},A),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var o=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return o},set:function(y){o=y}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(y){c=y}});var h=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return h},set:function(y){h=y}});var d=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return d},set:function(y){d=y}});var m=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return m},set:function(y){m=y}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(y){f=y}});var w=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return w},set:function(y){w=y}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(o){return r.call(this),this.internal.__cell__.headerFunction=typeof o=="function"?o:void 0,this},t.getTextDimensions=function(o,c){r.call(this);var h=(c=c||{}).fontSize||this.getFontSize(),d=c.font||this.getFont(),m=c.scaleFactor||this.internal.scaleFactor,f=0,w=0,y=0,F=this;if(!Array.isArray(o)&&typeof o!="string"){if(typeof o!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");o=String(o)}var v=c.maxWidth;v>0?typeof o=="string"?o=this.splitTextToSize(o,v):Object.prototype.toString.call(o)==="[object Array]"&&(o=o.reduce(function(_,S){return _.concat(F.splitTextToSize(S,v))},[])):o=Array.isArray(o)?o:[o];for(var L=0;L<o.length;L++)f<(y=this.getStringUnitWidth(o[L],{font:d})*h)&&(f=y);return f!==0&&(w=o.length),{w:f/=m,h:Math.max((w*h*this.getLineHeightFactor()-h*(this.getLineHeightFactor()-1))/m,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var o=this.internal.__cell__.margins||A;return this.internal.__cell__.lastCell=new i(o.left,o.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=t.cell=function(){var o;o=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var c=this.internal.__cell__.lastCell,h=this.internal.__cell__.padding,d=this.internal.__cell__.margins||A,m=this.internal.__cell__.tableHeaderRow,f=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===o.lineNumber?(o.x=(c.x||0)+(c.width||0),o.y=c.y||0):c.y+c.height+o.height+d.bottom>this.getPageHeight()?(this.cellAddPage(),o.y=d.top,f&&m&&(this.printHeaderRow(o.lineNumber,!0),o.y+=m[0].height)):o.y=c.y+c.height||o.y),o.text[0]!==void 0&&(this.rect(o.x,o.y,o.width,o.height,e===!0?"FD":void 0),o.align==="right"?this.text(o.text,o.x+o.width-h,o.y+h,{align:"right",baseline:"top"}):o.align==="center"?this.text(o.text,o.x+o.width/2,o.y+h,{align:"center",baseline:"top",maxWidth:o.width-h-h}):this.text(o.text,o.x+h,o.y+h,{align:"left",baseline:"top",maxWidth:o.width-h-h})),this.internal.__cell__.lastCell=o,this};t.table=function(o,c,h,d,m){if(r.call(this),!h)throw new Error("No data for PDF table.");var f,w,y,F,v=[],L=[],_=[],S={},V={},z=[],X=[],q=(m=m||{}).autoSize||!1,k=m.printHeaders!==!1,Y=m.css&&m.css["font-size"]!==void 0?16*m.css["font-size"]:m.fontSize||12,x=m.margins||Object.assign({width:this.getPageWidth()},A),P=typeof m.padding=="number"?m.padding:3,j=m.headerBackgroundColor||"#c8c8c8",D=m.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=k,this.internal.__cell__.margins=x,this.internal.__cell__.table_font_size=Y,this.internal.__cell__.padding=P,this.internal.__cell__.headerBackgroundColor=j,this.internal.__cell__.headerTextColor=D,this.setFontSize(Y),d==null)L=v=Object.keys(h[0]),_=v.map(function(){return"left"});else if(Array.isArray(d)&&He(d[0])==="object")for(v=d.map(function(QA){return QA.name}),L=d.map(function(QA){return QA.prompt||QA.name||""}),_=d.map(function(QA){return QA.align||"left"}),f=0;f<d.length;f+=1)V[d[f].name]=.7499990551181103*d[f].width;else Array.isArray(d)&&typeof d[0]=="string"&&(L=v=d,_=v.map(function(){return"left"}));if(q||Array.isArray(d)&&typeof d[0]=="string")for(f=0;f<v.length;f+=1){for(S[F=v[f]]=h.map(function(QA){return QA[F]}),this.setFont(void 0,"bold"),z.push(this.getTextDimensions(L[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),w=S[F],this.setFont(void 0,"normal"),y=0;y<w.length;y+=1)z.push(this.getTextDimensions(w[y],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);V[F]=Math.max.apply(null,z)+P+P,z=[]}if(k){var J={};for(f=0;f<v.length;f+=1)J[v[f]]={},J[v[f]].text=L[f],J[v[f]].align=_[f];var lA=a.call(this,J,V);X=v.map(function(QA){return new i(o,c,V[QA],lA,J[QA].text,void 0,J[QA].align)}),this.setTableHeaderRow(X),this.printHeaderRow(1,!1)}var fA=d.reduce(function(QA,hA){return QA[hA.name]=hA.align,QA},{});for(f=0;f<h.length;f+=1){"rowStart"in m&&m.rowStart instanceof Function&&m.rowStart({row:f,data:h[f]},this);var aA=a.call(this,h[f],V);for(y=0;y<v.length;y+=1){var dA=h[f][v[y]];"cellStart"in m&&m.cellStart instanceof Function&&m.cellStart({row:f,col:y,data:dA},this),s.call(this,new i(o,c,V[v[y]],aA,dA,f+2,fA[v[y]]))}}return this.internal.__cell__.table_x=o,this.internal.__cell__.table_y=c,this};var a=function(o,c){var h=this.internal.__cell__.padding,d=this.internal.__cell__.table_font_size,m=this.internal.scaleFactor;return Object.keys(o).map(function(f){var w=o[f];return this.splitTextToSize(w.hasOwnProperty("text")?w.text:w,c[f]-h-h)},this).map(function(f){return this.getLineHeightFactor()*f.length*d/m+h+h},this).reduce(function(f,w){return Math.max(f,w)},0)};t.setTableHeaderRow=function(o){r.call(this),this.internal.__cell__.tableHeaderRow=o},t.printHeaderRow=function(o,c){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var h;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var d=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(d[0],d[1],d[2],d[3],void 0,-1)}this.setFont(void 0,"bold");for(var m=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){h=this.internal.__cell__.tableHeaderRow[f].clone(),c&&(h.y=this.internal.__cell__.margins.top||0,m.push(h)),h.lineNumber=o;var w=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,h),this.setTextColor(w)}m.length>0&&this.setTableHeaderRow(m),this.setFont(void 0,"normal"),e=!1}}(Ae.API);var fm={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},dm=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],vh=hm(dm),gm=[100,200,300,400,500,600,700,800,900],Pb=hm(gm);function mu(t){var A=t.family.replace(/"|'/g,"").toLowerCase(),e=function(i){return fm[i=i||"normal"]?i:"normal"}(t.style),r=function(i){return i?typeof i=="number"?i>=100&&i<=900&&i%100==0?i:400:/^\d00$/.test(i)?parseInt(i):i==="bold"?700:400:400}(t.weight),n=function(i){return typeof vh[i=i||"normal"]=="number"?i:"normal"}(t.stretch);return{family:A,style:e,weight:r,stretch:n,src:t.src||[],ref:t.ref||{name:A,style:[n,e,r].join(" ")}}}function Bg(t,A,e,r){var n;for(n=e;n>=0&&n<A.length;n+=r)if(t[A[n]])return t[A[n]];for(n=e;n>=0&&n<A.length;n-=r)if(t[A[n]])return t[A[n]]}var Tb={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},wg={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function vg(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function yg(t){return t.trimLeft()}function Db(t,A){for(var e=0;e<t.length;){if(t.charAt(e)===A)return[t.substring(0,e),t.substring(e+1)];e+=1}return null}function Rb(t){var A=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return A===null?null:[A[0],t.substring(A[0].length)]}var jo,bg,Cg,as,Go,Fg,Qg,Ug,Bu=["times"];function xg(t,A,e,r,n){var i=4,s=Lg;switch(n){case Ae.API.image_compression.FAST:i=1,s=Eg;break;case Ae.API.image_compression.MEDIUM:i=6,s=Sg;break;case Ae.API.image_compression.SLOW:i=9,s=Ig}t=function(o,c,h,d){for(var m,f=o.length/c,w=new Uint8Array(o.length+f),y=[Ob,Eg,Lg,Sg,Ig],F=0;F<f;F+=1){var v=F*c,L=o.subarray(v,v+c);if(d)w.set(d(L,h,m),v+F);else{for(var _=y.length,S=[],V=0;V<_;V+=1)S[V]=y[V](L,h,m);var z=Kb(S.concat());w.set(S[z],v+F)}m=L}return w}(t,A,Math.ceil(e*r/8),s);var a=fh(t,{level:i});return Ae.API.__addimage__.arrayBufferToBinaryString(a)}function Ob(t){var A=Array.apply([],t);return A.unshift(0),A}function Eg(t,A){var e=t.length,r=[];r[0]=1;for(var n=0;n<e;n+=1){var i=t[n-A]||0;r[n+1]=t[n]-i+256&255}return r}function Lg(t,A,e){var r=t.length,n=[];n[0]=2;for(var i=0;i<r;i+=1){var s=e&&e[i]||0;n[i+1]=t[i]-s+256&255}return n}function Sg(t,A,e){var r=t.length,n=[];n[0]=3;for(var i=0;i<r;i+=1){var s=t[i-A]||0,a=e&&e[i]||0;n[i+1]=t[i]+256-(s+a>>>1)&255}return n}function Ig(t,A,e){var r=t.length,n=[];n[0]=4;for(var i=0;i<r;i+=1){var s=Mb(t[i-A]||0,e&&e[i]||0,e&&e[i-A]||0);n[i+1]=t[i]-s+256&255}return n}function Mb(t,A,e){if(t===A&&A===e)return t;var r=Math.abs(A-e),n=Math.abs(t-e),i=Math.abs(t+A-e-e);return r<=n&&r<=i?t:n<=i?A:e}function Kb(t){var A=t.map(function(e){return e.reduce(function(r,n){return r+Math.abs(n)},0)});return A.indexOf(Math.min.apply(null,A))}function wu(t,A,e){var r=A*e,n=Math.floor(r/8),i=16-(r-8*n+e),s=(1<<e)-1;return pm(t,n)>>i&s}function _g(t,A,e,r){var n=e*r,i=Math.floor(n/8),s=16-(n-8*i+r),a=(1<<r)-1,o=(A&a)<<s;(function(c,h,d){if(h+1<c.byteLength)c.setUint16(h,d,!1);else{var m=d>>8&255;c.setUint8(h,m)}})(t,i,pm(t,i)&~(a<<s)&65535|o)}function pm(t,A){return A+1<t.byteLength?t.getUint16(A,!1):t.getUint8(A)<<8}function jb(t){var A=0;if(t[A++]!==71||t[A++]!==73||t[A++]!==70||t[A++]!==56||(t[A++]+1&253)!=56||t[A++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=t[A++]|t[A++]<<8,r=t[A++]|t[A++]<<8,n=t[A++],i=n>>7,s=1<<1+(7&n);t[A++],t[A++];var a=null,o=null;i&&(a=A,o=s,A+=3*s);var c=!0,h=[],d=0,m=null,f=0,w=null;for(this.width=e,this.height=r;c&&A<t.length;)switch(t[A++]){case 33:switch(t[A++]){case 255:if(t[A]!==11||t[A+1]==78&&t[A+2]==69&&t[A+3]==84&&t[A+4]==83&&t[A+5]==67&&t[A+6]==65&&t[A+7]==80&&t[A+8]==69&&t[A+9]==50&&t[A+10]==46&&t[A+11]==48&&t[A+12]==3&&t[A+13]==1&&t[A+16]==0)A+=14,w=t[A++]|t[A++]<<8,A++;else for(A+=12;;){if(!((x=t[A++])>=0))throw Error("Invalid block size");if(x===0)break;A+=x}break;case 249:if(t[A++]!==4||t[A+4]!==0)throw new Error("Invalid graphics extension block.");var y=t[A++];d=t[A++]|t[A++]<<8,m=t[A++],1&y||(m=null),f=y>>2&7,A++;break;case 254:for(;;){if(!((x=t[A++])>=0))throw Error("Invalid block size");if(x===0)break;A+=x}break;default:throw new Error("Unknown graphic control label: 0x"+t[A-1].toString(16))}break;case 44:var F=t[A++]|t[A++]<<8,v=t[A++]|t[A++]<<8,L=t[A++]|t[A++]<<8,_=t[A++]|t[A++]<<8,S=t[A++],V=S>>6&1,z=1<<1+(7&S),X=a,q=o,k=!1;S>>7&&(k=!0,X=A,q=z,A+=3*z);var Y=A;for(A++;;){var x;if(!((x=t[A++])>=0))throw Error("Invalid block size");if(x===0)break;A+=x}h.push({x:F,y:v,width:L,height:_,has_local_palette:k,palette_offset:X,palette_size:q,data_offset:Y,data_length:A-Y,transparent_index:m,interlaced:!!V,delay:d,disposal:f});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+t[A-1].toString(16))}this.numFrames=function(){return h.length},this.loopCount=function(){return w},this.frameInfo=function(P){if(P<0||P>=h.length)throw new Error("Frame index out of range.");return h[P]},this.decodeAndBlitFrameBGRA=function(P,j){var D=this.frameInfo(P),J=D.width*D.height,lA=new Uint8Array(J);Ng(t,D.data_offset,lA,J);var fA=D.palette_offset,aA=D.transparent_index;aA===null&&(aA=256);var dA=D.width,QA=e-dA,hA=dA,U=4*(D.y*e+D.x),R=4*((D.y+D.height)*e+D.x),G=U,W=4*QA;D.interlaced===!0&&(W+=4*e*7);for(var eA=8,nA=0,gA=lA.length;nA<gA;++nA){var pA=lA[nA];if(hA===0&&(hA=dA,(G+=W)>=R&&(W=4*QA+4*e*(eA-1),G=U+(dA+QA)*(eA<<1),eA>>=1)),pA===aA)G+=4;else{var wA=t[fA+3*pA],xA=t[fA+3*pA+1],DA=t[fA+3*pA+2];j[G++]=DA,j[G++]=xA,j[G++]=wA,j[G++]=255}--hA}},this.decodeAndBlitFrameRGBA=function(P,j){var D=this.frameInfo(P),J=D.width*D.height,lA=new Uint8Array(J);Ng(t,D.data_offset,lA,J);var fA=D.palette_offset,aA=D.transparent_index;aA===null&&(aA=256);var dA=D.width,QA=e-dA,hA=dA,U=4*(D.y*e+D.x),R=4*((D.y+D.height)*e+D.x),G=U,W=4*QA;D.interlaced===!0&&(W+=4*e*7);for(var eA=8,nA=0,gA=lA.length;nA<gA;++nA){var pA=lA[nA];if(hA===0&&(hA=dA,(G+=W)>=R&&(W=4*QA+4*e*(eA-1),G=U+(dA+QA)*(eA<<1),eA>>=1)),pA===aA)G+=4;else{var wA=t[fA+3*pA],xA=t[fA+3*pA+1],DA=t[fA+3*pA+2];j[G++]=wA,j[G++]=xA,j[G++]=DA,j[G++]=255}--hA}}}function Ng(t,A,e,r){for(var n=t[A++],i=1<<n,s=i+1,a=s+1,o=n+1,c=(1<<o)-1,h=0,d=0,m=0,f=t[A++],w=new Int32Array(4096),y=null;;){for(;h<16&&f!==0;)d|=t[A++]<<h,h+=8,f===1?f=t[A++]:--f;if(h<o)break;var F=d&c;if(d>>=o,h-=o,F!==i){if(F===s)break;for(var v=F<a?F:y,L=0,_=v;_>i;)_=w[_]>>8,++L;var S=_;if(m+L+(v!==F?1:0)>r)return void Me.log("Warning, gif stream longer than expected.");e[m++]=S;var V=m+=L;for(v!==F&&(e[m++]=S),_=v;L--;)_=w[_],e[--V]=255&_,_>>=8;y!==null&&a<4096&&(w[a++]=y<<8|S,a>=c+1&&o<12&&(++o,c=c<<1|1)),y=F}else a=s+1,c=(1<<(o=n+1))-1,y=null}return m!==r&&Me.log("Warning, gif stream shorter than expected."),e}/**
250
253
  * @license
251
254
  Copyright (c) 2008, Adobe Systems Incorporated
252
255
  All rights reserved.
@@ -277,25 +280,25 @@ T* `):d.join(` Tj
277
280
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
278
281
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
279
282
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
280
- */function wu(t){var A,e,r,n,i,s=Math.floor,a=new Array(64),o=new Array(64),c=new Array(64),h=new Array(64),g=new Array(65535),m=new Array(65535),f=new Array(64),w=new Array(64),y=[],F=0,v=7,L=new Array(64),N=new Array(64),_=new Array(64),q=new Array(256),X=new Array(2048),J=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],G=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],Z=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],x=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],S=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],K=[0,1,2,3,4,5,6,7,8,9,10,11],T=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],z=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function lA(U,M){for(var j=0,$=0,AA=new Array,sA=1;sA<=16;sA++){for(var fA=1;fA<=U[sA];fA++)AA[M[$]]=[],AA[M[$]][0]=j,AA[M[$]][1]=sA,$++,j++;j*=2}return AA}function hA(U){for(var M=U[0],j=U[1]-1;j>=0;)M&1<<j&&(F|=1<<v),j--,--v<0&&(F==255?(iA(255),iA(0)):iA(F),v=7,F=0)}function iA(U){y.push(U)}function dA(U){iA(U>>8&255),iA(255&U)}function QA(U,M,j,$,AA){for(var sA,fA=AA[0],gA=AA[240],yA=function(wA,SA){var PA,XA,qA,Qe,we,ie,JA,te,KA,se,kA=0;for(KA=0;KA<8;++KA){PA=wA[kA],XA=wA[kA+1],qA=wA[kA+2],Qe=wA[kA+3],we=wA[kA+4],ie=wA[kA+5],JA=wA[kA+6];var Ve=PA+(te=wA[kA+7]),Ce=PA-te,ge=XA+JA,le=XA-JA,Ue=qA+ie,YA=qA-ie,Re=Qe+we,re=Qe-we,ue=Ve+Re,We=Ve-Re,ve=ge+Ue,Ae=ge-Ue;wA[kA]=ue+ve,wA[kA+4]=ue-ve;var Le=.707106781*(Ae+We);wA[kA+2]=We+Le,wA[kA+6]=We-Le;var fi=.382683433*((ue=re+YA)-(Ae=le+Ce)),Tt=.5411961*ue+fi,un=1.306562965*Ae+fi,Vr=.707106781*(ve=YA+le),ee=Ce+Vr,hn=Ce-Vr;wA[kA+5]=hn+Tt,wA[kA+3]=hn-Tt,wA[kA+1]=ee+un,wA[kA+7]=ee-un,kA+=8}for(kA=0,KA=0;KA<8;++KA){PA=wA[kA],XA=wA[kA+8],qA=wA[kA+16],Qe=wA[kA+24],we=wA[kA+32],ie=wA[kA+40],JA=wA[kA+48];var fn=PA+(te=wA[kA+56]),pr=PA-te,mr=XA+JA,Je=XA-JA,Qt=qA+ie,Lt=qA-ie,di=Qe+we,Tn=Qe-we,_r=fn+di,Wr=fn-di,Nr=mr+Qt,Hr=mr-Qt;wA[kA]=_r+Nr,wA[kA+32]=_r-Nr;var Br=.707106781*(Hr+Wr);wA[kA+16]=Wr+Br,wA[kA+48]=Wr-Br;var gi=.382683433*((_r=Tn+Lt)-(Hr=Je+pr)),zr=.5411961*_r+gi,pi=1.306562965*Hr+gi,qi=.707106781*(Nr=Lt+Je),Vi=pr+qi,Wi=pr-qi;wA[kA+40]=Wi+zr,wA[kA+24]=Wi-zr,wA[kA+8]=Vi+pi,wA[kA+56]=Vi-pi,kA++}for(KA=0;KA<64;++KA)se=wA[KA]*SA[KA],f[KA]=se>0?se+.5|0:se-.5|0;return f}(U,M),xA=0;xA<64;++xA)w[J[xA]]=yA[xA];var NA=w[0]-j;j=w[0],NA==0?hA($[0]):(hA($[m[sA=32767+NA]]),hA(g[sA]));for(var _A=63;_A>0&&w[_A]==0;)_A--;if(_A==0)return hA(fA),j;for(var $A,P=1;P<=_A;){for(var IA=P;w[P]==0&&P<=_A;)++P;var fe=P-IA;if(fe>=16){$A=fe>>4;for(var ZA=1;ZA<=$A;++ZA)hA(gA);fe&=15}sA=32767+w[P],hA(AA[(fe<<4)+m[sA]]),hA(g[sA]),P++}return _A!=63&&hA(fA),j}function CA(U){U=Math.min(Math.max(U,1),100),i!=U&&(function(M){for(var j=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],$=0;$<64;$++){var AA=s((j[$]*M+50)/100);AA=Math.min(Math.max(AA,1),255),a[J[$]]=AA}for(var sA=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],fA=0;fA<64;fA++){var gA=s((sA[fA]*M+50)/100);gA=Math.min(Math.max(gA,1),255),o[J[fA]]=gA}for(var yA=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],xA=0,NA=0;NA<8;NA++)for(var _A=0;_A<8;_A++)c[xA]=1/(a[J[xA]]*yA[NA]*yA[_A]*8),h[xA]=1/(o[J[xA]]*yA[NA]*yA[_A]*8),xA++}(U<50?Math.floor(5e3/U):Math.floor(200-2*U)),i=U)}this.encode=function(U,M){M&&CA(M),y=new Array,F=0,v=7,dA(65496),dA(65504),dA(16),iA(74),iA(70),iA(73),iA(70),iA(0),iA(1),iA(1),iA(0),dA(1),dA(1),iA(0),iA(0),function(){dA(65499),dA(132),iA(0);for(var XA=0;XA<64;XA++)iA(a[XA]);iA(1);for(var qA=0;qA<64;qA++)iA(o[qA])}(),function(XA,qA){dA(65472),dA(17),iA(8),dA(qA),dA(XA),iA(3),iA(1),iA(17),iA(0),iA(2),iA(17),iA(1),iA(3),iA(17),iA(1)}(U.width,U.height),function(){dA(65476),dA(418),iA(0);for(var XA=0;XA<16;XA++)iA(G[XA+1]);for(var qA=0;qA<=11;qA++)iA(k[qA]);iA(16);for(var Qe=0;Qe<16;Qe++)iA(Z[Qe+1]);for(var we=0;we<=161;we++)iA(x[we]);iA(1);for(var ie=0;ie<16;ie++)iA(S[ie+1]);for(var JA=0;JA<=11;JA++)iA(K[JA]);iA(17);for(var te=0;te<16;te++)iA(T[te+1]);for(var KA=0;KA<=161;KA++)iA(z[KA])}(),dA(65498),dA(12),iA(3),iA(1),iA(0),iA(2),iA(17),iA(3),iA(17),iA(0),iA(63),iA(0);var j=0,$=0,AA=0;F=0,v=7,this.encode.displayName="_encode_";for(var sA,fA,gA,yA,xA,NA,_A,$A,P,IA=U.data,fe=U.width,ZA=U.height,wA=4*fe,SA=0;SA<ZA;){for(sA=0;sA<wA;){for(xA=wA*SA+sA,_A=-1,$A=0,P=0;P<64;P++)NA=xA+($A=P>>3)*wA+(_A=4*(7&P)),SA+$A>=ZA&&(NA-=wA*(SA+1+$A-ZA)),sA+_A>=wA&&(NA-=sA+_A-wA+4),fA=IA[NA++],gA=IA[NA++],yA=IA[NA++],L[P]=(X[fA]+X[gA+256|0]+X[yA+512|0]>>16)-128,N[P]=(X[fA+768|0]+X[gA+1024|0]+X[yA+1280|0]>>16)-128,_[P]=(X[fA+1280|0]+X[gA+1536|0]+X[yA+1792|0]>>16)-128;j=QA(L,c,j,A,r),$=QA(N,h,$,e,n),AA=QA(_,h,AA,e,n),sA+=32}SA+=8}if(v>=0){var PA=[];PA[1]=v+1,PA[0]=(1<<v+1)-1,hA(PA)}return dA(65497),new Uint8Array(y)},t=t||50,function(){for(var U=String.fromCharCode,M=0;M<256;M++)q[M]=U(M)}(),A=lA(G,k),e=lA(S,K),r=lA(Z,x),n=lA(T,z),function(){for(var U=1,M=2,j=1;j<=15;j++){for(var $=U;$<M;$++)m[32767+$]=j,g[32767+$]=[],g[32767+$][1]=j,g[32767+$][0]=$;for(var AA=-(M-1);AA<=-U;AA++)m[32767+AA]=j,g[32767+AA]=[],g[32767+AA][1]=j,g[32767+AA][0]=M-1+AA;U<<=1,M<<=1}}(),function(){for(var U=0;U<256;U++)X[U]=19595*U,X[U+256|0]=38470*U,X[U+512|0]=7471*U+32768,X[U+768|0]=-11059*U,X[U+1024|0]=-21709*U,X[U+1280|0]=32768*U+8421375,X[U+1536|0]=-27439*U,X[U+1792|0]=-5329*U}(),CA(t)}/**
283
+ */function vu(t){var A,e,r,n,i,s=Math.floor,a=new Array(64),o=new Array(64),c=new Array(64),h=new Array(64),d=new Array(65535),m=new Array(65535),f=new Array(64),w=new Array(64),y=[],F=0,v=7,L=new Array(64),_=new Array(64),S=new Array(64),V=new Array(256),z=new Array(2048),X=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],q=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],Y=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],x=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],P=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],j=[0,1,2,3,4,5,6,7,8,9,10,11],D=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],J=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function lA(U,R){for(var G=0,W=0,eA=new Array,nA=1;nA<=16;nA++){for(var gA=1;gA<=U[nA];gA++)eA[R[W]]=[],eA[R[W]][0]=G,eA[R[W]][1]=nA,W++,G++;G*=2}return eA}function fA(U){for(var R=U[0],G=U[1]-1;G>=0;)R&1<<G&&(F|=1<<v),G--,--v<0&&(F==255?(aA(255),aA(0)):aA(F),v=7,F=0)}function aA(U){y.push(U)}function dA(U){aA(U>>8&255),aA(255&U)}function QA(U,R,G,W,eA){for(var nA,gA=eA[0],pA=eA[240],wA=function(UA,_A){var MA,ee,YA,Ue,ge,se,pe,fe,SA,TA,KA=0;for(SA=0;SA<8;++SA){MA=UA[KA],ee=UA[KA+1],YA=UA[KA+2],Ue=UA[KA+3],ge=UA[KA+4],se=UA[KA+5],pe=UA[KA+6];var _e=MA+(fe=UA[KA+7]),me=MA-fe,bA=ee+pe,GA=ee-pe,be=YA+se,NA=YA-se,Ce=Ue+ge,te=Ue-ge,ae=_e+Ce,Fe=_e-Ce,Be=bA+be,re=bA-be;UA[KA]=ae+Be,UA[KA+4]=ae-Be;var Ie=.707106781*(re+Fe);UA[KA+2]=Fe+Ie,UA[KA+6]=Fe-Ie;var mr=.382683433*((ae=te+NA)-(re=GA+me)),Ve=.5411961*ae+mr,nr=1.306562965*re+mr,zr=.707106781*(Be=NA+GA),ne=me+zr,fn=me-zr;UA[KA+5]=fn+Ve,UA[KA+3]=fn-Ve,UA[KA+1]=ne+nr,UA[KA+7]=ne-nr,KA+=8}for(KA=0,SA=0;SA<8;++SA){MA=UA[KA],ee=UA[KA+8],YA=UA[KA+16],Ue=UA[KA+24],ge=UA[KA+32],se=UA[KA+40],pe=UA[KA+48];var dn=MA+(fe=UA[KA+56]),Br=MA-fe,wr=ee+pe,Ye=ee-pe,Ut=YA+se,St=YA-se,di=Ue+ge,Dn=Ue-ge,kr=dn+di,$r=dn-di,Hr=wr+Ut,Pr=wr-Ut;UA[KA]=kr+Hr,UA[KA+32]=kr-Hr;var vr=.707106781*(Pr+$r);UA[KA+16]=$r+vr,UA[KA+48]=$r-vr;var gi=.382683433*((kr=Dn+St)-(Pr=Ye+Br)),Xr=.5411961*kr+gi,pi=1.306562965*Pr+gi,qi=.707106781*(Hr=St+Ye),Vi=Br+qi,Wi=Br-qi;UA[KA+40]=Wi+Xr,UA[KA+24]=Wi-Xr,UA[KA+8]=Vi+pi,UA[KA+56]=Vi-pi,KA++}for(SA=0;SA<64;++SA)TA=UA[SA]*_A[SA],f[SA]=TA>0?TA+.5|0:TA-.5|0;return f}(U,R),xA=0;xA<64;++xA)w[X[xA]]=wA[xA];var DA=w[0]-G;G=w[0],DA==0?fA(W[0]):(fA(W[m[nA=32767+DA]]),fA(d[nA]));for(var HA=63;HA>0&&w[HA]==0;)HA--;if(HA==0)return fA(gA),G;for(var WA,T=1;T<=HA;){for(var kA=T;w[T]==0&&T<=HA;)++T;var ie=T-kA;if(ie>=16){WA=ie>>4;for(var JA=1;JA<=WA;++JA)fA(pA);ie&=15}nA=32767+w[T],fA(eA[(ie<<4)+m[nA]]),fA(d[nA]),T++}return HA!=63&&fA(gA),G}function hA(U){U=Math.min(Math.max(U,1),100),i!=U&&(function(R){for(var G=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],W=0;W<64;W++){var eA=s((G[W]*R+50)/100);eA=Math.min(Math.max(eA,1),255),a[X[W]]=eA}for(var nA=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],gA=0;gA<64;gA++){var pA=s((nA[gA]*R+50)/100);pA=Math.min(Math.max(pA,1),255),o[X[gA]]=pA}for(var wA=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],xA=0,DA=0;DA<8;DA++)for(var HA=0;HA<8;HA++)c[xA]=1/(a[X[xA]]*wA[DA]*wA[HA]*8),h[xA]=1/(o[X[xA]]*wA[DA]*wA[HA]*8),xA++}(U<50?Math.floor(5e3/U):Math.floor(200-2*U)),i=U)}this.encode=function(U,R){R&&hA(R),y=new Array,F=0,v=7,dA(65496),dA(65504),dA(16),aA(74),aA(70),aA(73),aA(70),aA(0),aA(1),aA(1),aA(0),dA(1),dA(1),aA(0),aA(0),function(){dA(65499),dA(132),aA(0);for(var ee=0;ee<64;ee++)aA(a[ee]);aA(1);for(var YA=0;YA<64;YA++)aA(o[YA])}(),function(ee,YA){dA(65472),dA(17),aA(8),dA(YA),dA(ee),aA(3),aA(1),aA(17),aA(0),aA(2),aA(17),aA(1),aA(3),aA(17),aA(1)}(U.width,U.height),function(){dA(65476),dA(418),aA(0);for(var ee=0;ee<16;ee++)aA(q[ee+1]);for(var YA=0;YA<=11;YA++)aA(k[YA]);aA(16);for(var Ue=0;Ue<16;Ue++)aA(Y[Ue+1]);for(var ge=0;ge<=161;ge++)aA(x[ge]);aA(1);for(var se=0;se<16;se++)aA(P[se+1]);for(var pe=0;pe<=11;pe++)aA(j[pe]);aA(17);for(var fe=0;fe<16;fe++)aA(D[fe+1]);for(var SA=0;SA<=161;SA++)aA(J[SA])}(),dA(65498),dA(12),aA(3),aA(1),aA(0),aA(2),aA(17),aA(3),aA(17),aA(0),aA(63),aA(0);var G=0,W=0,eA=0;F=0,v=7,this.encode.displayName="_encode_";for(var nA,gA,pA,wA,xA,DA,HA,WA,T,kA=U.data,ie=U.width,JA=U.height,UA=4*ie,_A=0;_A<JA;){for(nA=0;nA<UA;){for(xA=UA*_A+nA,HA=-1,WA=0,T=0;T<64;T++)DA=xA+(WA=T>>3)*UA+(HA=4*(7&T)),_A+WA>=JA&&(DA-=UA*(_A+1+WA-JA)),nA+HA>=UA&&(DA-=nA+HA-UA+4),gA=kA[DA++],pA=kA[DA++],wA=kA[DA++],L[T]=(z[gA]+z[pA+256|0]+z[wA+512|0]>>16)-128,_[T]=(z[gA+768|0]+z[pA+1024|0]+z[wA+1280|0]>>16)-128,S[T]=(z[gA+1280|0]+z[pA+1536|0]+z[wA+1792|0]>>16)-128;G=QA(L,c,G,A,r),W=QA(_,h,W,e,n),eA=QA(S,h,eA,e,n),nA+=32}_A+=8}if(v>=0){var MA=[];MA[1]=v+1,MA[0]=(1<<v+1)-1,fA(MA)}return dA(65497),new Uint8Array(y)},t=t||50,function(){for(var U=String.fromCharCode,R=0;R<256;R++)V[R]=U(R)}(),A=lA(q,k),e=lA(P,j),r=lA(Y,x),n=lA(D,J),function(){for(var U=1,R=2,G=1;G<=15;G++){for(var W=U;W<R;W++)m[32767+W]=G,d[32767+W]=[],d[32767+W][1]=G,d[32767+W][0]=W;for(var eA=-(R-1);eA<=-U;eA++)m[32767+eA]=G,d[32767+eA]=[],d[32767+eA][1]=G,d[32767+eA][0]=R-1+eA;U<<=1,R<<=1}}(),function(){for(var U=0;U<256;U++)z[U]=19595*U,z[U+256|0]=38470*U,z[U+512|0]=7471*U+32768,z[U+768|0]=-11059*U,z[U+1024|0]=-21709*U,z[U+1280|0]=32768*U+8421375,z[U+1536|0]=-27439*U,z[U+1792|0]=-5329*U}(),hA(t)}/**
281
284
  * @license
282
285
  * Copyright (c) 2017 Aras Abbasi
283
286
  *
284
287
  * Licensed under the MIT License.
285
288
  * http://opensource.org/licenses/mit-license
286
- */function Or(t,A){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!A,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Sg(t){function A(k){if(!k)throw Error("assert :P")}function e(k,Z,x){for(var S=0;4>S;S++)if(k[Z+S]!=x.charCodeAt(S))return!0;return!1}function r(k,Z,x,S,K){for(var T=0;T<K;T++)k[Z+T]=x[S+T]}function n(k,Z,x,S){for(var K=0;K<S;K++)k[Z+K]=x}function i(k){return new Int32Array(k)}function s(k,Z){for(var x=[],S=0;S<k;S++)x.push(new Z);return x}function a(k,Z){var x=[];return function S(K,T,z){for(var lA=z[T],hA=0;hA<lA&&(K.push(z.length>T+1?[]:new Z),!(z.length<T+1));hA++)S(K[hA],T+1,z)}(x,0,k),x}var o=function(){var k=this;function Z(l,u){for(var p=1<<u-1>>>0;l&p;)p>>>=1;return p?(l&p-1)+p:l}function x(l,u,p,B,b){A(!(B%p));do l[u+(B-=p)]=b;while(0<B)}function S(l,u,p,B,b){if(A(2328>=b),512>=b)var Q=i(512);else if((Q=i(b))==null)return 0;return function(E,I,H,D,Y,uA){var R,tA,nA=I,pA=1<<H,cA=i(16),mA=i(16);for(A(Y!=0),A(D!=null),A(E!=null),A(0<H),tA=0;tA<Y;++tA){if(15<D[tA])return 0;++cA[D[tA]]}if(cA[0]==Y)return 0;for(mA[1]=0,R=1;15>R;++R){if(cA[R]>1<<R)return 0;mA[R+1]=mA[R]+cA[R]}for(tA=0;tA<Y;++tA)R=D[tA],0<D[tA]&&(uA[mA[R]++]=tA);if(mA[15]==1)return(D=new K).g=0,D.value=uA[0],x(E,nA,1,pA,D),pA;var vA,UA=-1,FA=pA-1,WA=0,DA=1,pe=1,jA=1<<H;for(tA=0,R=1,Y=2;R<=H;++R,Y<<=1){if(DA+=pe<<=1,0>(pe-=cA[R]))return 0;for(;0<cA[R];--cA[R])(D=new K).g=R,D.value=uA[tA++],x(E,nA+WA,Y,jA,D),WA=Z(WA,R)}for(R=H+1,Y=2;15>=R;++R,Y<<=1){if(DA+=pe<<=1,0>(pe-=cA[R]))return 0;for(;0<cA[R];--cA[R]){if(D=new K,(WA&FA)!=UA){for(nA+=jA,vA=1<<(UA=R)-H;15>UA&&!(0>=(vA-=cA[UA]));)++UA,vA<<=1;pA+=jA=1<<(vA=UA-H),E[I+(UA=WA&FA)].g=vA+H,E[I+UA].value=nA-I-UA}D.g=R-H,D.value=uA[tA++],x(E,nA+(WA>>H),Y,jA,D),WA=Z(WA,R)}}return DA!=2*mA[15]-1?0:pA}(l,u,p,B,b,Q)}function K(){this.value=this.g=0}function T(){this.value=this.g=0}function z(){this.G=s(5,K),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(xi,T)}function lA(l,u,p,B){A(l!=null),A(u!=null),A(2147483648>B),l.Ca=254,l.I=0,l.b=-8,l.Ka=0,l.oa=u,l.pa=p,l.Jd=u,l.Yc=p+B,l.Zc=4<=B?p+B-4+1:p,fA(l)}function hA(l,u){for(var p=0;0<u--;)p|=yA(l,128)<<u;return p}function iA(l,u){var p=hA(l,u);return gA(l)?-p:p}function dA(l,u,p,B){var b,Q=0;for(A(l!=null),A(u!=null),A(4294967288>B),l.Sb=B,l.Ra=0,l.u=0,l.h=0,4<B&&(B=4),b=0;b<B;++b)Q+=u[p+b]<<8*b;l.Ra=Q,l.bb=B,l.oa=u,l.pa=p}function QA(l){for(;8<=l.u&&l.bb<l.Sb;)l.Ra>>>=8,l.Ra+=l.oa[l.pa+l.bb]<<Mn-8>>>0,++l.bb,l.u-=8;$(l)&&(l.h=1,l.u=0)}function CA(l,u){if(A(0<=u),!l.h&&u<=ir){var p=j(l)&nr[u];return l.u+=u,QA(l),p}return l.h=1,l.u=0}function U(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function M(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function j(l){return l.Ra>>>(l.u&Mn-1)>>>0}function $(l){return A(l.bb<=l.Sb),l.h||l.bb==l.Sb&&l.u>Mn}function AA(l,u){l.u=u,l.h=$(l)}function sA(l){l.u>=Fn&&(A(l.u>=Fn),QA(l))}function fA(l){A(l!=null&&l.oa!=null),l.pa<l.Zc?(l.I=(l.oa[l.pa++]|l.I<<8)>>>0,l.b+=8):(A(l!=null&&l.oa!=null),l.pa<l.Yc?(l.b+=8,l.I=l.oa[l.pa++]|l.I<<8):l.Ka?l.b=0:(l.I<<=8,l.b+=8,l.Ka=1))}function gA(l){return hA(l,1)}function yA(l,u){var p=l.Ca;0>l.b&&fA(l);var B=l.b,b=p*u>>>8,Q=(l.I>>>B>b)+0;for(Q?(p-=b,l.I-=b+1<<B>>>0):p=b+1,B=p,b=0;256<=B;)b+=8,B>>=8;return B=7^b+Kn[B],l.b-=B,l.Ca=(p<<B)-1,Q}function xA(l,u,p){l[u+0]=p>>24&255,l[u+1]=p>>16&255,l[u+2]=p>>8&255,l[u+3]=255&p}function NA(l,u){return l[u+0]|l[u+1]<<8}function _A(l,u){return NA(l,u)|l[u+2]<<16}function $A(l,u){return NA(l,u)|NA(l,u+2)<<16}function P(l,u){var p=1<<u;return A(l!=null),A(0<u),l.X=i(p),l.X==null?0:(l.Mb=32-u,l.Xa=u,1)}function IA(l,u){A(l!=null),A(u!=null),A(l.Xa==u.Xa),r(u.X,0,l.X,0,1<<u.Xa)}function fe(){this.X=[],this.Xa=this.Mb=0}function ZA(l,u,p,B){A(p!=null),A(B!=null);var b=p[0],Q=B[0];return b==0&&(b=(l*Q+u/2)/u),Q==0&&(Q=(u*b+l/2)/l),0>=b||0>=Q?0:(p[0]=b,B[0]=Q,1)}function wA(l,u){return l+(1<<u)-1>>>u}function SA(l,u){return((4278255360&l)+(4278255360&u)>>>0&4278255360)+((16711935&l)+(16711935&u)>>>0&16711935)>>>0}function PA(l,u){k[u]=function(p,B,b,Q,E,I,H){var D;for(D=0;D<E;++D){var Y=k[l](I[H+D-1],b,Q+D);I[H+D]=SA(p[B+D],Y)}}}function XA(){this.ud=this.hd=this.jd=0}function qA(l,u){return((4278124286&(l^u))>>>1)+(l&u)>>>0}function Qe(l){return 0<=l&&256>l?l:0>l?0:255<l?255:void 0}function we(l,u){return Qe(l+(l-u+.5>>1))}function ie(l,u,p){return Math.abs(u-p)-Math.abs(l-p)}function JA(l,u,p,B,b,Q,E){for(B=Q[E-1],p=0;p<b;++p)Q[E+p]=B=SA(l[u+p],B)}function te(l,u,p,B,b){var Q;for(Q=0;Q<p;++Q){var E=l[u+Q],I=E>>8&255,H=16711935&(H=(H=16711935&E)+((I<<16)+I));B[b+Q]=(4278255360&E)+H>>>0}}function KA(l,u){u.jd=255&l,u.hd=l>>8&255,u.ud=l>>16&255}function se(l,u,p,B,b,Q){var E;for(E=0;E<B;++E){var I=u[p+E],H=I>>>8,D=I,Y=255&(Y=(Y=I>>>16)+((l.jd<<24>>24)*(H<<24>>24)>>>5));D=255&(D=(D+=(l.hd<<24>>24)*(H<<24>>24)>>>5)+((l.ud<<24>>24)*(Y<<24>>24)>>>5)),b[Q+E]=(4278255360&I)+(Y<<16)+D}}function kA(l,u,p,B,b){k[u]=function(Q,E,I,H,D,Y,uA,R,tA){for(H=uA;H<R;++H)for(uA=0;uA<tA;++uA)D[Y++]=b(I[B(Q[E++])])},k[l]=function(Q,E,I,H,D,Y,uA){var R=8>>Q.b,tA=Q.Ea,nA=Q.K[0],pA=Q.w;if(8>R)for(Q=(1<<Q.b)-1,pA=(1<<R)-1;E<I;++E){var cA,mA=0;for(cA=0;cA<tA;++cA)cA&Q||(mA=B(H[D++])),Y[uA++]=b(nA[mA&pA]),mA>>=R}else k["VP8LMapColor"+p](H,D,nA,pA,Y,uA,E,I,tA)}}function Ve(l,u,p,B,b){for(p=u+p;u<p;){var Q=l[u++];B[b++]=Q>>16&255,B[b++]=Q>>8&255,B[b++]=255&Q}}function Ce(l,u,p,B,b){for(p=u+p;u<p;){var Q=l[u++];B[b++]=Q>>16&255,B[b++]=Q>>8&255,B[b++]=255&Q,B[b++]=Q>>24&255}}function ge(l,u,p,B,b){for(p=u+p;u<p;){var Q=(E=l[u++])>>16&240|E>>12&15,E=240&E|E>>28&15;B[b++]=Q,B[b++]=E}}function le(l,u,p,B,b){for(p=u+p;u<p;){var Q=(E=l[u++])>>16&248|E>>13&7,E=E>>5&224|E>>3&31;B[b++]=Q,B[b++]=E}}function Ue(l,u,p,B,b){for(p=u+p;u<p;){var Q=l[u++];B[b++]=255&Q,B[b++]=Q>>8&255,B[b++]=Q>>16&255}}function YA(l,u,p,B,b,Q){if(Q==0)for(p=u+p;u<p;)xA(B,((Q=l[u++])[0]>>24|Q[1]>>8&65280|Q[2]<<8&16711680|Q[3]<<24)>>>0),b+=32;else r(B,b,l,u,p)}function Re(l,u){k[u][0]=k[l+"0"],k[u][1]=k[l+"1"],k[u][2]=k[l+"2"],k[u][3]=k[l+"3"],k[u][4]=k[l+"4"],k[u][5]=k[l+"5"],k[u][6]=k[l+"6"],k[u][7]=k[l+"7"],k[u][8]=k[l+"8"],k[u][9]=k[l+"9"],k[u][10]=k[l+"10"],k[u][11]=k[l+"11"],k[u][12]=k[l+"12"],k[u][13]=k[l+"13"],k[u][14]=k[l+"0"],k[u][15]=k[l+"0"]}function re(l){return l==Sc||l==Ic||l==wo||l==_c}function ue(){this.eb=[],this.size=this.A=this.fb=0}function We(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ve(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ue,this.f.kb=new We,this.sd=null}function Ae(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Le(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function fi(l){return alert("todo:WebPSamplerProcessPlane"),l.T}function Tt(l,u){var p=l.T,B=u.ba.f.RGBA,b=B.eb,Q=B.fb+l.ka*B.A,E=Fr[u.ba.S],I=l.y,H=l.O,D=l.f,Y=l.N,uA=l.ea,R=l.W,tA=u.cc,nA=u.dc,pA=u.Mc,cA=u.Nc,mA=l.ka,vA=l.ka+l.T,UA=l.U,FA=UA+1>>1;for(mA==0?E(I,H,null,null,D,Y,uA,R,D,Y,uA,R,b,Q,null,null,UA):(E(u.ec,u.fc,I,H,tA,nA,pA,cA,D,Y,uA,R,b,Q-B.A,b,Q,UA),++p);mA+2<vA;mA+=2)tA=D,nA=Y,pA=uA,cA=R,Y+=l.Rc,R+=l.Rc,Q+=2*B.A,E(I,(H+=2*l.fa)-l.fa,I,H,tA,nA,pA,cA,D,Y,uA,R,b,Q-B.A,b,Q,UA);return H+=l.fa,l.j+vA<l.o?(r(u.ec,u.fc,I,H,UA),r(u.cc,u.dc,D,Y,FA),r(u.Mc,u.Nc,uA,R,FA),p--):1&vA||E(I,H,null,null,D,Y,uA,R,D,Y,uA,R,b,Q+B.A,null,null,UA),p}function un(l,u,p){var B=l.F,b=[l.J];if(B!=null){var Q=l.U,E=u.ba.S,I=E==Bo||E==wo;u=u.ba.f.RGBA;var H=[0],D=l.ka;H[0]=l.T,l.Kb&&(D==0?--H[0]:(--D,b[0]-=l.width),l.j+l.ka+l.T==l.o&&(H[0]=l.o-l.j-D));var Y=u.eb;D=u.fb+D*u.A,l=wf(B,b[0],l.width,Q,H,Y,D+(I?0:3),u.A),A(p==H),l&&re(E)&&ta(Y,D,I,Q,H,u.A)}return 0}function Vr(l){var u=l.ma,p=u.ba.S,B=11>p,b=p==po||p==mo||p==Bo||p==Lc||p==12||re(p);if(u.memory=null,u.Ib=null,u.Jb=null,u.Nd=null,!zs(u.Oa,l,b?11:12))return 0;if(b&&re(p)&&qs(),l.da)alert("todo:use_scaling");else{if(B){if(u.Ib=fi,l.Kb){if(p=l.U+1>>1,u.memory=i(l.U+2*p),u.memory==null)return 0;u.ec=u.memory,u.fc=0,u.cc=u.ec,u.dc=u.fc+l.U,u.Mc=u.cc,u.Nc=u.dc+p,u.Ib=Tt,qs()}}else alert("todo:EmitYUV");b&&(u.Jb=un,B&&Pr())}if(B&&!kf){for(l=0;256>l;++l)D1[l]=89858*(l-128)+yo>>vo,M1[l]=-22014*(l-128)+yo,O1[l]=-45773*(l-128),R1[l]=113618*(l-128)+yo>>vo;for(l=na;l<kc;++l)u=76283*(l-16)+yo>>vo,K1[l-na]=$r(u,255),j1[l-na]=$r(u+8>>4,15);kf=1}return 1}function ee(l){var u=l.ma,p=l.U,B=l.T;return A(!(1&l.ka)),0>=p||0>=B?0:(p=u.Ib(l,u),u.Jb!=null&&u.Jb(l,u,p),u.Dc+=p,1)}function hn(l){l.ma.memory=null}function fn(l,u,p,B){return CA(l,8)!=47?0:(u[0]=CA(l,14)+1,p[0]=CA(l,14)+1,B[0]=CA(l,1),CA(l,3)!=0?0:!l.h)}function pr(l,u){if(4>l)return l+1;var p=l-2>>1;return(2+(1&l)<<p)+CA(u,p)+1}function mr(l,u){return 120<u?u-120:1<=(p=((p=F1[u-1])>>4)*l+(8-(15&p)))?p:1;var p}function Je(l,u,p){var B=j(p),b=l[u+=255&B].g-8;return 0<b&&(AA(p,p.u+8),B=j(p),u+=l[u].value,u+=B&(1<<b)-1),AA(p,p.u+l[u].g),l[u].value}function Qt(l,u,p){return p.g+=l.g,p.value+=l.value<<u>>>0,A(8>=p.g),l.g}function Lt(l,u,p){var B=l.xc;return A((u=B==0?0:l.vc[l.md*(p>>B)+(u>>B)])<l.Wb),l.Ya[u]}function di(l,u,p,B){var b=l.ab,Q=l.c*u,E=l.C;u=E+u;var I=p,H=B;for(B=l.Ta,p=l.Ua;0<b--;){var D=l.gc[b],Y=E,uA=u,R=I,tA=H,nA=(H=B,I=p,D.Ea);switch(A(Y<uA),A(uA<=D.nc),D.hc){case 2:et(R,tA,(uA-Y)*nA,H,I);break;case 0:var pA=Y,cA=uA,mA=H,vA=I,UA=(jA=D).Ea;pA==0&&(Xs(R,tA,null,null,1,mA,vA),JA(R,tA+1,0,0,UA-1,mA,vA+1),tA+=UA,vA+=UA,++pA);for(var FA=1<<jA.b,WA=FA-1,DA=wA(UA,jA.b),pe=jA.K,jA=jA.w+(pA>>jA.b)*DA;pA<cA;){var be=pe,wt=jA,me=1;for(es(R,tA,mA,vA-UA,1,mA,vA);me<UA;){var GA=(me&~WA)+FA;GA>UA&&(GA=UA),(0,Ys[be[wt++]>>8&15])(R,tA+ +me,mA,vA+me-UA,GA-me,mA,vA+me),me=GA}tA+=UA,vA+=UA,++pA&WA||(jA+=DA)}uA!=D.nc&&r(H,I-nA,H,I+(uA-Y-1)*nA,nA);break;case 1:for(nA=R,cA=tA,UA=(R=D.Ea)-(vA=R&~(mA=(tA=1<<D.b)-1)),pA=wA(R,D.b),FA=D.K,D=D.w+(Y>>D.b)*pA;Y<uA;){for(WA=FA,DA=D,pe=new XA,jA=cA+vA,be=cA+R;cA<jA;)KA(WA[DA++],pe),Zs(pe,nA,cA,tA,H,I),cA+=tA,I+=tA;cA<be&&(KA(WA[DA++],pe),Zs(pe,nA,cA,UA,H,I),cA+=UA,I+=UA),++Y&mA||(D+=pA)}break;case 3:if(R==H&&tA==I&&0<D.b){for(cA=H,R=nA=I+(uA-Y)*nA-(vA=(uA-Y)*wA(D.Ea,D.b)),tA=H,mA=I,pA=[],vA=(UA=vA)-1;0<=vA;--vA)pA[vA]=tA[mA+vA];for(vA=UA-1;0<=vA;--vA)cA[R+vA]=pA[vA];uo(D,Y,uA,H,nA,H,I)}else uo(D,Y,uA,R,tA,H,I)}I=B,H=p}H!=p&&r(B,p,I,H,Q)}function Tn(l,u){var p=l.V,B=l.Ba+l.c*l.C,b=u-l.C;if(A(u<=l.l.o),A(16>=b),0<b){var Q=l.l,E=l.Ta,I=l.Ua,H=Q.width;if(di(l,b,p,B),b=I=[I],A((p=l.C)<(B=u)),A(Q.v<Q.va),B>Q.o&&(B=Q.o),p<Q.j){var D=Q.j-p;p=Q.j,b[0]+=D*H}if(p>=B?p=0:(b[0]+=4*Q.v,Q.ka=p-Q.j,Q.U=Q.va-Q.v,Q.T=B-p,p=1),p){if(I=I[0],11>(p=l.ca).S){var Y=p.f.RGBA,uA=(B=p.S,b=Q.U,Q=Q.T,D=Y.eb,Y.A),R=Q;for(Y=Y.fb+l.Ma*Y.A;0<R--;){var tA=E,nA=I,pA=b,cA=D,mA=Y;switch(B){case go:Aa(tA,nA,pA,cA,mA);break;case po:jn(tA,nA,pA,cA,mA);break;case Sc:jn(tA,nA,pA,cA,mA),ta(cA,mA,0,pA,1,0);break;case Uf:Ei(tA,nA,pA,cA,mA);break;case mo:YA(tA,nA,pA,cA,mA,1);break;case Ic:YA(tA,nA,pA,cA,mA,1),ta(cA,mA,0,pA,1,0);break;case Bo:YA(tA,nA,pA,cA,mA,0);break;case wo:YA(tA,nA,pA,cA,mA,0),ta(cA,mA,1,pA,1,0);break;case Lc:Gn(tA,nA,pA,cA,mA);break;case _c:Gn(tA,nA,pA,cA,mA),Bf(cA,mA,pA,1,0);break;case xf:qn(tA,nA,pA,cA,mA);break;default:A(0)}I+=H,Y+=uA}l.Ma+=Q}else alert("todo:EmitRescaledRowsYUVA");A(l.Ma<=p.height)}}l.C=u,A(l.C<=l.i)}function _r(l){var u;if(0<l.ua)return 0;for(u=0;u<l.Wb;++u){var p=l.Ya[u].G,B=l.Ya[u].H;if(0<p[1][B[1]+0].g||0<p[2][B[2]+0].g||0<p[3][B[3]+0].g)return 0}return 1}function Wr(l,u,p,B,b,Q){if(l.Z!=0){var E=l.qd,I=l.rd;for(A(zn[l.Z]!=null);u<p;++u)zn[l.Z](E,I,B,b,B,b,Q),E=B,I=b,b+=Q;l.qd=E,l.rd=I}}function Nr(l,u){var p=l.l.ma,B=p.Z==0||p.Z==1?l.l.j:l.C;if(B=l.C<B?B:l.C,A(u<=l.l.o),u>B){var b=l.l.width,Q=p.ca,E=p.tb+b*B,I=l.V,H=l.Ba+l.c*B,D=l.gc;A(l.ab==1),A(D[0].hc==3),Zr(D[0],B,u,I,H,Q,E),Wr(p,B,u,Q,E,b)}l.C=l.Ma=u}function Hr(l,u,p,B,b,Q,E){var I=l.$/B,H=l.$%B,D=l.m,Y=l.s,uA=p+l.$,R=uA;b=p+B*b;var tA=p+B*Q,nA=280+Y.ua,pA=l.Pb?I:16777216,cA=0<Y.ua?Y.Wa:null,mA=Y.wc,vA=uA<tA?Lt(Y,H,I):null;A(l.C<Q),A(tA<=b);var UA=!1;A:for(;;){for(;UA||uA<tA;){var FA=0;if(I>=pA){var WA=uA-p;A((pA=l).Pb),pA.wd=pA.m,pA.xd=WA,0<pA.s.ua&&IA(pA.s.Wa,pA.s.vb),pA=I+U1}if(H&mA||(vA=Lt(Y,H,I)),A(vA!=null),vA.Qb&&(u[uA]=vA.qb,UA=!0),!UA)if(sA(D),vA.jc){FA=D,WA=u;var DA=uA,pe=vA.pd[j(FA)&xi-1];A(vA.jc),256>pe.g?(AA(FA,FA.u+pe.g),WA[DA]=pe.value,FA=0):(AA(FA,FA.u+pe.g-256),A(256<=pe.value),FA=pe.value),FA==0&&(UA=!0)}else FA=Je(vA.G[0],vA.H[0],D);if(D.h)break;if(UA||256>FA){if(!UA)if(vA.nd)u[uA]=(vA.qb|FA<<8)>>>0;else{if(sA(D),UA=Je(vA.G[1],vA.H[1],D),sA(D),WA=Je(vA.G[2],vA.H[2],D),DA=Je(vA.G[3],vA.H[3],D),D.h)break;u[uA]=(DA<<24|UA<<16|FA<<8|WA)>>>0}if(UA=!1,++uA,++H>=B&&(H=0,++I,E!=null&&I<=Q&&!(I%16)&&E(l,I),cA!=null))for(;R<uA;)FA=u[R++],cA.X[(506832829*FA&4294967295)>>>cA.Mb]=FA}else if(280>FA){if(FA=pr(FA-256,D),WA=Je(vA.G[4],vA.H[4],D),sA(D),WA=mr(B,WA=pr(WA,D)),D.h)break;if(uA-p<WA||b-uA<FA)break A;for(DA=0;DA<FA;++DA)u[uA+DA]=u[uA+DA-WA];for(uA+=FA,H+=FA;H>=B;)H-=B,++I,E!=null&&I<=Q&&!(I%16)&&E(l,I);if(A(uA<=b),H&mA&&(vA=Lt(Y,H,I)),cA!=null)for(;R<uA;)FA=u[R++],cA.X[(506832829*FA&4294967295)>>>cA.Mb]=FA}else{if(!(FA<nA))break A;for(UA=FA-280,A(cA!=null);R<uA;)FA=u[R++],cA.X[(506832829*FA&4294967295)>>>cA.Mb]=FA;FA=uA,A(!(UA>>>(WA=cA).Xa)),u[FA]=WA.X[UA],UA=!0}UA||A(D.h==$(D))}if(l.Pb&&D.h&&uA<b)A(l.m.h),l.a=5,l.m=l.wd,l.$=l.xd,0<l.s.ua&&IA(l.s.vb,l.s.Wa);else{if(D.h)break A;E!=null&&E(l,I>Q?Q:I),l.a=0,l.$=uA-p}return 1}return l.a=3,0}function Br(l){A(l!=null),l.vc=null,l.yc=null,l.Ya=null;var u=l.Wa;u!=null&&(u.X=null),l.vb=null,A(l!=null)}function gi(){var l=new ae;return l==null?null:(l.a=0,l.xb=Sf,Re("Predictor","VP8LPredictors"),Re("Predictor","VP8LPredictors_C"),Re("PredictorAdd","VP8LPredictorsAdd"),Re("PredictorAdd","VP8LPredictorsAdd_C"),et=te,Zs=se,Aa=Ve,jn=Ce,Gn=ge,qn=le,Ei=Ue,k.VP8LMapColor32b=Yr,k.VP8LMapColor8b=Js,l)}function zr(l,u,p,B,b){var Q=1,E=[l],I=[u],H=B.m,D=B.s,Y=null,uA=0;A:for(;;){if(p)for(;Q&&CA(H,1);){var R=E,tA=I,nA=B,pA=1,cA=nA.m,mA=nA.gc[nA.ab],vA=CA(cA,2);if(nA.Oc&1<<vA)Q=0;else{switch(nA.Oc|=1<<vA,mA.hc=vA,mA.Ea=R[0],mA.nc=tA[0],mA.K=[null],++nA.ab,A(4>=nA.ab),vA){case 0:case 1:mA.b=CA(cA,3)+2,pA=zr(wA(mA.Ea,mA.b),wA(mA.nc,mA.b),0,nA,mA.K),mA.K=mA.K[0];break;case 3:var UA,FA=CA(cA,8)+1,WA=16<FA?0:4<FA?1:2<FA?2:3;if(R[0]=wA(mA.Ea,WA),mA.b=WA,UA=pA=zr(FA,1,0,nA,mA.K)){var DA,pe=FA,jA=mA,be=1<<(8>>jA.b),wt=i(be);if(wt==null)UA=0;else{var me=jA.K[0],GA=jA.w;for(wt[0]=jA.K[0][0],DA=1;DA<1*pe;++DA)wt[DA]=SA(me[GA+DA],wt[DA-1]);for(;DA<4*be;++DA)wt[DA]=0;jA.K[0]=null,jA.K[0]=wt,UA=1}}pA=UA;break;case 2:break;default:A(0)}Q=pA}}if(E=E[0],I=I[0],Q&&CA(H,1)&&!(Q=1<=(uA=CA(H,4))&&11>=uA)){B.a=3;break A}var LA;if(LA=Q)e:{var rt,he,Fe,Ge=B,_t=E,$t=I,Ye=uA,Dt=p,Xt=Ge.m,vt=Ge.s,Ee=[null],Ne=1,Ze=0,He=Q1[Ye];t:for(;;){if(Dt&&CA(Xt,1)){var Nt=CA(Xt,3)+2,Dr=wA(_t,Nt),nt=wA($t,Nt),Zt=Dr*nt;if(!zr(Dr,nt,0,Ge,Ee))break t;for(Ee=Ee[0],vt.xc=Nt,rt=0;rt<Zt;++rt){var Te=Ee[rt]>>8&65535;Ee[rt]=Te,Te>=Ne&&(Ne=Te+1)}}if(Xt.h)break t;for(he=0;5>he;++he){var yt=Ef[he];!he&&0<Ye&&(yt+=1<<Ye),Ze<yt&&(Ze=yt)}var ar=s(Ne*He,K),Jt=Ne,or=s(Jt,z);if(or==null)var lr=null;else A(65536>=Jt),lr=or;var Ar=i(Ze);if(lr==null||Ar==null||ar==null){Ge.a=1;break t}var cr=ar;for(rt=Fe=0;rt<Ne;++rt){var Me=lr[rt],ur=Me.G,Rr=Me.H,Si=0,xn=1,Ht=0;for(he=0;5>he;++he){yt=Ef[he],ur[he]=cr,Rr[he]=Fe,!he&&0<Ye&&(yt+=1<<Ye);n:{var bo,Pc=yt,Fo=Ge,ia=Ar,V1=cr,W1=Fe,Tc=0,$n=Fo.m,z1=CA($n,1);if(n(ia,0,0,Pc),z1){var $1=CA($n,1)+1,X1=CA($n,1),Df=CA($n,X1==0?1:8);ia[Df]=1,$1==2&&(ia[Df=CA($n,8)]=1);var Qo=1}else{var Rf=i(19),Of=CA($n,4)+4;if(19<Of){Fo.a=3;var Uo=0;break n}for(bo=0;bo<Of;++bo)Rf[b1[bo]]=CA($n,3);var Dc=void 0,sa=void 0,Mf=Fo,J1=Rf,xo=Pc,Kf=ia,Rc=0,Xn=Mf.m,jf=8,Gf=s(128,K);r:for(;S(Gf,0,7,J1,19);){if(CA(Xn,1)){var Y1=2+2*CA(Xn,3);if((Dc=2+CA(Xn,Y1))>xo)break r}else Dc=xo;for(sa=0;sa<xo&&Dc--;){sA(Xn);var qf=Gf[0+(127&j(Xn))];AA(Xn,Xn.u+qf.g);var rs=qf.value;if(16>rs)Kf[sa++]=rs,rs!=0&&(jf=rs);else{var Z1=rs==16,Vf=rs-16,AB=y1[Vf],Wf=CA(Xn,v1[Vf])+AB;if(sa+Wf>xo)break r;for(var eB=Z1?jf:0;0<Wf--;)Kf[sa++]=eB}}Rc=1;break r}Rc||(Mf.a=3),Qo=Rc}(Qo=Qo&&!$n.h)&&(Tc=S(V1,W1,8,ia,Pc)),Qo&&Tc!=0?Uo=Tc:(Fo.a=3,Uo=0)}if(Uo==0)break t;if(xn&&C1[he]==1&&(xn=cr[Fe].g==0),Si+=cr[Fe].g,Fe+=Uo,3>=he){var aa,Oc=Ar[0];for(aa=1;aa<yt;++aa)Ar[aa]>Oc&&(Oc=Ar[aa]);Ht+=Oc}}if(Me.nd=xn,Me.Qb=0,xn&&(Me.qb=(ur[3][Rr[3]+0].value<<24|ur[1][Rr[1]+0].value<<16|ur[2][Rr[2]+0].value)>>>0,Si==0&&256>ur[0][Rr[0]+0].value&&(Me.Qb=1,Me.qb+=ur[0][Rr[0]+0].value<<8)),Me.jc=!Me.Qb&&6>Ht,Me.jc){var Eo,En=Me;for(Eo=0;Eo<xi;++Eo){var Jn=Eo,Yn=En.pd[Jn],Lo=En.G[0][En.H[0]+Jn];256<=Lo.value?(Yn.g=Lo.g+256,Yn.value=Lo.value):(Yn.g=0,Yn.value=0,Jn>>=Qt(Lo,8,Yn),Jn>>=Qt(En.G[1][En.H[1]+Jn],16,Yn),Jn>>=Qt(En.G[2][En.H[2]+Jn],0,Yn),Qt(En.G[3][En.H[3]+Jn],24,Yn))}}}vt.vc=Ee,vt.Wb=Ne,vt.Ya=lr,vt.yc=ar,LA=1;break e}LA=0}if(!(Q=LA)){B.a=3;break A}if(0<uA){if(D.ua=1<<uA,!P(D.Wa,uA)){B.a=1,Q=0;break A}}else D.ua=0;var Mc=B,zf=E,tB=I,Kc=Mc.s,jc=Kc.xc;if(Mc.c=zf,Mc.i=tB,Kc.md=wA(zf,jc),Kc.wc=jc==0?-1:(1<<jc)-1,p){B.xb=N1;break A}if((Y=i(E*I))==null){B.a=1,Q=0;break A}Q=(Q=Hr(B,Y,0,E,I,I,null))&&!H.h;break A}return Q?(b!=null?b[0]=Y:(A(Y==null),A(p)),B.$=0,p||Br(D)):Br(D),Q}function pi(l,u){var p=l.c*l.i,B=p+u+16*u;return A(l.c<=u),l.V=i(B),l.V==null?(l.Ta=null,l.Ua=0,l.a=1,0):(l.Ta=l.V,l.Ua=l.Ba+p+u,1)}function qi(l,u){var p=l.C,B=u-p,b=l.V,Q=l.Ba+l.c*p;for(A(u<=l.l.o);0<B;){var E=16<B?16:B,I=l.l.ma,H=l.l.width,D=H*E,Y=I.ca,uA=I.tb+H*p,R=l.Ta,tA=l.Ua;di(l,E,b,Q),vf(R,tA,Y,uA,D),Wr(I,p,p+E,Y,uA,H),B-=E,b+=E*l.c,p+=E}A(p==u),l.C=l.Ma=u}function Vi(){this.ub=this.yd=this.td=this.Rb=0}function Wi(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function hc(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Hs(){this.Yb=function(){var l=[];return function u(p,B,b){for(var Q=b[B],E=0;E<Q&&(p.push(b.length>B+1?[]:0),!(b.length<B+1));E++)u(p[E],B+1,b)}(l,0,[3,11]),l}()}function Wa(){this.jb=i(3),this.Wc=a([4,8],Hs),this.Xc=a([4,17],Hs)}function za(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function wr(){this.ld=this.La=this.dd=this.tc=0}function ks(){this.Na=this.la=0}function $a(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ps(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Xa(){this.uc=this.M=this.Nb=0,this.wa=Array(new wr),this.Y=0,this.ya=Array(new Ps),this.aa=0,this.l=new zi}function Ja(){this.y=i(16),this.f=i(8),this.ea=i(8)}function Ya(){this.cb=this.a=0,this.sc="",this.m=new U,this.Od=new Vi,this.Kc=new Wi,this.ed=new za,this.Qa=new hc,this.Ic=this.$c=this.Aa=0,this.D=new Xa,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,U),this.ia=0,this.pb=s(4,$a),this.Pa=new Wa,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ja),this.Hd=0,this.rb=Array(new ks),this.sb=0,this.wa=Array(new wr),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ps),this.L=this.aa=0,this.gd=a([4,2],wr),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function $r(l,u){return 0>l?0:l>u?u:l}function zi(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function fc(){var l=new Ya;return l!=null&&(l.a=0,l.sc="OK",l.cb=0,l.Xb=0,ra||(ra=$i)),l}function ct(l,u,p){return l.a==0&&(l.a=u,l.sc=p,l.cb=0),0}function Za(l,u,p){return 3<=p&&l[u+0]==157&&l[u+1]==1&&l[u+2]==42}function Xr(l,u){if(l==null)return 0;if(l.a=0,l.sc="OK",u==null)return ct(l,2,"null VP8Io passed to VP8GetHeaders()");var p=u.data,B=u.w,b=u.ha;if(4>b)return ct(l,7,"Truncated header.");var Q=p[B+0]|p[B+1]<<8|p[B+2]<<16,E=l.Od;if(E.Rb=!(1&Q),E.td=Q>>1&7,E.yd=Q>>4&1,E.ub=Q>>5,3<E.td)return ct(l,3,"Incorrect keyframe parameters.");if(!E.yd)return ct(l,4,"Frame not displayable.");B+=3,b-=3;var I=l.Kc;if(E.Rb){if(7>b)return ct(l,7,"cannot parse picture header");if(!Za(p,B,b))return ct(l,3,"Bad code word");I.c=16383&(p[B+4]<<8|p[B+3]),I.Td=p[B+4]>>6,I.i=16383&(p[B+6]<<8|p[B+5]),I.Ud=p[B+6]>>6,B+=7,b-=7,l.za=I.c+15>>4,l.Ub=I.i+15>>4,u.width=I.c,u.height=I.i,u.Da=0,u.j=0,u.v=0,u.va=u.width,u.o=u.height,u.da=0,u.ib=u.width,u.hb=u.height,u.U=u.width,u.T=u.height,n((Q=l.Pa).jb,0,255,Q.jb.length),A((Q=l.Qa)!=null),Q.Cb=0,Q.Bb=0,Q.Fb=1,n(Q.Zb,0,0,Q.Zb.length),n(Q.Lb,0,0,Q.Lb)}if(E.ub>b)return ct(l,7,"bad partition length");lA(Q=l.m,p,B,E.ub),B+=E.ub,b-=E.ub,E.Rb&&(I.Ld=gA(Q),I.Kd=gA(Q)),I=l.Qa;var H,D=l.Pa;if(A(Q!=null),A(I!=null),I.Cb=gA(Q),I.Cb){if(I.Bb=gA(Q),gA(Q)){for(I.Fb=gA(Q),H=0;4>H;++H)I.Zb[H]=gA(Q)?iA(Q,7):0;for(H=0;4>H;++H)I.Lb[H]=gA(Q)?iA(Q,6):0}if(I.Bb)for(H=0;3>H;++H)D.jb[H]=gA(Q)?hA(Q,8):255}else I.Bb=0;if(Q.Ka)return ct(l,3,"cannot parse segment header");if((I=l.ed).zd=gA(Q),I.Tb=hA(Q,6),I.wb=hA(Q,3),I.Pc=gA(Q),I.Pc&&gA(Q)){for(D=0;4>D;++D)gA(Q)&&(I.vd[D]=iA(Q,6));for(D=0;4>D;++D)gA(Q)&&(I.od[D]=iA(Q,6))}if(l.L=I.Tb==0?0:I.zd?1:2,Q.Ka)return ct(l,3,"cannot parse filter header");var Y=b;if(b=H=B,B=H+Y,I=Y,l.Xb=(1<<hA(l.m,2))-1,Y<3*(D=l.Xb))p=7;else{for(H+=3*D,I-=3*D,Y=0;Y<D;++Y){var uA=p[b+0]|p[b+1]<<8|p[b+2]<<16;uA>I&&(uA=I),lA(l.Jc[+Y],p,H,uA),H+=uA,I-=uA,b+=3}lA(l.Jc[+D],p,H,I),p=H<B?0:5}if(p!=0)return ct(l,p,"cannot parse partitions");for(p=hA(H=l.m,7),b=gA(H)?iA(H,4):0,B=gA(H)?iA(H,4):0,I=gA(H)?iA(H,4):0,D=gA(H)?iA(H,4):0,H=gA(H)?iA(H,4):0,Y=l.Qa,uA=0;4>uA;++uA){if(Y.Cb){var R=Y.Zb[uA];Y.Fb||(R+=p)}else{if(0<uA){l.pb[uA]=l.pb[0];continue}R=p}var tA=l.pb[uA];tA.Sc[0]=Nc[$r(R+b,127)],tA.Sc[1]=Hc[$r(R+0,127)],tA.Eb[0]=2*Nc[$r(R+B,127)],tA.Eb[1]=101581*Hc[$r(R+I,127)]>>16,8>tA.Eb[1]&&(tA.Eb[1]=8),tA.Qc[0]=Nc[$r(R+D,117)],tA.Qc[1]=Hc[$r(R+H,127)],tA.lc=R+H}if(!E.Rb)return ct(l,4,"Not a key frame.");for(gA(Q),E=l.Pa,p=0;4>p;++p){for(b=0;8>b;++b)for(B=0;3>B;++B)for(I=0;11>I;++I)D=yA(Q,I1[p][b][B][I])?hA(Q,8):L1[p][b][B][I],E.Wc[p][b].Yb[B][I]=D;for(b=0;17>b;++b)E.Xc[p][b]=E.Wc[p][_1[b]]}return l.kc=gA(Q),l.kc&&(l.Bd=hA(Q,8)),l.cb=1}function $i(l,u,p,B,b,Q,E){var I=u[b].Yb[p];for(p=0;16>b;++b){if(!yA(l,I[p+0]))return b;for(;!yA(l,I[p+1]);)if(I=u[++b].Yb[0],p=0,b==16)return 16;var H=u[b+1].Yb;if(yA(l,I[p+2])){var D=l,Y=0;if(yA(D,(R=I)[(uA=p)+3]))if(yA(D,R[uA+6])){for(I=0,uA=2*(Y=yA(D,R[uA+8]))+(R=yA(D,R[uA+9+Y])),Y=0,R=x1[uA];R[I];++I)Y+=Y+yA(D,R[I]);Y+=3+(8<<uA)}else yA(D,R[uA+7])?(Y=7+2*yA(D,165),Y+=yA(D,145)):Y=5+yA(D,159);else Y=yA(D,R[uA+4])?3+yA(D,R[uA+5]):2;I=H[2]}else Y=1,I=H[1];H=E+E1[b],0>(D=l).b&&fA(D);var uA,R=D.b,tA=(uA=D.Ca>>1)-(D.I>>R)>>31;--D.b,D.Ca+=tA,D.Ca|=1,D.I-=(uA+1&tA)<<R,Q[H]=((Y^tA)-tA)*B[(0<b)+0]}return 16}function Ao(l){var u=l.rb[l.sb-1];u.la=0,u.Na=0,n(l.zc,0,0,l.zc.length),l.ja=0}function vr(l,u,p,B,b){b=l[u+p+32*B]+(b>>3),l[u+p+32*B]=-256&b?0>b?0:255:b}function pt(l,u,p,B,b,Q){vr(l,u,0,p,B+b),vr(l,u,1,p,B+Q),vr(l,u,2,p,B-Q),vr(l,u,3,p,B-b)}function dn(l){return(20091*l>>16)+l}function eo(l,u,p,B){var b,Q=0,E=i(16);for(b=0;4>b;++b){var I=l[u+0]+l[u+8],H=l[u+0]-l[u+8],D=(35468*l[u+4]>>16)-dn(l[u+12]),Y=dn(l[u+4])+(35468*l[u+12]>>16);E[Q+0]=I+Y,E[Q+1]=H+D,E[Q+2]=H-D,E[Q+3]=I-Y,Q+=4,u++}for(b=Q=0;4>b;++b)I=(l=E[Q+0]+4)+E[Q+8],H=l-E[Q+8],D=(35468*E[Q+4]>>16)-dn(E[Q+12]),vr(p,B,0,0,I+(Y=dn(E[Q+4])+(35468*E[Q+12]>>16))),vr(p,B,1,0,H+D),vr(p,B,2,0,H-D),vr(p,B,3,0,I-Y),Q++,B+=32}function dc(l,u,p,B){var b=l[u+0]+4,Q=35468*l[u+4]>>16,E=dn(l[u+4]),I=35468*l[u+1]>>16;pt(p,B,0,b+E,l=dn(l[u+1]),I),pt(p,B,1,b+Q,l,I),pt(p,B,2,b-Q,l,I),pt(p,B,3,b-E,l,I)}function gc(l,u,p,B,b){eo(l,u,p,B),b&&eo(l,u+16,p,B+4)}function Jr(l,u,p,B){Li(l,u+0,p,B,1),Li(l,u+32,p,B+128,1)}function to(l,u,p,B){var b;for(l=l[u+0]+4,b=0;4>b;++b)for(u=0;4>u;++u)vr(p,B,u,b,l)}function ro(l,u,p,B){l[u+0]&&Se(l,u+0,p,B),l[u+16]&&Se(l,u+16,p,B+4),l[u+32]&&Se(l,u+32,p,B+128),l[u+48]&&Se(l,u+48,p,B+128+4)}function Xi(l,u,p,B){var b,Q=i(16);for(b=0;4>b;++b){var E=l[u+0+b]+l[u+12+b],I=l[u+4+b]+l[u+8+b],H=l[u+4+b]-l[u+8+b],D=l[u+0+b]-l[u+12+b];Q[0+b]=E+I,Q[8+b]=E-I,Q[4+b]=D+H,Q[12+b]=D-H}for(b=0;4>b;++b)E=(l=Q[0+4*b]+3)+Q[3+4*b],I=Q[1+4*b]+Q[2+4*b],H=Q[1+4*b]-Q[2+4*b],D=l-Q[3+4*b],p[B+0]=E+I>>3,p[B+16]=D+H>>3,p[B+32]=E-I>>3,p[B+48]=D-H>>3,B+=64}function mi(l,u,p){var B,b=u-32,Q=sr,E=255-l[b-1];for(B=0;B<p;++B){var I,H=Q,D=E+l[u-1];for(I=0;I<p;++I)l[u+I]=H[D+l[b+I]];u+=32}}function pc(l,u){mi(l,u,4)}function mc(l,u){mi(l,u,8)}function Bc(l,u){mi(l,u,16)}function Ts(l,u){var p;for(p=0;16>p;++p)r(l,u+32*p,l,u-32,16)}function no(l,u){var p;for(p=16;0<p;--p)n(l,u,l[u-1],16),u+=32}function kr(l,u,p){var B;for(B=0;16>B;++B)n(u,p+32*B,l,16)}function wc(l,u){var p,B=16;for(p=0;16>p;++p)B+=l[u-1+32*p]+l[u+p-32];kr(B>>5,l,u)}function Bi(l,u){var p,B=8;for(p=0;16>p;++p)B+=l[u-1+32*p];kr(B>>4,l,u)}function Ds(l,u){var p,B=8;for(p=0;16>p;++p)B+=l[u+p-32];kr(B>>4,l,u)}function vc(l,u){kr(128,l,u)}function oe(l,u,p){return l+2*u+p+2>>2}function yc(l,u){var p,B=u-32;for(B=new Uint8Array([oe(l[B-1],l[B+0],l[B+1]),oe(l[B+0],l[B+1],l[B+2]),oe(l[B+1],l[B+2],l[B+3]),oe(l[B+2],l[B+3],l[B+4])]),p=0;4>p;++p)r(l,u+32*p,B,0,B.length)}function Cc(l,u){var p=l[u-1],B=l[u-1+32],b=l[u-1+64],Q=l[u-1+96];xA(l,u+0,16843009*oe(l[u-1-32],p,B)),xA(l,u+32,16843009*oe(p,B,b)),xA(l,u+64,16843009*oe(B,b,Q)),xA(l,u+96,16843009*oe(b,Q,Q))}function bc(l,u){var p,B=4;for(p=0;4>p;++p)B+=l[u+p-32]+l[u-1+32*p];for(B>>=3,p=0;4>p;++p)n(l,u+32*p,B,4)}function gn(l,u){var p=l[u-1+0],B=l[u-1+32],b=l[u-1+64],Q=l[u-1-32],E=l[u+0-32],I=l[u+1-32],H=l[u+2-32],D=l[u+3-32];l[u+0+96]=oe(B,b,l[u-1+96]),l[u+1+96]=l[u+0+64]=oe(p,B,b),l[u+2+96]=l[u+1+64]=l[u+0+32]=oe(Q,p,B),l[u+3+96]=l[u+2+64]=l[u+1+32]=l[u+0+0]=oe(E,Q,p),l[u+3+64]=l[u+2+32]=l[u+1+0]=oe(I,E,Q),l[u+3+32]=l[u+2+0]=oe(H,I,E),l[u+3+0]=oe(D,H,I)}function pn(l,u){var p=l[u+1-32],B=l[u+2-32],b=l[u+3-32],Q=l[u+4-32],E=l[u+5-32],I=l[u+6-32],H=l[u+7-32];l[u+0+0]=oe(l[u+0-32],p,B),l[u+1+0]=l[u+0+32]=oe(p,B,b),l[u+2+0]=l[u+1+32]=l[u+0+64]=oe(B,b,Q),l[u+3+0]=l[u+2+32]=l[u+1+64]=l[u+0+96]=oe(b,Q,E),l[u+3+32]=l[u+2+64]=l[u+1+96]=oe(Q,E,I),l[u+3+64]=l[u+2+96]=oe(E,I,H),l[u+3+96]=oe(I,H,H)}function Fc(l,u){var p=l[u-1+0],B=l[u-1+32],b=l[u-1+64],Q=l[u-1-32],E=l[u+0-32],I=l[u+1-32],H=l[u+2-32],D=l[u+3-32];l[u+0+0]=l[u+1+64]=Q+E+1>>1,l[u+1+0]=l[u+2+64]=E+I+1>>1,l[u+2+0]=l[u+3+64]=I+H+1>>1,l[u+3+0]=H+D+1>>1,l[u+0+96]=oe(b,B,p),l[u+0+64]=oe(B,p,Q),l[u+0+32]=l[u+1+96]=oe(p,Q,E),l[u+1+32]=l[u+2+96]=oe(Q,E,I),l[u+2+32]=l[u+3+96]=oe(E,I,H),l[u+3+32]=oe(I,H,D)}function Qc(l,u){var p=l[u+0-32],B=l[u+1-32],b=l[u+2-32],Q=l[u+3-32],E=l[u+4-32],I=l[u+5-32],H=l[u+6-32],D=l[u+7-32];l[u+0+0]=p+B+1>>1,l[u+1+0]=l[u+0+64]=B+b+1>>1,l[u+2+0]=l[u+1+64]=b+Q+1>>1,l[u+3+0]=l[u+2+64]=Q+E+1>>1,l[u+0+32]=oe(p,B,b),l[u+1+32]=l[u+0+96]=oe(B,b,Q),l[u+2+32]=l[u+1+96]=oe(b,Q,E),l[u+3+32]=l[u+2+96]=oe(Q,E,I),l[u+3+64]=oe(E,I,H),l[u+3+96]=oe(I,H,D)}function Ji(l,u){var p=l[u-1+0],B=l[u-1+32],b=l[u-1+64],Q=l[u-1+96];l[u+0+0]=p+B+1>>1,l[u+2+0]=l[u+0+32]=B+b+1>>1,l[u+2+32]=l[u+0+64]=b+Q+1>>1,l[u+1+0]=oe(p,B,b),l[u+3+0]=l[u+1+32]=oe(B,b,Q),l[u+3+32]=l[u+1+64]=oe(b,Q,Q),l[u+3+64]=l[u+2+64]=l[u+0+96]=l[u+1+96]=l[u+2+96]=l[u+3+96]=Q}function Rs(l,u){var p=l[u-1+0],B=l[u-1+32],b=l[u-1+64],Q=l[u-1+96],E=l[u-1-32],I=l[u+0-32],H=l[u+1-32],D=l[u+2-32];l[u+0+0]=l[u+2+32]=p+E+1>>1,l[u+0+32]=l[u+2+64]=B+p+1>>1,l[u+0+64]=l[u+2+96]=b+B+1>>1,l[u+0+96]=Q+b+1>>1,l[u+3+0]=oe(I,H,D),l[u+2+0]=oe(E,I,H),l[u+1+0]=l[u+3+32]=oe(p,E,I),l[u+1+32]=l[u+3+64]=oe(B,p,E),l[u+1+64]=l[u+3+96]=oe(b,B,p),l[u+1+96]=oe(Q,b,B)}function wi(l,u){var p;for(p=0;8>p;++p)r(l,u+32*p,l,u-32,8)}function Uc(l,u){var p;for(p=0;8>p;++p)n(l,u,l[u-1],8),u+=32}function mn(l,u,p){var B;for(B=0;8>B;++B)n(u,p+32*B,l,8)}function xc(l,u){var p,B=8;for(p=0;8>p;++p)B+=l[u+p-32]+l[u-1+32*p];mn(B>>4,l,u)}function Os(l,u){var p,B=4;for(p=0;8>p;++p)B+=l[u+p-32];mn(B>>3,l,u)}function Ms(l,u){var p,B=4;for(p=0;8>p;++p)B+=l[u-1+32*p];mn(B>>3,l,u)}function io(l,u){mn(128,l,u)}function Bn(l,u,p){var B=l[u-p],b=l[u+0],Q=3*(b-B)+Ec[1020+l[u-2*p]-l[u+p]],E=fo[112+(Q+4>>3)];l[u-p]=sr[255+B+fo[112+(Q+3>>3)]],l[u+0]=sr[255+b-E]}function Ks(l,u,p,B){var b=l[u+0],Q=l[u+p];return br[255+l[u-2*p]-l[u-p]]>B||br[255+Q-b]>B}function Yi(l,u,p,B){return 4*br[255+l[u-p]-l[u+0]]+br[255+l[u-2*p]-l[u+p]]<=B}function js(l,u,p,B,b){var Q=l[u-3*p],E=l[u-2*p],I=l[u-p],H=l[u+0],D=l[u+p],Y=l[u+2*p],uA=l[u+3*p];return 4*br[255+I-H]+br[255+E-D]>B?0:br[255+l[u-4*p]-Q]<=b&&br[255+Q-E]<=b&&br[255+E-I]<=b&&br[255+uA-Y]<=b&&br[255+Y-D]<=b&&br[255+D-H]<=b}function vi(l,u,p,B){var b=2*B+1;for(B=0;16>B;++B)Yi(l,u+B,p,b)&&Bn(l,u+B,p)}function Gs(l,u,p,B){var b=2*B+1;for(B=0;16>B;++B)Yi(l,u+B*p,1,b)&&Bn(l,u+B*p,1)}function so(l,u,p,B){var b;for(b=3;0<b;--b)vi(l,u+=4*p,p,B)}function ao(l,u,p,B){var b;for(b=3;0<b;--b)Gs(l,u+=4,p,B)}function wn(l,u,p,B,b,Q,E,I){for(Q=2*Q+1;0<b--;){if(js(l,u,p,Q,E))if(Ks(l,u,p,I))Bn(l,u,p);else{var H=l,D=u,Y=p,uA=H[D-2*Y],R=H[D-Y],tA=H[D+0],nA=H[D+Y],pA=H[D+2*Y],cA=27*(vA=Ec[1020+3*(tA-R)+Ec[1020+uA-nA]])+63>>7,mA=18*vA+63>>7,vA=9*vA+63>>7;H[D-3*Y]=sr[255+H[D-3*Y]+vA],H[D-2*Y]=sr[255+uA+mA],H[D-Y]=sr[255+R+cA],H[D+0]=sr[255+tA-cA],H[D+Y]=sr[255+nA-mA],H[D+2*Y]=sr[255+pA-vA]}u+=B}}function vn(l,u,p,B,b,Q,E,I){for(Q=2*Q+1;0<b--;){if(js(l,u,p,Q,E))if(Ks(l,u,p,I))Bn(l,u,p);else{var H=l,D=u,Y=p,uA=H[D-Y],R=H[D+0],tA=H[D+Y],nA=fo[112+(4+(pA=3*(R-uA))>>3)],pA=fo[112+(pA+3>>3)],cA=nA+1>>1;H[D-2*Y]=sr[255+H[D-2*Y]+cA],H[D-Y]=sr[255+uA+pA],H[D+0]=sr[255+R-nA],H[D+Y]=sr[255+tA-cA]}u+=B}}function oo(l,u,p,B,b,Q){wn(l,u,p,1,16,B,b,Q)}function yi(l,u,p,B,b,Q){wn(l,u,1,p,16,B,b,Q)}function lo(l,u,p,B,b,Q){var E;for(E=3;0<E;--E)vn(l,u+=4*p,p,1,16,B,b,Q)}function d(l,u,p,B,b,Q){var E;for(E=3;0<E;--E)vn(l,u+=4,1,p,16,B,b,Q)}function C(l,u,p,B,b,Q,E,I){wn(l,u,b,1,8,Q,E,I),wn(p,B,b,1,8,Q,E,I)}function O(l,u,p,B,b,Q,E,I){wn(l,u,1,b,8,Q,E,I),wn(p,B,1,b,8,Q,E,I)}function W(l,u,p,B,b,Q,E,I){vn(l,u+4*b,b,1,8,Q,E,I),vn(p,B+4*b,b,1,8,Q,E,I)}function rA(l,u,p,B,b,Q,E,I){vn(l,u+4,1,b,8,Q,E,I),vn(p,B+4,1,b,8,Q,E,I)}function BA(){this.ba=new ve,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Le,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function bA(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function MA(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function VA(){this.ua=0,this.Wa=new fe,this.vb=new fe,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new z,this.yc=new K}function ae(){this.xb=this.a=0,this.l=new zi,this.ca=new ve,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new M,this.Pb=0,this.wd=new M,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new VA,this.ab=0,this.gc=s(4,MA),this.Oc=0}function de(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new zi,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function xe(l,u,p,B,b,Q,E){for(l=l==null?0:l[u+0],u=0;u<E;++u)b[Q+u]=l+p[B+u]&255,l=b[Q+u]}function Xe(l,u,p,B,b,Q,E){var I;if(l==null)xe(null,null,p,B,b,Q,E);else for(I=0;I<E;++I)b[Q+I]=l[u+I]+p[B+I]&255}function ut(l,u,p,B,b,Q,E){if(l==null)xe(null,null,p,B,b,Q,E);else{var I,H=l[u+0],D=H,Y=H;for(I=0;I<E;++I)D=Y+(H=l[u+I])-D,Y=p[B+I]+(-256&D?0>D?0:255:D)&255,D=H,b[Q+I]=Y}}function Oe(l,u,p,B){var b=u.width,Q=u.o;if(A(l!=null&&u!=null),0>p||0>=B||p+B>Q)return null;if(!l.Cc){if(l.ga==null){var E;if(l.ga=new de,(E=l.ga==null)||(E=u.width*u.o,A(l.Gb.length==0),l.Gb=i(E),l.Uc=0,l.Gb==null?E=0:(l.mb=l.Gb,l.nb=l.Uc,l.rc=null,E=1),E=!E),!E){E=l.ga;var I=l.Fa,H=l.P,D=l.qc,Y=l.mb,uA=l.nb,R=H+1,tA=D-1,nA=E.l;if(A(I!=null&&Y!=null&&u!=null),zn[0]=null,zn[1]=xe,zn[2]=Xe,zn[3]=ut,E.ca=Y,E.tb=uA,E.c=u.width,E.i=u.height,A(0<E.c&&0<E.i),1>=D)u=0;else if(E.$a=3&I[H+0],E.Z=I[H+0]>>2&3,E.Lc=I[H+0]>>4&3,H=I[H+0]>>6&3,0>E.$a||1<E.$a||4<=E.Z||1<E.Lc||H)u=0;else if(nA.put=ee,nA.ac=Vr,nA.bc=hn,nA.ma=E,nA.width=u.width,nA.height=u.height,nA.Da=u.Da,nA.v=u.v,nA.va=u.va,nA.j=u.j,nA.o=u.o,E.$a)A:{A(E.$a==1),u=gi();e:for(;;){if(u==null){u=0;break A}if(A(E!=null),E.mc=u,u.c=E.c,u.i=E.i,u.l=E.l,u.l.ma=E,u.l.width=E.c,u.l.height=E.i,u.a=0,dA(u.m,I,R,tA),!zr(E.c,E.i,1,u,null)||(u.ab==1&&u.gc[0].hc==3&&_r(u.s)?(E.ic=1,I=u.c*u.i,u.Ta=null,u.Ua=0,u.V=i(I),u.Ba=0,u.V==null?(u.a=1,u=0):u=1):(E.ic=0,u=pi(u,E.c)),!u))break e;u=1;break A}E.mc=null,u=0}else u=tA>=E.c*E.i;E=!u}if(E)return null;l.ga.Lc!=1?l.Ga=0:B=Q-p}A(l.ga!=null),A(p+B<=Q);A:{if(u=(I=l.ga).c,Q=I.l.o,I.$a==0){if(R=l.rc,tA=l.Vc,nA=l.Fa,H=l.P+1+p*u,D=l.mb,Y=l.nb+p*u,A(H<=l.P+l.qc),I.Z!=0)for(A(zn[I.Z]!=null),E=0;E<B;++E)zn[I.Z](R,tA,nA,H,D,Y,u),R=D,tA=Y,Y+=u,H+=u;else for(E=0;E<B;++E)r(D,Y,nA,H,u),R=D,tA=Y,Y+=u,H+=u;l.rc=R,l.Vc=tA}else{if(A(I.mc!=null),u=p+B,A((E=I.mc)!=null),A(u<=E.i),E.C>=u)u=1;else if(I.ic||Pr(),I.ic){I=E.V,R=E.Ba,tA=E.c;var pA=E.i,cA=(nA=1,H=E.$/tA,D=E.$%tA,Y=E.m,uA=E.s,E.$),mA=tA*pA,vA=tA*u,UA=uA.wc,FA=cA<vA?Lt(uA,D,H):null;A(cA<=mA),A(u<=pA),A(_r(uA));e:for(;;){for(;!Y.h&&cA<vA;){if(D&UA||(FA=Lt(uA,D,H)),A(FA!=null),sA(Y),256>(pA=Je(FA.G[0],FA.H[0],Y)))I[R+cA]=pA,++cA,++D>=tA&&(D=0,++H<=u&&!(H%16)&&Nr(E,H));else{if(!(280>pA)){nA=0;break e}pA=pr(pA-256,Y);var WA,DA=Je(FA.G[4],FA.H[4],Y);if(sA(Y),!(cA>=(DA=mr(tA,DA=pr(DA,Y)))&&mA-cA>=pA)){nA=0;break e}for(WA=0;WA<pA;++WA)I[R+cA+WA]=I[R+cA+WA-DA];for(cA+=pA,D+=pA;D>=tA;)D-=tA,++H<=u&&!(H%16)&&Nr(E,H);cA<vA&&D&UA&&(FA=Lt(uA,D,H))}A(Y.h==$(Y))}Nr(E,H>u?u:H);break e}!nA||Y.h&&cA<mA?(nA=0,E.a=Y.h?5:3):E.$=cA,u=nA}else u=Hr(E,E.V,E.Ba,E.c,E.i,u,qi);if(!u){B=0;break A}}p+B>=Q&&(l.Cc=1),B=1}if(!B)return null;if(l.Cc&&((B=l.ga)!=null&&(B.mc=null),l.ga=null,0<l.Ga))return alert("todo:WebPDequantizeLevels"),null}return l.nb+p*b}function mt(l,u,p,B,b,Q){for(;0<b--;){var E,I=l,H=u+(p?1:0),D=l,Y=u+(p?0:3);for(E=0;E<B;++E){var uA=D[Y+4*E];uA!=255&&(uA*=32897,I[H+4*E+0]=I[H+4*E+0]*uA>>23,I[H+4*E+1]=I[H+4*E+1]*uA>>23,I[H+4*E+2]=I[H+4*E+2]*uA>>23)}u+=Q}}function ht(l,u,p,B,b){for(;0<B--;){var Q;for(Q=0;Q<p;++Q){var E=l[u+2*Q+0],I=15&(D=l[u+2*Q+1]),H=4369*I,D=(240&D|D>>4)*H>>16;l[u+2*Q+0]=(240&E|E>>4)*H>>16&240|(15&E|E<<4)*H>>16>>4&15,l[u+2*Q+1]=240&D|I}u+=b}}function St(l,u,p,B,b,Q,E,I){var H,D,Y=255;for(D=0;D<b;++D){for(H=0;H<B;++H){var uA=l[u+H];Q[E+4*H]=uA,Y&=uA}u+=p,E+=I}return Y!=255}function yn(l,u,p,B,b){var Q;for(Q=0;Q<b;++Q)p[B+Q]=l[u+Q]>>8}function Pr(){ta=mt,Bf=ht,wf=St,vf=yn}function Cn(l,u,p){k[l]=function(B,b,Q,E,I,H,D,Y,uA,R,tA,nA,pA,cA,mA,vA,UA){var FA,WA=UA-1>>1,DA=I[H+0]|D[Y+0]<<16,pe=uA[R+0]|tA[nA+0]<<16;A(B!=null);var jA=3*DA+pe+131074>>2;for(u(B[b+0],255&jA,jA>>16,pA,cA),Q!=null&&(jA=3*pe+DA+131074>>2,u(Q[E+0],255&jA,jA>>16,mA,vA)),FA=1;FA<=WA;++FA){var be=I[H+FA]|D[Y+FA]<<16,wt=uA[R+FA]|tA[nA+FA]<<16,me=DA+be+pe+wt+524296,GA=me+2*(be+pe)>>3;jA=GA+DA>>1,DA=(me=me+2*(DA+wt)>>3)+be>>1,u(B[b+2*FA-1],255&jA,jA>>16,pA,cA+(2*FA-1)*p),u(B[b+2*FA-0],255&DA,DA>>16,pA,cA+(2*FA-0)*p),Q!=null&&(jA=me+pe>>1,DA=GA+wt>>1,u(Q[E+2*FA-1],255&jA,jA>>16,mA,vA+(2*FA-1)*p),u(Q[E+2*FA+0],255&DA,DA>>16,mA,vA+(2*FA+0)*p)),DA=be,pe=wt}1&UA||(jA=3*DA+pe+131074>>2,u(B[b+UA-1],255&jA,jA>>16,pA,cA+(UA-1)*p),Q!=null&&(jA=3*pe+DA+131074>>2,u(Q[E+UA-1],255&jA,jA>>16,mA,vA+(UA-1)*p)))}}function qs(){Fr[go]=H1,Fr[po]=If,Fr[Uf]=k1,Fr[mo]=_f,Fr[Bo]=Nf,Fr[Lc]=Hf,Fr[xf]=P1,Fr[Sc]=If,Fr[Ic]=_f,Fr[wo]=Nf,Fr[_c]=Hf}function Zi(l){return l&-16384?0>l?0:255:l>>T1}function Dn(l,u){return Zi((19077*l>>8)+(26149*u>>8)-14234)}function Ci(l,u,p){return Zi((19077*l>>8)-(6419*u>>8)-(13320*p>>8)+8708)}function bi(l,u){return Zi((19077*l>>8)+(33050*u>>8)-17685)}function Rn(l,u,p,B,b){B[b+0]=Dn(l,p),B[b+1]=Ci(l,u,p),B[b+2]=bi(l,u)}function It(l,u,p,B,b){B[b+0]=bi(l,u),B[b+1]=Ci(l,u,p),B[b+2]=Dn(l,p)}function Fi(l,u,p,B,b){var Q=Ci(l,u,p);u=Q<<3&224|bi(l,u)>>3,B[b+0]=248&Dn(l,p)|Q>>5,B[b+1]=u}function Qi(l,u,p,B,b){var Q=240&bi(l,u)|15;B[b+0]=240&Dn(l,p)|Ci(l,u,p)>>4,B[b+1]=Q}function Vs(l,u,p,B,b){B[b+0]=255,Rn(l,u,p,B,b+1)}function Ws(l,u,p,B,b){It(l,u,p,B,b),B[b+3]=255}function zt(l,u,p,B,b){Rn(l,u,p,B,b),B[b+3]=255}function bn(l,u,p){k[l]=function(B,b,Q,E,I,H,D,Y,uA){for(var R=Y+(-2&uA)*p;Y!=R;)u(B[b+0],Q[E+0],I[H+0],D,Y),u(B[b+1],Q[E+0],I[H+0],D,Y+p),b+=2,++E,++H,Y+=2*p;1&uA&&u(B[b+0],Q[E+0],I[H+0],D,Y)}}function As(l,u,p){return p==0?l==0?u==0?6:5:u==0?4:0:p}function co(l,u,p,B,b){switch(l>>>30){case 3:Li(u,p,B,b,0);break;case 2:Cr(u,p,B,b);break;case 1:Se(u,p,B,b)}}function yr(l,u){var p,B,b=u.M,Q=u.Nb,E=l.oc,I=l.pc+40,H=l.oc,D=l.pc+584,Y=l.oc,uA=l.pc+600;for(p=0;16>p;++p)E[I+32*p-1]=129;for(p=0;8>p;++p)H[D+32*p-1]=129,Y[uA+32*p-1]=129;for(0<b?E[I-1-32]=H[D-1-32]=Y[uA-1-32]=129:(n(E,I-32-1,127,21),n(H,D-32-1,127,9),n(Y,uA-32-1,127,9)),B=0;B<l.za;++B){var R=u.ya[u.aa+B];if(0<B){for(p=-1;16>p;++p)r(E,I+32*p-4,E,I+32*p+12,4);for(p=-1;8>p;++p)r(H,D+32*p-4,H,D+32*p+4,4),r(Y,uA+32*p-4,Y,uA+32*p+4,4)}var tA=l.Gd,nA=l.Hd+B,pA=R.ad,cA=R.Hc;if(0<b&&(r(E,I-32,tA[nA].y,0,16),r(H,D-32,tA[nA].f,0,8),r(Y,uA-32,tA[nA].ea,0,8)),R.Za){var mA=E,vA=I-32+16;for(0<b&&(B>=l.za-1?n(mA,vA,tA[nA].y[15],4):r(mA,vA,tA[nA+1].y,0,4)),p=0;4>p;p++)mA[vA+128+p]=mA[vA+256+p]=mA[vA+384+p]=mA[vA+0+p];for(p=0;16>p;++p,cA<<=2)mA=E,vA=I+Pf[p],Tr[R.Ob[p]](mA,vA),co(cA,pA,16*+p,mA,vA)}else if(mA=As(B,b,R.Ob[0]),Wn[mA](E,I),cA!=0)for(p=0;16>p;++p,cA<<=2)co(cA,pA,16*+p,E,I+Pf[p]);for(p=R.Gc,mA=As(B,b,R.Dd),Un[mA](H,D),Un[mA](Y,uA),cA=pA,mA=H,vA=D,255&(R=0|p)&&(170&R?An(cA,256,mA,vA):Pe(cA,256,mA,vA)),R=Y,cA=uA,255&(p>>=8)&&(170&p?An(pA,320,R,cA):Pe(pA,320,R,cA)),b<l.Ub-1&&(r(tA[nA].y,0,E,I+480,16),r(tA[nA].f,0,H,D+224,8),r(tA[nA].ea,0,Y,uA+224,8)),p=8*Q*l.B,tA=l.sa,nA=l.ta+16*B+16*Q*l.R,pA=l.qa,R=l.ra+8*B+p,cA=l.Ha,mA=l.Ia+8*B+p,p=0;16>p;++p)r(tA,nA+p*l.R,E,I+32*p,16);for(p=0;8>p;++p)r(pA,R+p*l.B,H,D+32*p,8),r(cA,mA+p*l.B,Y,uA+32*p,8)}}function Ui(l,u,p,B,b,Q,E,I,H){var D=[0],Y=[0],uA=0,R=H!=null?H.kd:0,tA=H??new bA;if(l==null||12>p)return 7;tA.data=l,tA.w=u,tA.ha=p,u=[u],p=[p],tA.gb=[tA.gb];A:{var nA=u,pA=p,cA=tA.gb;if(A(l!=null),A(pA!=null),A(cA!=null),cA[0]=0,12<=pA[0]&&!e(l,nA[0],"RIFF")){if(e(l,nA[0]+8,"WEBP")){cA=3;break A}var mA=$A(l,nA[0]+4);if(12>mA||4294967286<mA){cA=3;break A}if(R&&mA>pA[0]-8){cA=7;break A}cA[0]=mA,nA[0]+=12,pA[0]-=12}cA=0}if(cA!=0)return cA;for(mA=0<tA.gb[0],p=p[0];;){A:{var vA=l;pA=u,cA=p;var UA=D,FA=Y,WA=nA=[0];if((jA=uA=[uA])[0]=0,8>cA[0])cA=7;else{if(!e(vA,pA[0],"VP8X")){if($A(vA,pA[0]+4)!=10){cA=3;break A}if(18>cA[0]){cA=7;break A}var DA=$A(vA,pA[0]+8),pe=1+_A(vA,pA[0]+12);if(2147483648<=pe*(vA=1+_A(vA,pA[0]+15))){cA=3;break A}WA!=null&&(WA[0]=DA),UA!=null&&(UA[0]=pe),FA!=null&&(FA[0]=vA),pA[0]+=18,cA[0]-=18,jA[0]=1}cA=0}}if(uA=uA[0],nA=nA[0],cA!=0)return cA;if(pA=!!(2&nA),!mA&&uA)return 3;if(Q!=null&&(Q[0]=!!(16&nA)),E!=null&&(E[0]=pA),I!=null&&(I[0]=0),E=D[0],nA=Y[0],uA&&pA&&H==null){cA=0;break}if(4>p){cA=7;break}if(mA&&uA||!mA&&!uA&&!e(l,u[0],"ALPH")){p=[p],tA.na=[tA.na],tA.P=[tA.P],tA.Sa=[tA.Sa];A:{DA=l,cA=u,mA=p;var jA=tA.gb;UA=tA.na,FA=tA.P,WA=tA.Sa,pe=22,A(DA!=null),A(mA!=null),vA=cA[0];var be=mA[0];for(A(UA!=null),A(WA!=null),UA[0]=null,FA[0]=null,WA[0]=0;;){if(cA[0]=vA,mA[0]=be,8>be){cA=7;break A}var wt=$A(DA,vA+4);if(4294967286<wt){cA=3;break A}var me=8+wt+1&-2;if(pe+=me,0<jA&&pe>jA){cA=3;break A}if(!e(DA,vA,"VP8 ")||!e(DA,vA,"VP8L")){cA=0;break A}if(be[0]<me){cA=7;break A}e(DA,vA,"ALPH")||(UA[0]=DA,FA[0]=vA+8,WA[0]=wt),vA+=me,be-=me}}if(p=p[0],tA.na=tA.na[0],tA.P=tA.P[0],tA.Sa=tA.Sa[0],cA!=0)break}p=[p],tA.Ja=[tA.Ja],tA.xa=[tA.xa];A:if(jA=l,cA=u,mA=p,UA=tA.gb[0],FA=tA.Ja,WA=tA.xa,DA=cA[0],vA=!e(jA,DA,"VP8 "),pe=!e(jA,DA,"VP8L"),A(jA!=null),A(mA!=null),A(FA!=null),A(WA!=null),8>mA[0])cA=7;else{if(vA||pe){if(jA=$A(jA,DA+4),12<=UA&&jA>UA-12){cA=3;break A}if(R&&jA>mA[0]-8){cA=7;break A}FA[0]=jA,cA[0]+=8,mA[0]-=8,WA[0]=pe}else WA[0]=5<=mA[0]&&jA[DA+0]==47&&!(jA[DA+4]>>5),FA[0]=mA[0];cA=0}if(p=p[0],tA.Ja=tA.Ja[0],tA.xa=tA.xa[0],u=u[0],cA!=0)break;if(4294967286<tA.Ja)return 3;if(I==null||pA||(I[0]=tA.xa?2:1),E=[E],nA=[nA],tA.xa){if(5>p){cA=7;break}I=E,R=nA,pA=Q,l==null||5>p?l=0:5<=p&&l[u+0]==47&&!(l[u+4]>>5)?(mA=[0],jA=[0],UA=[0],dA(FA=new M,l,u,p),fn(FA,mA,jA,UA)?(I!=null&&(I[0]=mA[0]),R!=null&&(R[0]=jA[0]),pA!=null&&(pA[0]=UA[0]),l=1):l=0):l=0}else{if(10>p){cA=7;break}I=nA,l==null||10>p||!Za(l,u+3,p-3)?l=0:(R=l[u+0]|l[u+1]<<8|l[u+2]<<16,pA=16383&(l[u+7]<<8|l[u+6]),l=16383&(l[u+9]<<8|l[u+8]),1&R||3<(R>>1&7)||!(R>>4&1)||R>>5>=tA.Ja||!pA||!l?l=0:(E&&(E[0]=pA),I&&(I[0]=l),l=1))}if(!l||(E=E[0],nA=nA[0],uA&&(D[0]!=E||Y[0]!=nA)))return 3;H!=null&&(H[0]=tA,H.offset=u-H.w,A(4294967286>u-H.w),A(H.offset==H.ha-p));break}return cA==0||cA==7&&uA&&H==null?(Q!=null&&(Q[0]|=tA.na!=null&&0<tA.na.length),B!=null&&(B[0]=E),b!=null&&(b[0]=nA),0):cA}function zs(l,u,p){var B=u.width,b=u.height,Q=0,E=0,I=B,H=b;if(u.Da=l!=null&&0<l.Da,u.Da&&(I=l.cd,H=l.bd,Q=l.v,E=l.j,11>p||(Q&=-2,E&=-2),0>Q||0>E||0>=I||0>=H||Q+I>B||E+H>b))return 0;if(u.v=Q,u.j=E,u.va=Q+I,u.o=E+H,u.U=I,u.T=H,u.da=l!=null&&0<l.da,u.da){if(!ZA(I,H,p=[l.ib],Q=[l.hb]))return 0;u.ib=p[0],u.hb=Q[0]}return u.ob=l!=null&&l.ob,u.Kb=l==null||!l.Sd,u.da&&(u.ob=u.ib<3*B/4&&u.hb<3*b/4,u.Kb=0),1}function $s(l){if(l==null)return 2;if(11>l.S){var u=l.f.RGBA;u.fb+=(l.height-1)*u.A,u.A=-u.A}else u=l.f.kb,l=l.height,u.O+=(l-1)*u.fa,u.fa=-u.fa,u.N+=(l-1>>1)*u.Ab,u.Ab=-u.Ab,u.W+=(l-1>>1)*u.Db,u.Db=-u.Db,u.F!=null&&(u.J+=(l-1)*u.lb,u.lb=-u.lb);return 0}function On(l,u,p,B){if(B==null||0>=l||0>=u)return 2;if(p!=null){if(p.Da){var b=p.cd,Q=p.bd,E=-2&p.v,I=-2&p.j;if(0>E||0>I||0>=b||0>=Q||E+b>l||I+Q>u)return 2;l=b,u=Q}if(p.da){if(!ZA(l,u,b=[p.ib],Q=[p.hb]))return 2;l=b[0],u=Q[0]}}B.width=l,B.height=u;A:{var H=B.width,D=B.height;if(l=B.S,0>=H||0>=D||!(l>=go&&13>l))l=2;else{if(0>=B.Rd&&B.sd==null){E=Q=b=u=0;var Y=(I=H*Tf[l])*D;if(11>l||(Q=(D+1)/2*(u=(H+1)/2),l==12&&(E=(b=H)*D)),(D=i(Y+2*Q+E))==null){l=1;break A}B.sd=D,11>l?((H=B.f.RGBA).eb=D,H.fb=0,H.A=I,H.size=Y):((H=B.f.kb).y=D,H.O=0,H.fa=I,H.Fd=Y,H.f=D,H.N=0+Y,H.Ab=u,H.Cd=Q,H.ea=D,H.W=0+Y+Q,H.Db=u,H.Ed=Q,l==12&&(H.F=D,H.J=0+Y+2*Q),H.Tc=E,H.lb=b)}if(u=1,b=B.S,Q=B.width,E=B.height,b>=go&&13>b)if(11>b)l=B.f.RGBA,u&=(I=Math.abs(l.A))*(E-1)+Q<=l.size,u&=I>=Q*Tf[b],u&=l.eb!=null;else{l=B.f.kb,I=(Q+1)/2,Y=(E+1)/2,H=Math.abs(l.fa),D=Math.abs(l.Ab);var uA=Math.abs(l.Db),R=Math.abs(l.lb),tA=R*(E-1)+Q;u&=H*(E-1)+Q<=l.Fd,u&=D*(Y-1)+I<=l.Cd,u=(u&=uA*(Y-1)+I<=l.Ed)&H>=Q&D>=I&uA>=I,u&=l.y!=null,u&=l.f!=null,u&=l.ea!=null,b==12&&(u&=R>=Q,u&=tA<=l.Tc,u&=l.F!=null)}else u=0;l=u?0:2}}return l!=0||p!=null&&p.fd&&(l=$s(B)),l}var xi=64,nr=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],ir=24,Mn=32,Fn=8,Kn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];PA("Predictor0","PredictorAdd0"),k.Predictor0=function(){return 4278190080},k.Predictor1=function(l){return l},k.Predictor2=function(l,u,p){return u[p+0]},k.Predictor3=function(l,u,p){return u[p+1]},k.Predictor4=function(l,u,p){return u[p-1]},k.Predictor5=function(l,u,p){return qA(qA(l,u[p+1]),u[p+0])},k.Predictor6=function(l,u,p){return qA(l,u[p-1])},k.Predictor7=function(l,u,p){return qA(l,u[p+0])},k.Predictor8=function(l,u,p){return qA(u[p-1],u[p+0])},k.Predictor9=function(l,u,p){return qA(u[p+0],u[p+1])},k.Predictor10=function(l,u,p){return qA(qA(l,u[p-1]),qA(u[p+0],u[p+1]))},k.Predictor11=function(l,u,p){var B=u[p+0];return 0>=ie(B>>24&255,l>>24&255,(u=u[p-1])>>24&255)+ie(B>>16&255,l>>16&255,u>>16&255)+ie(B>>8&255,l>>8&255,u>>8&255)+ie(255&B,255&l,255&u)?B:l},k.Predictor12=function(l,u,p){var B=u[p+0];return(Qe((l>>24&255)+(B>>24&255)-((u=u[p-1])>>24&255))<<24|Qe((l>>16&255)+(B>>16&255)-(u>>16&255))<<16|Qe((l>>8&255)+(B>>8&255)-(u>>8&255))<<8|Qe((255&l)+(255&B)-(255&u)))>>>0},k.Predictor13=function(l,u,p){var B=u[p-1];return(we((l=qA(l,u[p+0]))>>24&255,B>>24&255)<<24|we(l>>16&255,B>>16&255)<<16|we(l>>8&255,B>>8&255)<<8|we(255&l,255&B))>>>0};var Xs=k.PredictorAdd0;k.PredictorAdd1=JA,PA("Predictor2","PredictorAdd2"),PA("Predictor3","PredictorAdd3"),PA("Predictor4","PredictorAdd4"),PA("Predictor5","PredictorAdd5"),PA("Predictor6","PredictorAdd6"),PA("Predictor7","PredictorAdd7"),PA("Predictor8","PredictorAdd8"),PA("Predictor9","PredictorAdd9"),PA("Predictor10","PredictorAdd10"),PA("Predictor11","PredictorAdd11"),PA("Predictor12","PredictorAdd12"),PA("Predictor13","PredictorAdd13");var es=k.PredictorAdd2;kA("ColorIndexInverseTransform","MapARGB","32b",function(l){return l>>8&255},function(l){return l}),kA("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(l){return l},function(l){return l>>8&255});var et,uo=k.ColorIndexInverseTransform,Yr=k.MapARGB,Zr=k.VP8LColorIndexInverseTransformAlpha,Js=k.MapAlpha,Ys=k.VP8LPredictorsAdd=[];Ys.length=16,(k.VP8LPredictors=[]).length=16,(k.VP8LPredictorsAdd_C=[]).length=16,(k.VP8LPredictors_C=[]).length=16;var Zs,Aa,jn,Gn,qn,Ei,Vn,Li,Cr,An,Se,Pe,tt,Bt,Qn,ea,ts,ho,hf,ff,df,gf,pf,mf,ta,Bf,wf,vf,yf=i(511),Cf=i(2041),bf=i(225),Ff=i(767),Qf=0,Ec=Cf,fo=bf,sr=Ff,br=yf,go=0,po=1,Uf=2,mo=3,Bo=4,Lc=5,xf=6,Sc=7,Ic=8,wo=9,_c=10,v1=[2,3,7],y1=[3,3,11],Ef=[280,256,256,256,40],C1=[0,1,1,1,0],b1=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],F1=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Q1=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],U1=8,Nc=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Hc=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ra=null,x1=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],E1=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Lf=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],L1=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],S1=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],I1=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],_1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Wn=[],Tr=[],Un=[],N1=1,Sf=2,zn=[],Fr=[];Cn("UpsampleRgbLinePair",Rn,3),Cn("UpsampleBgrLinePair",It,3),Cn("UpsampleRgbaLinePair",zt,4),Cn("UpsampleBgraLinePair",Ws,4),Cn("UpsampleArgbLinePair",Vs,4),Cn("UpsampleRgba4444LinePair",Qi,2),Cn("UpsampleRgb565LinePair",Fi,2);var H1=k.UpsampleRgbLinePair,k1=k.UpsampleBgrLinePair,If=k.UpsampleRgbaLinePair,_f=k.UpsampleBgraLinePair,Nf=k.UpsampleArgbLinePair,Hf=k.UpsampleRgba4444LinePair,P1=k.UpsampleRgb565LinePair,vo=16,yo=1<<vo-1,na=-227,kc=482,T1=6,kf=0,D1=i(256),R1=i(256),O1=i(256),M1=i(256),K1=i(kc-na),j1=i(kc-na);bn("YuvToRgbRow",Rn,3),bn("YuvToBgrRow",It,3),bn("YuvToRgbaRow",zt,4),bn("YuvToBgraRow",Ws,4),bn("YuvToArgbRow",Vs,4),bn("YuvToRgba4444Row",Qi,2),bn("YuvToRgb565Row",Fi,2);var Pf=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Co=[0,2,8],G1=[8,7,6,4,4,2,2,2,1,1,1,1],q1=1;this.WebPDecodeRGBA=function(l,u,p,B,b){var Q=po,E=new BA,I=new ve;E.ba=I,I.S=Q,I.width=[I.width],I.height=[I.height];var H=I.width,D=I.height,Y=new Ae;if(Y==null||l==null)var uA=2;else A(Y!=null),uA=Ui(l,u,p,Y.width,Y.height,Y.Pd,Y.Qd,Y.format,null);if(uA!=0?H=0:(H!=null&&(H[0]=Y.width[0]),D!=null&&(D[0]=Y.height[0]),H=1),H){I.width=I.width[0],I.height=I.height[0],B!=null&&(B[0]=I.width),b!=null&&(b[0]=I.height);A:{if(B=new zi,(b=new bA).data=l,b.w=u,b.ha=p,b.kd=1,u=[0],A(b!=null),((l=Ui(b.data,b.w,b.ha,null,null,null,u,null,b))==0||l==7)&&u[0]&&(l=4),(u=l)==0){if(A(E!=null),B.data=b.data,B.w=b.w+b.offset,B.ha=b.ha-b.offset,B.put=ee,B.ac=Vr,B.bc=hn,B.ma=E,b.xa){if((l=gi())==null){E=1;break A}if(function(R,tA){var nA=[0],pA=[0],cA=[0];e:for(;;){if(R==null)return 0;if(tA==null)return R.a=2,0;if(R.l=tA,R.a=0,dA(R.m,tA.data,tA.w,tA.ha),!fn(R.m,nA,pA,cA)){R.a=3;break e}if(R.xb=Sf,tA.width=nA[0],tA.height=pA[0],!zr(nA[0],pA[0],1,R,null))break e;return 1}return A(R.a!=0),0}(l,B)){if(B=(u=On(B.width,B.height,E.Oa,E.ba))==0){e:{B=l;t:for(;;){if(B==null){B=0;break e}if(A(B.s.yc!=null),A(B.s.Ya!=null),A(0<B.s.Wb),A((p=B.l)!=null),A((b=p.ma)!=null),B.xb!=0){if(B.ca=b.ba,B.tb=b.tb,A(B.ca!=null),!zs(b.Oa,p,mo)){B.a=2;break t}if(!pi(B,p.width)||p.da)break t;if((p.da||re(B.ca.S))&&Pr(),11>B.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),B.ca.f.kb.F!=null&&Pr()),B.Pb&&0<B.s.ua&&B.s.vb.X==null&&!P(B.s.vb,B.s.Wa.Xa)){B.a=1;break t}B.xb=0}if(!Hr(B,B.V,B.Ba,B.c,B.i,p.o,Tn))break t;b.Dc=B.Ma,B=1;break e}A(B.a!=0),B=0}B=!B}B&&(u=l.a)}else u=l.a}else{if((l=new fc)==null){E=1;break A}if(l.Fa=b.na,l.P=b.P,l.qc=b.Sa,Xr(l,B)){if((u=On(B.width,B.height,E.Oa,E.ba))==0){if(l.Aa=0,p=E.Oa,A((b=l)!=null),p!=null){if(0<(H=0>(H=p.Md)?0:100<H?255:255*H/100)){for(D=Y=0;4>D;++D)12>(uA=b.pb[D]).lc&&(uA.ia=H*G1[0>uA.lc?0:uA.lc]>>3),Y|=uA.ia;Y&&(alert("todo:VP8InitRandom"),b.ia=1)}b.Ga=p.Id,100<b.Ga?b.Ga=100:0>b.Ga&&(b.Ga=0)}(function(R,tA){if(R==null)return 0;if(tA==null)return ct(R,2,"NULL VP8Io parameter in VP8Decode().");if(!R.cb&&!Xr(R,tA))return 0;if(A(R.cb),tA.ac==null||tA.ac(tA)){tA.ob&&(R.L=0);var nA=Co[R.L];if(R.L==2?(R.yb=0,R.zb=0):(R.yb=tA.v-nA>>4,R.zb=tA.j-nA>>4,0>R.yb&&(R.yb=0),0>R.zb&&(R.zb=0)),R.Va=tA.o+15+nA>>4,R.Hb=tA.va+15+nA>>4,R.Hb>R.za&&(R.Hb=R.za),R.Va>R.Ub&&(R.Va=R.Ub),0<R.L){var pA=R.ed;for(nA=0;4>nA;++nA){var cA;if(R.Qa.Cb){var mA=R.Qa.Lb[nA];R.Qa.Fb||(mA+=pA.Tb)}else mA=pA.Tb;for(cA=0;1>=cA;++cA){var vA=R.gd[nA][cA],UA=mA;if(pA.Pc&&(UA+=pA.vd[0],cA&&(UA+=pA.od[0])),0<(UA=0>UA?0:63<UA?63:UA)){var FA=UA;0<pA.wb&&(FA=4<pA.wb?FA>>2:FA>>1)>9-pA.wb&&(FA=9-pA.wb),1>FA&&(FA=1),vA.dd=FA,vA.tc=2*UA+FA,vA.ld=40<=UA?2:15<=UA?1:0}else vA.tc=0;vA.La=cA}}}nA=0}else ct(R,6,"Frame setup failed"),nA=R.a;if(nA=nA==0){if(nA){R.$c=0,0<R.Aa||(R.Ic=q1);e:{nA=R.Ic,pA=4*(FA=R.za);var WA=32*FA,DA=FA+1,pe=0<R.L?FA*(0<R.Aa?2:1):0,jA=(R.Aa==2?2:1)*FA;if((vA=pA+832+(cA=3*(16*nA+Co[R.L])/2*WA)+(mA=R.Fa!=null&&0<R.Fa.length?R.Kc.c*R.Kc.i:0))!=vA)nA=0;else{if(vA>R.Vb){if(R.Vb=0,R.Ec=i(vA),R.Fc=0,R.Ec==null){nA=ct(R,1,"no memory during frame initialization.");break e}R.Vb=vA}vA=R.Ec,UA=R.Fc,R.Ac=vA,R.Bc=UA,UA+=pA,R.Gd=s(WA,Ja),R.Hd=0,R.rb=s(DA+1,ks),R.sb=1,R.wa=pe?s(pe,wr):null,R.Y=0,R.D.Nb=0,R.D.wa=R.wa,R.D.Y=R.Y,0<R.Aa&&(R.D.Y+=FA),A(!0),R.oc=vA,R.pc=UA,UA+=832,R.ya=s(jA,Ps),R.aa=0,R.D.ya=R.ya,R.D.aa=R.aa,R.Aa==2&&(R.D.aa+=FA),R.R=16*FA,R.B=8*FA,FA=(WA=Co[R.L])*R.R,WA=WA/2*R.B,R.sa=vA,R.ta=UA+FA,R.qa=R.sa,R.ra=R.ta+16*nA*R.R+WA,R.Ha=R.qa,R.Ia=R.ra+8*nA*R.B+WA,R.$c=0,UA+=cA,R.mb=mA?vA:null,R.nb=mA?UA:null,A(UA+mA<=R.Fc+R.Vb),Ao(R),n(R.Ac,R.Bc,0,pA),nA=1}}if(nA){if(tA.ka=0,tA.y=R.sa,tA.O=R.ta,tA.f=R.qa,tA.N=R.ra,tA.ea=R.Ha,tA.Vd=R.Ia,tA.fa=R.R,tA.Rc=R.B,tA.F=null,tA.J=0,!Qf){for(nA=-255;255>=nA;++nA)yf[255+nA]=0>nA?-nA:nA;for(nA=-1020;1020>=nA;++nA)Cf[1020+nA]=-128>nA?-128:127<nA?127:nA;for(nA=-112;112>=nA;++nA)bf[112+nA]=-16>nA?-16:15<nA?15:nA;for(nA=-255;510>=nA;++nA)Ff[255+nA]=0>nA?0:255<nA?255:nA;Qf=1}Vn=Xi,Li=gc,An=Jr,Se=to,Pe=ro,Cr=dc,tt=oo,Bt=yi,Qn=C,ea=O,ts=lo,ho=d,hf=W,ff=rA,df=vi,gf=Gs,pf=so,mf=ao,Tr[0]=bc,Tr[1]=pc,Tr[2]=yc,Tr[3]=Cc,Tr[4]=gn,Tr[5]=Fc,Tr[6]=pn,Tr[7]=Qc,Tr[8]=Rs,Tr[9]=Ji,Wn[0]=wc,Wn[1]=Bc,Wn[2]=Ts,Wn[3]=no,Wn[4]=Bi,Wn[5]=Ds,Wn[6]=vc,Un[0]=xc,Un[1]=mc,Un[2]=wi,Un[3]=Uc,Un[4]=Ms,Un[5]=Os,Un[6]=io,nA=1}else nA=0}nA&&(nA=function(be,wt){for(be.M=0;be.M<be.Va;++be.M){var me,GA=be.Jc[be.M&be.Xb],LA=be.m,rt=be;for(me=0;me<rt.za;++me){var he=LA,Fe=rt,Ge=Fe.Ac,_t=Fe.Bc+4*me,$t=Fe.zc,Ye=Fe.ya[Fe.aa+me];if(Fe.Qa.Bb?Ye.$b=yA(he,Fe.Pa.jb[0])?2+yA(he,Fe.Pa.jb[2]):yA(he,Fe.Pa.jb[1]):Ye.$b=0,Fe.kc&&(Ye.Ad=yA(he,Fe.Bd)),Ye.Za=!yA(he,145)+0,Ye.Za){var Dt=Ye.Ob,Xt=0;for(Fe=0;4>Fe;++Fe){var vt,Ee=$t[0+Fe];for(vt=0;4>vt;++vt){Ee=S1[Ge[_t+vt]][Ee];for(var Ne=Lf[yA(he,Ee[0])];0<Ne;)Ne=Lf[2*Ne+yA(he,Ee[Ne])];Ee=-Ne,Ge[_t+vt]=Ee}r(Dt,Xt,Ge,_t,4),Xt+=4,$t[0+Fe]=Ee}}else Ee=yA(he,156)?yA(he,128)?1:3:yA(he,163)?2:0,Ye.Ob[0]=Ee,n(Ge,_t,Ee,4),n($t,0,Ee,4);Ye.Dd=yA(he,142)?yA(he,114)?yA(he,183)?1:3:2:0}if(rt.m.Ka)return ct(be,7,"Premature end-of-partition0 encountered.");for(;be.ja<be.za;++be.ja){if(rt=GA,he=(LA=be).rb[LA.sb-1],Ge=LA.rb[LA.sb+LA.ja],me=LA.ya[LA.aa+LA.ja],_t=LA.kc?me.Ad:0)he.la=Ge.la=0,me.Za||(he.Na=Ge.Na=0),me.Hc=0,me.Gc=0,me.ia=0;else{var Ze,He;if(he=Ge,Ge=rt,_t=LA.Pa.Xc,$t=LA.ya[LA.aa+LA.ja],Ye=LA.pb[$t.$b],Fe=$t.ad,Dt=0,Xt=LA.rb[LA.sb-1],Ee=vt=0,n(Fe,Dt,0,384),$t.Za)var Nt=0,Dr=_t[3];else{Ne=i(16);var nt=he.Na+Xt.Na;if(nt=ra(Ge,_t[1],nt,Ye.Eb,0,Ne,0),he.Na=Xt.Na=(0<nt)+0,1<nt)Vn(Ne,0,Fe,Dt);else{var Zt=Ne[0]+3>>3;for(Ne=0;256>Ne;Ne+=16)Fe[Dt+Ne]=Zt}Nt=1,Dr=_t[0]}var Te=15&he.la,yt=15&Xt.la;for(Ne=0;4>Ne;++Ne){var ar=1&yt;for(Zt=He=0;4>Zt;++Zt)Te=Te>>1|(ar=(nt=ra(Ge,Dr,nt=ar+(1&Te),Ye.Sc,Nt,Fe,Dt))>Nt)<<7,He=He<<2|(3<nt?3:1<nt?2:Fe[Dt+0]!=0),Dt+=16;Te>>=4,yt=yt>>1|ar<<7,vt=(vt<<8|He)>>>0}for(Dr=Te,Nt=yt>>4,Ze=0;4>Ze;Ze+=2){for(He=0,Te=he.la>>4+Ze,yt=Xt.la>>4+Ze,Ne=0;2>Ne;++Ne){for(ar=1&yt,Zt=0;2>Zt;++Zt)nt=ar+(1&Te),Te=Te>>1|(ar=0<(nt=ra(Ge,_t[2],nt,Ye.Qc,0,Fe,Dt)))<<3,He=He<<2|(3<nt?3:1<nt?2:Fe[Dt+0]!=0),Dt+=16;Te>>=2,yt=yt>>1|ar<<5}Ee|=He<<4*Ze,Dr|=Te<<4<<Ze,Nt|=(240&yt)<<Ze}he.la=Dr,Xt.la=Nt,$t.Hc=vt,$t.Gc=Ee,$t.ia=43690&Ee?0:Ye.ia,_t=!(vt|Ee)}if(0<LA.L&&(LA.wa[LA.Y+LA.ja]=LA.gd[me.$b][me.Za],LA.wa[LA.Y+LA.ja].La|=!_t),rt.Ka)return ct(be,7,"Premature end-of-file encountered.")}if(Ao(be),LA=wt,rt=1,me=(GA=be).D,he=0<GA.L&&GA.M>=GA.zb&&GA.M<=GA.Va,GA.Aa==0)e:{if(me.M=GA.M,me.uc=he,yr(GA,me),rt=1,me=(He=GA.D).Nb,he=(Ee=Co[GA.L])*GA.R,Ge=Ee/2*GA.B,Ne=16*me*GA.R,Zt=8*me*GA.B,_t=GA.sa,$t=GA.ta-he+Ne,Ye=GA.qa,Fe=GA.ra-Ge+Zt,Dt=GA.Ha,Xt=GA.Ia-Ge+Zt,yt=(Te=He.M)==0,vt=Te>=GA.Va-1,GA.Aa==2&&yr(GA,He),He.uc)for(ar=(nt=GA).D.M,A(nt.D.uc),He=nt.yb;He<nt.Hb;++He){Nt=He,Dr=ar;var Jt=(or=(Ht=nt).D).Nb;Ze=Ht.R;var or=or.wa[or.Y+Nt],lr=Ht.sa,Ar=Ht.ta+16*Jt*Ze+16*Nt,cr=or.dd,Me=or.tc;if(Me!=0)if(A(3<=Me),Ht.L==1)0<Nt&&gf(lr,Ar,Ze,Me+4),or.La&&mf(lr,Ar,Ze,Me),0<Dr&&df(lr,Ar,Ze,Me+4),or.La&&pf(lr,Ar,Ze,Me);else{var ur=Ht.B,Rr=Ht.qa,Si=Ht.ra+8*Jt*ur+8*Nt,xn=Ht.Ha,Ht=Ht.Ia+8*Jt*ur+8*Nt;Jt=or.ld,0<Nt&&(Bt(lr,Ar,Ze,Me+4,cr,Jt),ea(Rr,Si,xn,Ht,ur,Me+4,cr,Jt)),or.La&&(ho(lr,Ar,Ze,Me,cr,Jt),ff(Rr,Si,xn,Ht,ur,Me,cr,Jt)),0<Dr&&(tt(lr,Ar,Ze,Me+4,cr,Jt),Qn(Rr,Si,xn,Ht,ur,Me+4,cr,Jt)),or.La&&(ts(lr,Ar,Ze,Me,cr,Jt),hf(Rr,Si,xn,Ht,ur,Me,cr,Jt))}}if(GA.ia&&alert("todo:DitherRow"),LA.put!=null){if(He=16*Te,Te=16*(Te+1),yt?(LA.y=GA.sa,LA.O=GA.ta+Ne,LA.f=GA.qa,LA.N=GA.ra+Zt,LA.ea=GA.Ha,LA.W=GA.Ia+Zt):(He-=Ee,LA.y=_t,LA.O=$t,LA.f=Ye,LA.N=Fe,LA.ea=Dt,LA.W=Xt),vt||(Te-=Ee),Te>LA.o&&(Te=LA.o),LA.F=null,LA.J=null,GA.Fa!=null&&0<GA.Fa.length&&He<Te&&(LA.J=Oe(GA,LA,He,Te-He),LA.F=GA.mb,LA.F==null&&LA.F.length==0)){rt=ct(GA,3,"Could not decode alpha data.");break e}He<LA.j&&(Ee=LA.j-He,He=LA.j,A(!(1&Ee)),LA.O+=GA.R*Ee,LA.N+=GA.B*(Ee>>1),LA.W+=GA.B*(Ee>>1),LA.F!=null&&(LA.J+=LA.width*Ee)),He<Te&&(LA.O+=LA.v,LA.N+=LA.v>>1,LA.W+=LA.v>>1,LA.F!=null&&(LA.J+=LA.v),LA.ka=He-LA.j,LA.U=LA.va-LA.v,LA.T=Te-He,rt=LA.put(LA))}me+1!=GA.Ic||vt||(r(GA.sa,GA.ta-he,_t,$t+16*GA.R,he),r(GA.qa,GA.ra-Ge,Ye,Fe+8*GA.B,Ge),r(GA.Ha,GA.Ia-Ge,Dt,Xt+8*GA.B,Ge))}if(!rt)return ct(be,6,"Output aborted.")}return 1}(R,tA)),tA.bc!=null&&tA.bc(tA),nA&=1}return nA?(R.cb=0,nA):0})(l,B)||(u=l.a)}}else u=l.a}u==0&&E.Oa!=null&&E.Oa.fd&&(u=$s(E.ba))}E=u}Q=E!=0?null:11>Q?I.f.RGBA.eb:I.f.kb.y}else Q=null;return Q};var Tf=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(k,Z){for(var x="",S=0;S<4;S++)x+=String.fromCharCode(k[Z++]);return x}function h(k,Z){return k[Z+0]|k[Z+1]<<8}function g(k,Z){return(k[Z+0]|k[Z+1]<<8|k[Z+2]<<16)>>>0}function m(k,Z){return(k[Z+0]|k[Z+1]<<8|k[Z+2]<<16|k[Z+3]<<24)>>>0}new o;var f=[0],w=[0],y=[],F=new o,v=t,L=function(k,Z){var x={},S=0,K=!1,T=0,z=0;if(x.frames=[],!function(U,M){for(var j=0;j<4;j++)if(U[M+j]!="RIFF".charCodeAt(j))return!0;return!1}(k,Z)){for(m(k,Z+=4),Z+=8;Z<k.length;){var lA=c(k,Z),hA=m(k,Z+=4);Z+=4;var iA=hA+(1&hA);switch(lA){case"VP8 ":case"VP8L":x.frames[S]===void 0&&(x.frames[S]={}),(CA=x.frames[S]).src_off=K?z:Z-8,CA.src_size=T+hA+8,S++,K&&(K=!1,T=0,z=0);break;case"VP8X":(CA=x.header={}).feature_flags=k[Z];var dA=Z+4;CA.canvas_width=1+g(k,dA),dA+=3,CA.canvas_height=1+g(k,dA),dA+=3;break;case"ALPH":K=!0,T=iA+8,z=Z-8;break;case"ANIM":(CA=x.header).bgcolor=m(k,Z),dA=Z+4,CA.loop_count=h(k,dA),dA+=2;break;case"ANMF":var QA,CA;(CA=x.frames[S]={}).offset_x=2*g(k,Z),Z+=3,CA.offset_y=2*g(k,Z),Z+=3,CA.width=1+g(k,Z),Z+=3,CA.height=1+g(k,Z),Z+=3,CA.duration=g(k,Z),Z+=3,QA=k[Z++],CA.dispose=1&QA,CA.blend=QA>>1&1}lA!="ANMF"&&(Z+=iA)}return x}}(v,0);L.response=v,L.rgbaoutput=!0,L.dataurl=!1;var N=L.header?L.header:null,_=L.frames?L.frames:null;if(N){N.loop_counter=N.loop_count,f=[N.canvas_height],w=[N.canvas_width];for(var q=0;q<_.length&&_[q].blend!=0;q++);}var X=_[0],J=F.WebPDecodeRGBA(v,X.src_off,X.src_size,w,f);X.rgba=J,X.imgwidth=w[0],X.imgheight=f[0];for(var G=0;G<w[0]*f[0]*4;G++)y[G]=J[G];return this.width=w,this.height=f,this.data=y,this}(function(t){var A,e,r,n,i,s,a,o,c,h=function(U){return U=U||{},this.isStrokeTransparent=U.isStrokeTransparent||!1,this.strokeOpacity=U.strokeOpacity||1,this.strokeStyle=U.strokeStyle||"#000000",this.fillStyle=U.fillStyle||"#000000",this.isFillTransparent=U.isFillTransparent||!1,this.fillOpacity=U.fillOpacity||1,this.font=U.font||"10px sans-serif",this.textBaseline=U.textBaseline||"alphabetic",this.textAlign=U.textAlign||"left",this.lineWidth=U.lineWidth||1,this.lineJoin=U.lineJoin||"miter",this.lineCap=U.lineCap||"butt",this.path=U.path||[],this.transform=U.transform!==void 0?U.transform.clone():new o,this.globalCompositeOperation=U.globalCompositeOperation||"normal",this.globalAlpha=U.globalAlpha||1,this.clip_path=U.clip_path||[],this.currentPoint=U.currentPoint||new s,this.miterLimit=U.miterLimit||10,this.lastPoint=U.lastPoint||new s,this.lineDashOffset=U.lineDashOffset||0,this.lineDash=U.lineDash||[],this.margin=U.margin||[0,0,0,0],this.prevPageLastElemOffset=U.prevPageLastElemOffset||0,this.ignoreClearRect=typeof U.ignoreClearRect!="boolean"||U.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new g(this),A=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,s=this.internal.Point,a=this.internal.Rectangle,o=this.internal.Matrix,c=new h}]);var g=function(U){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var M=U;Object.defineProperty(this,"pdf",{get:function(){return M}});var j=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return j},set:function(P){j=!!P}});var $=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return $},set:function(P){$=!!P}});var AA=0;Object.defineProperty(this,"posX",{get:function(){return AA},set:function(P){isNaN(P)||(AA=P)}});var sA=0;Object.defineProperty(this,"posY",{get:function(){return sA},set:function(P){isNaN(P)||(sA=P)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(P){var IA;typeof P=="number"?IA=[P,P,P,P]:((IA=new Array(4))[0]=P[0],IA[1]=P.length>=2?P[1]:IA[0],IA[2]=P.length>=3?P[2]:IA[0],IA[3]=P.length>=4?P[3]:IA[1]),c.margin=IA}});var fA=!1;Object.defineProperty(this,"autoPaging",{get:function(){return fA},set:function(P){fA=P}});var gA=0;Object.defineProperty(this,"lastBreak",{get:function(){return gA},set:function(P){gA=P}});var yA=[];Object.defineProperty(this,"pageBreaks",{get:function(){return yA},set:function(P){yA=P}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(P){P instanceof h&&(c=P)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(P){c.path=P}});var xA=[];Object.defineProperty(this,"ctxStack",{get:function(){return xA},set:function(P){xA=P}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(P){var IA;IA=m(P),this.ctx.fillStyle=IA.style,this.ctx.isFillTransparent=IA.a===0,this.ctx.fillOpacity=IA.a,this.pdf.setFillColor(IA.r,IA.g,IA.b,{a:IA.a}),this.pdf.setTextColor(IA.r,IA.g,IA.b,{a:IA.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(P){var IA=m(P);this.ctx.strokeStyle=IA.style,this.ctx.isStrokeTransparent=IA.a===0,this.ctx.strokeOpacity=IA.a,IA.a===0?this.pdf.setDrawColor(255,255,255):(IA.a,this.pdf.setDrawColor(IA.r,IA.g,IA.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(P){["butt","round","square"].indexOf(P)!==-1&&(this.ctx.lineCap=P,this.pdf.setLineCap(P))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(P){isNaN(P)||(this.ctx.lineWidth=P,this.pdf.setLineWidth(P))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(P){["bevel","round","miter"].indexOf(P)!==-1&&(this.ctx.lineJoin=P,this.pdf.setLineJoin(P))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(P){isNaN(P)||(this.ctx.miterLimit=P,this.pdf.setMiterLimit(P))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(P){this.ctx.textBaseline=P}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(P){["right","end","center","left","start"].indexOf(P)!==-1&&(this.ctx.textAlign=P)}});var NA=null,_A=null,$A=null;Object.defineProperty(this,"fontFaces",{get:function(){return $A},set:function(P){NA=null,_A=null,$A=P}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(P){var IA;if(this.ctx.font=P,(IA=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(P))!==null){var fe=IA[1];IA[2];var ZA=IA[3],wA=IA[4];IA[5];var SA=IA[6],PA=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(wA)[2];wA=Math.floor(PA==="px"?parseFloat(wA)*this.pdf.internal.scaleFactor:PA==="em"?parseFloat(wA)*this.pdf.getFontSize():parseFloat(wA)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(wA);var XA=function(kA){var Ve,Ce,ge=[],le=kA.trim();if(le==="")return mu;if(le in gg)return[gg[le]];for(;le!=="";){switch(Ce=null,Ve=(le=mg(le)).charAt(0)){case'"':case"'":Ce=DC(le.substring(1),Ve);break;default:Ce=RC(le)}if(Ce===null||(ge.push(Ce[0]),(le=mg(Ce[1]))!==""&&le.charAt(0)!==","))return mu;le=le.replace(/^,/,"")}return ge}(SA);if(this.fontFaces){var qA=function(kA,Ve){var Ce=kA.getFontList(),ge=JSON.stringify(Ce);if(NA===null||_A!==ge){var le=function(Ue){var YA=[];return Object.keys(Ue).forEach(function(Re){Ue[Re].forEach(function(re){var ue=null;switch(re){case"bold":ue={family:Re,weight:"bold"};break;case"italic":ue={family:Re,style:"italic"};break;case"bolditalic":ue={family:Re,weight:"bold",style:"italic"};break;case"":case"normal":ue={family:Re}}ue!==null&&(ue.ref={name:Re,style:re},YA.push(ue))})}),YA}(Ce);NA=function(Ue){for(var YA={},Re=0;Re<Ue.length;++Re){var re=pu(Ue[Re]),ue=re.family,We=re.stretch,ve=re.style,Ae=re.weight;YA[ue]=YA[ue]||{},YA[ue][We]=YA[ue][We]||{},YA[ue][We][ve]=YA[ue][We][ve]||{},YA[ue][We][ve][Ae]=re}return YA}(le.concat(Ve)),_A=ge}return NA}(this.pdf,this.fontFaces),Qe=XA.map(function(kA){return{family:kA,stretch:"normal",weight:ZA,style:fe}}),we=function(kA,Ve,Ce){for(var ge=(Ce=Ce||{}).defaultFontFamily||"times",le=Object.assign({},TC,Ce.genericFontFamilies||{}),Ue=null,YA=null,Re=0;Re<Ve.length;++Re)if(le[(Ue=pu(Ve[Re])).family]&&(Ue.family=le[Ue.family]),kA.hasOwnProperty(Ue.family)){YA=kA[Ue.family];break}if(!(YA=YA||kA[ge]))throw new Error("Could not find a font-family for the rule '"+pg(Ue)+"' and default family '"+ge+"'.");if(YA=function(re,ue){if(ue[re])return ue[re];var We=Bh[re],ve=We<=Bh.normal?-1:1,Ae=dg(ue,um,We,ve);if(!Ae)throw new Error("Could not find a matching font-stretch value for "+re);return Ae}(Ue.stretch,YA),YA=function(re,ue){if(ue[re])return ue[re];for(var We=cm[re],ve=0;ve<We.length;++ve)if(ue[We[ve]])return ue[We[ve]];throw new Error("Could not find a matching font-style for "+re)}(Ue.style,YA),!(YA=function(re,ue){if(ue[re])return ue[re];if(re===400&&ue[500])return ue[500];if(re===500&&ue[400])return ue[400];var We=PC[re],ve=dg(ue,hm,We,re<400?-1:1);if(!ve)throw new Error("Could not find a matching font-weight for value "+re);return ve}(Ue.weight,YA)))throw new Error("Failed to resolve a font for the rule '"+pg(Ue)+"'.");return YA}(qA,Qe);this.pdf.setFont(we.ref.name,we.ref.style)}else{var ie="";(ZA==="bold"||parseInt(ZA,10)>=700||fe==="bold")&&(ie="bold"),fe==="italic"&&(ie+="italic"),ie.length===0&&(ie="normal");for(var JA="",te={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},KA=0;KA<XA.length;KA++){if(this.pdf.internal.getFont(XA[KA],ie,{noFallback:!0,disableWarning:!0})!==void 0){JA=XA[KA];break}if(ie==="bolditalic"&&this.pdf.internal.getFont(XA[KA],"bold",{noFallback:!0,disableWarning:!0})!==void 0)JA=XA[KA],ie="bold";else if(this.pdf.internal.getFont(XA[KA],"normal",{noFallback:!0,disableWarning:!0})!==void 0){JA=XA[KA],ie="normal";break}}if(JA===""){for(var se=0;se<XA.length;se++)if(te[XA[se]]){JA=te[XA[se]];break}}JA=JA===""?"Times":JA,this.pdf.setFont(JA,ie)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(P){this.ctx.globalCompositeOperation=P}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(P){this.ctx.globalAlpha=P}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(P){this.ctx.lineDashOffset=P,CA.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(P){this.ctx.lineDash=P,CA.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(P){this.ctx.ignoreClearRect=!!P}})};g.prototype.setLineDash=function(U){this.lineDash=U},g.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},g.prototype.fill=function(){_.call(this,"fill",!1)},g.prototype.stroke=function(){_.call(this,"stroke",!1)},g.prototype.beginPath=function(){this.path=[{type:"begin"}]},g.prototype.moveTo=function(U,M){if(isNaN(U)||isNaN(M))throw De.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var j=this.ctx.transform.applyToPoint(new s(U,M));this.path.push({type:"mt",x:j.x,y:j.y}),this.ctx.lastPoint=new s(U,M)},g.prototype.closePath=function(){var U=new s(0,0),M=0;for(M=this.path.length-1;M!==-1;M--)if(this.path[M].type==="begin"&&_e(this.path[M+1])==="object"&&typeof this.path[M+1].x=="number"){U=new s(this.path[M+1].x,this.path[M+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(U.x,U.y)},g.prototype.lineTo=function(U,M){if(isNaN(U)||isNaN(M))throw De.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var j=this.ctx.transform.applyToPoint(new s(U,M));this.path.push({type:"lt",x:j.x,y:j.y}),this.ctx.lastPoint=new s(j.x,j.y)},g.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),_.call(this,null,!0)},g.prototype.quadraticCurveTo=function(U,M,j,$){if(isNaN(j)||isNaN($)||isNaN(U)||isNaN(M))throw De.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var AA=this.ctx.transform.applyToPoint(new s(j,$)),sA=this.ctx.transform.applyToPoint(new s(U,M));this.path.push({type:"qct",x1:sA.x,y1:sA.y,x:AA.x,y:AA.y}),this.ctx.lastPoint=new s(AA.x,AA.y)},g.prototype.bezierCurveTo=function(U,M,j,$,AA,sA){if(isNaN(AA)||isNaN(sA)||isNaN(U)||isNaN(M)||isNaN(j)||isNaN($))throw De.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var fA=this.ctx.transform.applyToPoint(new s(AA,sA)),gA=this.ctx.transform.applyToPoint(new s(U,M)),yA=this.ctx.transform.applyToPoint(new s(j,$));this.path.push({type:"bct",x1:gA.x,y1:gA.y,x2:yA.x,y2:yA.y,x:fA.x,y:fA.y}),this.ctx.lastPoint=new s(fA.x,fA.y)},g.prototype.arc=function(U,M,j,$,AA,sA){if(isNaN(U)||isNaN(M)||isNaN(j)||isNaN($)||isNaN(AA))throw De.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(sA=!!sA,!this.ctx.transform.isIdentity){var fA=this.ctx.transform.applyToPoint(new s(U,M));U=fA.x,M=fA.y;var gA=this.ctx.transform.applyToPoint(new s(0,j)),yA=this.ctx.transform.applyToPoint(new s(0,0));j=Math.sqrt(Math.pow(gA.x-yA.x,2)+Math.pow(gA.y-yA.y,2))}Math.abs(AA-$)>=2*Math.PI&&($=0,AA=2*Math.PI),this.path.push({type:"arc",x:U,y:M,radius:j,startAngle:$,endAngle:AA,counterclockwise:sA})},g.prototype.arcTo=function(U,M,j,$,AA){throw new Error("arcTo not implemented.")},g.prototype.rect=function(U,M,j,$){if(isNaN(U)||isNaN(M)||isNaN(j)||isNaN($))throw De.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(U,M),this.lineTo(U+j,M),this.lineTo(U+j,M+$),this.lineTo(U,M+$),this.lineTo(U,M),this.lineTo(U+j,M),this.lineTo(U,M)},g.prototype.fillRect=function(U,M,j,$){if(isNaN(U)||isNaN(M)||isNaN(j)||isNaN($))throw De.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var AA={};this.lineCap!=="butt"&&(AA.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(AA.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(U,M,j,$),this.fill(),AA.hasOwnProperty("lineCap")&&(this.lineCap=AA.lineCap),AA.hasOwnProperty("lineJoin")&&(this.lineJoin=AA.lineJoin)}},g.prototype.strokeRect=function(U,M,j,$){if(isNaN(U)||isNaN(M)||isNaN(j)||isNaN($))throw De.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");w.call(this)||(this.beginPath(),this.rect(U,M,j,$),this.stroke())},g.prototype.clearRect=function(U,M,j,$){if(isNaN(U)||isNaN(M)||isNaN(j)||isNaN($))throw De.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(U,M,j,$))},g.prototype.save=function(U){U=typeof U!="boolean"||U;for(var M=this.pdf.internal.getCurrentPageInfo().pageNumber,j=0;j<this.pdf.internal.getNumberOfPages();j++)this.pdf.setPage(j+1),this.pdf.internal.out("q");if(this.pdf.setPage(M),U){this.ctx.fontSize=this.pdf.internal.getFontSize();var $=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=$}},g.prototype.restore=function(U){U=typeof U!="boolean"||U;for(var M=this.pdf.internal.getCurrentPageInfo().pageNumber,j=0;j<this.pdf.internal.getNumberOfPages();j++)this.pdf.setPage(j+1),this.pdf.internal.out("Q");this.pdf.setPage(M),U&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},g.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var m=function(U){var M,j,$,AA;if(U.isCanvasGradient===!0&&(U=U.getColor()),!U)return{r:0,g:0,b:0,a:0,style:U};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(U))M=0,j=0,$=0,AA=0;else{var sA=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(U);if(sA!==null)M=parseInt(sA[1]),j=parseInt(sA[2]),$=parseInt(sA[3]),AA=1;else if((sA=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(U))!==null)M=parseInt(sA[1]),j=parseInt(sA[2]),$=parseInt(sA[3]),AA=parseFloat(sA[4]);else{if(AA=1,typeof U=="string"&&U.charAt(0)!=="#"){var fA=new rm(U);U=fA.ok?fA.toHex():"#000000"}U.length===4?(M=U.substring(1,2),M+=M,j=U.substring(2,3),j+=j,$=U.substring(3,4),$+=$):(M=U.substring(1,3),j=U.substring(3,5),$=U.substring(5,7)),M=parseInt(M,16),j=parseInt(j,16),$=parseInt($,16)}}return{r:M,g:j,b:$,a:AA,style:U}},f=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},w=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};g.prototype.fillText=function(U,M,j,$){if(isNaN(M)||isNaN(j)||typeof U!="string")throw De.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if($=isNaN($)?void 0:$,!f.call(this)){var AA=iA(this.ctx.transform.rotation),sA=this.ctx.transform.scaleX;S.call(this,{text:U,x:M,y:j,scale:sA,angle:AA,align:this.textAlign,maxWidth:$})}},g.prototype.strokeText=function(U,M,j,$){if(isNaN(M)||isNaN(j)||typeof U!="string")throw De.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!w.call(this)){$=isNaN($)?void 0:$;var AA=iA(this.ctx.transform.rotation),sA=this.ctx.transform.scaleX;S.call(this,{text:U,x:M,y:j,scale:sA,renderingMode:"stroke",angle:AA,align:this.textAlign,maxWidth:$})}},g.prototype.measureText=function(U){if(typeof U!="string")throw De.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var M=this.pdf,j=this.pdf.internal.scaleFactor,$=M.internal.getFontSize(),AA=M.getStringUnitWidth(U)*$/M.internal.scaleFactor;return new function(sA){var fA=(sA=sA||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return fA}}),this}({width:AA*=Math.round(96*j/72*1e4)/1e4})},g.prototype.scale=function(U,M){if(isNaN(U)||isNaN(M))throw De.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var j=new o(U,0,0,M,0,0);this.ctx.transform=this.ctx.transform.multiply(j)},g.prototype.rotate=function(U){if(isNaN(U))throw De.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var M=new o(Math.cos(U),Math.sin(U),-Math.sin(U),Math.cos(U),0,0);this.ctx.transform=this.ctx.transform.multiply(M)},g.prototype.translate=function(U,M){if(isNaN(U)||isNaN(M))throw De.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var j=new o(1,0,0,1,U,M);this.ctx.transform=this.ctx.transform.multiply(j)},g.prototype.transform=function(U,M,j,$,AA,sA){if(isNaN(U)||isNaN(M)||isNaN(j)||isNaN($)||isNaN(AA)||isNaN(sA))throw De.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var fA=new o(U,M,j,$,AA,sA);this.ctx.transform=this.ctx.transform.multiply(fA)},g.prototype.setTransform=function(U,M,j,$,AA,sA){U=isNaN(U)?1:U,M=isNaN(M)?0:M,j=isNaN(j)?0:j,$=isNaN($)?1:$,AA=isNaN(AA)?0:AA,sA=isNaN(sA)?0:sA,this.ctx.transform=new o(U,M,j,$,AA,sA)};var y=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};g.prototype.drawImage=function(U,M,j,$,AA,sA,fA,gA,yA){var xA=this.pdf.getImageProperties(U),NA=1,_A=1,$A=1,P=1;$!==void 0&&gA!==void 0&&($A=gA/$,P=yA/AA,NA=xA.width/$*gA/$,_A=xA.height/AA*yA/AA),sA===void 0&&(sA=M,fA=j,M=0,j=0),$!==void 0&&gA===void 0&&(gA=$,yA=AA),$===void 0&&gA===void 0&&(gA=xA.width,yA=xA.height);var IA=this.ctx.transform.decompose(),fe=iA(IA.rotate.shx),ZA=new o,wA=(ZA=(ZA=(ZA=ZA.multiply(IA.translate)).multiply(IA.skew)).multiply(IA.scale)).applyToRectangle(new a(sA-M*$A,fA-j*P,$*NA,AA*_A));if(this.autoPaging){for(var SA,PA=F.call(this,wA),XA=[],qA=0;qA<PA.length;qA+=1)XA.indexOf(PA[qA])===-1&&XA.push(PA[qA]);N(XA);for(var Qe=XA[0],we=XA[XA.length-1],ie=Qe;ie<we+1;ie++){this.pdf.setPage(ie);var JA=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],te=ie===1?this.posY+this.margin[0]:this.margin[0],KA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],se=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],kA=ie===1?0:KA+(ie-2)*se;if(this.ctx.clip_path.length!==0){var Ve=this.path;SA=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=L(SA,this.posX+this.margin[3],-kA+te+this.ctx.prevPageLastElemOffset),q.call(this,"fill",!0),this.path=Ve}var Ce=JSON.parse(JSON.stringify(wA));Ce=L([Ce],this.posX+this.margin[3],-kA+te+this.ctx.prevPageLastElemOffset)[0];var ge=(ie>Qe||ie<we)&&y.call(this);ge&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],JA,se,null).clip().discardPath()),this.pdf.addImage(U,"JPEG",Ce.x,Ce.y,Ce.w,Ce.h,null,null,fe),ge&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(U,"JPEG",wA.x,wA.y,wA.w,wA.h,null,null,fe)};var F=function(U,M,j){var $=[];M=M||this.pdf.internal.pageSize.width,j=j||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var AA=this.posY+this.ctx.prevPageLastElemOffset;switch(U.type){default:case"mt":case"lt":$.push(Math.floor((U.y+AA)/j)+1);break;case"arc":$.push(Math.floor((U.y+AA-U.radius)/j)+1),$.push(Math.floor((U.y+AA+U.radius)/j)+1);break;case"qct":var sA=dA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,U.x1,U.y1,U.x,U.y);$.push(Math.floor((sA.y+AA)/j)+1),$.push(Math.floor((sA.y+sA.h+AA)/j)+1);break;case"bct":var fA=QA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,U.x1,U.y1,U.x2,U.y2,U.x,U.y);$.push(Math.floor((fA.y+AA)/j)+1),$.push(Math.floor((fA.y+fA.h+AA)/j)+1);break;case"rect":$.push(Math.floor((U.y+AA)/j)+1),$.push(Math.floor((U.y+U.h+AA)/j)+1)}for(var gA=0;gA<$.length;gA+=1)for(;this.pdf.internal.getNumberOfPages()<$[gA];)v.call(this);return $},v=function(){var U=this.fillStyle,M=this.strokeStyle,j=this.font,$=this.lineCap,AA=this.lineWidth,sA=this.lineJoin;this.pdf.addPage(),this.fillStyle=U,this.strokeStyle=M,this.font=j,this.lineCap=$,this.lineWidth=AA,this.lineJoin=sA},L=function(U,M,j){for(var $=0;$<U.length;$++)switch(U[$].type){case"bct":U[$].x2+=M,U[$].y2+=j;case"qct":U[$].x1+=M,U[$].y1+=j;default:U[$].x+=M,U[$].y+=j}return U},N=function(U){return U.sort(function(M,j){return M-j})},_=function(U,M){var j=this.fillStyle,$=this.strokeStyle,AA=this.lineCap,sA=this.lineWidth,fA=Math.abs(sA*this.ctx.transform.scaleX),gA=this.lineJoin;if(this.autoPaging){for(var yA,xA,NA=JSON.parse(JSON.stringify(this.path)),_A=JSON.parse(JSON.stringify(this.path)),$A=[],P=0;P<_A.length;P++)if(_A[P].x!==void 0)for(var IA=F.call(this,_A[P]),fe=0;fe<IA.length;fe+=1)$A.indexOf(IA[fe])===-1&&$A.push(IA[fe]);for(var ZA=0;ZA<$A.length;ZA++)for(;this.pdf.internal.getNumberOfPages()<$A[ZA];)v.call(this);N($A);for(var wA=$A[0],SA=$A[$A.length-1],PA=wA;PA<SA+1;PA++){this.pdf.setPage(PA),this.fillStyle=j,this.strokeStyle=$,this.lineCap=AA,this.lineWidth=fA,this.lineJoin=gA;var XA=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],qA=PA===1?this.posY+this.margin[0]:this.margin[0],Qe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],we=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ie=PA===1?0:Qe+(PA-2)*we;if(this.ctx.clip_path.length!==0){var JA=this.path;yA=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=L(yA,this.posX+this.margin[3],-ie+qA+this.ctx.prevPageLastElemOffset),q.call(this,U,!0),this.path=JA}if(xA=JSON.parse(JSON.stringify(NA)),this.path=L(xA,this.posX+this.margin[3],-ie+qA+this.ctx.prevPageLastElemOffset),M===!1||PA===0){var te=(PA>wA||PA<SA)&&y.call(this);te&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],XA,we,null).clip().discardPath()),q.call(this,U,M),te&&this.pdf.restoreGraphicsState()}this.lineWidth=sA}this.path=NA}else this.lineWidth=fA,q.call(this,U,M),this.lineWidth=sA},q=function(U,M){if((U!=="stroke"||M||!w.call(this))&&(U==="stroke"||M||!f.call(this))){for(var j,$,AA=[],sA=this.path,fA=0;fA<sA.length;fA++){var gA=sA[fA];switch(gA.type){case"begin":AA.push({begin:!0});break;case"close":AA.push({close:!0});break;case"mt":AA.push({start:gA,deltas:[],abs:[]});break;case"lt":var yA=AA.length;if(sA[fA-1]&&!isNaN(sA[fA-1].x)&&(j=[gA.x-sA[fA-1].x,gA.y-sA[fA-1].y],yA>0)){for(;yA>=0;yA--)if(AA[yA-1].close!==!0&&AA[yA-1].begin!==!0){AA[yA-1].deltas.push(j),AA[yA-1].abs.push(gA);break}}break;case"bct":j=[gA.x1-sA[fA-1].x,gA.y1-sA[fA-1].y,gA.x2-sA[fA-1].x,gA.y2-sA[fA-1].y,gA.x-sA[fA-1].x,gA.y-sA[fA-1].y],AA[AA.length-1].deltas.push(j);break;case"qct":var xA=sA[fA-1].x+2/3*(gA.x1-sA[fA-1].x),NA=sA[fA-1].y+2/3*(gA.y1-sA[fA-1].y),_A=gA.x+2/3*(gA.x1-gA.x),$A=gA.y+2/3*(gA.y1-gA.y),P=gA.x,IA=gA.y;j=[xA-sA[fA-1].x,NA-sA[fA-1].y,_A-sA[fA-1].x,$A-sA[fA-1].y,P-sA[fA-1].x,IA-sA[fA-1].y],AA[AA.length-1].deltas.push(j);break;case"arc":AA.push({deltas:[],abs:[],arc:!0}),Array.isArray(AA[AA.length-1].abs)&&AA[AA.length-1].abs.push(gA)}}$=M?null:U==="stroke"?"stroke":"fill";for(var fe=!1,ZA=0;ZA<AA.length;ZA++)if(AA[ZA].arc)for(var wA=AA[ZA].abs,SA=0;SA<wA.length;SA++){var PA=wA[SA];PA.type==="arc"?G.call(this,PA.x,PA.y,PA.radius,PA.startAngle,PA.endAngle,PA.counterclockwise,void 0,M,!fe):K.call(this,PA.x,PA.y),fe=!0}else if(AA[ZA].close===!0)this.pdf.internal.out("h"),fe=!1;else if(AA[ZA].begin!==!0){var XA=AA[ZA].start.x,qA=AA[ZA].start.y;T.call(this,AA[ZA].deltas,XA,qA),fe=!0}$&&k.call(this,$),M&&Z.call(this)}},X=function(U){var M=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,j=M*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return U-j;case"top":return U+M-j;case"hanging":return U+M-2*j;case"middle":return U+M/2-j;default:return U}},J=function(U){return U+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};g.prototype.createLinearGradient=function(){var U=function(){};return U.colorStops=[],U.addColorStop=function(M,j){this.colorStops.push([M,j])},U.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},U.isCanvasGradient=!0,U},g.prototype.createPattern=function(){return this.createLinearGradient()},g.prototype.createRadialGradient=function(){return this.createLinearGradient()};var G=function(U,M,j,$,AA,sA,fA,gA,yA){for(var xA=lA.call(this,j,$,AA,sA),NA=0;NA<xA.length;NA++){var _A=xA[NA];NA===0&&(yA?x.call(this,_A.x1+U,_A.y1+M):K.call(this,_A.x1+U,_A.y1+M)),z.call(this,U,M,_A.x2,_A.y2,_A.x3,_A.y3,_A.x4,_A.y4)}gA?Z.call(this):k.call(this,fA)},k=function(U){switch(U){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Z=function(){this.pdf.clip(),this.pdf.discardPath()},x=function(U,M){this.pdf.internal.out(e(U)+" "+r(M)+" m")},S=function(U){var M;switch(U.align){case"right":case"end":M="right";break;case"center":M="center";break;default:M="left"}var j,$,AA,sA=this.pdf.getTextDimensions(U.text),fA=X.call(this,U.y),gA=J.call(this,fA)-sA.h,yA=this.ctx.transform.applyToPoint(new s(U.x,fA));if(this.autoPaging){var xA=this.ctx.transform.decompose(),NA=new o;NA=(NA=(NA=NA.multiply(xA.translate)).multiply(xA.skew)).multiply(xA.scale);for(var _A=this.ctx.transform.applyToRectangle(new a(U.x,fA,sA.w,sA.h)),$A=NA.applyToRectangle(new a(U.x,gA,sA.w,sA.h)),P=F.call(this,$A),IA=[],fe=0;fe<P.length;fe+=1)IA.indexOf(P[fe])===-1&&IA.push(P[fe]);N(IA);for(var ZA=IA[0],wA=IA[IA.length-1],SA=ZA;SA<wA+1;SA++){this.pdf.setPage(SA);var PA=SA===1?this.posY+this.margin[0]:this.margin[0],XA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],qA=this.pdf.internal.pageSize.height-this.margin[2],Qe=qA-this.margin[0],we=this.pdf.internal.pageSize.width-this.margin[1],ie=we-this.margin[3],JA=SA===1?0:XA+(SA-2)*Qe;if(this.ctx.clip_path.length!==0){var te=this.path;j=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=L(j,this.posX+this.margin[3],-1*JA+PA),q.call(this,"fill",!0),this.path=te}var KA=L([JSON.parse(JSON.stringify($A))],this.posX+this.margin[3],-JA+PA+this.ctx.prevPageLastElemOffset)[0];U.scale>=.01&&($=this.pdf.internal.getFontSize(),this.pdf.setFontSize($*U.scale),AA=this.lineWidth,this.lineWidth=AA*U.scale);var se=this.autoPaging!=="text";if(se||KA.y+KA.h<=qA){if(se||KA.y>=PA&&KA.x<=we){var kA=se?U.text:this.pdf.splitTextToSize(U.text,U.maxWidth||we-KA.x)[0],Ve=L([JSON.parse(JSON.stringify(_A))],this.posX+this.margin[3],-JA+PA+this.ctx.prevPageLastElemOffset)[0],Ce=se&&(SA>ZA||SA<wA)&&y.call(this);Ce&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ie,Qe,null).clip().discardPath()),this.pdf.text(kA,Ve.x,Ve.y,{angle:U.angle,align:M,renderingMode:U.renderingMode}),Ce&&this.pdf.restoreGraphicsState()}}else KA.y<qA&&(this.ctx.prevPageLastElemOffset+=qA-KA.y);U.scale>=.01&&(this.pdf.setFontSize($),this.lineWidth=AA)}}else U.scale>=.01&&($=this.pdf.internal.getFontSize(),this.pdf.setFontSize($*U.scale),AA=this.lineWidth,this.lineWidth=AA*U.scale),this.pdf.text(U.text,yA.x+this.posX,yA.y+this.posY,{angle:U.angle,align:M,renderingMode:U.renderingMode,maxWidth:U.maxWidth}),U.scale>=.01&&(this.pdf.setFontSize($),this.lineWidth=AA)},K=function(U,M,j,$){j=j||0,$=$||0,this.pdf.internal.out(e(U+j)+" "+r(M+$)+" l")},T=function(U,M,j){return this.pdf.lines(U,M,j,null,null)},z=function(U,M,j,$,AA,sA,fA,gA){this.pdf.internal.out([A(n(j+U)),A(i($+M)),A(n(AA+U)),A(i(sA+M)),A(n(fA+U)),A(i(gA+M)),"c"].join(" "))},lA=function(U,M,j,$){for(var AA=2*Math.PI,sA=Math.PI/2;M>j;)M-=AA;var fA=Math.abs(j-M);fA<AA&&$&&(fA=AA-fA);for(var gA=[],yA=$?-1:1,xA=M;fA>1e-5;){var NA=xA+yA*Math.min(fA,sA);gA.push(hA.call(this,U,xA,NA)),fA-=Math.abs(NA-xA),xA=NA}return gA},hA=function(U,M,j){var $=(j-M)/2,AA=U*Math.cos($),sA=U*Math.sin($),fA=AA,gA=-sA,yA=fA*fA+gA*gA,xA=yA+fA*AA+gA*sA,NA=4/3*(Math.sqrt(2*yA*xA)-xA)/(fA*sA-gA*AA),_A=fA-NA*gA,$A=gA+NA*fA,P=_A,IA=-$A,fe=$+M,ZA=Math.cos(fe),wA=Math.sin(fe);return{x1:U*Math.cos(M),y1:U*Math.sin(M),x2:_A*ZA-$A*wA,y2:_A*wA+$A*ZA,x3:P*ZA-IA*wA,y3:P*wA+IA*ZA,x4:U*Math.cos(j),y4:U*Math.sin(j)}},iA=function(U){return 180*U/Math.PI},dA=function(U,M,j,$,AA,sA){var fA=U+.5*(j-U),gA=M+.5*($-M),yA=AA+.5*(j-AA),xA=sA+.5*($-sA),NA=Math.min(U,AA,fA,yA),_A=Math.max(U,AA,fA,yA),$A=Math.min(M,sA,gA,xA),P=Math.max(M,sA,gA,xA);return new a(NA,$A,_A-NA,P-$A)},QA=function(U,M,j,$,AA,sA,fA,gA){var yA,xA,NA,_A,$A,P,IA,fe,ZA,wA,SA,PA,XA,qA,Qe=j-U,we=$-M,ie=AA-j,JA=sA-$,te=fA-AA,KA=gA-sA;for(xA=0;xA<41;xA++)ZA=(IA=(NA=U+(yA=xA/40)*Qe)+yA*(($A=j+yA*ie)-NA))+yA*($A+yA*(AA+yA*te-$A)-IA),wA=(fe=(_A=M+yA*we)+yA*((P=$+yA*JA)-_A))+yA*(P+yA*(sA+yA*KA-P)-fe),xA==0?(SA=ZA,PA=wA,XA=ZA,qA=wA):(SA=Math.min(SA,ZA),PA=Math.min(PA,wA),XA=Math.max(XA,ZA),qA=Math.max(qA,wA));return new a(Math.round(SA),Math.round(PA),Math.round(XA-SA),Math.round(qA-PA))},CA=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var U,M,j=(U=this.ctx.lineDash,M=this.ctx.lineDashOffset,JSON.stringify({lineDash:U,lineDashOffset:M}));this.prevLineDash!==j&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=j)}}})(zA.API),function(t){var A=function(s){var a,o,c,h,g,m,f,w,y,F;for(o=[],c=0,h=(s+=a="\0\0\0\0".slice(s.length%4||4)).length;h>c;c+=4)(g=(s.charCodeAt(c)<<24)+(s.charCodeAt(c+1)<<16)+(s.charCodeAt(c+2)<<8)+s.charCodeAt(c+3))!==0?(m=(g=((g=((g=((g=(g-(F=g%85))/85)-(y=g%85))/85)-(w=g%85))/85)-(f=g%85))/85)%85,o.push(m+33,f+33,w+33,y+33,F+33)):o.push(122);return function(v,L){for(var N=L;N>0;N--)v.pop()}(o,a.length),String.fromCharCode.apply(String,o)+"~>"},e=function(s){var a,o,c,h,g,m=String,f="length",w=255,y="charCodeAt",F="slice",v="replace";for(s[F](-2),s=s[F](0,-2)[v](/\s/g,"")[v]("z","!!!!!"),c=[],h=0,g=(s+=a="uuuuu"[F](s[f]%5||5))[f];g>h;h+=5)o=52200625*(s[y](h)-33)+614125*(s[y](h+1)-33)+7225*(s[y](h+2)-33)+85*(s[y](h+3)-33)+(s[y](h+4)-33),c.push(w&o>>24,w&o>>16,w&o>>8,w&o);return function(L,N){for(var _=N;_>0;_--)L.pop()}(c,a[f]),m.fromCharCode.apply(m,c)},r=function(s){return s.split("").map(function(a){return("0"+a.charCodeAt().toString(16)).slice(-2)}).join("")+">"},n=function(s){var a=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((s=s.replace(/\s/g,"")).indexOf(">")!==-1&&(s=s.substr(0,s.indexOf(">"))),s.length%2&&(s+="0"),a.test(s)===!1)return"";for(var o="",c=0;c<s.length;c+=2)o+=String.fromCharCode("0x"+(s[c]+s[c+1]));return o},i=function(s){for(var a=new Uint8Array(s.length),o=s.length;o--;)a[o]=s.charCodeAt(o);return(a=uh(a)).reduce(function(c,h){return c+String.fromCharCode(h)},"")};t.processDataByFilters=function(s,a){var o=0,c=s||"",h=[];for(typeof(a=a||[])=="string"&&(a=[a]),o=0;o<a.length;o+=1)switch(a[o]){case"ASCII85Decode":case"/ASCII85Decode":c=e(c),h.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=A(c),h.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=n(c),h.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=r(c),h.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=i(c),h.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[o]+'" is not implemented')}return{data:c,reverseChain:h.reverse().join(" ")}}}(zA.API),function(t){t.loadFile=function(A,e,r){return function(n,i,s){i=i!==!1,s=typeof s=="function"?s:function(){};var a=void 0;try{a=function(o,c,h){var g=new XMLHttpRequest,m=0,f=function(w){var y=w.length,F=[],v=String.fromCharCode;for(m=0;m<y;m+=1)F.push(v(255&w.charCodeAt(m)));return F.join("")};if(g.open("GET",o,!c),g.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(g.onload=function(){g.status===200?h(f(this.responseText)):h(void 0)}),g.send(null),c&&g.status===200)return f(g.responseText)}(n,i,s)}catch{}return a}(A,e,r)},t.allowFsRead=void 0,t.loadImageFile=t.loadFile}(zA.API),function(t){function A(){return(ne.html2canvas?Promise.resolve(ne.html2canvas):Promise.resolve().then(()=>L3)).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function e(){return(ne.DOMPurify?Promise.resolve(ne.DOMPurify):Promise.resolve().then(()=>require("./purify.es-Cv8QDpGd.js"))).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var r=function(a){var o=_e(a);return o==="undefined"?"undefined":o==="string"||a instanceof String?"string":o==="number"||a instanceof Number?"number":o==="function"||a instanceof Function?"function":a&&a.constructor===Array?"array":a&&a.nodeType===1?"element":o==="object"?"object":"unknown"},n=function(a,o){var c=document.createElement(a);for(var h in o.className&&(c.className=o.className),o.innerHTML&&o.dompurify&&(c.innerHTML=o.dompurify.sanitize(o.innerHTML)),o.style)c.style[h]=o.style[h];return c},i=function a(o,c){for(var h=o.nodeType===3?document.createTextNode(o.nodeValue):o.cloneNode(!1),g=o.firstChild;g;g=g.nextSibling)c!==!0&&g.nodeType===1&&g.nodeName==="SCRIPT"||h.appendChild(a(g,c));return o.nodeType===1&&(o.nodeName==="CANVAS"?(h.width=o.width,h.height=o.height,h.getContext("2d").drawImage(o,0,0)):o.nodeName!=="TEXTAREA"&&o.nodeName!=="SELECT"||(h.value=o.value),h.addEventListener("load",function(){h.scrollTop=o.scrollTop,h.scrollLeft=o.scrollLeft},!0)),h},s=function a(o){var c=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),h=a.convert(Promise.resolve(),c);return(h=h.setProgress(1,a,1,[a])).set(o)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(a,o){return a.__proto__=o||s.prototype,a},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(a,o){return this.then(function(){switch(o=o||function(c){switch(r(c)){case"string":return"string";case"element":return c.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(a),o){case"string":return this.then(e).then(function(c){return this.set({src:n("div",{innerHTML:a,dompurify:c})})});case"element":return this.set({src:a});case"canvas":return this.set({canvas:a});case"img":return this.set({img:a});default:return this.error("Unknown source type.")}})},s.prototype.to=function(a){switch(a){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var a={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},o=i(this.prop.src,this.opt.html2canvas.javascriptEnabled);o.tagName==="BODY"&&(a.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:a}),this.prop.container.appendChild(o),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},s.prototype.toCanvas=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(A).then(function(o){var c=Object.assign({},this.opt.html2canvas);return delete c.onrendered,o(this.prop.container,c)}).then(function(o){(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},s.prototype.toContext2d=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(A).then(function(o){var c=this.opt.jsPDF,h=this.opt.fontFaces,g=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,m=Object.assign({async:!0,allowTaint:!0,scale:g,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete m.onrendered,c.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,c.context2d.posX=this.opt.x,c.context2d.posY=this.opt.y,c.context2d.margin=this.opt.margin,c.context2d.fontFaces=h,h)for(var f=0;f<h.length;++f){var w=h[f],y=w.src.find(function(F){return F.format==="truetype"});y&&c.addFont(y.url,w.ref.name,w.ref.style)}return m.windowHeight=m.windowHeight||0,m.windowHeight=m.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):m.windowHeight,c.context2d.save(!0),o(this.prop.container,m)}).then(function(o){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var a=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=a})},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},s.prototype.output=function(a,o,c){return(c=c||"pdf").toLowerCase()==="img"||c.toLowerCase()==="image"?this.outputImg(a,o):this.outputPdf(a,o)},s.prototype.outputPdf=function(a,o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(a,o)})},s.prototype.outputImg=function(a){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(a){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+a+'" is not supported.'}})},s.prototype.save=function(a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(a?{filename:a}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},s.prototype.set=function(a){if(r(a)!=="object")return this;var o=Object.keys(a||{}).map(function(c){if(c in s.template.prop)return function(){this.prop[c]=a[c]};switch(c){case"margin":return this.setMargin.bind(this,a.margin);case"jsPDF":return function(){return this.opt.jsPDF=a.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,a.pageSize);default:return function(){this.opt[c]=a[c]}}},this);return this.then(function(){return this.thenList(o)})},s.prototype.get=function(a,o){return this.then(function(){var c=a in s.template.prop?this.prop[a]:this.opt[a];return o?o(c):c})},s.prototype.setMargin=function(a){return this.then(function(){switch(r(a)){case"number":a=[a,a,a,a];case"array":if(a.length===2&&(a=[a[0],a[1],a[0],a[1]]),a.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=a}).then(this.setPageSize)},s.prototype.setPageSize=function(a){function o(c,h){return Math.floor(c*h/72*96)}return this.then(function(){(a=a||zA.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(a.inner={width:a.width-this.opt.margin[1]-this.opt.margin[3],height:a.height-this.opt.margin[0]-this.opt.margin[2]},a.inner.px={width:o(a.inner.width,a.k),height:o(a.inner.height,a.k)},a.inner.ratio=a.inner.height/a.inner.width),this.prop.pageSize=a})},s.prototype.setProgress=function(a,o,c,h){return a!=null&&(this.progress.val=a),o!=null&&(this.progress.state=o),c!=null&&(this.progress.n=c),h!=null&&(this.progress.stack=h),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(a,o,c,h){return this.setProgress(a?this.progress.val+a:null,o||null,c?this.progress.n+c:null,h?this.progress.stack.concat(h):null)},s.prototype.then=function(a,o){var c=this;return this.thenCore(a,o,function(h,g){return c.updateProgress(null,null,1,[h]),Promise.prototype.then.call(this,function(m){return c.updateProgress(null,h),m}).then(h,g).then(function(m){return c.updateProgress(1),m})})},s.prototype.thenCore=function(a,o,c){c=c||Promise.prototype.then;var h=this;a&&(a=a.bind(h)),o&&(o=o.bind(h));var g=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?h:s.convert(Object.assign({},h),Promise.prototype),m=c.call(g,a,o);return s.convert(m,h.__proto__)},s.prototype.thenExternal=function(a,o){return Promise.prototype.then.call(this,a,o)},s.prototype.thenList=function(a){var o=this;return a.forEach(function(c){o=o.thenCore(c)}),o},s.prototype.catch=function(a){a&&(a=a.bind(this));var o=Promise.prototype.catch.call(this,a);return s.convert(o,this)},s.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},s.prototype.error=function(a){return this.then(function(){throw new Error(a)})},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,zA.getPageSize=function(a,o,c){if(_e(a)==="object"){var h=a;a=h.orientation,o=h.unit||o,c=h.format||c}o=o||"mm",c=c||"a4",a=(""+(a||"P")).toLowerCase();var g,m=(""+c).toLowerCase(),f={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(o){case"pt":g=1;break;case"mm":g=72/25.4;break;case"cm":g=72/2.54;break;case"in":g=72;break;case"px":g=.75;break;case"pc":case"em":g=12;break;case"ex":g=6;break;default:throw"Invalid unit: "+o}var w,y=0,F=0;if(f.hasOwnProperty(m))y=f[m][1]/g,F=f[m][0]/g;else try{y=c[1],F=c[0]}catch{throw new Error("Invalid format: "+c)}if(a==="p"||a==="portrait")a="p",F>y&&(w=F,F=y,y=w);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",y>F&&(w=F,F=y,y=w)}return{width:F,height:y,unit:o,k:g,orientation:a}},t.html=function(a,o){(o=o||{}).callback=o.callback||function(){},o.html2canvas=o.html2canvas||{},o.html2canvas.canvas=o.html2canvas.canvas||this.canvas,o.jsPDF=o.jsPDF||this,o.fontFaces=o.fontFaces?o.fontFaces.map(pu):null;var c=new s(o);return o.worker?c:c.from(a).doCallback()}}(zA.API),zA.API.addJS=function(t){return wg=t,this.internal.events.subscribe("postPutResources",function(){Ko=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Ko+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Bg=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+wg+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Ko!==void 0&&Bg!==void 0&&this.internal.out("/Names <</JavaScript "+Ko+" 0 R>>")}),this},function(t){var A;t.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=e.outline.render().split(/\r\n/),i=0;i<n.length;i++){var s=n[i],a=r.exec(s);if(a!=null){var o=a[1];e.internal.newObjectDeferredBegin(o,!1)}e.internal.write(s)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,h=[];for(i=0;i<c;i++){var g=e.internal.newObject();h.push(g);var m=e.internal.getPageInfo(i+1);e.internal.write("<< /D["+m.objId+" 0 R /XYZ null null null]>> endobj")}var f=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i<h.length;i++)e.internal.write("(page_"+(i+1)+")"+h[i]+" 0 R");e.internal.write(" ] >>","endobj"),A=e.internal.newObject(),e.internal.write("<< /Dests "+f+" 0 R"),e.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+A+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,n,i){var s={title:n,options:i,children:[]};return r==null&&(r=this.root),r.children.push(s),s},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(r){r.id=e.internal.newObjectDeferred();for(var n=0;n<r.children.length;n++)this.genIds_r(r.children[n])},e.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},e.outline.renderItems=function(r){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<r.children.length;i++){var s=r.children[i];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(r)),i>0&&this.line("/Prev "+this.makeRef(r.children[i-1])),i<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[i+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var a=this.count=this.count_r({count:0},s);if(a>0&&this.line("/Count "+a),s.options&&s.options.pageNumber){var o=e.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var c=0;c<r.children.length;c++)this.renderItems(r.children[c])},e.outline.line=function(r){this.ctx.val+=r+`\r
289
+ */function Kr(t,A){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!A,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function kg(t){function A(k){if(!k)throw Error("assert :P")}function e(k,Y,x){for(var P=0;4>P;P++)if(k[Y+P]!=x.charCodeAt(P))return!0;return!1}function r(k,Y,x,P,j){for(var D=0;D<j;D++)k[Y+D]=x[P+D]}function n(k,Y,x,P){for(var j=0;j<P;j++)k[Y+j]=x}function i(k){return new Int32Array(k)}function s(k,Y){for(var x=[],P=0;P<k;P++)x.push(new Y);return x}function a(k,Y){var x=[];return function P(j,D,J){for(var lA=J[D],fA=0;fA<lA&&(j.push(J.length>D+1?[]:new Y),!(J.length<D+1));fA++)P(j[fA],D+1,J)}(x,0,k),x}var o=function(){var k=this;function Y(l,u){for(var p=1<<u-1>>>0;l&p;)p>>>=1;return p?(l&p-1)+p:l}function x(l,u,p,B,C){A(!(B%p));do l[u+(B-=p)]=C;while(0<B)}function P(l,u,p,B,C){if(A(2328>=C),512>=C)var Q=i(512);else if((Q=i(C))==null)return 0;return function(E,I,H,O,Z,uA){var M,tA,iA=I,mA=1<<H,cA=i(16),BA=i(16);for(A(Z!=0),A(O!=null),A(E!=null),A(0<H),tA=0;tA<Z;++tA){if(15<O[tA])return 0;++cA[O[tA]]}if(cA[0]==Z)return 0;for(BA[1]=0,M=1;15>M;++M){if(cA[M]>1<<M)return 0;BA[M+1]=BA[M]+cA[M]}for(tA=0;tA<Z;++tA)M=O[tA],0<O[tA]&&(uA[BA[M]++]=tA);if(BA[15]==1)return(O=new j).g=0,O.value=uA[0],x(E,iA,1,mA,O),mA;var yA,EA=-1,FA=mA-1,ZA=0,jA=1,we=1,zA=1<<H;for(tA=0,M=1,Z=2;M<=H;++M,Z<<=1){if(jA+=we<<=1,0>(we-=cA[M]))return 0;for(;0<cA[M];--cA[M])(O=new j).g=M,O.value=uA[tA++],x(E,iA+ZA,Z,zA,O),ZA=Y(ZA,M)}for(M=H+1,Z=2;15>=M;++M,Z<<=1){if(jA+=we<<=1,0>(we-=cA[M]))return 0;for(;0<cA[M];--cA[M]){if(O=new j,(ZA&FA)!=EA){for(iA+=zA,yA=1<<(EA=M)-H;15>EA&&!(0>=(yA-=cA[EA]));)++EA,yA<<=1;mA+=zA=1<<(yA=EA-H),E[I+(EA=ZA&FA)].g=yA+H,E[I+EA].value=iA-I-EA}O.g=M-H,O.value=uA[tA++],x(E,iA+(ZA>>H),Z,zA,O),ZA=Y(ZA,M)}}return jA!=2*BA[15]-1?0:mA}(l,u,p,B,C,Q)}function j(){this.value=this.g=0}function D(){this.value=this.g=0}function J(){this.G=s(5,j),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(xi,D)}function lA(l,u,p,B){A(l!=null),A(u!=null),A(2147483648>B),l.Ca=254,l.I=0,l.b=-8,l.Ka=0,l.oa=u,l.pa=p,l.Jd=u,l.Yc=p+B,l.Zc=4<=B?p+B-4+1:p,gA(l)}function fA(l,u){for(var p=0;0<u--;)p|=wA(l,128)<<u;return p}function aA(l,u){var p=fA(l,u);return pA(l)?-p:p}function dA(l,u,p,B){var C,Q=0;for(A(l!=null),A(u!=null),A(4294967288>B),l.Sb=B,l.Ra=0,l.u=0,l.h=0,4<B&&(B=4),C=0;C<B;++C)Q+=u[p+C]<<8*C;l.Ra=Q,l.bb=B,l.oa=u,l.pa=p}function QA(l){for(;8<=l.u&&l.bb<l.Sb;)l.Ra>>>=8,l.Ra+=l.oa[l.pa+l.bb]<<Kn-8>>>0,++l.bb,l.u-=8;W(l)&&(l.h=1,l.u=0)}function hA(l,u){if(A(0<=u),!l.h&&u<=sr){var p=G(l)&ir[u];return l.u+=u,QA(l),p}return l.h=1,l.u=0}function U(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function R(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function G(l){return l.Ra>>>(l.u&Kn-1)>>>0}function W(l){return A(l.bb<=l.Sb),l.h||l.bb==l.Sb&&l.u>Kn}function eA(l,u){l.u=u,l.h=W(l)}function nA(l){l.u>=Qn&&(A(l.u>=Qn),QA(l))}function gA(l){A(l!=null&&l.oa!=null),l.pa<l.Zc?(l.I=(l.oa[l.pa++]|l.I<<8)>>>0,l.b+=8):(A(l!=null&&l.oa!=null),l.pa<l.Yc?(l.b+=8,l.I=l.oa[l.pa++]|l.I<<8):l.Ka?l.b=0:(l.I<<=8,l.b+=8,l.Ka=1))}function pA(l){return fA(l,1)}function wA(l,u){var p=l.Ca;0>l.b&&gA(l);var B=l.b,C=p*u>>>8,Q=(l.I>>>B>C)+0;for(Q?(p-=C,l.I-=C+1<<B>>>0):p=C+1,B=p,C=0;256<=B;)C+=8,B>>=8;return B=7^C+jn[B],l.b-=B,l.Ca=(p<<B)-1,Q}function xA(l,u,p){l[u+0]=p>>24&255,l[u+1]=p>>16&255,l[u+2]=p>>8&255,l[u+3]=255&p}function DA(l,u){return l[u+0]|l[u+1]<<8}function HA(l,u){return DA(l,u)|l[u+2]<<16}function WA(l,u){return DA(l,u)|DA(l,u+2)<<16}function T(l,u){var p=1<<u;return A(l!=null),A(0<u),l.X=i(p),l.X==null?0:(l.Mb=32-u,l.Xa=u,1)}function kA(l,u){A(l!=null),A(u!=null),A(l.Xa==u.Xa),r(u.X,0,l.X,0,1<<u.Xa)}function ie(){this.X=[],this.Xa=this.Mb=0}function JA(l,u,p,B){A(p!=null),A(B!=null);var C=p[0],Q=B[0];return C==0&&(C=(l*Q+u/2)/u),Q==0&&(Q=(u*C+l/2)/l),0>=C||0>=Q?0:(p[0]=C,B[0]=Q,1)}function UA(l,u){return l+(1<<u)-1>>>u}function _A(l,u){return((4278255360&l)+(4278255360&u)>>>0&4278255360)+((16711935&l)+(16711935&u)>>>0&16711935)>>>0}function MA(l,u){k[u]=function(p,B,C,Q,E,I,H){var O;for(O=0;O<E;++O){var Z=k[l](I[H+O-1],C,Q+O);I[H+O]=_A(p[B+O],Z)}}}function ee(){this.ud=this.hd=this.jd=0}function YA(l,u){return((4278124286&(l^u))>>>1)+(l&u)>>>0}function Ue(l){return 0<=l&&256>l?l:0>l?0:255<l?255:void 0}function ge(l,u){return Ue(l+(l-u+.5>>1))}function se(l,u,p){return Math.abs(u-p)-Math.abs(l-p)}function pe(l,u,p,B,C,Q,E){for(B=Q[E-1],p=0;p<C;++p)Q[E+p]=B=_A(l[u+p],B)}function fe(l,u,p,B,C){var Q;for(Q=0;Q<p;++Q){var E=l[u+Q],I=E>>8&255,H=16711935&(H=(H=16711935&E)+((I<<16)+I));B[C+Q]=(4278255360&E)+H>>>0}}function SA(l,u){u.jd=255&l,u.hd=l>>8&255,u.ud=l>>16&255}function TA(l,u,p,B,C,Q){var E;for(E=0;E<B;++E){var I=u[p+E],H=I>>>8,O=I,Z=255&(Z=(Z=I>>>16)+((l.jd<<24>>24)*(H<<24>>24)>>>5));O=255&(O=(O+=(l.hd<<24>>24)*(H<<24>>24)>>>5)+((l.ud<<24>>24)*(Z<<24>>24)>>>5)),C[Q+E]=(4278255360&I)+(Z<<16)+O}}function KA(l,u,p,B,C){k[u]=function(Q,E,I,H,O,Z,uA,M,tA){for(H=uA;H<M;++H)for(uA=0;uA<tA;++uA)O[Z++]=C(I[B(Q[E++])])},k[l]=function(Q,E,I,H,O,Z,uA){var M=8>>Q.b,tA=Q.Ea,iA=Q.K[0],mA=Q.w;if(8>M)for(Q=(1<<Q.b)-1,mA=(1<<M)-1;E<I;++E){var cA,BA=0;for(cA=0;cA<tA;++cA)cA&Q||(BA=B(H[O++])),Z[uA++]=C(iA[BA&mA]),BA>>=M}else k["VP8LMapColor"+p](H,O,iA,mA,Z,uA,E,I,tA)}}function _e(l,u,p,B,C){for(p=u+p;u<p;){var Q=l[u++];B[C++]=Q>>16&255,B[C++]=Q>>8&255,B[C++]=255&Q}}function me(l,u,p,B,C){for(p=u+p;u<p;){var Q=l[u++];B[C++]=Q>>16&255,B[C++]=Q>>8&255,B[C++]=255&Q,B[C++]=Q>>24&255}}function bA(l,u,p,B,C){for(p=u+p;u<p;){var Q=(E=l[u++])>>16&240|E>>12&15,E=240&E|E>>28&15;B[C++]=Q,B[C++]=E}}function GA(l,u,p,B,C){for(p=u+p;u<p;){var Q=(E=l[u++])>>16&248|E>>13&7,E=E>>5&224|E>>3&31;B[C++]=Q,B[C++]=E}}function be(l,u,p,B,C){for(p=u+p;u<p;){var Q=l[u++];B[C++]=255&Q,B[C++]=Q>>8&255,B[C++]=Q>>16&255}}function NA(l,u,p,B,C,Q){if(Q==0)for(p=u+p;u<p;)xA(B,((Q=l[u++])[0]>>24|Q[1]>>8&65280|Q[2]<<8&16711680|Q[3]<<24)>>>0),C+=32;else r(B,C,l,u,p)}function Ce(l,u){k[u][0]=k[l+"0"],k[u][1]=k[l+"1"],k[u][2]=k[l+"2"],k[u][3]=k[l+"3"],k[u][4]=k[l+"4"],k[u][5]=k[l+"5"],k[u][6]=k[l+"6"],k[u][7]=k[l+"7"],k[u][8]=k[l+"8"],k[u][9]=k[l+"9"],k[u][10]=k[l+"10"],k[u][11]=k[l+"11"],k[u][12]=k[l+"12"],k[u][13]=k[l+"13"],k[u][14]=k[l+"0"],k[u][15]=k[l+"0"]}function te(l){return l==Ic||l==_c||l==vo||l==Nc}function ae(){this.eb=[],this.size=this.A=this.fb=0}function Fe(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Be(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ae,this.f.kb=new Fe,this.sd=null}function re(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Ie(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function mr(l){return alert("todo:WebPSamplerProcessPlane"),l.T}function Ve(l,u){var p=l.T,B=u.ba.f.RGBA,C=B.eb,Q=B.fb+l.ka*B.A,E=Ur[u.ba.S],I=l.y,H=l.O,O=l.f,Z=l.N,uA=l.ea,M=l.W,tA=u.cc,iA=u.dc,mA=u.Mc,cA=u.Nc,BA=l.ka,yA=l.ka+l.T,EA=l.U,FA=EA+1>>1;for(BA==0?E(I,H,null,null,O,Z,uA,M,O,Z,uA,M,C,Q,null,null,EA):(E(u.ec,u.fc,I,H,tA,iA,mA,cA,O,Z,uA,M,C,Q-B.A,C,Q,EA),++p);BA+2<yA;BA+=2)tA=O,iA=Z,mA=uA,cA=M,Z+=l.Rc,M+=l.Rc,Q+=2*B.A,E(I,(H+=2*l.fa)-l.fa,I,H,tA,iA,mA,cA,O,Z,uA,M,C,Q-B.A,C,Q,EA);return H+=l.fa,l.j+yA<l.o?(r(u.ec,u.fc,I,H,EA),r(u.cc,u.dc,O,Z,FA),r(u.Mc,u.Nc,uA,M,FA),p--):1&yA||E(I,H,null,null,O,Z,uA,M,O,Z,uA,M,C,Q+B.A,null,null,EA),p}function nr(l,u,p){var B=l.F,C=[l.J];if(B!=null){var Q=l.U,E=u.ba.S,I=E==wo||E==vo;u=u.ba.f.RGBA;var H=[0],O=l.ka;H[0]=l.T,l.Kb&&(O==0?--H[0]:(--O,C[0]-=l.width),l.j+l.ka+l.T==l.o&&(H[0]=l.o-l.j-O));var Z=u.eb;O=u.fb+O*u.A,l=Cf(B,C[0],l.width,Q,H,Z,O+(I?0:3),u.A),A(p==H),l&&te(E)&&ta(Z,O,I,Q,H,u.A)}return 0}function zr(l){var u=l.ma,p=u.ba.S,B=11>p,C=p==mo||p==Bo||p==wo||p==Sc||p==12||te(p);if(u.memory=null,u.Ib=null,u.Jb=null,u.Nd=null,!zs(u.Oa,l,C?11:12))return 0;if(C&&te(p)&&qs(),l.da)alert("todo:use_scaling");else{if(B){if(u.Ib=mr,l.Kb){if(p=l.U+1>>1,u.memory=i(l.U+2*p),u.memory==null)return 0;u.ec=u.memory,u.fc=0,u.cc=u.ec,u.dc=u.fc+l.U,u.Mc=u.cc,u.Nc=u.dc+p,u.Ib=Ve,qs()}}else alert("todo:EmitYUV");C&&(u.Jb=nr,B&&Dr())}if(B&&!Rf){for(l=0;256>l;++l)M1[l]=89858*(l-128)+bo>>yo,G1[l]=-22014*(l-128)+bo,j1[l]=-45773*(l-128),K1[l]=113618*(l-128)+bo>>yo;for(l=na;l<Pc;++l)u=76283*(l-16)+bo>>yo,q1[l-na]=Jr(u,255),V1[l-na]=Jr(u+8>>4,15);Rf=1}return 1}function ne(l){var u=l.ma,p=l.U,B=l.T;return A(!(1&l.ka)),0>=p||0>=B?0:(p=u.Ib(l,u),u.Jb!=null&&u.Jb(l,u,p),u.Dc+=p,1)}function fn(l){l.ma.memory=null}function dn(l,u,p,B){return hA(l,8)!=47?0:(u[0]=hA(l,14)+1,p[0]=hA(l,14)+1,B[0]=hA(l,1),hA(l,3)!=0?0:!l.h)}function Br(l,u){if(4>l)return l+1;var p=l-2>>1;return(2+(1&l)<<p)+hA(u,p)+1}function wr(l,u){return 120<u?u-120:1<=(p=((p=x1[u-1])>>4)*l+(8-(15&p)))?p:1;var p}function Ye(l,u,p){var B=G(p),C=l[u+=255&B].g-8;return 0<C&&(eA(p,p.u+8),B=G(p),u+=l[u].value,u+=B&(1<<C)-1),eA(p,p.u+l[u].g),l[u].value}function Ut(l,u,p){return p.g+=l.g,p.value+=l.value<<u>>>0,A(8>=p.g),l.g}function St(l,u,p){var B=l.xc;return A((u=B==0?0:l.vc[l.md*(p>>B)+(u>>B)])<l.Wb),l.Ya[u]}function di(l,u,p,B){var C=l.ab,Q=l.c*u,E=l.C;u=E+u;var I=p,H=B;for(B=l.Ta,p=l.Ua;0<C--;){var O=l.gc[C],Z=E,uA=u,M=I,tA=H,iA=(H=B,I=p,O.Ea);switch(A(Z<uA),A(uA<=O.nc),O.hc){case 2:tt(M,tA,(uA-Z)*iA,H,I);break;case 0:var mA=Z,cA=uA,BA=H,yA=I,EA=(zA=O).Ea;mA==0&&(Xs(M,tA,null,null,1,BA,yA),pe(M,tA+1,0,0,EA-1,BA,yA+1),tA+=EA,yA+=EA,++mA);for(var FA=1<<zA.b,ZA=FA-1,jA=UA(EA,zA.b),we=zA.K,zA=zA.w+(mA>>zA.b)*jA;mA<cA;){var xe=we,vt=zA,ve=1;for(es(M,tA,BA,yA-EA,1,BA,yA);ve<EA;){var $A=(ve&~ZA)+FA;$A>EA&&($A=EA),(0,Ys[xe[vt++]>>8&15])(M,tA+ +ve,BA,yA+ve-EA,$A-ve,BA,yA+ve),ve=$A}tA+=EA,yA+=EA,++mA&ZA||(zA+=jA)}uA!=O.nc&&r(H,I-iA,H,I+(uA-Z-1)*iA,iA);break;case 1:for(iA=M,cA=tA,EA=(M=O.Ea)-(yA=M&~(BA=(tA=1<<O.b)-1)),mA=UA(M,O.b),FA=O.K,O=O.w+(Z>>O.b)*mA;Z<uA;){for(ZA=FA,jA=O,we=new ee,zA=cA+yA,xe=cA+M;cA<zA;)SA(ZA[jA++],we),Zs(we,iA,cA,tA,H,I),cA+=tA,I+=tA;cA<xe&&(SA(ZA[jA++],we),Zs(we,iA,cA,EA,H,I),cA+=EA,I+=EA),++Z&BA||(O+=mA)}break;case 3:if(M==H&&tA==I&&0<O.b){for(cA=H,M=iA=I+(uA-Z)*iA-(yA=(uA-Z)*UA(O.Ea,O.b)),tA=H,BA=I,mA=[],yA=(EA=yA)-1;0<=yA;--yA)mA[yA]=tA[BA+yA];for(yA=EA-1;0<=yA;--yA)cA[M+yA]=mA[yA];ho(O,Z,uA,H,iA,H,I)}else ho(O,Z,uA,M,tA,H,I)}I=B,H=p}H!=p&&r(B,p,I,H,Q)}function Dn(l,u){var p=l.V,B=l.Ba+l.c*l.C,C=u-l.C;if(A(u<=l.l.o),A(16>=C),0<C){var Q=l.l,E=l.Ta,I=l.Ua,H=Q.width;if(di(l,C,p,B),C=I=[I],A((p=l.C)<(B=u)),A(Q.v<Q.va),B>Q.o&&(B=Q.o),p<Q.j){var O=Q.j-p;p=Q.j,C[0]+=O*H}if(p>=B?p=0:(C[0]+=4*Q.v,Q.ka=p-Q.j,Q.U=Q.va-Q.v,Q.T=B-p,p=1),p){if(I=I[0],11>(p=l.ca).S){var Z=p.f.RGBA,uA=(B=p.S,C=Q.U,Q=Q.T,O=Z.eb,Z.A),M=Q;for(Z=Z.fb+l.Ma*Z.A;0<M--;){var tA=E,iA=I,mA=C,cA=O,BA=Z;switch(B){case po:Aa(tA,iA,mA,cA,BA);break;case mo:Gn(tA,iA,mA,cA,BA);break;case Ic:Gn(tA,iA,mA,cA,BA),ta(cA,BA,0,mA,1,0);break;case Sf:Ei(tA,iA,mA,cA,BA);break;case Bo:NA(tA,iA,mA,cA,BA,1);break;case _c:NA(tA,iA,mA,cA,BA,1),ta(cA,BA,0,mA,1,0);break;case wo:NA(tA,iA,mA,cA,BA,0);break;case vo:NA(tA,iA,mA,cA,BA,0),ta(cA,BA,1,mA,1,0);break;case Sc:qn(tA,iA,mA,cA,BA);break;case Nc:qn(tA,iA,mA,cA,BA),bf(cA,BA,mA,1,0);break;case If:Vn(tA,iA,mA,cA,BA);break;default:A(0)}I+=H,Z+=uA}l.Ma+=Q}else alert("todo:EmitRescaledRowsYUVA");A(l.Ma<=p.height)}}l.C=u,A(l.C<=l.i)}function kr(l){var u;if(0<l.ua)return 0;for(u=0;u<l.Wb;++u){var p=l.Ya[u].G,B=l.Ya[u].H;if(0<p[1][B[1]+0].g||0<p[2][B[2]+0].g||0<p[3][B[3]+0].g)return 0}return 1}function $r(l,u,p,B,C,Q){if(l.Z!=0){var E=l.qd,I=l.rd;for(A($n[l.Z]!=null);u<p;++u)$n[l.Z](E,I,B,C,B,C,Q),E=B,I=C,C+=Q;l.qd=E,l.rd=I}}function Hr(l,u){var p=l.l.ma,B=p.Z==0||p.Z==1?l.l.j:l.C;if(B=l.C<B?B:l.C,A(u<=l.l.o),u>B){var C=l.l.width,Q=p.ca,E=p.tb+C*B,I=l.V,H=l.Ba+l.c*B,O=l.gc;A(l.ab==1),A(O[0].hc==3),en(O[0],B,u,I,H,Q,E),$r(p,B,u,Q,E,C)}l.C=l.Ma=u}function Pr(l,u,p,B,C,Q,E){var I=l.$/B,H=l.$%B,O=l.m,Z=l.s,uA=p+l.$,M=uA;C=p+B*C;var tA=p+B*Q,iA=280+Z.ua,mA=l.Pb?I:16777216,cA=0<Z.ua?Z.Wa:null,BA=Z.wc,yA=uA<tA?St(Z,H,I):null;A(l.C<Q),A(tA<=C);var EA=!1;A:for(;;){for(;EA||uA<tA;){var FA=0;if(I>=mA){var ZA=uA-p;A((mA=l).Pb),mA.wd=mA.m,mA.xd=ZA,0<mA.s.ua&&kA(mA.s.Wa,mA.s.vb),mA=I+L1}if(H&BA||(yA=St(Z,H,I)),A(yA!=null),yA.Qb&&(u[uA]=yA.qb,EA=!0),!EA)if(nA(O),yA.jc){FA=O,ZA=u;var jA=uA,we=yA.pd[G(FA)&xi-1];A(yA.jc),256>we.g?(eA(FA,FA.u+we.g),ZA[jA]=we.value,FA=0):(eA(FA,FA.u+we.g-256),A(256<=we.value),FA=we.value),FA==0&&(EA=!0)}else FA=Ye(yA.G[0],yA.H[0],O);if(O.h)break;if(EA||256>FA){if(!EA)if(yA.nd)u[uA]=(yA.qb|FA<<8)>>>0;else{if(nA(O),EA=Ye(yA.G[1],yA.H[1],O),nA(O),ZA=Ye(yA.G[2],yA.H[2],O),jA=Ye(yA.G[3],yA.H[3],O),O.h)break;u[uA]=(jA<<24|EA<<16|FA<<8|ZA)>>>0}if(EA=!1,++uA,++H>=B&&(H=0,++I,E!=null&&I<=Q&&!(I%16)&&E(l,I),cA!=null))for(;M<uA;)FA=u[M++],cA.X[(506832829*FA&4294967295)>>>cA.Mb]=FA}else if(280>FA){if(FA=Br(FA-256,O),ZA=Ye(yA.G[4],yA.H[4],O),nA(O),ZA=wr(B,ZA=Br(ZA,O)),O.h)break;if(uA-p<ZA||C-uA<FA)break A;for(jA=0;jA<FA;++jA)u[uA+jA]=u[uA+jA-ZA];for(uA+=FA,H+=FA;H>=B;)H-=B,++I,E!=null&&I<=Q&&!(I%16)&&E(l,I);if(A(uA<=C),H&BA&&(yA=St(Z,H,I)),cA!=null)for(;M<uA;)FA=u[M++],cA.X[(506832829*FA&4294967295)>>>cA.Mb]=FA}else{if(!(FA<iA))break A;for(EA=FA-280,A(cA!=null);M<uA;)FA=u[M++],cA.X[(506832829*FA&4294967295)>>>cA.Mb]=FA;FA=uA,A(!(EA>>>(ZA=cA).Xa)),u[FA]=ZA.X[EA],EA=!0}EA||A(O.h==W(O))}if(l.Pb&&O.h&&uA<C)A(l.m.h),l.a=5,l.m=l.wd,l.$=l.xd,0<l.s.ua&&kA(l.s.vb,l.s.Wa);else{if(O.h)break A;E!=null&&E(l,I>Q?Q:I),l.a=0,l.$=uA-p}return 1}return l.a=3,0}function vr(l){A(l!=null),l.vc=null,l.yc=null,l.Ya=null;var u=l.Wa;u!=null&&(u.X=null),l.vb=null,A(l!=null)}function gi(){var l=new le;return l==null?null:(l.a=0,l.xb=kf,Ce("Predictor","VP8LPredictors"),Ce("Predictor","VP8LPredictors_C"),Ce("PredictorAdd","VP8LPredictorsAdd"),Ce("PredictorAdd","VP8LPredictorsAdd_C"),tt=fe,Zs=TA,Aa=_e,Gn=me,qn=bA,Vn=GA,Ei=be,k.VP8LMapColor32b=An,k.VP8LMapColor8b=Js,l)}function Xr(l,u,p,B,C){var Q=1,E=[l],I=[u],H=B.m,O=B.s,Z=null,uA=0;A:for(;;){if(p)for(;Q&&hA(H,1);){var M=E,tA=I,iA=B,mA=1,cA=iA.m,BA=iA.gc[iA.ab],yA=hA(cA,2);if(iA.Oc&1<<yA)Q=0;else{switch(iA.Oc|=1<<yA,BA.hc=yA,BA.Ea=M[0],BA.nc=tA[0],BA.K=[null],++iA.ab,A(4>=iA.ab),yA){case 0:case 1:BA.b=hA(cA,3)+2,mA=Xr(UA(BA.Ea,BA.b),UA(BA.nc,BA.b),0,iA,BA.K),BA.K=BA.K[0];break;case 3:var EA,FA=hA(cA,8)+1,ZA=16<FA?0:4<FA?1:2<FA?2:3;if(M[0]=UA(BA.Ea,ZA),BA.b=ZA,EA=mA=Xr(FA,1,0,iA,BA.K)){var jA,we=FA,zA=BA,xe=1<<(8>>zA.b),vt=i(xe);if(vt==null)EA=0;else{var ve=zA.K[0],$A=zA.w;for(vt[0]=zA.K[0][0],jA=1;jA<1*we;++jA)vt[jA]=_A(ve[$A+jA],vt[jA-1]);for(;jA<4*xe;++jA)vt[jA]=0;zA.K[0]=null,zA.K[0]=vt,EA=1}}mA=EA;break;case 2:break;default:A(0)}Q=mA}}if(E=E[0],I=I[0],Q&&hA(H,1)&&!(Q=1<=(uA=hA(H,4))&&11>=uA)){B.a=3;break A}var PA;if(PA=Q)e:{var nt,he,Ee,We=B,Nt=E,$t=I,Ze=uA,Dt=p,Xt=We.m,yt=We.s,Se=[null],Pe=1,At=0,Te=E1[Ze];t:for(;;){if(Dt&&hA(Xt,1)){var kt=hA(Xt,3)+2,Or=UA(Nt,kt),it=UA($t,kt),Zt=Or*it;if(!Xr(Or,it,0,We,Se))break t;for(Se=Se[0],yt.xc=kt,nt=0;nt<Zt;++nt){var Oe=Se[nt]>>8&65535;Se[nt]=Oe,Oe>=Pe&&(Pe=Oe+1)}}if(Xt.h)break t;for(he=0;5>he;++he){var bt=_f[he];!he&&0<Ze&&(bt+=1<<Ze),At<bt&&(At=bt)}var or=s(Pe*Te,j),Jt=Pe,lr=s(Jt,J);if(lr==null)var cr=null;else A(65536>=Jt),cr=lr;var Ar=i(At);if(cr==null||Ar==null||or==null){We.a=1;break t}var ur=or;for(nt=Ee=0;nt<Pe;++nt){var je=cr[nt],hr=je.G,Mr=je.H,Si=0,En=1,Ht=0;for(he=0;5>he;++he){bt=_f[he],hr[he]=ur,Mr[he]=Ee,!he&&0<Ze&&(bt+=1<<Ze);n:{var Fo,Tc=bt,Qo=We,ia=Ar,$1=ur,X1=Ee,Dc=0,Xn=Qo.m,J1=hA(Xn,1);if(n(ia,0,0,Tc),J1){var Y1=hA(Xn,1)+1,Z1=hA(Xn,1),Kf=hA(Xn,Z1==0?1:8);ia[Kf]=1,Y1==2&&(ia[Kf=hA(Xn,8)]=1);var Uo=1}else{var jf=i(19),Gf=hA(Xn,4)+4;if(19<Gf){Qo.a=3;var xo=0;break n}for(Fo=0;Fo<Gf;++Fo)jf[U1[Fo]]=hA(Xn,3);var Rc=void 0,sa=void 0,qf=Qo,AB=jf,Eo=Tc,Vf=ia,Oc=0,Jn=qf.m,Wf=8,zf=s(128,j);r:for(;P(zf,0,7,AB,19);){if(hA(Jn,1)){var eB=2+2*hA(Jn,3);if((Rc=2+hA(Jn,eB))>Eo)break r}else Rc=Eo;for(sa=0;sa<Eo&&Rc--;){nA(Jn);var $f=zf[0+(127&G(Jn))];eA(Jn,Jn.u+$f.g);var rs=$f.value;if(16>rs)Vf[sa++]=rs,rs!=0&&(Wf=rs);else{var tB=rs==16,Xf=rs-16,rB=F1[Xf],Jf=hA(Jn,C1[Xf])+rB;if(sa+Jf>Eo)break r;for(var nB=tB?Wf:0;0<Jf--;)Vf[sa++]=nB}}Oc=1;break r}Oc||(qf.a=3),Uo=Oc}(Uo=Uo&&!Xn.h)&&(Dc=P($1,X1,8,ia,Tc)),Uo&&Dc!=0?xo=Dc:(Qo.a=3,xo=0)}if(xo==0)break t;if(En&&Q1[he]==1&&(En=ur[Ee].g==0),Si+=ur[Ee].g,Ee+=xo,3>=he){var aa,Mc=Ar[0];for(aa=1;aa<bt;++aa)Ar[aa]>Mc&&(Mc=Ar[aa]);Ht+=Mc}}if(je.nd=En,je.Qb=0,En&&(je.qb=(hr[3][Mr[3]+0].value<<24|hr[1][Mr[1]+0].value<<16|hr[2][Mr[2]+0].value)>>>0,Si==0&&256>hr[0][Mr[0]+0].value&&(je.Qb=1,je.qb+=hr[0][Mr[0]+0].value<<8)),je.jc=!je.Qb&&6>Ht,je.jc){var Lo,Ln=je;for(Lo=0;Lo<xi;++Lo){var Yn=Lo,Zn=Ln.pd[Yn],So=Ln.G[0][Ln.H[0]+Yn];256<=So.value?(Zn.g=So.g+256,Zn.value=So.value):(Zn.g=0,Zn.value=0,Yn>>=Ut(So,8,Zn),Yn>>=Ut(Ln.G[1][Ln.H[1]+Yn],16,Zn),Yn>>=Ut(Ln.G[2][Ln.H[2]+Yn],0,Zn),Ut(Ln.G[3][Ln.H[3]+Yn],24,Zn))}}}yt.vc=Se,yt.Wb=Pe,yt.Ya=cr,yt.yc=or,PA=1;break e}PA=0}if(!(Q=PA)){B.a=3;break A}if(0<uA){if(O.ua=1<<uA,!T(O.Wa,uA)){B.a=1,Q=0;break A}}else O.ua=0;var Kc=B,Yf=E,iB=I,jc=Kc.s,Gc=jc.xc;if(Kc.c=Yf,Kc.i=iB,jc.md=UA(Yf,Gc),jc.wc=Gc==0?-1:(1<<Gc)-1,p){B.xb=P1;break A}if((Z=i(E*I))==null){B.a=1,Q=0;break A}Q=(Q=Pr(B,Z,0,E,I,I,null))&&!H.h;break A}return Q?(C!=null?C[0]=Z:(A(Z==null),A(p)),B.$=0,p||vr(O)):vr(O),Q}function pi(l,u){var p=l.c*l.i,B=p+u+16*u;return A(l.c<=u),l.V=i(B),l.V==null?(l.Ta=null,l.Ua=0,l.a=1,0):(l.Ta=l.V,l.Ua=l.Ba+p+u,1)}function qi(l,u){var p=l.C,B=u-p,C=l.V,Q=l.Ba+l.c*p;for(A(u<=l.l.o);0<B;){var E=16<B?16:B,I=l.l.ma,H=l.l.width,O=H*E,Z=I.ca,uA=I.tb+H*p,M=l.Ta,tA=l.Ua;di(l,E,C,Q),Ff(M,tA,Z,uA,O),$r(I,p,p+E,Z,uA,H),B-=E,C+=E*l.c,p+=E}A(p==u),l.C=l.Ma=u}function Vi(){this.ub=this.yd=this.td=this.Rb=0}function Wi(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function fc(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function ks(){this.Yb=function(){var l=[];return function u(p,B,C){for(var Q=C[B],E=0;E<Q&&(p.push(C.length>B+1?[]:0),!(C.length<B+1));E++)u(p[E],B+1,C)}(l,0,[3,11]),l}()}function za(){this.jb=i(3),this.Wc=a([4,8],ks),this.Xc=a([4,17],ks)}function $a(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function yr(){this.ld=this.La=this.dd=this.tc=0}function Hs(){this.Na=this.la=0}function Xa(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ps(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ja(){this.uc=this.M=this.Nb=0,this.wa=Array(new yr),this.Y=0,this.ya=Array(new Ps),this.aa=0,this.l=new zi}function Ya(){this.y=i(16),this.f=i(8),this.ea=i(8)}function Za(){this.cb=this.a=0,this.sc="",this.m=new U,this.Od=new Vi,this.Kc=new Wi,this.ed=new $a,this.Qa=new fc,this.Ic=this.$c=this.Aa=0,this.D=new Ja,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,U),this.ia=0,this.pb=s(4,Xa),this.Pa=new za,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ya),this.Hd=0,this.rb=Array(new Hs),this.sb=0,this.wa=Array(new yr),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ps),this.L=this.aa=0,this.gd=a([4,2],yr),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Jr(l,u){return 0>l?0:l>u?u:l}function zi(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function dc(){var l=new Za;return l!=null&&(l.a=0,l.sc="OK",l.cb=0,l.Xb=0,ra||(ra=$i)),l}function ut(l,u,p){return l.a==0&&(l.a=u,l.sc=p,l.cb=0),0}function Ao(l,u,p){return 3<=p&&l[u+0]==157&&l[u+1]==1&&l[u+2]==42}function Yr(l,u){if(l==null)return 0;if(l.a=0,l.sc="OK",u==null)return ut(l,2,"null VP8Io passed to VP8GetHeaders()");var p=u.data,B=u.w,C=u.ha;if(4>C)return ut(l,7,"Truncated header.");var Q=p[B+0]|p[B+1]<<8|p[B+2]<<16,E=l.Od;if(E.Rb=!(1&Q),E.td=Q>>1&7,E.yd=Q>>4&1,E.ub=Q>>5,3<E.td)return ut(l,3,"Incorrect keyframe parameters.");if(!E.yd)return ut(l,4,"Frame not displayable.");B+=3,C-=3;var I=l.Kc;if(E.Rb){if(7>C)return ut(l,7,"cannot parse picture header");if(!Ao(p,B,C))return ut(l,3,"Bad code word");I.c=16383&(p[B+4]<<8|p[B+3]),I.Td=p[B+4]>>6,I.i=16383&(p[B+6]<<8|p[B+5]),I.Ud=p[B+6]>>6,B+=7,C-=7,l.za=I.c+15>>4,l.Ub=I.i+15>>4,u.width=I.c,u.height=I.i,u.Da=0,u.j=0,u.v=0,u.va=u.width,u.o=u.height,u.da=0,u.ib=u.width,u.hb=u.height,u.U=u.width,u.T=u.height,n((Q=l.Pa).jb,0,255,Q.jb.length),A((Q=l.Qa)!=null),Q.Cb=0,Q.Bb=0,Q.Fb=1,n(Q.Zb,0,0,Q.Zb.length),n(Q.Lb,0,0,Q.Lb)}if(E.ub>C)return ut(l,7,"bad partition length");lA(Q=l.m,p,B,E.ub),B+=E.ub,C-=E.ub,E.Rb&&(I.Ld=pA(Q),I.Kd=pA(Q)),I=l.Qa;var H,O=l.Pa;if(A(Q!=null),A(I!=null),I.Cb=pA(Q),I.Cb){if(I.Bb=pA(Q),pA(Q)){for(I.Fb=pA(Q),H=0;4>H;++H)I.Zb[H]=pA(Q)?aA(Q,7):0;for(H=0;4>H;++H)I.Lb[H]=pA(Q)?aA(Q,6):0}if(I.Bb)for(H=0;3>H;++H)O.jb[H]=pA(Q)?fA(Q,8):255}else I.Bb=0;if(Q.Ka)return ut(l,3,"cannot parse segment header");if((I=l.ed).zd=pA(Q),I.Tb=fA(Q,6),I.wb=fA(Q,3),I.Pc=pA(Q),I.Pc&&pA(Q)){for(O=0;4>O;++O)pA(Q)&&(I.vd[O]=aA(Q,6));for(O=0;4>O;++O)pA(Q)&&(I.od[O]=aA(Q,6))}if(l.L=I.Tb==0?0:I.zd?1:2,Q.Ka)return ut(l,3,"cannot parse filter header");var Z=C;if(C=H=B,B=H+Z,I=Z,l.Xb=(1<<fA(l.m,2))-1,Z<3*(O=l.Xb))p=7;else{for(H+=3*O,I-=3*O,Z=0;Z<O;++Z){var uA=p[C+0]|p[C+1]<<8|p[C+2]<<16;uA>I&&(uA=I),lA(l.Jc[+Z],p,H,uA),H+=uA,I-=uA,C+=3}lA(l.Jc[+O],p,H,I),p=H<B?0:5}if(p!=0)return ut(l,p,"cannot parse partitions");for(p=fA(H=l.m,7),C=pA(H)?aA(H,4):0,B=pA(H)?aA(H,4):0,I=pA(H)?aA(H,4):0,O=pA(H)?aA(H,4):0,H=pA(H)?aA(H,4):0,Z=l.Qa,uA=0;4>uA;++uA){if(Z.Cb){var M=Z.Zb[uA];Z.Fb||(M+=p)}else{if(0<uA){l.pb[uA]=l.pb[0];continue}M=p}var tA=l.pb[uA];tA.Sc[0]=kc[Jr(M+C,127)],tA.Sc[1]=Hc[Jr(M+0,127)],tA.Eb[0]=2*kc[Jr(M+B,127)],tA.Eb[1]=101581*Hc[Jr(M+I,127)]>>16,8>tA.Eb[1]&&(tA.Eb[1]=8),tA.Qc[0]=kc[Jr(M+O,117)],tA.Qc[1]=Hc[Jr(M+H,127)],tA.lc=M+H}if(!E.Rb)return ut(l,4,"Not a key frame.");for(pA(Q),E=l.Pa,p=0;4>p;++p){for(C=0;8>C;++C)for(B=0;3>B;++B)for(I=0;11>I;++I)O=wA(Q,k1[p][C][B][I])?fA(Q,8):_1[p][C][B][I],E.Wc[p][C].Yb[B][I]=O;for(C=0;17>C;++C)E.Xc[p][C]=E.Wc[p][H1[C]]}return l.kc=pA(Q),l.kc&&(l.Bd=fA(Q,8)),l.cb=1}function $i(l,u,p,B,C,Q,E){var I=u[C].Yb[p];for(p=0;16>C;++C){if(!wA(l,I[p+0]))return C;for(;!wA(l,I[p+1]);)if(I=u[++C].Yb[0],p=0,C==16)return 16;var H=u[C+1].Yb;if(wA(l,I[p+2])){var O=l,Z=0;if(wA(O,(M=I)[(uA=p)+3]))if(wA(O,M[uA+6])){for(I=0,uA=2*(Z=wA(O,M[uA+8]))+(M=wA(O,M[uA+9+Z])),Z=0,M=S1[uA];M[I];++I)Z+=Z+wA(O,M[I]);Z+=3+(8<<uA)}else wA(O,M[uA+7])?(Z=7+2*wA(O,165),Z+=wA(O,145)):Z=5+wA(O,159);else Z=wA(O,M[uA+4])?3+wA(O,M[uA+5]):2;I=H[2]}else Z=1,I=H[1];H=E+I1[C],0>(O=l).b&&gA(O);var uA,M=O.b,tA=(uA=O.Ca>>1)-(O.I>>M)>>31;--O.b,O.Ca+=tA,O.Ca|=1,O.I-=(uA+1&tA)<<M,Q[H]=((Z^tA)-tA)*B[(0<C)+0]}return 16}function eo(l){var u=l.rb[l.sb-1];u.la=0,u.Na=0,n(l.zc,0,0,l.zc.length),l.ja=0}function br(l,u,p,B,C){C=l[u+p+32*B]+(C>>3),l[u+p+32*B]=-256&C?0>C?0:255:C}function mt(l,u,p,B,C,Q){br(l,u,0,p,B+C),br(l,u,1,p,B+Q),br(l,u,2,p,B-Q),br(l,u,3,p,B-C)}function gn(l){return(20091*l>>16)+l}function to(l,u,p,B){var C,Q=0,E=i(16);for(C=0;4>C;++C){var I=l[u+0]+l[u+8],H=l[u+0]-l[u+8],O=(35468*l[u+4]>>16)-gn(l[u+12]),Z=gn(l[u+4])+(35468*l[u+12]>>16);E[Q+0]=I+Z,E[Q+1]=H+O,E[Q+2]=H-O,E[Q+3]=I-Z,Q+=4,u++}for(C=Q=0;4>C;++C)I=(l=E[Q+0]+4)+E[Q+8],H=l-E[Q+8],O=(35468*E[Q+4]>>16)-gn(E[Q+12]),br(p,B,0,0,I+(Z=gn(E[Q+4])+(35468*E[Q+12]>>16))),br(p,B,1,0,H+O),br(p,B,2,0,H-O),br(p,B,3,0,I-Z),Q++,B+=32}function gc(l,u,p,B){var C=l[u+0]+4,Q=35468*l[u+4]>>16,E=gn(l[u+4]),I=35468*l[u+1]>>16;mt(p,B,0,C+E,l=gn(l[u+1]),I),mt(p,B,1,C+Q,l,I),mt(p,B,2,C-Q,l,I),mt(p,B,3,C-E,l,I)}function pc(l,u,p,B,C){to(l,u,p,B),C&&to(l,u+16,p,B+4)}function Zr(l,u,p,B){Li(l,u+0,p,B,1),Li(l,u+32,p,B+128,1)}function ro(l,u,p,B){var C;for(l=l[u+0]+4,C=0;4>C;++C)for(u=0;4>u;++u)br(p,B,u,C,l)}function no(l,u,p,B){l[u+0]&&Ne(l,u+0,p,B),l[u+16]&&Ne(l,u+16,p,B+4),l[u+32]&&Ne(l,u+32,p,B+128),l[u+48]&&Ne(l,u+48,p,B+128+4)}function Xi(l,u,p,B){var C,Q=i(16);for(C=0;4>C;++C){var E=l[u+0+C]+l[u+12+C],I=l[u+4+C]+l[u+8+C],H=l[u+4+C]-l[u+8+C],O=l[u+0+C]-l[u+12+C];Q[0+C]=E+I,Q[8+C]=E-I,Q[4+C]=O+H,Q[12+C]=O-H}for(C=0;4>C;++C)E=(l=Q[0+4*C]+3)+Q[3+4*C],I=Q[1+4*C]+Q[2+4*C],H=Q[1+4*C]-Q[2+4*C],O=l-Q[3+4*C],p[B+0]=E+I>>3,p[B+16]=O+H>>3,p[B+32]=E-I>>3,p[B+48]=O-H>>3,B+=64}function mi(l,u,p){var B,C=u-32,Q=ar,E=255-l[C-1];for(B=0;B<p;++B){var I,H=Q,O=E+l[u-1];for(I=0;I<p;++I)l[u+I]=H[O+l[C+I]];u+=32}}function mc(l,u){mi(l,u,4)}function Bc(l,u){mi(l,u,8)}function wc(l,u){mi(l,u,16)}function Ts(l,u){var p;for(p=0;16>p;++p)r(l,u+32*p,l,u-32,16)}function io(l,u){var p;for(p=16;0<p;--p)n(l,u,l[u-1],16),u+=32}function Tr(l,u,p){var B;for(B=0;16>B;++B)n(u,p+32*B,l,16)}function vc(l,u){var p,B=16;for(p=0;16>p;++p)B+=l[u-1+32*p]+l[u+p-32];Tr(B>>5,l,u)}function Bi(l,u){var p,B=8;for(p=0;16>p;++p)B+=l[u-1+32*p];Tr(B>>4,l,u)}function Ds(l,u){var p,B=8;for(p=0;16>p;++p)B+=l[u+p-32];Tr(B>>4,l,u)}function yc(l,u){Tr(128,l,u)}function ce(l,u,p){return l+2*u+p+2>>2}function bc(l,u){var p,B=u-32;for(B=new Uint8Array([ce(l[B-1],l[B+0],l[B+1]),ce(l[B+0],l[B+1],l[B+2]),ce(l[B+1],l[B+2],l[B+3]),ce(l[B+2],l[B+3],l[B+4])]),p=0;4>p;++p)r(l,u+32*p,B,0,B.length)}function Cc(l,u){var p=l[u-1],B=l[u-1+32],C=l[u-1+64],Q=l[u-1+96];xA(l,u+0,16843009*ce(l[u-1-32],p,B)),xA(l,u+32,16843009*ce(p,B,C)),xA(l,u+64,16843009*ce(B,C,Q)),xA(l,u+96,16843009*ce(C,Q,Q))}function Fc(l,u){var p,B=4;for(p=0;4>p;++p)B+=l[u+p-32]+l[u-1+32*p];for(B>>=3,p=0;4>p;++p)n(l,u+32*p,B,4)}function pn(l,u){var p=l[u-1+0],B=l[u-1+32],C=l[u-1+64],Q=l[u-1-32],E=l[u+0-32],I=l[u+1-32],H=l[u+2-32],O=l[u+3-32];l[u+0+96]=ce(B,C,l[u-1+96]),l[u+1+96]=l[u+0+64]=ce(p,B,C),l[u+2+96]=l[u+1+64]=l[u+0+32]=ce(Q,p,B),l[u+3+96]=l[u+2+64]=l[u+1+32]=l[u+0+0]=ce(E,Q,p),l[u+3+64]=l[u+2+32]=l[u+1+0]=ce(I,E,Q),l[u+3+32]=l[u+2+0]=ce(H,I,E),l[u+3+0]=ce(O,H,I)}function mn(l,u){var p=l[u+1-32],B=l[u+2-32],C=l[u+3-32],Q=l[u+4-32],E=l[u+5-32],I=l[u+6-32],H=l[u+7-32];l[u+0+0]=ce(l[u+0-32],p,B),l[u+1+0]=l[u+0+32]=ce(p,B,C),l[u+2+0]=l[u+1+32]=l[u+0+64]=ce(B,C,Q),l[u+3+0]=l[u+2+32]=l[u+1+64]=l[u+0+96]=ce(C,Q,E),l[u+3+32]=l[u+2+64]=l[u+1+96]=ce(Q,E,I),l[u+3+64]=l[u+2+96]=ce(E,I,H),l[u+3+96]=ce(I,H,H)}function Qc(l,u){var p=l[u-1+0],B=l[u-1+32],C=l[u-1+64],Q=l[u-1-32],E=l[u+0-32],I=l[u+1-32],H=l[u+2-32],O=l[u+3-32];l[u+0+0]=l[u+1+64]=Q+E+1>>1,l[u+1+0]=l[u+2+64]=E+I+1>>1,l[u+2+0]=l[u+3+64]=I+H+1>>1,l[u+3+0]=H+O+1>>1,l[u+0+96]=ce(C,B,p),l[u+0+64]=ce(B,p,Q),l[u+0+32]=l[u+1+96]=ce(p,Q,E),l[u+1+32]=l[u+2+96]=ce(Q,E,I),l[u+2+32]=l[u+3+96]=ce(E,I,H),l[u+3+32]=ce(I,H,O)}function Uc(l,u){var p=l[u+0-32],B=l[u+1-32],C=l[u+2-32],Q=l[u+3-32],E=l[u+4-32],I=l[u+5-32],H=l[u+6-32],O=l[u+7-32];l[u+0+0]=p+B+1>>1,l[u+1+0]=l[u+0+64]=B+C+1>>1,l[u+2+0]=l[u+1+64]=C+Q+1>>1,l[u+3+0]=l[u+2+64]=Q+E+1>>1,l[u+0+32]=ce(p,B,C),l[u+1+32]=l[u+0+96]=ce(B,C,Q),l[u+2+32]=l[u+1+96]=ce(C,Q,E),l[u+3+32]=l[u+2+96]=ce(Q,E,I),l[u+3+64]=ce(E,I,H),l[u+3+96]=ce(I,H,O)}function Ji(l,u){var p=l[u-1+0],B=l[u-1+32],C=l[u-1+64],Q=l[u-1+96];l[u+0+0]=p+B+1>>1,l[u+2+0]=l[u+0+32]=B+C+1>>1,l[u+2+32]=l[u+0+64]=C+Q+1>>1,l[u+1+0]=ce(p,B,C),l[u+3+0]=l[u+1+32]=ce(B,C,Q),l[u+3+32]=l[u+1+64]=ce(C,Q,Q),l[u+3+64]=l[u+2+64]=l[u+0+96]=l[u+1+96]=l[u+2+96]=l[u+3+96]=Q}function Rs(l,u){var p=l[u-1+0],B=l[u-1+32],C=l[u-1+64],Q=l[u-1+96],E=l[u-1-32],I=l[u+0-32],H=l[u+1-32],O=l[u+2-32];l[u+0+0]=l[u+2+32]=p+E+1>>1,l[u+0+32]=l[u+2+64]=B+p+1>>1,l[u+0+64]=l[u+2+96]=C+B+1>>1,l[u+0+96]=Q+C+1>>1,l[u+3+0]=ce(I,H,O),l[u+2+0]=ce(E,I,H),l[u+1+0]=l[u+3+32]=ce(p,E,I),l[u+1+32]=l[u+3+64]=ce(B,p,E),l[u+1+64]=l[u+3+96]=ce(C,B,p),l[u+1+96]=ce(Q,C,B)}function wi(l,u){var p;for(p=0;8>p;++p)r(l,u+32*p,l,u-32,8)}function xc(l,u){var p;for(p=0;8>p;++p)n(l,u,l[u-1],8),u+=32}function Bn(l,u,p){var B;for(B=0;8>B;++B)n(u,p+32*B,l,8)}function Ec(l,u){var p,B=8;for(p=0;8>p;++p)B+=l[u+p-32]+l[u-1+32*p];Bn(B>>4,l,u)}function Os(l,u){var p,B=4;for(p=0;8>p;++p)B+=l[u+p-32];Bn(B>>3,l,u)}function Ms(l,u){var p,B=4;for(p=0;8>p;++p)B+=l[u-1+32*p];Bn(B>>3,l,u)}function so(l,u){Bn(128,l,u)}function wn(l,u,p){var B=l[u-p],C=l[u+0],Q=3*(C-B)+Lc[1020+l[u-2*p]-l[u+p]],E=go[112+(Q+4>>3)];l[u-p]=ar[255+B+go[112+(Q+3>>3)]],l[u+0]=ar[255+C-E]}function Ks(l,u,p,B){var C=l[u+0],Q=l[u+p];return Qr[255+l[u-2*p]-l[u-p]]>B||Qr[255+Q-C]>B}function Yi(l,u,p,B){return 4*Qr[255+l[u-p]-l[u+0]]+Qr[255+l[u-2*p]-l[u+p]]<=B}function js(l,u,p,B,C){var Q=l[u-3*p],E=l[u-2*p],I=l[u-p],H=l[u+0],O=l[u+p],Z=l[u+2*p],uA=l[u+3*p];return 4*Qr[255+I-H]+Qr[255+E-O]>B?0:Qr[255+l[u-4*p]-Q]<=C&&Qr[255+Q-E]<=C&&Qr[255+E-I]<=C&&Qr[255+uA-Z]<=C&&Qr[255+Z-O]<=C&&Qr[255+O-H]<=C}function vi(l,u,p,B){var C=2*B+1;for(B=0;16>B;++B)Yi(l,u+B,p,C)&&wn(l,u+B,p)}function Gs(l,u,p,B){var C=2*B+1;for(B=0;16>B;++B)Yi(l,u+B*p,1,C)&&wn(l,u+B*p,1)}function ao(l,u,p,B){var C;for(C=3;0<C;--C)vi(l,u+=4*p,p,B)}function oo(l,u,p,B){var C;for(C=3;0<C;--C)Gs(l,u+=4,p,B)}function vn(l,u,p,B,C,Q,E,I){for(Q=2*Q+1;0<C--;){if(js(l,u,p,Q,E))if(Ks(l,u,p,I))wn(l,u,p);else{var H=l,O=u,Z=p,uA=H[O-2*Z],M=H[O-Z],tA=H[O+0],iA=H[O+Z],mA=H[O+2*Z],cA=27*(yA=Lc[1020+3*(tA-M)+Lc[1020+uA-iA]])+63>>7,BA=18*yA+63>>7,yA=9*yA+63>>7;H[O-3*Z]=ar[255+H[O-3*Z]+yA],H[O-2*Z]=ar[255+uA+BA],H[O-Z]=ar[255+M+cA],H[O+0]=ar[255+tA-cA],H[O+Z]=ar[255+iA-BA],H[O+2*Z]=ar[255+mA-yA]}u+=B}}function yn(l,u,p,B,C,Q,E,I){for(Q=2*Q+1;0<C--;){if(js(l,u,p,Q,E))if(Ks(l,u,p,I))wn(l,u,p);else{var H=l,O=u,Z=p,uA=H[O-Z],M=H[O+0],tA=H[O+Z],iA=go[112+(4+(mA=3*(M-uA))>>3)],mA=go[112+(mA+3>>3)],cA=iA+1>>1;H[O-2*Z]=ar[255+H[O-2*Z]+cA],H[O-Z]=ar[255+uA+mA],H[O+0]=ar[255+M-iA],H[O+Z]=ar[255+tA-cA]}u+=B}}function lo(l,u,p,B,C,Q){vn(l,u,p,1,16,B,C,Q)}function yi(l,u,p,B,C,Q){vn(l,u,1,p,16,B,C,Q)}function co(l,u,p,B,C,Q){var E;for(E=3;0<E;--E)yn(l,u+=4*p,p,1,16,B,C,Q)}function g(l,u,p,B,C,Q){var E;for(E=3;0<E;--E)yn(l,u+=4,1,p,16,B,C,Q)}function b(l,u,p,B,C,Q,E,I){vn(l,u,C,1,8,Q,E,I),vn(p,B,C,1,8,Q,E,I)}function K(l,u,p,B,C,Q,E,I){vn(l,u,1,C,8,Q,E,I),vn(p,B,1,C,8,Q,E,I)}function $(l,u,p,B,C,Q,E,I){yn(l,u+4*C,C,1,8,Q,E,I),yn(p,B+4*C,C,1,8,Q,E,I)}function rA(l,u,p,B,C,Q,E,I){yn(l,u+4,1,C,8,Q,E,I),yn(p,B+4,1,C,8,Q,E,I)}function vA(){this.ba=new Be,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Ie,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function CA(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function VA(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function XA(){this.ua=0,this.Wa=new ie,this.vb=new ie,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new J,this.yc=new j}function le(){this.xb=this.a=0,this.l=new zi,this.ca=new Be,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new R,this.Pb=0,this.wd=new R,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new XA,this.ab=0,this.gc=s(4,VA),this.Oc=0}function de(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new zi,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Le(l,u,p,B,C,Q,E){for(l=l==null?0:l[u+0],u=0;u<E;++u)C[Q+u]=l+p[B+u]&255,l=C[Q+u]}function Je(l,u,p,B,C,Q,E){var I;if(l==null)Le(null,null,p,B,C,Q,E);else for(I=0;I<E;++I)C[Q+I]=l[u+I]+p[B+I]&255}function ht(l,u,p,B,C,Q,E){if(l==null)Le(null,null,p,B,C,Q,E);else{var I,H=l[u+0],O=H,Z=H;for(I=0;I<E;++I)O=Z+(H=l[u+I])-O,Z=p[B+I]+(-256&O?0>O?0:255:O)&255,O=H,C[Q+I]=Z}}function Ke(l,u,p,B){var C=u.width,Q=u.o;if(A(l!=null&&u!=null),0>p||0>=B||p+B>Q)return null;if(!l.Cc){if(l.ga==null){var E;if(l.ga=new de,(E=l.ga==null)||(E=u.width*u.o,A(l.Gb.length==0),l.Gb=i(E),l.Uc=0,l.Gb==null?E=0:(l.mb=l.Gb,l.nb=l.Uc,l.rc=null,E=1),E=!E),!E){E=l.ga;var I=l.Fa,H=l.P,O=l.qc,Z=l.mb,uA=l.nb,M=H+1,tA=O-1,iA=E.l;if(A(I!=null&&Z!=null&&u!=null),$n[0]=null,$n[1]=Le,$n[2]=Je,$n[3]=ht,E.ca=Z,E.tb=uA,E.c=u.width,E.i=u.height,A(0<E.c&&0<E.i),1>=O)u=0;else if(E.$a=3&I[H+0],E.Z=I[H+0]>>2&3,E.Lc=I[H+0]>>4&3,H=I[H+0]>>6&3,0>E.$a||1<E.$a||4<=E.Z||1<E.Lc||H)u=0;else if(iA.put=ne,iA.ac=zr,iA.bc=fn,iA.ma=E,iA.width=u.width,iA.height=u.height,iA.Da=u.Da,iA.v=u.v,iA.va=u.va,iA.j=u.j,iA.o=u.o,E.$a)A:{A(E.$a==1),u=gi();e:for(;;){if(u==null){u=0;break A}if(A(E!=null),E.mc=u,u.c=E.c,u.i=E.i,u.l=E.l,u.l.ma=E,u.l.width=E.c,u.l.height=E.i,u.a=0,dA(u.m,I,M,tA),!Xr(E.c,E.i,1,u,null)||(u.ab==1&&u.gc[0].hc==3&&kr(u.s)?(E.ic=1,I=u.c*u.i,u.Ta=null,u.Ua=0,u.V=i(I),u.Ba=0,u.V==null?(u.a=1,u=0):u=1):(E.ic=0,u=pi(u,E.c)),!u))break e;u=1;break A}E.mc=null,u=0}else u=tA>=E.c*E.i;E=!u}if(E)return null;l.ga.Lc!=1?l.Ga=0:B=Q-p}A(l.ga!=null),A(p+B<=Q);A:{if(u=(I=l.ga).c,Q=I.l.o,I.$a==0){if(M=l.rc,tA=l.Vc,iA=l.Fa,H=l.P+1+p*u,O=l.mb,Z=l.nb+p*u,A(H<=l.P+l.qc),I.Z!=0)for(A($n[I.Z]!=null),E=0;E<B;++E)$n[I.Z](M,tA,iA,H,O,Z,u),M=O,tA=Z,Z+=u,H+=u;else for(E=0;E<B;++E)r(O,Z,iA,H,u),M=O,tA=Z,Z+=u,H+=u;l.rc=M,l.Vc=tA}else{if(A(I.mc!=null),u=p+B,A((E=I.mc)!=null),A(u<=E.i),E.C>=u)u=1;else if(I.ic||Dr(),I.ic){I=E.V,M=E.Ba,tA=E.c;var mA=E.i,cA=(iA=1,H=E.$/tA,O=E.$%tA,Z=E.m,uA=E.s,E.$),BA=tA*mA,yA=tA*u,EA=uA.wc,FA=cA<yA?St(uA,O,H):null;A(cA<=BA),A(u<=mA),A(kr(uA));e:for(;;){for(;!Z.h&&cA<yA;){if(O&EA||(FA=St(uA,O,H)),A(FA!=null),nA(Z),256>(mA=Ye(FA.G[0],FA.H[0],Z)))I[M+cA]=mA,++cA,++O>=tA&&(O=0,++H<=u&&!(H%16)&&Hr(E,H));else{if(!(280>mA)){iA=0;break e}mA=Br(mA-256,Z);var ZA,jA=Ye(FA.G[4],FA.H[4],Z);if(nA(Z),!(cA>=(jA=wr(tA,jA=Br(jA,Z)))&&BA-cA>=mA)){iA=0;break e}for(ZA=0;ZA<mA;++ZA)I[M+cA+ZA]=I[M+cA+ZA-jA];for(cA+=mA,O+=mA;O>=tA;)O-=tA,++H<=u&&!(H%16)&&Hr(E,H);cA<yA&&O&EA&&(FA=St(uA,O,H))}A(Z.h==W(Z))}Hr(E,H>u?u:H);break e}!iA||Z.h&&cA<BA?(iA=0,E.a=Z.h?5:3):E.$=cA,u=iA}else u=Pr(E,E.V,E.Ba,E.c,E.i,u,qi);if(!u){B=0;break A}}p+B>=Q&&(l.Cc=1),B=1}if(!B)return null;if(l.Cc&&((B=l.ga)!=null&&(B.mc=null),l.ga=null,0<l.Ga))return alert("todo:WebPDequantizeLevels"),null}return l.nb+p*C}function Bt(l,u,p,B,C,Q){for(;0<C--;){var E,I=l,H=u+(p?1:0),O=l,Z=u+(p?0:3);for(E=0;E<B;++E){var uA=O[Z+4*E];uA!=255&&(uA*=32897,I[H+4*E+0]=I[H+4*E+0]*uA>>23,I[H+4*E+1]=I[H+4*E+1]*uA>>23,I[H+4*E+2]=I[H+4*E+2]*uA>>23)}u+=Q}}function ft(l,u,p,B,C){for(;0<B--;){var Q;for(Q=0;Q<p;++Q){var E=l[u+2*Q+0],I=15&(O=l[u+2*Q+1]),H=4369*I,O=(240&O|O>>4)*H>>16;l[u+2*Q+0]=(240&E|E>>4)*H>>16&240|(15&E|E<<4)*H>>16>>4&15,l[u+2*Q+1]=240&O|I}u+=C}}function It(l,u,p,B,C,Q,E,I){var H,O,Z=255;for(O=0;O<C;++O){for(H=0;H<B;++H){var uA=l[u+H];Q[E+4*H]=uA,Z&=uA}u+=p,E+=I}return Z!=255}function bn(l,u,p,B,C){var Q;for(Q=0;Q<C;++Q)p[B+Q]=l[u+Q]>>8}function Dr(){ta=Bt,bf=ft,Cf=It,Ff=bn}function Cn(l,u,p){k[l]=function(B,C,Q,E,I,H,O,Z,uA,M,tA,iA,mA,cA,BA,yA,EA){var FA,ZA=EA-1>>1,jA=I[H+0]|O[Z+0]<<16,we=uA[M+0]|tA[iA+0]<<16;A(B!=null);var zA=3*jA+we+131074>>2;for(u(B[C+0],255&zA,zA>>16,mA,cA),Q!=null&&(zA=3*we+jA+131074>>2,u(Q[E+0],255&zA,zA>>16,BA,yA)),FA=1;FA<=ZA;++FA){var xe=I[H+FA]|O[Z+FA]<<16,vt=uA[M+FA]|tA[iA+FA]<<16,ve=jA+xe+we+vt+524296,$A=ve+2*(xe+we)>>3;zA=$A+jA>>1,jA=(ve=ve+2*(jA+vt)>>3)+xe>>1,u(B[C+2*FA-1],255&zA,zA>>16,mA,cA+(2*FA-1)*p),u(B[C+2*FA-0],255&jA,jA>>16,mA,cA+(2*FA-0)*p),Q!=null&&(zA=ve+we>>1,jA=$A+vt>>1,u(Q[E+2*FA-1],255&zA,zA>>16,BA,yA+(2*FA-1)*p),u(Q[E+2*FA+0],255&jA,jA>>16,BA,yA+(2*FA+0)*p)),jA=xe,we=vt}1&EA||(zA=3*jA+we+131074>>2,u(B[C+EA-1],255&zA,zA>>16,mA,cA+(EA-1)*p),Q!=null&&(zA=3*we+jA+131074>>2,u(Q[E+EA-1],255&zA,zA>>16,BA,yA+(EA-1)*p)))}}function qs(){Ur[po]=T1,Ur[mo]=Hf,Ur[Sf]=D1,Ur[Bo]=Pf,Ur[wo]=Tf,Ur[Sc]=Df,Ur[If]=R1,Ur[Ic]=Hf,Ur[_c]=Pf,Ur[vo]=Tf,Ur[Nc]=Df}function Zi(l){return l&-16384?0>l?0:255:l>>O1}function Rn(l,u){return Zi((19077*l>>8)+(26149*u>>8)-14234)}function bi(l,u,p){return Zi((19077*l>>8)-(6419*u>>8)-(13320*p>>8)+8708)}function Ci(l,u){return Zi((19077*l>>8)+(33050*u>>8)-17685)}function On(l,u,p,B,C){B[C+0]=Rn(l,p),B[C+1]=bi(l,u,p),B[C+2]=Ci(l,u)}function _t(l,u,p,B,C){B[C+0]=Ci(l,u),B[C+1]=bi(l,u,p),B[C+2]=Rn(l,p)}function Fi(l,u,p,B,C){var Q=bi(l,u,p);u=Q<<3&224|Ci(l,u)>>3,B[C+0]=248&Rn(l,p)|Q>>5,B[C+1]=u}function Qi(l,u,p,B,C){var Q=240&Ci(l,u)|15;B[C+0]=240&Rn(l,p)|bi(l,u,p)>>4,B[C+1]=Q}function Vs(l,u,p,B,C){B[C+0]=255,On(l,u,p,B,C+1)}function Ws(l,u,p,B,C){_t(l,u,p,B,C),B[C+3]=255}function zt(l,u,p,B,C){On(l,u,p,B,C),B[C+3]=255}function Fn(l,u,p){k[l]=function(B,C,Q,E,I,H,O,Z,uA){for(var M=Z+(-2&uA)*p;Z!=M;)u(B[C+0],Q[E+0],I[H+0],O,Z),u(B[C+1],Q[E+0],I[H+0],O,Z+p),C+=2,++E,++H,Z+=2*p;1&uA&&u(B[C+0],Q[E+0],I[H+0],O,Z)}}function As(l,u,p){return p==0?l==0?u==0?6:5:u==0?4:0:p}function uo(l,u,p,B,C){switch(l>>>30){case 3:Li(u,p,B,C,0);break;case 2:Fr(u,p,B,C);break;case 1:Ne(u,p,B,C)}}function Cr(l,u){var p,B,C=u.M,Q=u.Nb,E=l.oc,I=l.pc+40,H=l.oc,O=l.pc+584,Z=l.oc,uA=l.pc+600;for(p=0;16>p;++p)E[I+32*p-1]=129;for(p=0;8>p;++p)H[O+32*p-1]=129,Z[uA+32*p-1]=129;for(0<C?E[I-1-32]=H[O-1-32]=Z[uA-1-32]=129:(n(E,I-32-1,127,21),n(H,O-32-1,127,9),n(Z,uA-32-1,127,9)),B=0;B<l.za;++B){var M=u.ya[u.aa+B];if(0<B){for(p=-1;16>p;++p)r(E,I+32*p-4,E,I+32*p+12,4);for(p=-1;8>p;++p)r(H,O+32*p-4,H,O+32*p+4,4),r(Z,uA+32*p-4,Z,uA+32*p+4,4)}var tA=l.Gd,iA=l.Hd+B,mA=M.ad,cA=M.Hc;if(0<C&&(r(E,I-32,tA[iA].y,0,16),r(H,O-32,tA[iA].f,0,8),r(Z,uA-32,tA[iA].ea,0,8)),M.Za){var BA=E,yA=I-32+16;for(0<C&&(B>=l.za-1?n(BA,yA,tA[iA].y[15],4):r(BA,yA,tA[iA+1].y,0,4)),p=0;4>p;p++)BA[yA+128+p]=BA[yA+256+p]=BA[yA+384+p]=BA[yA+0+p];for(p=0;16>p;++p,cA<<=2)BA=E,yA=I+Of[p],Rr[M.Ob[p]](BA,yA),uo(cA,mA,16*+p,BA,yA)}else if(BA=As(B,C,M.Ob[0]),zn[BA](E,I),cA!=0)for(p=0;16>p;++p,cA<<=2)uo(cA,mA,16*+p,E,I+Of[p]);for(p=M.Gc,BA=As(B,C,M.Dd),xn[BA](H,O),xn[BA](Z,uA),cA=mA,BA=H,yA=O,255&(M=0|p)&&(170&M?tn(cA,256,BA,yA):Re(cA,256,BA,yA)),M=Z,cA=uA,255&(p>>=8)&&(170&p?tn(mA,320,M,cA):Re(mA,320,M,cA)),C<l.Ub-1&&(r(tA[iA].y,0,E,I+480,16),r(tA[iA].f,0,H,O+224,8),r(tA[iA].ea,0,Z,uA+224,8)),p=8*Q*l.B,tA=l.sa,iA=l.ta+16*B+16*Q*l.R,mA=l.qa,M=l.ra+8*B+p,cA=l.Ha,BA=l.Ia+8*B+p,p=0;16>p;++p)r(tA,iA+p*l.R,E,I+32*p,16);for(p=0;8>p;++p)r(mA,M+p*l.B,H,O+32*p,8),r(cA,BA+p*l.B,Z,uA+32*p,8)}}function Ui(l,u,p,B,C,Q,E,I,H){var O=[0],Z=[0],uA=0,M=H!=null?H.kd:0,tA=H??new CA;if(l==null||12>p)return 7;tA.data=l,tA.w=u,tA.ha=p,u=[u],p=[p],tA.gb=[tA.gb];A:{var iA=u,mA=p,cA=tA.gb;if(A(l!=null),A(mA!=null),A(cA!=null),cA[0]=0,12<=mA[0]&&!e(l,iA[0],"RIFF")){if(e(l,iA[0]+8,"WEBP")){cA=3;break A}var BA=WA(l,iA[0]+4);if(12>BA||4294967286<BA){cA=3;break A}if(M&&BA>mA[0]-8){cA=7;break A}cA[0]=BA,iA[0]+=12,mA[0]-=12}cA=0}if(cA!=0)return cA;for(BA=0<tA.gb[0],p=p[0];;){A:{var yA=l;mA=u,cA=p;var EA=O,FA=Z,ZA=iA=[0];if((zA=uA=[uA])[0]=0,8>cA[0])cA=7;else{if(!e(yA,mA[0],"VP8X")){if(WA(yA,mA[0]+4)!=10){cA=3;break A}if(18>cA[0]){cA=7;break A}var jA=WA(yA,mA[0]+8),we=1+HA(yA,mA[0]+12);if(2147483648<=we*(yA=1+HA(yA,mA[0]+15))){cA=3;break A}ZA!=null&&(ZA[0]=jA),EA!=null&&(EA[0]=we),FA!=null&&(FA[0]=yA),mA[0]+=18,cA[0]-=18,zA[0]=1}cA=0}}if(uA=uA[0],iA=iA[0],cA!=0)return cA;if(mA=!!(2&iA),!BA&&uA)return 3;if(Q!=null&&(Q[0]=!!(16&iA)),E!=null&&(E[0]=mA),I!=null&&(I[0]=0),E=O[0],iA=Z[0],uA&&mA&&H==null){cA=0;break}if(4>p){cA=7;break}if(BA&&uA||!BA&&!uA&&!e(l,u[0],"ALPH")){p=[p],tA.na=[tA.na],tA.P=[tA.P],tA.Sa=[tA.Sa];A:{jA=l,cA=u,BA=p;var zA=tA.gb;EA=tA.na,FA=tA.P,ZA=tA.Sa,we=22,A(jA!=null),A(BA!=null),yA=cA[0];var xe=BA[0];for(A(EA!=null),A(ZA!=null),EA[0]=null,FA[0]=null,ZA[0]=0;;){if(cA[0]=yA,BA[0]=xe,8>xe){cA=7;break A}var vt=WA(jA,yA+4);if(4294967286<vt){cA=3;break A}var ve=8+vt+1&-2;if(we+=ve,0<zA&&we>zA){cA=3;break A}if(!e(jA,yA,"VP8 ")||!e(jA,yA,"VP8L")){cA=0;break A}if(xe[0]<ve){cA=7;break A}e(jA,yA,"ALPH")||(EA[0]=jA,FA[0]=yA+8,ZA[0]=vt),yA+=ve,xe-=ve}}if(p=p[0],tA.na=tA.na[0],tA.P=tA.P[0],tA.Sa=tA.Sa[0],cA!=0)break}p=[p],tA.Ja=[tA.Ja],tA.xa=[tA.xa];A:if(zA=l,cA=u,BA=p,EA=tA.gb[0],FA=tA.Ja,ZA=tA.xa,jA=cA[0],yA=!e(zA,jA,"VP8 "),we=!e(zA,jA,"VP8L"),A(zA!=null),A(BA!=null),A(FA!=null),A(ZA!=null),8>BA[0])cA=7;else{if(yA||we){if(zA=WA(zA,jA+4),12<=EA&&zA>EA-12){cA=3;break A}if(M&&zA>BA[0]-8){cA=7;break A}FA[0]=zA,cA[0]+=8,BA[0]-=8,ZA[0]=we}else ZA[0]=5<=BA[0]&&zA[jA+0]==47&&!(zA[jA+4]>>5),FA[0]=BA[0];cA=0}if(p=p[0],tA.Ja=tA.Ja[0],tA.xa=tA.xa[0],u=u[0],cA!=0)break;if(4294967286<tA.Ja)return 3;if(I==null||mA||(I[0]=tA.xa?2:1),E=[E],iA=[iA],tA.xa){if(5>p){cA=7;break}I=E,M=iA,mA=Q,l==null||5>p?l=0:5<=p&&l[u+0]==47&&!(l[u+4]>>5)?(BA=[0],zA=[0],EA=[0],dA(FA=new R,l,u,p),dn(FA,BA,zA,EA)?(I!=null&&(I[0]=BA[0]),M!=null&&(M[0]=zA[0]),mA!=null&&(mA[0]=EA[0]),l=1):l=0):l=0}else{if(10>p){cA=7;break}I=iA,l==null||10>p||!Ao(l,u+3,p-3)?l=0:(M=l[u+0]|l[u+1]<<8|l[u+2]<<16,mA=16383&(l[u+7]<<8|l[u+6]),l=16383&(l[u+9]<<8|l[u+8]),1&M||3<(M>>1&7)||!(M>>4&1)||M>>5>=tA.Ja||!mA||!l?l=0:(E&&(E[0]=mA),I&&(I[0]=l),l=1))}if(!l||(E=E[0],iA=iA[0],uA&&(O[0]!=E||Z[0]!=iA)))return 3;H!=null&&(H[0]=tA,H.offset=u-H.w,A(4294967286>u-H.w),A(H.offset==H.ha-p));break}return cA==0||cA==7&&uA&&H==null?(Q!=null&&(Q[0]|=tA.na!=null&&0<tA.na.length),B!=null&&(B[0]=E),C!=null&&(C[0]=iA),0):cA}function zs(l,u,p){var B=u.width,C=u.height,Q=0,E=0,I=B,H=C;if(u.Da=l!=null&&0<l.Da,u.Da&&(I=l.cd,H=l.bd,Q=l.v,E=l.j,11>p||(Q&=-2,E&=-2),0>Q||0>E||0>=I||0>=H||Q+I>B||E+H>C))return 0;if(u.v=Q,u.j=E,u.va=Q+I,u.o=E+H,u.U=I,u.T=H,u.da=l!=null&&0<l.da,u.da){if(!JA(I,H,p=[l.ib],Q=[l.hb]))return 0;u.ib=p[0],u.hb=Q[0]}return u.ob=l!=null&&l.ob,u.Kb=l==null||!l.Sd,u.da&&(u.ob=u.ib<3*B/4&&u.hb<3*C/4,u.Kb=0),1}function $s(l){if(l==null)return 2;if(11>l.S){var u=l.f.RGBA;u.fb+=(l.height-1)*u.A,u.A=-u.A}else u=l.f.kb,l=l.height,u.O+=(l-1)*u.fa,u.fa=-u.fa,u.N+=(l-1>>1)*u.Ab,u.Ab=-u.Ab,u.W+=(l-1>>1)*u.Db,u.Db=-u.Db,u.F!=null&&(u.J+=(l-1)*u.lb,u.lb=-u.lb);return 0}function Mn(l,u,p,B){if(B==null||0>=l||0>=u)return 2;if(p!=null){if(p.Da){var C=p.cd,Q=p.bd,E=-2&p.v,I=-2&p.j;if(0>E||0>I||0>=C||0>=Q||E+C>l||I+Q>u)return 2;l=C,u=Q}if(p.da){if(!JA(l,u,C=[p.ib],Q=[p.hb]))return 2;l=C[0],u=Q[0]}}B.width=l,B.height=u;A:{var H=B.width,O=B.height;if(l=B.S,0>=H||0>=O||!(l>=po&&13>l))l=2;else{if(0>=B.Rd&&B.sd==null){E=Q=C=u=0;var Z=(I=H*Mf[l])*O;if(11>l||(Q=(O+1)/2*(u=(H+1)/2),l==12&&(E=(C=H)*O)),(O=i(Z+2*Q+E))==null){l=1;break A}B.sd=O,11>l?((H=B.f.RGBA).eb=O,H.fb=0,H.A=I,H.size=Z):((H=B.f.kb).y=O,H.O=0,H.fa=I,H.Fd=Z,H.f=O,H.N=0+Z,H.Ab=u,H.Cd=Q,H.ea=O,H.W=0+Z+Q,H.Db=u,H.Ed=Q,l==12&&(H.F=O,H.J=0+Z+2*Q),H.Tc=E,H.lb=C)}if(u=1,C=B.S,Q=B.width,E=B.height,C>=po&&13>C)if(11>C)l=B.f.RGBA,u&=(I=Math.abs(l.A))*(E-1)+Q<=l.size,u&=I>=Q*Mf[C],u&=l.eb!=null;else{l=B.f.kb,I=(Q+1)/2,Z=(E+1)/2,H=Math.abs(l.fa),O=Math.abs(l.Ab);var uA=Math.abs(l.Db),M=Math.abs(l.lb),tA=M*(E-1)+Q;u&=H*(E-1)+Q<=l.Fd,u&=O*(Z-1)+I<=l.Cd,u=(u&=uA*(Z-1)+I<=l.Ed)&H>=Q&O>=I&uA>=I,u&=l.y!=null,u&=l.f!=null,u&=l.ea!=null,C==12&&(u&=M>=Q,u&=tA<=l.Tc,u&=l.F!=null)}else u=0;l=u?0:2}}return l!=0||p!=null&&p.fd&&(l=$s(B)),l}var xi=64,ir=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],sr=24,Kn=32,Qn=8,jn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];MA("Predictor0","PredictorAdd0"),k.Predictor0=function(){return 4278190080},k.Predictor1=function(l){return l},k.Predictor2=function(l,u,p){return u[p+0]},k.Predictor3=function(l,u,p){return u[p+1]},k.Predictor4=function(l,u,p){return u[p-1]},k.Predictor5=function(l,u,p){return YA(YA(l,u[p+1]),u[p+0])},k.Predictor6=function(l,u,p){return YA(l,u[p-1])},k.Predictor7=function(l,u,p){return YA(l,u[p+0])},k.Predictor8=function(l,u,p){return YA(u[p-1],u[p+0])},k.Predictor9=function(l,u,p){return YA(u[p+0],u[p+1])},k.Predictor10=function(l,u,p){return YA(YA(l,u[p-1]),YA(u[p+0],u[p+1]))},k.Predictor11=function(l,u,p){var B=u[p+0];return 0>=se(B>>24&255,l>>24&255,(u=u[p-1])>>24&255)+se(B>>16&255,l>>16&255,u>>16&255)+se(B>>8&255,l>>8&255,u>>8&255)+se(255&B,255&l,255&u)?B:l},k.Predictor12=function(l,u,p){var B=u[p+0];return(Ue((l>>24&255)+(B>>24&255)-((u=u[p-1])>>24&255))<<24|Ue((l>>16&255)+(B>>16&255)-(u>>16&255))<<16|Ue((l>>8&255)+(B>>8&255)-(u>>8&255))<<8|Ue((255&l)+(255&B)-(255&u)))>>>0},k.Predictor13=function(l,u,p){var B=u[p-1];return(ge((l=YA(l,u[p+0]))>>24&255,B>>24&255)<<24|ge(l>>16&255,B>>16&255)<<16|ge(l>>8&255,B>>8&255)<<8|ge(255&l,255&B))>>>0};var Xs=k.PredictorAdd0;k.PredictorAdd1=pe,MA("Predictor2","PredictorAdd2"),MA("Predictor3","PredictorAdd3"),MA("Predictor4","PredictorAdd4"),MA("Predictor5","PredictorAdd5"),MA("Predictor6","PredictorAdd6"),MA("Predictor7","PredictorAdd7"),MA("Predictor8","PredictorAdd8"),MA("Predictor9","PredictorAdd9"),MA("Predictor10","PredictorAdd10"),MA("Predictor11","PredictorAdd11"),MA("Predictor12","PredictorAdd12"),MA("Predictor13","PredictorAdd13");var es=k.PredictorAdd2;KA("ColorIndexInverseTransform","MapARGB","32b",function(l){return l>>8&255},function(l){return l}),KA("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(l){return l},function(l){return l>>8&255});var tt,ho=k.ColorIndexInverseTransform,An=k.MapARGB,en=k.VP8LColorIndexInverseTransformAlpha,Js=k.MapAlpha,Ys=k.VP8LPredictorsAdd=[];Ys.length=16,(k.VP8LPredictors=[]).length=16,(k.VP8LPredictorsAdd_C=[]).length=16,(k.VP8LPredictors_C=[]).length=16;var Zs,Aa,Gn,qn,Vn,Ei,Wn,Li,Fr,tn,Ne,Re,rt,wt,Un,ea,ts,fo,pf,mf,Bf,wf,vf,yf,ta,bf,Cf,Ff,Qf=i(511),Uf=i(2041),xf=i(225),Ef=i(767),Lf=0,Lc=Uf,go=xf,ar=Ef,Qr=Qf,po=0,mo=1,Sf=2,Bo=3,wo=4,Sc=5,If=6,Ic=7,_c=8,vo=9,Nc=10,C1=[2,3,7],F1=[3,3,11],_f=[280,256,256,256,40],Q1=[0,1,1,1,0],U1=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],x1=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],E1=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],L1=8,kc=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Hc=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ra=null,S1=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],I1=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Nf=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],_1=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],N1=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],k1=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],H1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],zn=[],Rr=[],xn=[],P1=1,kf=2,$n=[],Ur=[];Cn("UpsampleRgbLinePair",On,3),Cn("UpsampleBgrLinePair",_t,3),Cn("UpsampleRgbaLinePair",zt,4),Cn("UpsampleBgraLinePair",Ws,4),Cn("UpsampleArgbLinePair",Vs,4),Cn("UpsampleRgba4444LinePair",Qi,2),Cn("UpsampleRgb565LinePair",Fi,2);var T1=k.UpsampleRgbLinePair,D1=k.UpsampleBgrLinePair,Hf=k.UpsampleRgbaLinePair,Pf=k.UpsampleBgraLinePair,Tf=k.UpsampleArgbLinePair,Df=k.UpsampleRgba4444LinePair,R1=k.UpsampleRgb565LinePair,yo=16,bo=1<<yo-1,na=-227,Pc=482,O1=6,Rf=0,M1=i(256),K1=i(256),j1=i(256),G1=i(256),q1=i(Pc-na),V1=i(Pc-na);Fn("YuvToRgbRow",On,3),Fn("YuvToBgrRow",_t,3),Fn("YuvToRgbaRow",zt,4),Fn("YuvToBgraRow",Ws,4),Fn("YuvToArgbRow",Vs,4),Fn("YuvToRgba4444Row",Qi,2),Fn("YuvToRgb565Row",Fi,2);var Of=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Co=[0,2,8],W1=[8,7,6,4,4,2,2,2,1,1,1,1],z1=1;this.WebPDecodeRGBA=function(l,u,p,B,C){var Q=mo,E=new vA,I=new Be;E.ba=I,I.S=Q,I.width=[I.width],I.height=[I.height];var H=I.width,O=I.height,Z=new re;if(Z==null||l==null)var uA=2;else A(Z!=null),uA=Ui(l,u,p,Z.width,Z.height,Z.Pd,Z.Qd,Z.format,null);if(uA!=0?H=0:(H!=null&&(H[0]=Z.width[0]),O!=null&&(O[0]=Z.height[0]),H=1),H){I.width=I.width[0],I.height=I.height[0],B!=null&&(B[0]=I.width),C!=null&&(C[0]=I.height);A:{if(B=new zi,(C=new CA).data=l,C.w=u,C.ha=p,C.kd=1,u=[0],A(C!=null),((l=Ui(C.data,C.w,C.ha,null,null,null,u,null,C))==0||l==7)&&u[0]&&(l=4),(u=l)==0){if(A(E!=null),B.data=C.data,B.w=C.w+C.offset,B.ha=C.ha-C.offset,B.put=ne,B.ac=zr,B.bc=fn,B.ma=E,C.xa){if((l=gi())==null){E=1;break A}if(function(M,tA){var iA=[0],mA=[0],cA=[0];e:for(;;){if(M==null)return 0;if(tA==null)return M.a=2,0;if(M.l=tA,M.a=0,dA(M.m,tA.data,tA.w,tA.ha),!dn(M.m,iA,mA,cA)){M.a=3;break e}if(M.xb=kf,tA.width=iA[0],tA.height=mA[0],!Xr(iA[0],mA[0],1,M,null))break e;return 1}return A(M.a!=0),0}(l,B)){if(B=(u=Mn(B.width,B.height,E.Oa,E.ba))==0){e:{B=l;t:for(;;){if(B==null){B=0;break e}if(A(B.s.yc!=null),A(B.s.Ya!=null),A(0<B.s.Wb),A((p=B.l)!=null),A((C=p.ma)!=null),B.xb!=0){if(B.ca=C.ba,B.tb=C.tb,A(B.ca!=null),!zs(C.Oa,p,Bo)){B.a=2;break t}if(!pi(B,p.width)||p.da)break t;if((p.da||te(B.ca.S))&&Dr(),11>B.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),B.ca.f.kb.F!=null&&Dr()),B.Pb&&0<B.s.ua&&B.s.vb.X==null&&!T(B.s.vb,B.s.Wa.Xa)){B.a=1;break t}B.xb=0}if(!Pr(B,B.V,B.Ba,B.c,B.i,p.o,Dn))break t;C.Dc=B.Ma,B=1;break e}A(B.a!=0),B=0}B=!B}B&&(u=l.a)}else u=l.a}else{if((l=new dc)==null){E=1;break A}if(l.Fa=C.na,l.P=C.P,l.qc=C.Sa,Yr(l,B)){if((u=Mn(B.width,B.height,E.Oa,E.ba))==0){if(l.Aa=0,p=E.Oa,A((C=l)!=null),p!=null){if(0<(H=0>(H=p.Md)?0:100<H?255:255*H/100)){for(O=Z=0;4>O;++O)12>(uA=C.pb[O]).lc&&(uA.ia=H*W1[0>uA.lc?0:uA.lc]>>3),Z|=uA.ia;Z&&(alert("todo:VP8InitRandom"),C.ia=1)}C.Ga=p.Id,100<C.Ga?C.Ga=100:0>C.Ga&&(C.Ga=0)}(function(M,tA){if(M==null)return 0;if(tA==null)return ut(M,2,"NULL VP8Io parameter in VP8Decode().");if(!M.cb&&!Yr(M,tA))return 0;if(A(M.cb),tA.ac==null||tA.ac(tA)){tA.ob&&(M.L=0);var iA=Co[M.L];if(M.L==2?(M.yb=0,M.zb=0):(M.yb=tA.v-iA>>4,M.zb=tA.j-iA>>4,0>M.yb&&(M.yb=0),0>M.zb&&(M.zb=0)),M.Va=tA.o+15+iA>>4,M.Hb=tA.va+15+iA>>4,M.Hb>M.za&&(M.Hb=M.za),M.Va>M.Ub&&(M.Va=M.Ub),0<M.L){var mA=M.ed;for(iA=0;4>iA;++iA){var cA;if(M.Qa.Cb){var BA=M.Qa.Lb[iA];M.Qa.Fb||(BA+=mA.Tb)}else BA=mA.Tb;for(cA=0;1>=cA;++cA){var yA=M.gd[iA][cA],EA=BA;if(mA.Pc&&(EA+=mA.vd[0],cA&&(EA+=mA.od[0])),0<(EA=0>EA?0:63<EA?63:EA)){var FA=EA;0<mA.wb&&(FA=4<mA.wb?FA>>2:FA>>1)>9-mA.wb&&(FA=9-mA.wb),1>FA&&(FA=1),yA.dd=FA,yA.tc=2*EA+FA,yA.ld=40<=EA?2:15<=EA?1:0}else yA.tc=0;yA.La=cA}}}iA=0}else ut(M,6,"Frame setup failed"),iA=M.a;if(iA=iA==0){if(iA){M.$c=0,0<M.Aa||(M.Ic=z1);e:{iA=M.Ic,mA=4*(FA=M.za);var ZA=32*FA,jA=FA+1,we=0<M.L?FA*(0<M.Aa?2:1):0,zA=(M.Aa==2?2:1)*FA;if((yA=mA+832+(cA=3*(16*iA+Co[M.L])/2*ZA)+(BA=M.Fa!=null&&0<M.Fa.length?M.Kc.c*M.Kc.i:0))!=yA)iA=0;else{if(yA>M.Vb){if(M.Vb=0,M.Ec=i(yA),M.Fc=0,M.Ec==null){iA=ut(M,1,"no memory during frame initialization.");break e}M.Vb=yA}yA=M.Ec,EA=M.Fc,M.Ac=yA,M.Bc=EA,EA+=mA,M.Gd=s(ZA,Ya),M.Hd=0,M.rb=s(jA+1,Hs),M.sb=1,M.wa=we?s(we,yr):null,M.Y=0,M.D.Nb=0,M.D.wa=M.wa,M.D.Y=M.Y,0<M.Aa&&(M.D.Y+=FA),A(!0),M.oc=yA,M.pc=EA,EA+=832,M.ya=s(zA,Ps),M.aa=0,M.D.ya=M.ya,M.D.aa=M.aa,M.Aa==2&&(M.D.aa+=FA),M.R=16*FA,M.B=8*FA,FA=(ZA=Co[M.L])*M.R,ZA=ZA/2*M.B,M.sa=yA,M.ta=EA+FA,M.qa=M.sa,M.ra=M.ta+16*iA*M.R+ZA,M.Ha=M.qa,M.Ia=M.ra+8*iA*M.B+ZA,M.$c=0,EA+=cA,M.mb=BA?yA:null,M.nb=BA?EA:null,A(EA+BA<=M.Fc+M.Vb),eo(M),n(M.Ac,M.Bc,0,mA),iA=1}}if(iA){if(tA.ka=0,tA.y=M.sa,tA.O=M.ta,tA.f=M.qa,tA.N=M.ra,tA.ea=M.Ha,tA.Vd=M.Ia,tA.fa=M.R,tA.Rc=M.B,tA.F=null,tA.J=0,!Lf){for(iA=-255;255>=iA;++iA)Qf[255+iA]=0>iA?-iA:iA;for(iA=-1020;1020>=iA;++iA)Uf[1020+iA]=-128>iA?-128:127<iA?127:iA;for(iA=-112;112>=iA;++iA)xf[112+iA]=-16>iA?-16:15<iA?15:iA;for(iA=-255;510>=iA;++iA)Ef[255+iA]=0>iA?0:255<iA?255:iA;Lf=1}Wn=Xi,Li=pc,tn=Zr,Ne=ro,Re=no,Fr=gc,rt=lo,wt=yi,Un=b,ea=K,ts=co,fo=g,pf=$,mf=rA,Bf=vi,wf=Gs,vf=ao,yf=oo,Rr[0]=Fc,Rr[1]=mc,Rr[2]=bc,Rr[3]=Cc,Rr[4]=pn,Rr[5]=Qc,Rr[6]=mn,Rr[7]=Uc,Rr[8]=Rs,Rr[9]=Ji,zn[0]=vc,zn[1]=wc,zn[2]=Ts,zn[3]=io,zn[4]=Bi,zn[5]=Ds,zn[6]=yc,xn[0]=Ec,xn[1]=Bc,xn[2]=wi,xn[3]=xc,xn[4]=Ms,xn[5]=Os,xn[6]=so,iA=1}else iA=0}iA&&(iA=function(xe,vt){for(xe.M=0;xe.M<xe.Va;++xe.M){var ve,$A=xe.Jc[xe.M&xe.Xb],PA=xe.m,nt=xe;for(ve=0;ve<nt.za;++ve){var he=PA,Ee=nt,We=Ee.Ac,Nt=Ee.Bc+4*ve,$t=Ee.zc,Ze=Ee.ya[Ee.aa+ve];if(Ee.Qa.Bb?Ze.$b=wA(he,Ee.Pa.jb[0])?2+wA(he,Ee.Pa.jb[2]):wA(he,Ee.Pa.jb[1]):Ze.$b=0,Ee.kc&&(Ze.Ad=wA(he,Ee.Bd)),Ze.Za=!wA(he,145)+0,Ze.Za){var Dt=Ze.Ob,Xt=0;for(Ee=0;4>Ee;++Ee){var yt,Se=$t[0+Ee];for(yt=0;4>yt;++yt){Se=N1[We[Nt+yt]][Se];for(var Pe=Nf[wA(he,Se[0])];0<Pe;)Pe=Nf[2*Pe+wA(he,Se[Pe])];Se=-Pe,We[Nt+yt]=Se}r(Dt,Xt,We,Nt,4),Xt+=4,$t[0+Ee]=Se}}else Se=wA(he,156)?wA(he,128)?1:3:wA(he,163)?2:0,Ze.Ob[0]=Se,n(We,Nt,Se,4),n($t,0,Se,4);Ze.Dd=wA(he,142)?wA(he,114)?wA(he,183)?1:3:2:0}if(nt.m.Ka)return ut(xe,7,"Premature end-of-partition0 encountered.");for(;xe.ja<xe.za;++xe.ja){if(nt=$A,he=(PA=xe).rb[PA.sb-1],We=PA.rb[PA.sb+PA.ja],ve=PA.ya[PA.aa+PA.ja],Nt=PA.kc?ve.Ad:0)he.la=We.la=0,ve.Za||(he.Na=We.Na=0),ve.Hc=0,ve.Gc=0,ve.ia=0;else{var At,Te;if(he=We,We=nt,Nt=PA.Pa.Xc,$t=PA.ya[PA.aa+PA.ja],Ze=PA.pb[$t.$b],Ee=$t.ad,Dt=0,Xt=PA.rb[PA.sb-1],Se=yt=0,n(Ee,Dt,0,384),$t.Za)var kt=0,Or=Nt[3];else{Pe=i(16);var it=he.Na+Xt.Na;if(it=ra(We,Nt[1],it,Ze.Eb,0,Pe,0),he.Na=Xt.Na=(0<it)+0,1<it)Wn(Pe,0,Ee,Dt);else{var Zt=Pe[0]+3>>3;for(Pe=0;256>Pe;Pe+=16)Ee[Dt+Pe]=Zt}kt=1,Or=Nt[0]}var Oe=15&he.la,bt=15&Xt.la;for(Pe=0;4>Pe;++Pe){var or=1&bt;for(Zt=Te=0;4>Zt;++Zt)Oe=Oe>>1|(or=(it=ra(We,Or,it=or+(1&Oe),Ze.Sc,kt,Ee,Dt))>kt)<<7,Te=Te<<2|(3<it?3:1<it?2:Ee[Dt+0]!=0),Dt+=16;Oe>>=4,bt=bt>>1|or<<7,yt=(yt<<8|Te)>>>0}for(Or=Oe,kt=bt>>4,At=0;4>At;At+=2){for(Te=0,Oe=he.la>>4+At,bt=Xt.la>>4+At,Pe=0;2>Pe;++Pe){for(or=1&bt,Zt=0;2>Zt;++Zt)it=or+(1&Oe),Oe=Oe>>1|(or=0<(it=ra(We,Nt[2],it,Ze.Qc,0,Ee,Dt)))<<3,Te=Te<<2|(3<it?3:1<it?2:Ee[Dt+0]!=0),Dt+=16;Oe>>=2,bt=bt>>1|or<<5}Se|=Te<<4*At,Or|=Oe<<4<<At,kt|=(240&bt)<<At}he.la=Or,Xt.la=kt,$t.Hc=yt,$t.Gc=Se,$t.ia=43690&Se?0:Ze.ia,Nt=!(yt|Se)}if(0<PA.L&&(PA.wa[PA.Y+PA.ja]=PA.gd[ve.$b][ve.Za],PA.wa[PA.Y+PA.ja].La|=!Nt),nt.Ka)return ut(xe,7,"Premature end-of-file encountered.")}if(eo(xe),PA=vt,nt=1,ve=($A=xe).D,he=0<$A.L&&$A.M>=$A.zb&&$A.M<=$A.Va,$A.Aa==0)e:{if(ve.M=$A.M,ve.uc=he,Cr($A,ve),nt=1,ve=(Te=$A.D).Nb,he=(Se=Co[$A.L])*$A.R,We=Se/2*$A.B,Pe=16*ve*$A.R,Zt=8*ve*$A.B,Nt=$A.sa,$t=$A.ta-he+Pe,Ze=$A.qa,Ee=$A.ra-We+Zt,Dt=$A.Ha,Xt=$A.Ia-We+Zt,bt=(Oe=Te.M)==0,yt=Oe>=$A.Va-1,$A.Aa==2&&Cr($A,Te),Te.uc)for(or=(it=$A).D.M,A(it.D.uc),Te=it.yb;Te<it.Hb;++Te){kt=Te,Or=or;var Jt=(lr=(Ht=it).D).Nb;At=Ht.R;var lr=lr.wa[lr.Y+kt],cr=Ht.sa,Ar=Ht.ta+16*Jt*At+16*kt,ur=lr.dd,je=lr.tc;if(je!=0)if(A(3<=je),Ht.L==1)0<kt&&wf(cr,Ar,At,je+4),lr.La&&yf(cr,Ar,At,je),0<Or&&Bf(cr,Ar,At,je+4),lr.La&&vf(cr,Ar,At,je);else{var hr=Ht.B,Mr=Ht.qa,Si=Ht.ra+8*Jt*hr+8*kt,En=Ht.Ha,Ht=Ht.Ia+8*Jt*hr+8*kt;Jt=lr.ld,0<kt&&(wt(cr,Ar,At,je+4,ur,Jt),ea(Mr,Si,En,Ht,hr,je+4,ur,Jt)),lr.La&&(fo(cr,Ar,At,je,ur,Jt),mf(Mr,Si,En,Ht,hr,je,ur,Jt)),0<Or&&(rt(cr,Ar,At,je+4,ur,Jt),Un(Mr,Si,En,Ht,hr,je+4,ur,Jt)),lr.La&&(ts(cr,Ar,At,je,ur,Jt),pf(Mr,Si,En,Ht,hr,je,ur,Jt))}}if($A.ia&&alert("todo:DitherRow"),PA.put!=null){if(Te=16*Oe,Oe=16*(Oe+1),bt?(PA.y=$A.sa,PA.O=$A.ta+Pe,PA.f=$A.qa,PA.N=$A.ra+Zt,PA.ea=$A.Ha,PA.W=$A.Ia+Zt):(Te-=Se,PA.y=Nt,PA.O=$t,PA.f=Ze,PA.N=Ee,PA.ea=Dt,PA.W=Xt),yt||(Oe-=Se),Oe>PA.o&&(Oe=PA.o),PA.F=null,PA.J=null,$A.Fa!=null&&0<$A.Fa.length&&Te<Oe&&(PA.J=Ke($A,PA,Te,Oe-Te),PA.F=$A.mb,PA.F==null&&PA.F.length==0)){nt=ut($A,3,"Could not decode alpha data.");break e}Te<PA.j&&(Se=PA.j-Te,Te=PA.j,A(!(1&Se)),PA.O+=$A.R*Se,PA.N+=$A.B*(Se>>1),PA.W+=$A.B*(Se>>1),PA.F!=null&&(PA.J+=PA.width*Se)),Te<Oe&&(PA.O+=PA.v,PA.N+=PA.v>>1,PA.W+=PA.v>>1,PA.F!=null&&(PA.J+=PA.v),PA.ka=Te-PA.j,PA.U=PA.va-PA.v,PA.T=Oe-Te,nt=PA.put(PA))}ve+1!=$A.Ic||yt||(r($A.sa,$A.ta-he,Nt,$t+16*$A.R,he),r($A.qa,$A.ra-We,Ze,Ee+8*$A.B,We),r($A.Ha,$A.Ia-We,Dt,Xt+8*$A.B,We))}if(!nt)return ut(xe,6,"Output aborted.")}return 1}(M,tA)),tA.bc!=null&&tA.bc(tA),iA&=1}return iA?(M.cb=0,iA):0})(l,B)||(u=l.a)}}else u=l.a}u==0&&E.Oa!=null&&E.Oa.fd&&(u=$s(E.ba))}E=u}Q=E!=0?null:11>Q?I.f.RGBA.eb:I.f.kb.y}else Q=null;return Q};var Mf=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(k,Y){for(var x="",P=0;P<4;P++)x+=String.fromCharCode(k[Y++]);return x}function h(k,Y){return k[Y+0]|k[Y+1]<<8}function d(k,Y){return(k[Y+0]|k[Y+1]<<8|k[Y+2]<<16)>>>0}function m(k,Y){return(k[Y+0]|k[Y+1]<<8|k[Y+2]<<16|k[Y+3]<<24)>>>0}new o;var f=[0],w=[0],y=[],F=new o,v=t,L=function(k,Y){var x={},P=0,j=!1,D=0,J=0;if(x.frames=[],!function(U,R){for(var G=0;G<4;G++)if(U[R+G]!="RIFF".charCodeAt(G))return!0;return!1}(k,Y)){for(m(k,Y+=4),Y+=8;Y<k.length;){var lA=c(k,Y),fA=m(k,Y+=4);Y+=4;var aA=fA+(1&fA);switch(lA){case"VP8 ":case"VP8L":x.frames[P]===void 0&&(x.frames[P]={}),(hA=x.frames[P]).src_off=j?J:Y-8,hA.src_size=D+fA+8,P++,j&&(j=!1,D=0,J=0);break;case"VP8X":(hA=x.header={}).feature_flags=k[Y];var dA=Y+4;hA.canvas_width=1+d(k,dA),dA+=3,hA.canvas_height=1+d(k,dA),dA+=3;break;case"ALPH":j=!0,D=aA+8,J=Y-8;break;case"ANIM":(hA=x.header).bgcolor=m(k,Y),dA=Y+4,hA.loop_count=h(k,dA),dA+=2;break;case"ANMF":var QA,hA;(hA=x.frames[P]={}).offset_x=2*d(k,Y),Y+=3,hA.offset_y=2*d(k,Y),Y+=3,hA.width=1+d(k,Y),Y+=3,hA.height=1+d(k,Y),Y+=3,hA.duration=d(k,Y),Y+=3,QA=k[Y++],hA.dispose=1&QA,hA.blend=QA>>1&1}lA!="ANMF"&&(Y+=aA)}return x}}(v,0);L.response=v,L.rgbaoutput=!0,L.dataurl=!1;var _=L.header?L.header:null,S=L.frames?L.frames:null;if(_){_.loop_counter=_.loop_count,f=[_.canvas_height],w=[_.canvas_width];for(var V=0;V<S.length&&S[V].blend!=0;V++);}var z=S[0],X=F.WebPDecodeRGBA(v,z.src_off,z.src_size,w,f);z.rgba=X,z.imgwidth=w[0],z.imgheight=f[0];for(var q=0;q<w[0]*f[0]*4;q++)y[q]=X[q];return this.width=w,this.height=f,this.data=y,this}(function(t){var A,e,r,n,i,s,a,o,c,h=function(U){return U=U||{},this.isStrokeTransparent=U.isStrokeTransparent||!1,this.strokeOpacity=U.strokeOpacity||1,this.strokeStyle=U.strokeStyle||"#000000",this.fillStyle=U.fillStyle||"#000000",this.isFillTransparent=U.isFillTransparent||!1,this.fillOpacity=U.fillOpacity||1,this.font=U.font||"10px sans-serif",this.textBaseline=U.textBaseline||"alphabetic",this.textAlign=U.textAlign||"left",this.lineWidth=U.lineWidth||1,this.lineJoin=U.lineJoin||"miter",this.lineCap=U.lineCap||"butt",this.path=U.path||[],this.transform=U.transform!==void 0?U.transform.clone():new o,this.globalCompositeOperation=U.globalCompositeOperation||"normal",this.globalAlpha=U.globalAlpha||1,this.clip_path=U.clip_path||[],this.currentPoint=U.currentPoint||new s,this.miterLimit=U.miterLimit||10,this.lastPoint=U.lastPoint||new s,this.lineDashOffset=U.lineDashOffset||0,this.lineDash=U.lineDash||[],this.margin=U.margin||[0,0,0,0],this.prevPageLastElemOffset=U.prevPageLastElemOffset||0,this.ignoreClearRect=typeof U.ignoreClearRect!="boolean"||U.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new d(this),A=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,s=this.internal.Point,a=this.internal.Rectangle,o=this.internal.Matrix,c=new h}]);var d=function(U){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var R=U;Object.defineProperty(this,"pdf",{get:function(){return R}});var G=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return G},set:function(T){G=!!T}});var W=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return W},set:function(T){W=!!T}});var eA=0;Object.defineProperty(this,"posX",{get:function(){return eA},set:function(T){isNaN(T)||(eA=T)}});var nA=0;Object.defineProperty(this,"posY",{get:function(){return nA},set:function(T){isNaN(T)||(nA=T)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(T){var kA;typeof T=="number"?kA=[T,T,T,T]:((kA=new Array(4))[0]=T[0],kA[1]=T.length>=2?T[1]:kA[0],kA[2]=T.length>=3?T[2]:kA[0],kA[3]=T.length>=4?T[3]:kA[1]),c.margin=kA}});var gA=!1;Object.defineProperty(this,"autoPaging",{get:function(){return gA},set:function(T){gA=T}});var pA=0;Object.defineProperty(this,"lastBreak",{get:function(){return pA},set:function(T){pA=T}});var wA=[];Object.defineProperty(this,"pageBreaks",{get:function(){return wA},set:function(T){wA=T}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(T){T instanceof h&&(c=T)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(T){c.path=T}});var xA=[];Object.defineProperty(this,"ctxStack",{get:function(){return xA},set:function(T){xA=T}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(T){var kA;kA=m(T),this.ctx.fillStyle=kA.style,this.ctx.isFillTransparent=kA.a===0,this.ctx.fillOpacity=kA.a,this.pdf.setFillColor(kA.r,kA.g,kA.b,{a:kA.a}),this.pdf.setTextColor(kA.r,kA.g,kA.b,{a:kA.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(T){var kA=m(T);this.ctx.strokeStyle=kA.style,this.ctx.isStrokeTransparent=kA.a===0,this.ctx.strokeOpacity=kA.a,kA.a===0?this.pdf.setDrawColor(255,255,255):(kA.a,this.pdf.setDrawColor(kA.r,kA.g,kA.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(T){["butt","round","square"].indexOf(T)!==-1&&(this.ctx.lineCap=T,this.pdf.setLineCap(T))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(T){isNaN(T)||(this.ctx.lineWidth=T,this.pdf.setLineWidth(T))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(T){["bevel","round","miter"].indexOf(T)!==-1&&(this.ctx.lineJoin=T,this.pdf.setLineJoin(T))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(T){isNaN(T)||(this.ctx.miterLimit=T,this.pdf.setMiterLimit(T))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(T){this.ctx.textBaseline=T}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(T){["right","end","center","left","start"].indexOf(T)!==-1&&(this.ctx.textAlign=T)}});var DA=null,HA=null,WA=null;Object.defineProperty(this,"fontFaces",{get:function(){return WA},set:function(T){DA=null,HA=null,WA=T}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(T){var kA;if(this.ctx.font=T,(kA=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(T))!==null){var ie=kA[1];kA[2];var JA=kA[3],UA=kA[4];kA[5];var _A=kA[6],MA=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(UA)[2];UA=Math.floor(MA==="px"?parseFloat(UA)*this.pdf.internal.scaleFactor:MA==="em"?parseFloat(UA)*this.pdf.getFontSize():parseFloat(UA)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(UA);var ee=function(KA){var _e,me,bA=[],GA=KA.trim();if(GA==="")return Bu;if(GA in wg)return[wg[GA]];for(;GA!=="";){switch(me=null,_e=(GA=yg(GA)).charAt(0)){case'"':case"'":me=Db(GA.substring(1),_e);break;default:me=Rb(GA)}if(me===null||(bA.push(me[0]),(GA=yg(me[1]))!==""&&GA.charAt(0)!==","))return Bu;GA=GA.replace(/^,/,"")}return bA}(_A);if(this.fontFaces){var YA=function(KA,_e){var me=KA.getFontList(),bA=JSON.stringify(me);if(DA===null||HA!==bA){var GA=function(be){var NA=[];return Object.keys(be).forEach(function(Ce){be[Ce].forEach(function(te){var ae=null;switch(te){case"bold":ae={family:Ce,weight:"bold"};break;case"italic":ae={family:Ce,style:"italic"};break;case"bolditalic":ae={family:Ce,weight:"bold",style:"italic"};break;case"":case"normal":ae={family:Ce}}ae!==null&&(ae.ref={name:Ce,style:te},NA.push(ae))})}),NA}(me);DA=function(be){for(var NA={},Ce=0;Ce<be.length;++Ce){var te=mu(be[Ce]),ae=te.family,Fe=te.stretch,Be=te.style,re=te.weight;NA[ae]=NA[ae]||{},NA[ae][Fe]=NA[ae][Fe]||{},NA[ae][Fe][Be]=NA[ae][Fe][Be]||{},NA[ae][Fe][Be][re]=te}return NA}(GA.concat(_e)),HA=bA}return DA}(this.pdf,this.fontFaces),Ue=ee.map(function(KA){return{family:KA,stretch:"normal",weight:JA,style:ie}}),ge=function(KA,_e,me){for(var bA=(me=me||{}).defaultFontFamily||"times",GA=Object.assign({},Tb,me.genericFontFamilies||{}),be=null,NA=null,Ce=0;Ce<_e.length;++Ce)if(GA[(be=mu(_e[Ce])).family]&&(be.family=GA[be.family]),KA.hasOwnProperty(be.family)){NA=KA[be.family];break}if(!(NA=NA||KA[bA]))throw new Error("Could not find a font-family for the rule '"+vg(be)+"' and default family '"+bA+"'.");if(NA=function(te,ae){if(ae[te])return ae[te];var Fe=vh[te],Be=Fe<=vh.normal?-1:1,re=Bg(ae,dm,Fe,Be);if(!re)throw new Error("Could not find a matching font-stretch value for "+te);return re}(be.stretch,NA),NA=function(te,ae){if(ae[te])return ae[te];for(var Fe=fm[te],Be=0;Be<Fe.length;++Be)if(ae[Fe[Be]])return ae[Fe[Be]];throw new Error("Could not find a matching font-style for "+te)}(be.style,NA),!(NA=function(te,ae){if(ae[te])return ae[te];if(te===400&&ae[500])return ae[500];if(te===500&&ae[400])return ae[400];var Fe=Pb[te],Be=Bg(ae,gm,Fe,te<400?-1:1);if(!Be)throw new Error("Could not find a matching font-weight for value "+te);return Be}(be.weight,NA)))throw new Error("Failed to resolve a font for the rule '"+vg(be)+"'.");return NA}(YA,Ue);this.pdf.setFont(ge.ref.name,ge.ref.style)}else{var se="";(JA==="bold"||parseInt(JA,10)>=700||ie==="bold")&&(se="bold"),ie==="italic"&&(se+="italic"),se.length===0&&(se="normal");for(var pe="",fe={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},SA=0;SA<ee.length;SA++){if(this.pdf.internal.getFont(ee[SA],se,{noFallback:!0,disableWarning:!0})!==void 0){pe=ee[SA];break}if(se==="bolditalic"&&this.pdf.internal.getFont(ee[SA],"bold",{noFallback:!0,disableWarning:!0})!==void 0)pe=ee[SA],se="bold";else if(this.pdf.internal.getFont(ee[SA],"normal",{noFallback:!0,disableWarning:!0})!==void 0){pe=ee[SA],se="normal";break}}if(pe===""){for(var TA=0;TA<ee.length;TA++)if(fe[ee[TA]]){pe=fe[ee[TA]];break}}pe=pe===""?"Times":pe,this.pdf.setFont(pe,se)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(T){this.ctx.globalCompositeOperation=T}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(T){this.ctx.globalAlpha=T}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(T){this.ctx.lineDashOffset=T,hA.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(T){this.ctx.lineDash=T,hA.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(T){this.ctx.ignoreClearRect=!!T}})};d.prototype.setLineDash=function(U){this.lineDash=U},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){S.call(this,"fill",!1)},d.prototype.stroke=function(){S.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(U,R){if(isNaN(U)||isNaN(R))throw Me.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var G=this.ctx.transform.applyToPoint(new s(U,R));this.path.push({type:"mt",x:G.x,y:G.y}),this.ctx.lastPoint=new s(U,R)},d.prototype.closePath=function(){var U=new s(0,0),R=0;for(R=this.path.length-1;R!==-1;R--)if(this.path[R].type==="begin"&&He(this.path[R+1])==="object"&&typeof this.path[R+1].x=="number"){U=new s(this.path[R+1].x,this.path[R+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(U.x,U.y)},d.prototype.lineTo=function(U,R){if(isNaN(U)||isNaN(R))throw Me.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var G=this.ctx.transform.applyToPoint(new s(U,R));this.path.push({type:"lt",x:G.x,y:G.y}),this.ctx.lastPoint=new s(G.x,G.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),S.call(this,null,!0)},d.prototype.quadraticCurveTo=function(U,R,G,W){if(isNaN(G)||isNaN(W)||isNaN(U)||isNaN(R))throw Me.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var eA=this.ctx.transform.applyToPoint(new s(G,W)),nA=this.ctx.transform.applyToPoint(new s(U,R));this.path.push({type:"qct",x1:nA.x,y1:nA.y,x:eA.x,y:eA.y}),this.ctx.lastPoint=new s(eA.x,eA.y)},d.prototype.bezierCurveTo=function(U,R,G,W,eA,nA){if(isNaN(eA)||isNaN(nA)||isNaN(U)||isNaN(R)||isNaN(G)||isNaN(W))throw Me.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var gA=this.ctx.transform.applyToPoint(new s(eA,nA)),pA=this.ctx.transform.applyToPoint(new s(U,R)),wA=this.ctx.transform.applyToPoint(new s(G,W));this.path.push({type:"bct",x1:pA.x,y1:pA.y,x2:wA.x,y2:wA.y,x:gA.x,y:gA.y}),this.ctx.lastPoint=new s(gA.x,gA.y)},d.prototype.arc=function(U,R,G,W,eA,nA){if(isNaN(U)||isNaN(R)||isNaN(G)||isNaN(W)||isNaN(eA))throw Me.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(nA=!!nA,!this.ctx.transform.isIdentity){var gA=this.ctx.transform.applyToPoint(new s(U,R));U=gA.x,R=gA.y;var pA=this.ctx.transform.applyToPoint(new s(0,G)),wA=this.ctx.transform.applyToPoint(new s(0,0));G=Math.sqrt(Math.pow(pA.x-wA.x,2)+Math.pow(pA.y-wA.y,2))}Math.abs(eA-W)>=2*Math.PI&&(W=0,eA=2*Math.PI),this.path.push({type:"arc",x:U,y:R,radius:G,startAngle:W,endAngle:eA,counterclockwise:nA})},d.prototype.arcTo=function(U,R,G,W,eA){throw new Error("arcTo not implemented.")},d.prototype.rect=function(U,R,G,W){if(isNaN(U)||isNaN(R)||isNaN(G)||isNaN(W))throw Me.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(U,R),this.lineTo(U+G,R),this.lineTo(U+G,R+W),this.lineTo(U,R+W),this.lineTo(U,R),this.lineTo(U+G,R),this.lineTo(U,R)},d.prototype.fillRect=function(U,R,G,W){if(isNaN(U)||isNaN(R)||isNaN(G)||isNaN(W))throw Me.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var eA={};this.lineCap!=="butt"&&(eA.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(eA.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(U,R,G,W),this.fill(),eA.hasOwnProperty("lineCap")&&(this.lineCap=eA.lineCap),eA.hasOwnProperty("lineJoin")&&(this.lineJoin=eA.lineJoin)}},d.prototype.strokeRect=function(U,R,G,W){if(isNaN(U)||isNaN(R)||isNaN(G)||isNaN(W))throw Me.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");w.call(this)||(this.beginPath(),this.rect(U,R,G,W),this.stroke())},d.prototype.clearRect=function(U,R,G,W){if(isNaN(U)||isNaN(R)||isNaN(G)||isNaN(W))throw Me.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(U,R,G,W))},d.prototype.save=function(U){U=typeof U!="boolean"||U;for(var R=this.pdf.internal.getCurrentPageInfo().pageNumber,G=0;G<this.pdf.internal.getNumberOfPages();G++)this.pdf.setPage(G+1),this.pdf.internal.out("q");if(this.pdf.setPage(R),U){this.ctx.fontSize=this.pdf.internal.getFontSize();var W=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=W}},d.prototype.restore=function(U){U=typeof U!="boolean"||U;for(var R=this.pdf.internal.getCurrentPageInfo().pageNumber,G=0;G<this.pdf.internal.getNumberOfPages();G++)this.pdf.setPage(G+1),this.pdf.internal.out("Q");this.pdf.setPage(R),U&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var m=function(U){var R,G,W,eA;if(U.isCanvasGradient===!0&&(U=U.getColor()),!U)return{r:0,g:0,b:0,a:0,style:U};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(U))R=0,G=0,W=0,eA=0;else{var nA=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(U);if(nA!==null)R=parseInt(nA[1]),G=parseInt(nA[2]),W=parseInt(nA[3]),eA=1;else if((nA=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(U))!==null)R=parseInt(nA[1]),G=parseInt(nA[2]),W=parseInt(nA[3]),eA=parseFloat(nA[4]);else{if(eA=1,typeof U=="string"&&U.charAt(0)!=="#"){var gA=new sm(U);U=gA.ok?gA.toHex():"#000000"}U.length===4?(R=U.substring(1,2),R+=R,G=U.substring(2,3),G+=G,W=U.substring(3,4),W+=W):(R=U.substring(1,3),G=U.substring(3,5),W=U.substring(5,7)),R=parseInt(R,16),G=parseInt(G,16),W=parseInt(W,16)}}return{r:R,g:G,b:W,a:eA,style:U}},f=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},w=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};d.prototype.fillText=function(U,R,G,W){if(isNaN(R)||isNaN(G)||typeof U!="string")throw Me.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(W=isNaN(W)?void 0:W,!f.call(this)){var eA=aA(this.ctx.transform.rotation),nA=this.ctx.transform.scaleX;P.call(this,{text:U,x:R,y:G,scale:nA,angle:eA,align:this.textAlign,maxWidth:W})}},d.prototype.strokeText=function(U,R,G,W){if(isNaN(R)||isNaN(G)||typeof U!="string")throw Me.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!w.call(this)){W=isNaN(W)?void 0:W;var eA=aA(this.ctx.transform.rotation),nA=this.ctx.transform.scaleX;P.call(this,{text:U,x:R,y:G,scale:nA,renderingMode:"stroke",angle:eA,align:this.textAlign,maxWidth:W})}},d.prototype.measureText=function(U){if(typeof U!="string")throw Me.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var R=this.pdf,G=this.pdf.internal.scaleFactor,W=R.internal.getFontSize(),eA=R.getStringUnitWidth(U)*W/R.internal.scaleFactor;return new function(nA){var gA=(nA=nA||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return gA}}),this}({width:eA*=Math.round(96*G/72*1e4)/1e4})},d.prototype.scale=function(U,R){if(isNaN(U)||isNaN(R))throw Me.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var G=new o(U,0,0,R,0,0);this.ctx.transform=this.ctx.transform.multiply(G)},d.prototype.rotate=function(U){if(isNaN(U))throw Me.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var R=new o(Math.cos(U),Math.sin(U),-Math.sin(U),Math.cos(U),0,0);this.ctx.transform=this.ctx.transform.multiply(R)},d.prototype.translate=function(U,R){if(isNaN(U)||isNaN(R))throw Me.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var G=new o(1,0,0,1,U,R);this.ctx.transform=this.ctx.transform.multiply(G)},d.prototype.transform=function(U,R,G,W,eA,nA){if(isNaN(U)||isNaN(R)||isNaN(G)||isNaN(W)||isNaN(eA)||isNaN(nA))throw Me.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var gA=new o(U,R,G,W,eA,nA);this.ctx.transform=this.ctx.transform.multiply(gA)},d.prototype.setTransform=function(U,R,G,W,eA,nA){U=isNaN(U)?1:U,R=isNaN(R)?0:R,G=isNaN(G)?0:G,W=isNaN(W)?1:W,eA=isNaN(eA)?0:eA,nA=isNaN(nA)?0:nA,this.ctx.transform=new o(U,R,G,W,eA,nA)};var y=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(U,R,G,W,eA,nA,gA,pA,wA){var xA=this.pdf.getImageProperties(U),DA=1,HA=1,WA=1,T=1;W!==void 0&&pA!==void 0&&(WA=pA/W,T=wA/eA,DA=xA.width/W*pA/W,HA=xA.height/eA*wA/eA),nA===void 0&&(nA=R,gA=G,R=0,G=0),W!==void 0&&pA===void 0&&(pA=W,wA=eA),W===void 0&&pA===void 0&&(pA=xA.width,wA=xA.height);var kA=this.ctx.transform.decompose(),ie=aA(kA.rotate.shx),JA=new o,UA=(JA=(JA=(JA=JA.multiply(kA.translate)).multiply(kA.skew)).multiply(kA.scale)).applyToRectangle(new a(nA-R*WA,gA-G*T,W*DA,eA*HA));if(this.autoPaging){for(var _A,MA=F.call(this,UA),ee=[],YA=0;YA<MA.length;YA+=1)ee.indexOf(MA[YA])===-1&&ee.push(MA[YA]);_(ee);for(var Ue=ee[0],ge=ee[ee.length-1],se=Ue;se<ge+1;se++){this.pdf.setPage(se);var pe=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],fe=se===1?this.posY+this.margin[0]:this.margin[0],SA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],TA=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],KA=se===1?0:SA+(se-2)*TA;if(this.ctx.clip_path.length!==0){var _e=this.path;_A=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=L(_A,this.posX+this.margin[3],-KA+fe+this.ctx.prevPageLastElemOffset),V.call(this,"fill",!0),this.path=_e}var me=JSON.parse(JSON.stringify(UA));me=L([me],this.posX+this.margin[3],-KA+fe+this.ctx.prevPageLastElemOffset)[0];var bA=(se>Ue||se<ge)&&y.call(this);bA&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],pe,TA,null).clip().discardPath()),this.pdf.addImage(U,"JPEG",me.x,me.y,me.w,me.h,null,null,ie),bA&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(U,"JPEG",UA.x,UA.y,UA.w,UA.h,null,null,ie)};var F=function(U,R,G){var W=[];R=R||this.pdf.internal.pageSize.width,G=G||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var eA=this.posY+this.ctx.prevPageLastElemOffset;switch(U.type){default:case"mt":case"lt":W.push(Math.floor((U.y+eA)/G)+1);break;case"arc":W.push(Math.floor((U.y+eA-U.radius)/G)+1),W.push(Math.floor((U.y+eA+U.radius)/G)+1);break;case"qct":var nA=dA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,U.x1,U.y1,U.x,U.y);W.push(Math.floor((nA.y+eA)/G)+1),W.push(Math.floor((nA.y+nA.h+eA)/G)+1);break;case"bct":var gA=QA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,U.x1,U.y1,U.x2,U.y2,U.x,U.y);W.push(Math.floor((gA.y+eA)/G)+1),W.push(Math.floor((gA.y+gA.h+eA)/G)+1);break;case"rect":W.push(Math.floor((U.y+eA)/G)+1),W.push(Math.floor((U.y+U.h+eA)/G)+1)}for(var pA=0;pA<W.length;pA+=1)for(;this.pdf.internal.getNumberOfPages()<W[pA];)v.call(this);return W},v=function(){var U=this.fillStyle,R=this.strokeStyle,G=this.font,W=this.lineCap,eA=this.lineWidth,nA=this.lineJoin;this.pdf.addPage(),this.fillStyle=U,this.strokeStyle=R,this.font=G,this.lineCap=W,this.lineWidth=eA,this.lineJoin=nA},L=function(U,R,G){for(var W=0;W<U.length;W++)switch(U[W].type){case"bct":U[W].x2+=R,U[W].y2+=G;case"qct":U[W].x1+=R,U[W].y1+=G;default:U[W].x+=R,U[W].y+=G}return U},_=function(U){return U.sort(function(R,G){return R-G})},S=function(U,R){var G=this.fillStyle,W=this.strokeStyle,eA=this.lineCap,nA=this.lineWidth,gA=Math.abs(nA*this.ctx.transform.scaleX),pA=this.lineJoin;if(this.autoPaging){for(var wA,xA,DA=JSON.parse(JSON.stringify(this.path)),HA=JSON.parse(JSON.stringify(this.path)),WA=[],T=0;T<HA.length;T++)if(HA[T].x!==void 0)for(var kA=F.call(this,HA[T]),ie=0;ie<kA.length;ie+=1)WA.indexOf(kA[ie])===-1&&WA.push(kA[ie]);for(var JA=0;JA<WA.length;JA++)for(;this.pdf.internal.getNumberOfPages()<WA[JA];)v.call(this);_(WA);for(var UA=WA[0],_A=WA[WA.length-1],MA=UA;MA<_A+1;MA++){this.pdf.setPage(MA),this.fillStyle=G,this.strokeStyle=W,this.lineCap=eA,this.lineWidth=gA,this.lineJoin=pA;var ee=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],YA=MA===1?this.posY+this.margin[0]:this.margin[0],Ue=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ge=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],se=MA===1?0:Ue+(MA-2)*ge;if(this.ctx.clip_path.length!==0){var pe=this.path;wA=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=L(wA,this.posX+this.margin[3],-se+YA+this.ctx.prevPageLastElemOffset),V.call(this,U,!0),this.path=pe}if(xA=JSON.parse(JSON.stringify(DA)),this.path=L(xA,this.posX+this.margin[3],-se+YA+this.ctx.prevPageLastElemOffset),R===!1||MA===0){var fe=(MA>UA||MA<_A)&&y.call(this);fe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ee,ge,null).clip().discardPath()),V.call(this,U,R),fe&&this.pdf.restoreGraphicsState()}this.lineWidth=nA}this.path=DA}else this.lineWidth=gA,V.call(this,U,R),this.lineWidth=nA},V=function(U,R){if((U!=="stroke"||R||!w.call(this))&&(U==="stroke"||R||!f.call(this))){for(var G,W,eA=[],nA=this.path,gA=0;gA<nA.length;gA++){var pA=nA[gA];switch(pA.type){case"begin":eA.push({begin:!0});break;case"close":eA.push({close:!0});break;case"mt":eA.push({start:pA,deltas:[],abs:[]});break;case"lt":var wA=eA.length;if(nA[gA-1]&&!isNaN(nA[gA-1].x)&&(G=[pA.x-nA[gA-1].x,pA.y-nA[gA-1].y],wA>0)){for(;wA>=0;wA--)if(eA[wA-1].close!==!0&&eA[wA-1].begin!==!0){eA[wA-1].deltas.push(G),eA[wA-1].abs.push(pA);break}}break;case"bct":G=[pA.x1-nA[gA-1].x,pA.y1-nA[gA-1].y,pA.x2-nA[gA-1].x,pA.y2-nA[gA-1].y,pA.x-nA[gA-1].x,pA.y-nA[gA-1].y],eA[eA.length-1].deltas.push(G);break;case"qct":var xA=nA[gA-1].x+2/3*(pA.x1-nA[gA-1].x),DA=nA[gA-1].y+2/3*(pA.y1-nA[gA-1].y),HA=pA.x+2/3*(pA.x1-pA.x),WA=pA.y+2/3*(pA.y1-pA.y),T=pA.x,kA=pA.y;G=[xA-nA[gA-1].x,DA-nA[gA-1].y,HA-nA[gA-1].x,WA-nA[gA-1].y,T-nA[gA-1].x,kA-nA[gA-1].y],eA[eA.length-1].deltas.push(G);break;case"arc":eA.push({deltas:[],abs:[],arc:!0}),Array.isArray(eA[eA.length-1].abs)&&eA[eA.length-1].abs.push(pA)}}W=R?null:U==="stroke"?"stroke":"fill";for(var ie=!1,JA=0;JA<eA.length;JA++)if(eA[JA].arc)for(var UA=eA[JA].abs,_A=0;_A<UA.length;_A++){var MA=UA[_A];MA.type==="arc"?q.call(this,MA.x,MA.y,MA.radius,MA.startAngle,MA.endAngle,MA.counterclockwise,void 0,R,!ie):j.call(this,MA.x,MA.y),ie=!0}else if(eA[JA].close===!0)this.pdf.internal.out("h"),ie=!1;else if(eA[JA].begin!==!0){var ee=eA[JA].start.x,YA=eA[JA].start.y;D.call(this,eA[JA].deltas,ee,YA),ie=!0}W&&k.call(this,W),R&&Y.call(this)}},z=function(U){var R=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,G=R*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return U-G;case"top":return U+R-G;case"hanging":return U+R-2*G;case"middle":return U+R/2-G;default:return U}},X=function(U){return U+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var U=function(){};return U.colorStops=[],U.addColorStop=function(R,G){this.colorStops.push([R,G])},U.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},U.isCanvasGradient=!0,U},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var q=function(U,R,G,W,eA,nA,gA,pA,wA){for(var xA=lA.call(this,G,W,eA,nA),DA=0;DA<xA.length;DA++){var HA=xA[DA];DA===0&&(wA?x.call(this,HA.x1+U,HA.y1+R):j.call(this,HA.x1+U,HA.y1+R)),J.call(this,U,R,HA.x2,HA.y2,HA.x3,HA.y3,HA.x4,HA.y4)}pA?Y.call(this):k.call(this,gA)},k=function(U){switch(U){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Y=function(){this.pdf.clip(),this.pdf.discardPath()},x=function(U,R){this.pdf.internal.out(e(U)+" "+r(R)+" m")},P=function(U){var R;switch(U.align){case"right":case"end":R="right";break;case"center":R="center";break;default:R="left"}var G,W,eA,nA=this.pdf.getTextDimensions(U.text),gA=z.call(this,U.y),pA=X.call(this,gA)-nA.h,wA=this.ctx.transform.applyToPoint(new s(U.x,gA));if(this.autoPaging){var xA=this.ctx.transform.decompose(),DA=new o;DA=(DA=(DA=DA.multiply(xA.translate)).multiply(xA.skew)).multiply(xA.scale);for(var HA=this.ctx.transform.applyToRectangle(new a(U.x,gA,nA.w,nA.h)),WA=DA.applyToRectangle(new a(U.x,pA,nA.w,nA.h)),T=F.call(this,WA),kA=[],ie=0;ie<T.length;ie+=1)kA.indexOf(T[ie])===-1&&kA.push(T[ie]);_(kA);for(var JA=kA[0],UA=kA[kA.length-1],_A=JA;_A<UA+1;_A++){this.pdf.setPage(_A);var MA=_A===1?this.posY+this.margin[0]:this.margin[0],ee=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],YA=this.pdf.internal.pageSize.height-this.margin[2],Ue=YA-this.margin[0],ge=this.pdf.internal.pageSize.width-this.margin[1],se=ge-this.margin[3],pe=_A===1?0:ee+(_A-2)*Ue;if(this.ctx.clip_path.length!==0){var fe=this.path;G=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=L(G,this.posX+this.margin[3],-1*pe+MA),V.call(this,"fill",!0),this.path=fe}var SA=L([JSON.parse(JSON.stringify(WA))],this.posX+this.margin[3],-pe+MA+this.ctx.prevPageLastElemOffset)[0];U.scale>=.01&&(W=this.pdf.internal.getFontSize(),this.pdf.setFontSize(W*U.scale),eA=this.lineWidth,this.lineWidth=eA*U.scale);var TA=this.autoPaging!=="text";if(TA||SA.y+SA.h<=YA){if(TA||SA.y>=MA&&SA.x<=ge){var KA=TA?U.text:this.pdf.splitTextToSize(U.text,U.maxWidth||ge-SA.x)[0],_e=L([JSON.parse(JSON.stringify(HA))],this.posX+this.margin[3],-pe+MA+this.ctx.prevPageLastElemOffset)[0],me=TA&&(_A>JA||_A<UA)&&y.call(this);me&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],se,Ue,null).clip().discardPath()),this.pdf.text(KA,_e.x,_e.y,{angle:U.angle,align:R,renderingMode:U.renderingMode}),me&&this.pdf.restoreGraphicsState()}}else SA.y<YA&&(this.ctx.prevPageLastElemOffset+=YA-SA.y);U.scale>=.01&&(this.pdf.setFontSize(W),this.lineWidth=eA)}}else U.scale>=.01&&(W=this.pdf.internal.getFontSize(),this.pdf.setFontSize(W*U.scale),eA=this.lineWidth,this.lineWidth=eA*U.scale),this.pdf.text(U.text,wA.x+this.posX,wA.y+this.posY,{angle:U.angle,align:R,renderingMode:U.renderingMode,maxWidth:U.maxWidth}),U.scale>=.01&&(this.pdf.setFontSize(W),this.lineWidth=eA)},j=function(U,R,G,W){G=G||0,W=W||0,this.pdf.internal.out(e(U+G)+" "+r(R+W)+" l")},D=function(U,R,G){return this.pdf.lines(U,R,G,null,null)},J=function(U,R,G,W,eA,nA,gA,pA){this.pdf.internal.out([A(n(G+U)),A(i(W+R)),A(n(eA+U)),A(i(nA+R)),A(n(gA+U)),A(i(pA+R)),"c"].join(" "))},lA=function(U,R,G,W){for(var eA=2*Math.PI,nA=Math.PI/2;R>G;)R-=eA;var gA=Math.abs(G-R);gA<eA&&W&&(gA=eA-gA);for(var pA=[],wA=W?-1:1,xA=R;gA>1e-5;){var DA=xA+wA*Math.min(gA,nA);pA.push(fA.call(this,U,xA,DA)),gA-=Math.abs(DA-xA),xA=DA}return pA},fA=function(U,R,G){var W=(G-R)/2,eA=U*Math.cos(W),nA=U*Math.sin(W),gA=eA,pA=-nA,wA=gA*gA+pA*pA,xA=wA+gA*eA+pA*nA,DA=4/3*(Math.sqrt(2*wA*xA)-xA)/(gA*nA-pA*eA),HA=gA-DA*pA,WA=pA+DA*gA,T=HA,kA=-WA,ie=W+R,JA=Math.cos(ie),UA=Math.sin(ie);return{x1:U*Math.cos(R),y1:U*Math.sin(R),x2:HA*JA-WA*UA,y2:HA*UA+WA*JA,x3:T*JA-kA*UA,y3:T*UA+kA*JA,x4:U*Math.cos(G),y4:U*Math.sin(G)}},aA=function(U){return 180*U/Math.PI},dA=function(U,R,G,W,eA,nA){var gA=U+.5*(G-U),pA=R+.5*(W-R),wA=eA+.5*(G-eA),xA=nA+.5*(W-nA),DA=Math.min(U,eA,gA,wA),HA=Math.max(U,eA,gA,wA),WA=Math.min(R,nA,pA,xA),T=Math.max(R,nA,pA,xA);return new a(DA,WA,HA-DA,T-WA)},QA=function(U,R,G,W,eA,nA,gA,pA){var wA,xA,DA,HA,WA,T,kA,ie,JA,UA,_A,MA,ee,YA,Ue=G-U,ge=W-R,se=eA-G,pe=nA-W,fe=gA-eA,SA=pA-nA;for(xA=0;xA<41;xA++)JA=(kA=(DA=U+(wA=xA/40)*Ue)+wA*((WA=G+wA*se)-DA))+wA*(WA+wA*(eA+wA*fe-WA)-kA),UA=(ie=(HA=R+wA*ge)+wA*((T=W+wA*pe)-HA))+wA*(T+wA*(nA+wA*SA-T)-ie),xA==0?(_A=JA,MA=UA,ee=JA,YA=UA):(_A=Math.min(_A,JA),MA=Math.min(MA,UA),ee=Math.max(ee,JA),YA=Math.max(YA,UA));return new a(Math.round(_A),Math.round(MA),Math.round(ee-_A),Math.round(YA-MA))},hA=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var U,R,G=(U=this.ctx.lineDash,R=this.ctx.lineDashOffset,JSON.stringify({lineDash:U,lineDashOffset:R}));this.prevLineDash!==G&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=G)}}})(Ae.API),function(t){var A=function(s){var a,o,c,h,d,m,f,w,y,F;for(o=[],c=0,h=(s+=a="\0\0\0\0".slice(s.length%4||4)).length;h>c;c+=4)(d=(s.charCodeAt(c)<<24)+(s.charCodeAt(c+1)<<16)+(s.charCodeAt(c+2)<<8)+s.charCodeAt(c+3))!==0?(m=(d=((d=((d=((d=(d-(F=d%85))/85)-(y=d%85))/85)-(w=d%85))/85)-(f=d%85))/85)%85,o.push(m+33,f+33,w+33,y+33,F+33)):o.push(122);return function(v,L){for(var _=L;_>0;_--)v.pop()}(o,a.length),String.fromCharCode.apply(String,o)+"~>"},e=function(s){var a,o,c,h,d,m=String,f="length",w=255,y="charCodeAt",F="slice",v="replace";for(s[F](-2),s=s[F](0,-2)[v](/\s/g,"")[v]("z","!!!!!"),c=[],h=0,d=(s+=a="uuuuu"[F](s[f]%5||5))[f];d>h;h+=5)o=52200625*(s[y](h)-33)+614125*(s[y](h+1)-33)+7225*(s[y](h+2)-33)+85*(s[y](h+3)-33)+(s[y](h+4)-33),c.push(w&o>>24,w&o>>16,w&o>>8,w&o);return function(L,_){for(var S=_;S>0;S--)L.pop()}(c,a[f]),m.fromCharCode.apply(m,c)},r=function(s){return s.split("").map(function(a){return("0"+a.charCodeAt().toString(16)).slice(-2)}).join("")+">"},n=function(s){var a=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((s=s.replace(/\s/g,"")).indexOf(">")!==-1&&(s=s.substr(0,s.indexOf(">"))),s.length%2&&(s+="0"),a.test(s)===!1)return"";for(var o="",c=0;c<s.length;c+=2)o+=String.fromCharCode("0x"+(s[c]+s[c+1]));return o},i=function(s){for(var a=new Uint8Array(s.length),o=s.length;o--;)a[o]=s.charCodeAt(o);return(a=fh(a)).reduce(function(c,h){return c+String.fromCharCode(h)},"")};t.processDataByFilters=function(s,a){var o=0,c=s||"",h=[];for(typeof(a=a||[])=="string"&&(a=[a]),o=0;o<a.length;o+=1)switch(a[o]){case"ASCII85Decode":case"/ASCII85Decode":c=e(c),h.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=A(c),h.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=n(c),h.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=r(c),h.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=i(c),h.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[o]+'" is not implemented')}return{data:c,reverseChain:h.reverse().join(" ")}}}(Ae.API),function(t){t.loadFile=function(A,e,r){return function(n,i,s){i=i!==!1,s=typeof s=="function"?s:function(){};var a=void 0;try{a=function(o,c,h){var d=new XMLHttpRequest,m=0,f=function(w){var y=w.length,F=[],v=String.fromCharCode;for(m=0;m<y;m+=1)F.push(v(255&w.charCodeAt(m)));return F.join("")};if(d.open("GET",o,!c),d.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(d.onload=function(){d.status===200?h(f(this.responseText)):h(void 0)}),d.send(null),c&&d.status===200)return f(d.responseText)}(n,i,s)}catch{}return a}(A,e,r)},t.allowFsRead=void 0,t.loadImageFile=t.loadFile}(Ae.API),function(t){function A(){return(oe.html2canvas?Promise.resolve(oe.html2canvas):Promise.resolve().then(()=>Lx)).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function e(){return(oe.DOMPurify?Promise.resolve(oe.DOMPurify):Promise.resolve().then(()=>require("./purify.es-Cv8QDpGd.js"))).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var r=function(a){var o=He(a);return o==="undefined"?"undefined":o==="string"||a instanceof String?"string":o==="number"||a instanceof Number?"number":o==="function"||a instanceof Function?"function":a&&a.constructor===Array?"array":a&&a.nodeType===1?"element":o==="object"?"object":"unknown"},n=function(a,o){var c=document.createElement(a);for(var h in o.className&&(c.className=o.className),o.innerHTML&&o.dompurify&&(c.innerHTML=o.dompurify.sanitize(o.innerHTML)),o.style)c.style[h]=o.style[h];return c},i=function a(o,c){for(var h=o.nodeType===3?document.createTextNode(o.nodeValue):o.cloneNode(!1),d=o.firstChild;d;d=d.nextSibling)c!==!0&&d.nodeType===1&&d.nodeName==="SCRIPT"||h.appendChild(a(d,c));return o.nodeType===1&&(o.nodeName==="CANVAS"?(h.width=o.width,h.height=o.height,h.getContext("2d").drawImage(o,0,0)):o.nodeName!=="TEXTAREA"&&o.nodeName!=="SELECT"||(h.value=o.value),h.addEventListener("load",function(){h.scrollTop=o.scrollTop,h.scrollLeft=o.scrollLeft},!0)),h},s=function a(o){var c=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),h=a.convert(Promise.resolve(),c);return(h=h.setProgress(1,a,1,[a])).set(o)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(a,o){return a.__proto__=o||s.prototype,a},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(a,o){return this.then(function(){switch(o=o||function(c){switch(r(c)){case"string":return"string";case"element":return c.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(a),o){case"string":return this.then(e).then(function(c){return this.set({src:n("div",{innerHTML:a,dompurify:c})})});case"element":return this.set({src:a});case"canvas":return this.set({canvas:a});case"img":return this.set({img:a});default:return this.error("Unknown source type.")}})},s.prototype.to=function(a){switch(a){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var a={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},o=i(this.prop.src,this.opt.html2canvas.javascriptEnabled);o.tagName==="BODY"&&(a.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:a}),this.prop.container.appendChild(o),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},s.prototype.toCanvas=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(A).then(function(o){var c=Object.assign({},this.opt.html2canvas);return delete c.onrendered,o(this.prop.container,c)}).then(function(o){(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},s.prototype.toContext2d=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(A).then(function(o){var c=this.opt.jsPDF,h=this.opt.fontFaces,d=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,m=Object.assign({async:!0,allowTaint:!0,scale:d,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete m.onrendered,c.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,c.context2d.posX=this.opt.x,c.context2d.posY=this.opt.y,c.context2d.margin=this.opt.margin,c.context2d.fontFaces=h,h)for(var f=0;f<h.length;++f){var w=h[f],y=w.src.find(function(F){return F.format==="truetype"});y&&c.addFont(y.url,w.ref.name,w.ref.style)}return m.windowHeight=m.windowHeight||0,m.windowHeight=m.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):m.windowHeight,c.context2d.save(!0),o(this.prop.container,m)}).then(function(o){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var a=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=a})},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},s.prototype.output=function(a,o,c){return(c=c||"pdf").toLowerCase()==="img"||c.toLowerCase()==="image"?this.outputImg(a,o):this.outputPdf(a,o)},s.prototype.outputPdf=function(a,o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(a,o)})},s.prototype.outputImg=function(a){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(a){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+a+'" is not supported.'}})},s.prototype.save=function(a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(a?{filename:a}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},s.prototype.set=function(a){if(r(a)!=="object")return this;var o=Object.keys(a||{}).map(function(c){if(c in s.template.prop)return function(){this.prop[c]=a[c]};switch(c){case"margin":return this.setMargin.bind(this,a.margin);case"jsPDF":return function(){return this.opt.jsPDF=a.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,a.pageSize);default:return function(){this.opt[c]=a[c]}}},this);return this.then(function(){return this.thenList(o)})},s.prototype.get=function(a,o){return this.then(function(){var c=a in s.template.prop?this.prop[a]:this.opt[a];return o?o(c):c})},s.prototype.setMargin=function(a){return this.then(function(){switch(r(a)){case"number":a=[a,a,a,a];case"array":if(a.length===2&&(a=[a[0],a[1],a[0],a[1]]),a.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=a}).then(this.setPageSize)},s.prototype.setPageSize=function(a){function o(c,h){return Math.floor(c*h/72*96)}return this.then(function(){(a=a||Ae.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(a.inner={width:a.width-this.opt.margin[1]-this.opt.margin[3],height:a.height-this.opt.margin[0]-this.opt.margin[2]},a.inner.px={width:o(a.inner.width,a.k),height:o(a.inner.height,a.k)},a.inner.ratio=a.inner.height/a.inner.width),this.prop.pageSize=a})},s.prototype.setProgress=function(a,o,c,h){return a!=null&&(this.progress.val=a),o!=null&&(this.progress.state=o),c!=null&&(this.progress.n=c),h!=null&&(this.progress.stack=h),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(a,o,c,h){return this.setProgress(a?this.progress.val+a:null,o||null,c?this.progress.n+c:null,h?this.progress.stack.concat(h):null)},s.prototype.then=function(a,o){var c=this;return this.thenCore(a,o,function(h,d){return c.updateProgress(null,null,1,[h]),Promise.prototype.then.call(this,function(m){return c.updateProgress(null,h),m}).then(h,d).then(function(m){return c.updateProgress(1),m})})},s.prototype.thenCore=function(a,o,c){c=c||Promise.prototype.then;var h=this;a&&(a=a.bind(h)),o&&(o=o.bind(h));var d=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?h:s.convert(Object.assign({},h),Promise.prototype),m=c.call(d,a,o);return s.convert(m,h.__proto__)},s.prototype.thenExternal=function(a,o){return Promise.prototype.then.call(this,a,o)},s.prototype.thenList=function(a){var o=this;return a.forEach(function(c){o=o.thenCore(c)}),o},s.prototype.catch=function(a){a&&(a=a.bind(this));var o=Promise.prototype.catch.call(this,a);return s.convert(o,this)},s.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},s.prototype.error=function(a){return this.then(function(){throw new Error(a)})},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,Ae.getPageSize=function(a,o,c){if(He(a)==="object"){var h=a;a=h.orientation,o=h.unit||o,c=h.format||c}o=o||"mm",c=c||"a4",a=(""+(a||"P")).toLowerCase();var d,m=(""+c).toLowerCase(),f={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(o){case"pt":d=1;break;case"mm":d=72/25.4;break;case"cm":d=72/2.54;break;case"in":d=72;break;case"px":d=.75;break;case"pc":case"em":d=12;break;case"ex":d=6;break;default:throw"Invalid unit: "+o}var w,y=0,F=0;if(f.hasOwnProperty(m))y=f[m][1]/d,F=f[m][0]/d;else try{y=c[1],F=c[0]}catch{throw new Error("Invalid format: "+c)}if(a==="p"||a==="portrait")a="p",F>y&&(w=F,F=y,y=w);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",y>F&&(w=F,F=y,y=w)}return{width:F,height:y,unit:o,k:d,orientation:a}},t.html=function(a,o){(o=o||{}).callback=o.callback||function(){},o.html2canvas=o.html2canvas||{},o.html2canvas.canvas=o.html2canvas.canvas||this.canvas,o.jsPDF=o.jsPDF||this,o.fontFaces=o.fontFaces?o.fontFaces.map(mu):null;var c=new s(o);return o.worker?c:c.from(a).doCallback()}}(Ae.API),Ae.API.addJS=function(t){return Cg=t,this.internal.events.subscribe("postPutResources",function(){jo=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(jo+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),bg=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Cg+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){jo!==void 0&&bg!==void 0&&this.internal.out("/Names <</JavaScript "+jo+" 0 R>>")}),this},function(t){var A;t.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=e.outline.render().split(/\r\n/),i=0;i<n.length;i++){var s=n[i],a=r.exec(s);if(a!=null){var o=a[1];e.internal.newObjectDeferredBegin(o,!1)}e.internal.write(s)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,h=[];for(i=0;i<c;i++){var d=e.internal.newObject();h.push(d);var m=e.internal.getPageInfo(i+1);e.internal.write("<< /D["+m.objId+" 0 R /XYZ null null null]>> endobj")}var f=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i<h.length;i++)e.internal.write("(page_"+(i+1)+")"+h[i]+" 0 R");e.internal.write(" ] >>","endobj"),A=e.internal.newObject(),e.internal.write("<< /Dests "+f+" 0 R"),e.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+A+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,n,i){var s={title:n,options:i,children:[]};return r==null&&(r=this.root),r.children.push(s),s},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(r){r.id=e.internal.newObjectDeferred();for(var n=0;n<r.children.length;n++)this.genIds_r(r.children[n])},e.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},e.outline.renderItems=function(r){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<r.children.length;i++){var s=r.children[i];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(r)),i>0&&this.line("/Prev "+this.makeRef(r.children[i-1])),i<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[i+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var a=this.count=this.count_r({count:0},s);if(a>0&&this.line("/Count "+a),s.options&&s.options.pageNumber){var o=e.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var c=0;c<r.children.length;c++)this.renderItems(r.children[c])},e.outline.line=function(r){this.ctx.val+=r+`\r
287
290
  `},e.outline.makeRef=function(r){return r.id+" 0 R"},e.outline.makeString=function(r){return"("+e.internal.pdfEscape(r)+")"},e.outline.objStart=function(r){this.ctx.val+=`\r
288
291
  `+r.id+` 0 obj\r
289
292
  <<\r
290
293
  `},e.outline.objEnd=function(){this.ctx.val+=`>> \r
291
294
  endobj\r
292
- `},e.outline.count_r=function(r,n){for(var i=0;i<n.children.length;i++)r.count++,this.count_r(r,n.children[i]);return r.count}}])}(zA.API),function(t){var A=[192,193,194,195,196,197,198,199];t.processJPEG=function(e,r,n,i,s,a){var o,c=this.decode.DCT_DECODE,h=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=s||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,o=function(g){for(var m,f=256*g.charCodeAt(4)+g.charCodeAt(5),w=g.length,y={width:0,height:0,numcomponents:1},F=4;F<w;F+=2){if(F+=f,A.indexOf(g.charCodeAt(F+1))!==-1){m=256*g.charCodeAt(F+5)+g.charCodeAt(F+6),y={width:256*g.charCodeAt(F+7)+g.charCodeAt(F+8),height:m,numcomponents:g.charCodeAt(F+9)};break}f=256*g.charCodeAt(F+2)+g.charCodeAt(F+3)}return y}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),o.numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}h={data:e,width:o.width,height:o.height,colorSpace:a,bitsPerComponent:8,filter:c,index:r,alias:n}}return h}}(zA.API),zA.API.processPNG=function(t,A,e,r){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var n,i=CC(t,{checkCrc:!0}),s=i.width,a=i.height,o=i.channels,c=i.palette,h=i.depth;n=c&&o===1?function(G){for(var k=G.width,Z=G.height,x=G.data,S=G.palette,K=G.depth,T=!1,z=[],lA=[],hA=void 0,iA=!1,dA=0,QA=0;QA<S.length;QA++){var CA=bd(S[QA],4),U=CA[0],M=CA[1],j=CA[2],$=CA[3];z.push(U,M,j),$!=null&&($===0?(dA++,lA.length<1&&lA.push(QA)):$<255&&(iA=!0))}if(iA||dA>1){T=!0,lA=void 0;var AA=k*Z;hA=new Uint8Array(AA);for(var sA=new DataView(x.buffer),fA=0;fA<AA;fA++){var gA=Bu(sA,fA,K),yA=bd(S[gA],4)[3];hA[fA]=yA}}else dA===0&&(lA=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:T?8:void 0,colorBytes:x,alphaBytes:hA,needSMask:T,palette:z,mask:lA}}(i):o===2||o===4?function(G){for(var k=G.data,Z=G.width,x=G.height,S=G.channels,K=G.depth,T=S===2?"DeviceGray":"DeviceRGB",z=S-1,lA=Z*x,hA=z,iA=lA*hA,dA=1*lA,QA=Math.ceil(iA*K/8),CA=Math.ceil(dA*K/8),U=new Uint8Array(QA),M=new Uint8Array(CA),j=new DataView(k.buffer),$=new DataView(U.buffer),AA=new DataView(M.buffer),sA=!1,fA=0;fA<lA;fA++){for(var gA=fA*S,yA=0;yA<hA;yA++)Eg($,Bu(j,gA+yA,K),fA*hA+yA,K);var xA=Bu(j,gA+hA,K);xA<(1<<K)-1&&(sA=!0),Eg(AA,xA,1*fA,K)}return{colorSpace:T,colorsPerPixel:z,sMaskBitsPerComponent:sA?K:void 0,colorBytes:U,alphaBytes:M,needSMask:sA}}(i):function(G){var k=G.data,Z=G.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:Z,colorsPerPixel:Z==="DeviceGray"?1:3,colorBytes:k instanceof Uint16Array?function(x){for(var S=x.length,K=new Uint8Array(2*S),T=new DataView(K.buffer,K.byteOffset,K.byteLength),z=0;z<S;z++)T.setUint16(2*z,x[z],!1);return K}(k):k,needSMask:!1}}(i);var g,m,f,w=n,y=w.colorSpace,F=w.colorsPerPixel,v=w.sMaskBitsPerComponent,L=w.colorBytes,N=w.alphaBytes,_=w.needSMask,q=w.palette,X=w.mask,J=null;return r!==zA.API.image_compression.NONE&&typeof uh=="function"?(J=function(G){var k;switch(G){case zA.API.image_compression.FAST:k=11;break;case zA.API.image_compression.MEDIUM:k=13;break;case zA.API.image_compression.SLOW:k=14;break;default:k=12}return k}(r),g=this.decode.FLATE_DECODE,m="/Predictor ".concat(J," /Colors ").concat(F," /BitsPerComponent ").concat(h," /Columns ").concat(s),t=bg(L,Math.ceil(s*F*h/8),F,h,r),_&&(f=bg(N,Math.ceil(s*v/8),1,v,r))):(g=void 0,m=void 0,t=L,_&&(f=N)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:e,data:t,index:A,filter:g,decodeParameters:m,transparency:X,palette:q,sMask:f,predictor:J,width:s,height:a,bitsPerComponent:h,sMaskBitsPerComponent:v,colorSpace:y}}},function(t){t.processGIF89A=function(A,e,r,n){var i=new jC(A),s=i.width,a=i.height,o=[];i.decodeAndBlitFrameRGBA(0,o);var c={data:o,width:s,height:a},h=new wu(100).encode(c,100);return t.processJPEG.call(this,h,e,r,n)},t.processGIF87A=t.processGIF89A}(zA.API),Or.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var A=0;A<t;A++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[A]={red:n,green:r,blue:e,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Or.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,A=this.width*this.height*4;this.data=new Uint8Array(A),this[t]()}catch(e){De.log("bit decode error:"+e)}},Or.prototype.bit1=function(){var t,A=Math.ceil(this.width/8),e=A%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<A;n++)for(var i=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+8*n*4,a=0;a<8&&8*n+a<this.width;a++){var o=this.palette[i>>7-a&1];this.data[s+4*a]=o.blue,this.data[s+4*a+1]=o.green,this.data[s+4*a+2]=o.red,this.data[s+4*a+3]=255}e!==0&&(this.pos+=4-e)}},Or.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),A=t%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<t;n++){var i=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+2*n*4,a=i>>4,o=15&i,c=this.palette[a];if(this.data[s]=c.blue,this.data[s+1]=c.green,this.data[s+2]=c.red,this.data[s+3]=255,2*n+1>=this.width)break;c=this.palette[o],this.data[s+4]=c.blue,this.data[s+4+1]=c.green,this.data[s+4+2]=c.red,this.data[s+4+3]=255}A!==0&&(this.pos+=4-A)}},Or.prototype.bit8=function(){for(var t=this.width%4,A=this.height-1;A>=0;A--){for(var e=this.bottom_up?A:this.height-1-A,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=e*this.width*4+4*r;if(n<this.palette.length){var s=this.palette[n];this.data[i]=s.red,this.data[i+1]=s.green,this.data[i+2]=s.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}t!==0&&(this.pos+=4-t)}},Or.prototype.bit15=function(){for(var t=this.width%3,A=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(i&A)/A*255|0,a=(i>>5&A)/A*255|0,o=(i>>10&A)/A*255|0,c=i>>15?255:0,h=r*this.width*4+4*n;this.data[h]=o,this.data[h+1]=a,this.data[h+2]=s,this.data[h+3]=c}this.pos+=t}},Or.prototype.bit16=function(){for(var t=this.width%3,A=parseInt("11111",2),e=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(s&A)/A*255|0,o=(s>>5&e)/e*255|0,c=(s>>11)/A*255|0,h=n*this.width*4+4*i;this.data[h]=c,this.data[h+1]=o,this.data[h+2]=a,this.data[h+3]=255}this.pos+=t}},Or.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var A=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=A*this.width*4+4*e;this.data[s]=i,this.data[s+1]=n,this.data[s+2]=r,this.data[s+3]=255}this.pos+=this.width%4}},Or.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var A=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),a=A*this.width*4+4*e;this.data[a]=i,this.data[a+1]=n,this.data[a+2]=r,this.data[a+3]=s}},Or.prototype.getData=function(){return this.data},function(t){t.processBMP=function(A,e,r,n){var i=new Or(A,!1),s=i.width,a=i.height,o={data:i.getData(),width:s,height:a},c=new wu(100).encode(o,100);return t.processJPEG.call(this,c,e,r,n)}}(zA.API),Sg.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(A,e,r,n){var i=new Sg(A),s=i.width,a=i.height,o={data:i.getData(),width:s,height:a},c=new wu(100).encode(o,100);return t.processJPEG.call(this,c,e,r,n)}}(zA.API),zA.API.processRGBA=function(t,A,e){for(var r=t.data,n=r.length,i=new Uint8Array(n/4*3),s=new Uint8Array(n/4),a=0,o=0,c=0;c<n;c+=4){var h=r[c],g=r[c+1],m=r[c+2],f=r[c+3];i[a++]=h,i[a++]=g,i[a++]=m,s[o++]=f}var w=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:w,index:A,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},zA.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},as=zA.API,jo=as.getCharWidthsArray=function(t,A){var e,r,n=(A=A||{}).font||this.internal.getFont(),i=A.fontSize||this.internal.getFontSize(),s=A.charSpace||this.internal.getCharSpace(),a=A.widths?A.widths:n.metadata.Unicode.widths,o=a.fof?a.fof:1,c=A.kerning?A.kerning:n.metadata.Unicode.kerning,h=c.fof?c.fof:1,g=A.doKerning!==!1,m=0,f=t.length,w=0,y=a[0]||o,F=[];for(e=0;e<f;e++)r=t.charCodeAt(e),typeof n.metadata.widthOfString=="function"?F.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(r))+s*(1e3/i)||0)/1e3):(m=g&&_e(c[r])==="object"&&!isNaN(parseInt(c[r][w],10))?c[r][w]/h:0,F.push((a[r]||y)/o+m)),w=r;return F},vg=as.getStringUnitWidth=function(t,A){var e=(A=A||{}).fontSize||this.internal.getFontSize(),r=A.font||this.internal.getFont(),n=A.charSpace||this.internal.getCharSpace();return as.processArabic&&(t=as.processArabic(t)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(t,e,n)/e:jo.apply(this,arguments).reduce(function(i,s){return i+s},0)},yg=function(t,A,e,r){for(var n=[],i=0,s=t.length,a=0;i!==s&&a+A[i]<e;)a+=A[i],i++;n.push(t.slice(0,i));var o=i;for(a=0;i!==s;)a+A[i]>r&&(n.push(t.slice(o,i)),a=0,o=i),a+=A[i],i++;return o!==i&&n.push(t.slice(o,i)),n},Cg=function(t,A,e){e||(e={});var r,n,i,s,a,o,c,h=[],g=[h],m=e.textIndent||0,f=0,w=0,y=t.split(" "),F=jo.apply(this,[" ",e])[0];if(o=e.lineIndent===-1?y[0].length+2:e.lineIndent||0){var v=Array(o).join(" "),L=[];y.map(function(_){(_=_.split(/\s*\n/)).length>1?L=L.concat(_.map(function(q,X){return(X&&q.length?`
293
- `:"")+q})):L.push(_[0])}),y=L,o=vg.apply(this,[v,e])}for(i=0,s=y.length;i<s;i++){var N=0;if(r=y[i],o&&r[0]==`
294
- `&&(r=r.substr(1),N=1),m+f+(w=(n=jo.apply(this,[r,e])).reduce(function(_,q){return _+q},0))>A||N){if(w>A){for(a=yg.apply(this,[r,n,A-(m+f),A]),h.push(a.shift()),h=[a.pop()];a.length;)g.push([a.shift()]);w=n.slice(r.length-(h[0]?h[0].length:0)).reduce(function(_,q){return _+q},0)}else h=[r];g.push(h),m=w+o,f=F}else h.push(r),m+=f+w,f=F}return c=o?function(_,q){return(q?v:"")+_.join(" ")}:function(_){return _.join(" ")},g.map(c)},as.splitTextToSize=function(t,A,e){var r,n=(e=e||{}).fontSize||this.internal.getFontSize(),i=(function(h){if(h.widths&&h.kerning)return{widths:h.widths,kerning:h.kerning};var g=this.internal.getFont(h.fontName,h.fontStyle),m="Unicode";return g.metadata[m]?{widths:g.metadata[m].widths||{0:1},kerning:g.metadata[m].kerning||{}}:{font:g.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var s=1*this.internal.scaleFactor*A/n;i.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=e.lineIndent;var a,o,c=[];for(a=0,o=r.length;a<o;a++)c=c.concat(Cg.apply(this,[r[a],s,i]));return c},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var A="0123456789abcdef",e="klmnopqrstuvwxyz",r={},n={},i=0;i<16;i++)r[e[i]]=A[i],n[A[i]]=e[i];var s=function(m){return"0x"+parseInt(m,10).toString(16)},a=t.__fontmetrics__.compress=function(m){var f,w,y,F,v=["{"];for(var L in m){if(f=m[L],isNaN(parseInt(L,10))?w="'"+L+"'":(L=parseInt(L,10),w=(w=s(L).slice(2)).slice(0,-1)+n[w.slice(-1)]),typeof f=="number")f<0?(y=s(f).slice(3),F="-"):(y=s(f).slice(2),F=""),y=F+y.slice(0,-1)+n[y.slice(-1)];else{if(_e(f)!=="object")throw new Error("Don't know what to do with value type "+_e(f)+".");y=a(f)}v.push(w+y)}return v.push("}"),v.join("")},o=t.__fontmetrics__.uncompress=function(m){if(typeof m!="string")throw new Error("Invalid argument passed to uncompress.");for(var f,w,y,F,v={},L=1,N=v,_=[],q="",X="",J=m.length-1,G=1;G<J;G+=1)(F=m[G])=="'"?f?(y=f.join(""),f=void 0):f=[]:f?f.push(F):F=="{"?(_.push([N,y]),N={},y=void 0):F=="}"?((w=_.pop())[0][w[1]]=N,y=void 0,N=w[0]):F=="-"?L=-1:y===void 0?r.hasOwnProperty(F)?(q+=r[F],y=parseInt(q,16)*L,L=1,q=""):q+=F:r.hasOwnProperty(F)?(X+=r[F],N[y]=parseInt(X,16)*L,L=1,y=void 0,X=""):X+=F;return v},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:o("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},h={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},g={Unicode:{"Courier-Oblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":o("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":o("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:o("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:o("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":o("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":o("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(m){var f=m.font,w=g.Unicode[f.postScriptName];w&&(f.metadata.Unicode={},f.metadata.Unicode.widths=w.widths,f.metadata.Unicode.kerning=w.kerning);var y=h.Unicode[f.postScriptName];y&&(f.metadata.Unicode.encoding=y,f.encoding=y.codePages[0])}])}(zA.API),function(t){var A=function(e){for(var r=e.length,n=new Uint8Array(r),i=0;i<r;i++)n[i]=e.charCodeAt(i);return n};t.API.events.push(["addFont",function(e){var r=void 0,n=e.font,i=e.instance;if(!n.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if(typeof(r=i.existsFileInVFS(n.postScriptName)===!1?i.loadFile(n.postScriptName):i.getFileFromVFS(n.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");(function(s,a){a=/^\x00\x01\x00\x00/.test(a)?A(a):A(pl(a)),s.metadata=t.API.TTFFont.open(a),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(n,r)}}])}(zA),zA.API.addSvgAsImage=function(t,A,e,r,n,i,s,a){if(isNaN(A)||isNaN(e))throw De.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(n))throw De.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var o=document.createElement("canvas");o.width=r,o.height=n;var c=o.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,o.width,o.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},g=this;return(ne.canvg?Promise.resolve(ne.canvg):Promise.resolve().then(()=>require("./index.es-D29Vzsox.js"))).catch(function(m){return Promise.reject(new Error("Could not load canvg: "+m))}).then(function(m){return m.default?m.default:m}).then(function(m){return m.fromString(c,t,h)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(m){return m.render(h)}).then(function(){g.addImage(o.toDataURL("image/jpeg",1),A,e,r,n,s,a)})},zA.API.putTotalPages=function(t){var A,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(A=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(A=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var n=0;n<this.internal.pages[r].length;n++)this.internal.pages[r][n]=this.internal.pages[r][n].replace(A,e);return this},zA.API.viewerPreferences=function(t,A){var e;t=t||{},A=A||!1;var r,n,i,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(s),o=[],c=0,h=0,g=0;function m(w,y){var F,v=!1;for(F=0;F<w.length;F+=1)w[F]===y&&(v=!0);return v}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,t==="reset"||A===!0){var f=a.length;for(g=0;g<f;g+=1)e[a[g]].value=e[a[g]].defaultValue,e[a[g]].explicitSet=!1}if(_e(t)==="object"){for(n in t)if(i=t[n],m(a,n)&&i!==void 0){if(e[n].type==="boolean"&&typeof i=="boolean")e[n].value=i;else if(e[n].type==="name"&&m(e[n].valueSet,i))e[n].value=i;else if(e[n].type==="integer"&&Number.isInteger(i))e[n].value=i;else if(e[n].type==="array"){for(c=0;c<i.length;c+=1)if(r=!0,i[c].length===1&&typeof i[c][0]=="number")o.push(String(i[c]-1));else if(i[c].length>1){for(h=0;h<i[c].length;h+=1)typeof i[c][h]!="number"&&(r=!1);r===!0&&o.push([i[c][0]-1,i[c][1]-1].join(" "))}e[n].value="["+o.join(" ")+"]"}else e[n].value=e[n].defaultValue;e[n].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var w,y=[];for(w in e)e[w].explicitSet===!0&&(e[w].type==="name"?y.push("/"+w+" /"+e[w].value):y.push("/"+w+" "+e[w].value));y.length!==0&&this.internal.write(`/ViewerPreferences
295
+ `},e.outline.count_r=function(r,n){for(var i=0;i<n.children.length;i++)r.count++,this.count_r(r,n.children[i]);return r.count}}])}(Ae.API),function(t){var A=[192,193,194,195,196,197,198,199];t.processJPEG=function(e,r,n,i,s,a){var o,c=this.decode.DCT_DECODE,h=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=s||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,o=function(d){for(var m,f=256*d.charCodeAt(4)+d.charCodeAt(5),w=d.length,y={width:0,height:0,numcomponents:1},F=4;F<w;F+=2){if(F+=f,A.indexOf(d.charCodeAt(F+1))!==-1){m=256*d.charCodeAt(F+5)+d.charCodeAt(F+6),y={width:256*d.charCodeAt(F+7)+d.charCodeAt(F+8),height:m,numcomponents:d.charCodeAt(F+9)};break}f=256*d.charCodeAt(F+2)+d.charCodeAt(F+3)}return y}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),o.numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}h={data:e,width:o.width,height:o.height,colorSpace:a,bitsPerComponent:8,filter:c,index:r,alias:n}}return h}}(Ae.API),Ae.API.processPNG=function(t,A,e,r){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var n,i=bb(t,{checkCrc:!0}),s=i.width,a=i.height,o=i.channels,c=i.palette,h=i.depth;n=c&&o===1?function(q){for(var k=q.width,Y=q.height,x=q.data,P=q.palette,j=q.depth,D=!1,J=[],lA=[],fA=void 0,aA=!1,dA=0,QA=0;QA<P.length;QA++){var hA=xd(P[QA],4),U=hA[0],R=hA[1],G=hA[2],W=hA[3];J.push(U,R,G),W!=null&&(W===0?(dA++,lA.length<1&&lA.push(QA)):W<255&&(aA=!0))}if(aA||dA>1){D=!0,lA=void 0;var eA=k*Y;fA=new Uint8Array(eA);for(var nA=new DataView(x.buffer),gA=0;gA<eA;gA++){var pA=wu(nA,gA,j),wA=xd(P[pA],4)[3];fA[gA]=wA}}else dA===0&&(lA=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:D?8:void 0,colorBytes:x,alphaBytes:fA,needSMask:D,palette:J,mask:lA}}(i):o===2||o===4?function(q){for(var k=q.data,Y=q.width,x=q.height,P=q.channels,j=q.depth,D=P===2?"DeviceGray":"DeviceRGB",J=P-1,lA=Y*x,fA=J,aA=lA*fA,dA=1*lA,QA=Math.ceil(aA*j/8),hA=Math.ceil(dA*j/8),U=new Uint8Array(QA),R=new Uint8Array(hA),G=new DataView(k.buffer),W=new DataView(U.buffer),eA=new DataView(R.buffer),nA=!1,gA=0;gA<lA;gA++){for(var pA=gA*P,wA=0;wA<fA;wA++)_g(W,wu(G,pA+wA,j),gA*fA+wA,j);var xA=wu(G,pA+fA,j);xA<(1<<j)-1&&(nA=!0),_g(eA,xA,1*gA,j)}return{colorSpace:D,colorsPerPixel:J,sMaskBitsPerComponent:nA?j:void 0,colorBytes:U,alphaBytes:R,needSMask:nA}}(i):function(q){var k=q.data,Y=q.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:Y,colorsPerPixel:Y==="DeviceGray"?1:3,colorBytes:k instanceof Uint16Array?function(x){for(var P=x.length,j=new Uint8Array(2*P),D=new DataView(j.buffer,j.byteOffset,j.byteLength),J=0;J<P;J++)D.setUint16(2*J,x[J],!1);return j}(k):k,needSMask:!1}}(i);var d,m,f,w=n,y=w.colorSpace,F=w.colorsPerPixel,v=w.sMaskBitsPerComponent,L=w.colorBytes,_=w.alphaBytes,S=w.needSMask,V=w.palette,z=w.mask,X=null;return r!==Ae.API.image_compression.NONE&&typeof fh=="function"?(X=function(q){var k;switch(q){case Ae.API.image_compression.FAST:k=11;break;case Ae.API.image_compression.MEDIUM:k=13;break;case Ae.API.image_compression.SLOW:k=14;break;default:k=12}return k}(r),d=this.decode.FLATE_DECODE,m="/Predictor ".concat(X," /Colors ").concat(F," /BitsPerComponent ").concat(h," /Columns ").concat(s),t=xg(L,Math.ceil(s*F*h/8),F,h,r),S&&(f=xg(_,Math.ceil(s*v/8),1,v,r))):(d=void 0,m=void 0,t=L,S&&(f=_)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:e,data:t,index:A,filter:d,decodeParameters:m,transparency:z,palette:V,sMask:f,predictor:X,width:s,height:a,bitsPerComponent:h,sMaskBitsPerComponent:v,colorSpace:y}}},function(t){t.processGIF89A=function(A,e,r,n){var i=new jb(A),s=i.width,a=i.height,o=[];i.decodeAndBlitFrameRGBA(0,o);var c={data:o,width:s,height:a},h=new vu(100).encode(c,100);return t.processJPEG.call(this,h,e,r,n)},t.processGIF87A=t.processGIF89A}(Ae.API),Kr.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var A=0;A<t;A++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[A]={red:n,green:r,blue:e,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Kr.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,A=this.width*this.height*4;this.data=new Uint8Array(A),this[t]()}catch(e){Me.log("bit decode error:"+e)}},Kr.prototype.bit1=function(){var t,A=Math.ceil(this.width/8),e=A%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<A;n++)for(var i=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+8*n*4,a=0;a<8&&8*n+a<this.width;a++){var o=this.palette[i>>7-a&1];this.data[s+4*a]=o.blue,this.data[s+4*a+1]=o.green,this.data[s+4*a+2]=o.red,this.data[s+4*a+3]=255}e!==0&&(this.pos+=4-e)}},Kr.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),A=t%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<t;n++){var i=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+2*n*4,a=i>>4,o=15&i,c=this.palette[a];if(this.data[s]=c.blue,this.data[s+1]=c.green,this.data[s+2]=c.red,this.data[s+3]=255,2*n+1>=this.width)break;c=this.palette[o],this.data[s+4]=c.blue,this.data[s+4+1]=c.green,this.data[s+4+2]=c.red,this.data[s+4+3]=255}A!==0&&(this.pos+=4-A)}},Kr.prototype.bit8=function(){for(var t=this.width%4,A=this.height-1;A>=0;A--){for(var e=this.bottom_up?A:this.height-1-A,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=e*this.width*4+4*r;if(n<this.palette.length){var s=this.palette[n];this.data[i]=s.red,this.data[i+1]=s.green,this.data[i+2]=s.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}t!==0&&(this.pos+=4-t)}},Kr.prototype.bit15=function(){for(var t=this.width%3,A=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(i&A)/A*255|0,a=(i>>5&A)/A*255|0,o=(i>>10&A)/A*255|0,c=i>>15?255:0,h=r*this.width*4+4*n;this.data[h]=o,this.data[h+1]=a,this.data[h+2]=s,this.data[h+3]=c}this.pos+=t}},Kr.prototype.bit16=function(){for(var t=this.width%3,A=parseInt("11111",2),e=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(s&A)/A*255|0,o=(s>>5&e)/e*255|0,c=(s>>11)/A*255|0,h=n*this.width*4+4*i;this.data[h]=c,this.data[h+1]=o,this.data[h+2]=a,this.data[h+3]=255}this.pos+=t}},Kr.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var A=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=A*this.width*4+4*e;this.data[s]=i,this.data[s+1]=n,this.data[s+2]=r,this.data[s+3]=255}this.pos+=this.width%4}},Kr.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var A=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),a=A*this.width*4+4*e;this.data[a]=i,this.data[a+1]=n,this.data[a+2]=r,this.data[a+3]=s}},Kr.prototype.getData=function(){return this.data},function(t){t.processBMP=function(A,e,r,n){var i=new Kr(A,!1),s=i.width,a=i.height,o={data:i.getData(),width:s,height:a},c=new vu(100).encode(o,100);return t.processJPEG.call(this,c,e,r,n)}}(Ae.API),kg.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(A,e,r,n){var i=new kg(A),s=i.width,a=i.height,o={data:i.getData(),width:s,height:a},c=new vu(100).encode(o,100);return t.processJPEG.call(this,c,e,r,n)}}(Ae.API),Ae.API.processRGBA=function(t,A,e){for(var r=t.data,n=r.length,i=new Uint8Array(n/4*3),s=new Uint8Array(n/4),a=0,o=0,c=0;c<n;c+=4){var h=r[c],d=r[c+1],m=r[c+2],f=r[c+3];i[a++]=h,i[a++]=d,i[a++]=m,s[o++]=f}var w=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:w,index:A,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Ae.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},as=Ae.API,Go=as.getCharWidthsArray=function(t,A){var e,r,n=(A=A||{}).font||this.internal.getFont(),i=A.fontSize||this.internal.getFontSize(),s=A.charSpace||this.internal.getCharSpace(),a=A.widths?A.widths:n.metadata.Unicode.widths,o=a.fof?a.fof:1,c=A.kerning?A.kerning:n.metadata.Unicode.kerning,h=c.fof?c.fof:1,d=A.doKerning!==!1,m=0,f=t.length,w=0,y=a[0]||o,F=[];for(e=0;e<f;e++)r=t.charCodeAt(e),typeof n.metadata.widthOfString=="function"?F.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(r))+s*(1e3/i)||0)/1e3):(m=d&&He(c[r])==="object"&&!isNaN(parseInt(c[r][w],10))?c[r][w]/h:0,F.push((a[r]||y)/o+m)),w=r;return F},Fg=as.getStringUnitWidth=function(t,A){var e=(A=A||{}).fontSize||this.internal.getFontSize(),r=A.font||this.internal.getFont(),n=A.charSpace||this.internal.getCharSpace();return as.processArabic&&(t=as.processArabic(t)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(t,e,n)/e:Go.apply(this,arguments).reduce(function(i,s){return i+s},0)},Qg=function(t,A,e,r){for(var n=[],i=0,s=t.length,a=0;i!==s&&a+A[i]<e;)a+=A[i],i++;n.push(t.slice(0,i));var o=i;for(a=0;i!==s;)a+A[i]>r&&(n.push(t.slice(o,i)),a=0,o=i),a+=A[i],i++;return o!==i&&n.push(t.slice(o,i)),n},Ug=function(t,A,e){e||(e={});var r,n,i,s,a,o,c,h=[],d=[h],m=e.textIndent||0,f=0,w=0,y=t.split(" "),F=Go.apply(this,[" ",e])[0];if(o=e.lineIndent===-1?y[0].length+2:e.lineIndent||0){var v=Array(o).join(" "),L=[];y.map(function(S){(S=S.split(/\s*\n/)).length>1?L=L.concat(S.map(function(V,z){return(z&&V.length?`
296
+ `:"")+V})):L.push(S[0])}),y=L,o=Fg.apply(this,[v,e])}for(i=0,s=y.length;i<s;i++){var _=0;if(r=y[i],o&&r[0]==`
297
+ `&&(r=r.substr(1),_=1),m+f+(w=(n=Go.apply(this,[r,e])).reduce(function(S,V){return S+V},0))>A||_){if(w>A){for(a=Qg.apply(this,[r,n,A-(m+f),A]),h.push(a.shift()),h=[a.pop()];a.length;)d.push([a.shift()]);w=n.slice(r.length-(h[0]?h[0].length:0)).reduce(function(S,V){return S+V},0)}else h=[r];d.push(h),m=w+o,f=F}else h.push(r),m+=f+w,f=F}return c=o?function(S,V){return(V?v:"")+S.join(" ")}:function(S){return S.join(" ")},d.map(c)},as.splitTextToSize=function(t,A,e){var r,n=(e=e||{}).fontSize||this.internal.getFontSize(),i=(function(h){if(h.widths&&h.kerning)return{widths:h.widths,kerning:h.kerning};var d=this.internal.getFont(h.fontName,h.fontStyle),m="Unicode";return d.metadata[m]?{widths:d.metadata[m].widths||{0:1},kerning:d.metadata[m].kerning||{}}:{font:d.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var s=1*this.internal.scaleFactor*A/n;i.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=e.lineIndent;var a,o,c=[];for(a=0,o=r.length;a<o;a++)c=c.concat(Ug.apply(this,[r[a],s,i]));return c},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var A="0123456789abcdef",e="klmnopqrstuvwxyz",r={},n={},i=0;i<16;i++)r[e[i]]=A[i],n[A[i]]=e[i];var s=function(m){return"0x"+parseInt(m,10).toString(16)},a=t.__fontmetrics__.compress=function(m){var f,w,y,F,v=["{"];for(var L in m){if(f=m[L],isNaN(parseInt(L,10))?w="'"+L+"'":(L=parseInt(L,10),w=(w=s(L).slice(2)).slice(0,-1)+n[w.slice(-1)]),typeof f=="number")f<0?(y=s(f).slice(3),F="-"):(y=s(f).slice(2),F=""),y=F+y.slice(0,-1)+n[y.slice(-1)];else{if(He(f)!=="object")throw new Error("Don't know what to do with value type "+He(f)+".");y=a(f)}v.push(w+y)}return v.push("}"),v.join("")},o=t.__fontmetrics__.uncompress=function(m){if(typeof m!="string")throw new Error("Invalid argument passed to uncompress.");for(var f,w,y,F,v={},L=1,_=v,S=[],V="",z="",X=m.length-1,q=1;q<X;q+=1)(F=m[q])=="'"?f?(y=f.join(""),f=void 0):f=[]:f?f.push(F):F=="{"?(S.push([_,y]),_={},y=void 0):F=="}"?((w=S.pop())[0][w[1]]=_,y=void 0,_=w[0]):F=="-"?L=-1:y===void 0?r.hasOwnProperty(F)?(V+=r[F],y=parseInt(V,16)*L,L=1,V=""):V+=F:r.hasOwnProperty(F)?(z+=r[F],_[y]=parseInt(z,16)*L,L=1,y=void 0,z=""):z+=F;return v},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:o("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},h={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},d={Unicode:{"Courier-Oblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":o("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":o("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:o("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:o("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":o("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":o("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(m){var f=m.font,w=d.Unicode[f.postScriptName];w&&(f.metadata.Unicode={},f.metadata.Unicode.widths=w.widths,f.metadata.Unicode.kerning=w.kerning);var y=h.Unicode[f.postScriptName];y&&(f.metadata.Unicode.encoding=y,f.encoding=y.codePages[0])}])}(Ae.API),function(t){var A=function(e){for(var r=e.length,n=new Uint8Array(r),i=0;i<r;i++)n[i]=e.charCodeAt(i);return n};t.API.events.push(["addFont",function(e){var r=void 0,n=e.font,i=e.instance;if(!n.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if(typeof(r=i.existsFileInVFS(n.postScriptName)===!1?i.loadFile(n.postScriptName):i.getFileFromVFS(n.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");(function(s,a){a=/^\x00\x01\x00\x00/.test(a)?A(a):A(ml(a)),s.metadata=t.API.TTFFont.open(a),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(n,r)}}])}(Ae),Ae.API.addSvgAsImage=function(t,A,e,r,n,i,s,a){if(isNaN(A)||isNaN(e))throw Me.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(n))throw Me.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var o=document.createElement("canvas");o.width=r,o.height=n;var c=o.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,o.width,o.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return(oe.canvg?Promise.resolve(oe.canvg):Promise.resolve().then(()=>require("./index.es-D6T1b1XW.js"))).catch(function(m){return Promise.reject(new Error("Could not load canvg: "+m))}).then(function(m){return m.default?m.default:m}).then(function(m){return m.fromString(c,t,h)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(m){return m.render(h)}).then(function(){d.addImage(o.toDataURL("image/jpeg",1),A,e,r,n,s,a)})},Ae.API.putTotalPages=function(t){var A,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(A=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(A=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var n=0;n<this.internal.pages[r].length;n++)this.internal.pages[r][n]=this.internal.pages[r][n].replace(A,e);return this},Ae.API.viewerPreferences=function(t,A){var e;t=t||{},A=A||!1;var r,n,i,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(s),o=[],c=0,h=0,d=0;function m(w,y){var F,v=!1;for(F=0;F<w.length;F+=1)w[F]===y&&(v=!0);return v}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,t==="reset"||A===!0){var f=a.length;for(d=0;d<f;d+=1)e[a[d]].value=e[a[d]].defaultValue,e[a[d]].explicitSet=!1}if(He(t)==="object"){for(n in t)if(i=t[n],m(a,n)&&i!==void 0){if(e[n].type==="boolean"&&typeof i=="boolean")e[n].value=i;else if(e[n].type==="name"&&m(e[n].valueSet,i))e[n].value=i;else if(e[n].type==="integer"&&Number.isInteger(i))e[n].value=i;else if(e[n].type==="array"){for(c=0;c<i.length;c+=1)if(r=!0,i[c].length===1&&typeof i[c][0]=="number")o.push(String(i[c]-1));else if(i[c].length>1){for(h=0;h<i[c].length;h+=1)typeof i[c][h]!="number"&&(r=!1);r===!0&&o.push([i[c][0]-1,i[c][1]-1].join(" "))}e[n].value="["+o.join(" ")+"]"}else e[n].value=e[n].defaultValue;e[n].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var w,y=[];for(w in e)e[w].explicitSet===!0&&(e[w].type==="name"?y.push("/"+w+" /"+e[w].value):y.push("/"+w+" "+e[w].value));y.length!==0&&this.internal.write(`/ViewerPreferences
295
298
  <<
296
299
  `+y.join(`
297
300
  `)+`
298
- >>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},function(t){var A=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',n=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(r)),s=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),a=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),c=i.length+s.length+a.length+n.length+o.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+c+" >>"),this.internal.write("stream"),this.internal.write(n+i+s+a+o),this.internal.write("endstream"),this.internal.write("endobj")},e=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(r,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",e),this.internal.events.subscribe("postPutResources",A)),this}}(zA.API),function(t){var A=t.API,e=A.pdfEscape16=function(i,s){for(var a,o=s.metadata.Unicode.widths,c=["","0","00","000","0000"],h=[""],g=0,m=i.length;g<m;++g){if(a=s.metadata.characterToGlyph(i.charCodeAt(g)),s.metadata.glyIdsUsed.push(a),s.metadata.toUnicode[a]=i.charCodeAt(g),o.indexOf(a)==-1&&(o.push(a),o.push([parseInt(s.metadata.widthOfGlyph(a),10)])),a=="0")return h.join("");a=a.toString(16),h.push(c[4-a.length],a)}return h.join("")},r=function(i){var s,a,o,c,h,g,m;for(h=`/CIDInit /ProcSet findresource begin
301
+ >>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},function(t){var A=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',n=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(r)),s=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),a=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),c=i.length+s.length+a.length+n.length+o.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+c+" >>"),this.internal.write("stream"),this.internal.write(n+i+s+a+o),this.internal.write("endstream"),this.internal.write("endobj")},e=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(r,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",e),this.internal.events.subscribe("postPutResources",A)),this}}(Ae.API),function(t){var A=t.API,e=A.pdfEscape16=function(i,s){for(var a,o=s.metadata.Unicode.widths,c=["","0","00","000","0000"],h=[""],d=0,m=i.length;d<m;++d){if(a=s.metadata.characterToGlyph(i.charCodeAt(d)),s.metadata.glyIdsUsed.push(a),s.metadata.toUnicode[a]=i.charCodeAt(d),o.indexOf(a)==-1&&(o.push(a),o.push([parseInt(s.metadata.widthOfGlyph(a),10)])),a=="0")return h.join("");a=a.toString(16),h.push(c[4-a.length],a)}return h.join("")},r=function(i){var s,a,o,c,h,d,m;for(h=`/CIDInit /ProcSet findresource begin
299
302
  12 dict begin
300
303
  begincmap
301
304
  /CIDSystemInfo <<
@@ -307,7 +310,7 @@ begincmap
307
310
  /CMapType 2 def
308
311
  1 begincodespacerange
309
312
  <0000><ffff>
310
- endcodespacerange`,o=[],g=0,m=(a=Object.keys(i).sort(function(f,w){return f-w})).length;g<m;g++)s=a[g],o.length>=100&&(h+=`
313
+ endcodespacerange`,o=[],d=0,m=(a=Object.keys(i).sort(function(f,w){return f-w})).length;d<m;d++)s=a[d],o.length>=100&&(h+=`
311
314
  `+o.length+` beginbfchar
312
315
  `+o.join(`
313
316
  `)+`
@@ -319,7 +322,7 @@ endbfchar
319
322
  `),h+`endcmap
320
323
  CMapName currentdict /CMap defineresource pop
321
324
  end
322
- end`};A.events.push(["putFont",function(i){(function(s){var a=s.font,o=s.out,c=s.newObject,h=s.putStream;if(a.metadata instanceof t.API.TTFFont&&a.encoding==="Identity-H"){for(var g=a.metadata.Unicode.widths,m=a.metadata.subset.encode(a.metadata.glyIdsUsed,1),f="",w=0;w<m.length;w++)f+=String.fromCharCode(m[w]);var y=c();h({data:f,addLength1:!0,objectId:y}),o("endobj");var F=c();h({data:r(a.metadata.toUnicode),addLength1:!0,objectId:F}),o("endobj");var v=c();o("<<"),o("/Type /FontDescriptor"),o("/FontName /"+gs(a.fontName)),o("/FontFile2 "+y+" 0 R"),o("/FontBBox "+t.API.PDFObject.convert(a.metadata.bbox)),o("/Flags "+a.metadata.flags),o("/StemV "+a.metadata.stemV),o("/ItalicAngle "+a.metadata.italicAngle),o("/Ascent "+a.metadata.ascender),o("/Descent "+a.metadata.decender),o("/CapHeight "+a.metadata.capHeight),o(">>"),o("endobj");var L=c();o("<<"),o("/Type /Font"),o("/BaseFont /"+gs(a.fontName)),o("/FontDescriptor "+v+" 0 R"),o("/W "+t.API.PDFObject.convert(g)),o("/CIDToGIDMap /Identity"),o("/DW 1000"),o("/Subtype /CIDFontType2"),o("/CIDSystemInfo"),o("<<"),o("/Supplement 0"),o("/Registry (Adobe)"),o("/Ordering ("+a.encoding+")"),o(">>"),o(">>"),o("endobj"),a.objectNumber=c(),o("<<"),o("/Type /Font"),o("/Subtype /Type0"),o("/ToUnicode "+F+" 0 R"),o("/BaseFont /"+gs(a.fontName)),o("/Encoding /"+a.encoding),o("/DescendantFonts ["+L+" 0 R]"),o(">>"),o("endobj"),a.isAlreadyPutted=!0}})(i)}]),A.events.push(["putFont",function(i){(function(s){var a=s.font,o=s.out,c=s.newObject,h=s.putStream;if(a.metadata instanceof t.API.TTFFont&&a.encoding==="WinAnsiEncoding"){for(var g=a.metadata.rawData,m="",f=0;f<g.length;f++)m+=String.fromCharCode(g[f]);var w=c();h({data:m,addLength1:!0,objectId:w}),o("endobj");var y=c();h({data:r(a.metadata.toUnicode),addLength1:!0,objectId:y}),o("endobj");var F=c();o("<<"),o("/Descent "+a.metadata.decender),o("/CapHeight "+a.metadata.capHeight),o("/StemV "+a.metadata.stemV),o("/Type /FontDescriptor"),o("/FontFile2 "+w+" 0 R"),o("/Flags 96"),o("/FontBBox "+t.API.PDFObject.convert(a.metadata.bbox)),o("/FontName /"+gs(a.fontName)),o("/ItalicAngle "+a.metadata.italicAngle),o("/Ascent "+a.metadata.ascender),o(">>"),o("endobj"),a.objectNumber=c();for(var v=0;v<a.metadata.hmtx.widths.length;v++)a.metadata.hmtx.widths[v]=parseInt(a.metadata.hmtx.widths[v]*(1e3/a.metadata.head.unitsPerEm));o("<</Subtype/TrueType/Type/Font/ToUnicode "+y+" 0 R/BaseFont/"+gs(a.fontName)+"/FontDescriptor "+F+" 0 R/Encoding/"+a.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(a.metadata.hmtx.widths)+">>"),o("endobj"),a.isAlreadyPutted=!0}})(i)}]);var n=function(i){var s,a=i.text||"",o=i.x,c=i.y,h=i.options||{},g=i.mutex||{},m=g.pdfEscape,f=g.activeFontKey,w=g.fonts,y=f,F="",v=0,L="",N=w[y].encoding;if(w[y].encoding!=="Identity-H")return{text:a,x:o,y:c,options:h,mutex:g};for(L=a,y=f,Array.isArray(a)&&(L=a[0]),v=0;v<L.length;v+=1)w[y].metadata.hasOwnProperty("cmap")&&(s=w[y].metadata.cmap.unicode.codeMap[L[v].charCodeAt(0)]),s||L[v].charCodeAt(0)<256&&w[y].metadata.hasOwnProperty("Unicode")?F+=L[v]:F+="";var _="";return parseInt(y.slice(1))<14||N==="WinAnsiEncoding"?_=m(F,y).split("").map(function(q){return q.charCodeAt(0).toString(16)}).join(""):N==="Identity-H"&&(_=e(F,w[y])),g.isHex=!0,{text:_,x:o,y:c,options:h,mutex:g}};A.events.push(["postProcessText",function(i){var s=i.text||"",a=[],o={text:s,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(s)){var c=0;for(c=0;c<s.length;c+=1)Array.isArray(s[c])&&s[c].length===3?a.push([n(Object.assign({},o,{text:s[c][0]})).text,s[c][1],s[c][2]]):a.push(n(Object.assign({},o,{text:s[c]})).text);i.text=a}else i.text=n(Object.assign({},o,{text:s})).text}])}(zA),function(t){var A=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(e){return A.call(this),this.internal.vFS[e]!==void 0},t.addFileToVFS=function(e,r){return A.call(this),this.internal.vFS[e]=r,this},t.getFileFromVFS=function(e){return A.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}}(zA.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(r){var n,i,s,a,o,c,h,g=A,m=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],f=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],w={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},y={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},F=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],v=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),L=!1,N=0;this.__bidiEngine__={};var _=function(x){var S=x.charCodeAt(),K=S>>8,T=y[K];return T!==void 0?g[256*T+(255&S)]:K===252||K===253?"AL":v.test(K)?"L":K===8?"R":"N"},q=function(x){for(var S,K=0;K<x.length;K++){if((S=_(x.charAt(K)))==="L")return!1;if(S==="R")return!0}return!1},X=function(x,S,K,T){var z,lA,hA,iA,dA=S[T];switch(dA){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":L=!1;break;case"N":case"AN":break;case"EN":L&&(dA="AN");break;case"AL":L=!0,dA="R";break;case"WS":case"BN":dA="N";break;case"CS":T<1||T+1>=S.length||(z=K[T-1])!=="EN"&&z!=="AN"||(lA=S[T+1])!=="EN"&&lA!=="AN"?dA="N":L&&(lA="AN"),dA=lA===z?lA:"N";break;case"ES":dA=(z=T>0?K[T-1]:"B")==="EN"&&T+1<S.length&&S[T+1]==="EN"?"EN":"N";break;case"ET":if(T>0&&K[T-1]==="EN"){dA="EN";break}if(L){dA="N";break}for(hA=T+1,iA=S.length;hA<iA&&S[hA]==="ET";)hA++;dA=hA<iA&&S[hA]==="EN"?"EN":"N";break;case"NSM":if(s&&!a){for(iA=S.length,hA=T+1;hA<iA&&S[hA]==="NSM";)hA++;if(hA<iA){var QA=x[T],CA=QA>=1425&&QA<=2303||QA===64286;if(z=S[hA],CA&&(z==="R"||z==="AL")){dA="R";break}}}dA=T<1||(z=S[T-1])==="B"?"N":K[T-1];break;case"B":L=!1,n=!0,dA=N;break;case"S":i=!0,dA="N"}return dA},J=function(x,S,K){var T=x.split("");return K&&G(T,K,{hiLevel:N}),T.reverse(),S&&S.reverse(),T.join("")},G=function(x,S,K){var T,z,lA,hA,iA,dA=-1,QA=x.length,CA=0,U=[],M=N?f:m,j=[];for(L=!1,n=!1,i=!1,z=0;z<QA;z++)j[z]=_(x[z]);for(lA=0;lA<QA;lA++){if(iA=CA,U[lA]=X(x,j,U,lA),T=240&(CA=M[iA][w[U[lA]]]),CA&=15,S[lA]=hA=M[CA][5],T>0)if(T===16){for(z=dA;z<lA;z++)S[z]=1;dA=-1}else dA=-1;if(M[CA][6])dA===-1&&(dA=lA);else if(dA>-1){for(z=dA;z<lA;z++)S[z]=hA;dA=-1}j[lA]==="B"&&(S[lA]=0),K.hiLevel|=hA}i&&function($,AA,sA){for(var fA=0;fA<sA;fA++)if($[fA]==="S"){AA[fA]=N;for(var gA=fA-1;gA>=0&&$[gA]==="WS";gA--)AA[gA]=N}}(j,S,QA)},k=function(x,S,K,T,z){if(!(z.hiLevel<x)){if(x===1&&N===1&&!n)return S.reverse(),void(K&&K.reverse());for(var lA,hA,iA,dA,QA=S.length,CA=0;CA<QA;){if(T[CA]>=x){for(iA=CA+1;iA<QA&&T[iA]>=x;)iA++;for(dA=CA,hA=iA-1;dA<hA;dA++,hA--)lA=S[dA],S[dA]=S[hA],S[hA]=lA,K&&(lA=K[dA],K[dA]=K[hA],K[hA]=lA);CA=iA}CA++}}},Z=function(x,S,K){var T=x.split(""),z={hiLevel:N};return K||(K=[]),G(T,K,z),function(lA,hA,iA){if(iA.hiLevel!==0&&h)for(var dA,QA=0;QA<lA.length;QA++)hA[QA]===1&&(dA=F.indexOf(lA[QA]))>=0&&(lA[QA]=F[dA+1])}(T,K,z),k(2,T,S,K,z),k(1,T,S,K,z),T.join("")};return this.__bidiEngine__.doBidiReorder=function(x,S,K){if(function(z,lA){if(lA)for(var hA=0;hA<z.length;hA++)lA[hA]=hA;a===void 0&&(a=q(z)),c===void 0&&(c=q(z))}(x,S),s||!o||c)if(s&&o&&a^c)N=a?1:0,x=J(x,S,K);else if(!s&&o&&c)N=a?1:0,x=Z(x,S,K),x=J(x,S);else if(!s||a||o||c){if(s&&!o&&a^c)x=J(x,S),a?(N=0,x=Z(x,S,K)):(N=1,x=Z(x,S,K),x=J(x,S));else if(s&&a&&!o&&c)N=1,x=Z(x,S,K),x=J(x,S);else if(!s&&!o&&a^c){var T=h;a?(N=1,x=Z(x,S,K),N=0,h=!1,x=Z(x,S,K),h=T):(N=0,x=Z(x,S,K),x=J(x,S),N=1,h=!1,x=Z(x,S,K),h=T,x=J(x,S))}}else N=0,x=Z(x,S,K);else N=a?1:0,x=Z(x,S,K);return x},this.__bidiEngine__.setOptions=function(x){x&&(s=x.isInputVisual,o=x.isOutputVisual,a=x.isInputRtl,c=x.isOutputRtl,h=x.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var A=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],e=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(r){var n=r.text;r.x,r.y;var i=r.options||{};r.mutex,i.lang;var s=[];if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,e.setOptions(i),Object.prototype.toString.call(n)==="[object Array]"){var a=0;for(s=[],a=0;a<n.length;a+=1)Object.prototype.toString.call(n[a])==="[object Array]"?s.push([e.doBidiReorder(n[a][0]),n[a][1],n[a][2]]):s.push([e.doBidiReorder(n[a])]);r.text=s}else r.text=e.doBidiReorder(n);e.setOptions({isInputVisual:!0})}])}(zA),zA.API.TTFFont=function(){function t(A){var e;if(this.rawData=A,e=this.contents=new ui(A),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new nb(this),this.registerTTF()}return t.open=function(A){return new t(A)},t.prototype.parse=function(){return this.directory=new GC(this.contents),this.head=new VC(this),this.name=new JC(this),this.cmap=new dm(this),this.toUnicode={},this.hhea=new WC(this),this.maxp=new YC(this),this.hmtx=new ZC(this),this.post=new $C(this),this.os2=new zC(this),this.loca=new rb(this),this.glyf=new Ab(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var A,e,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var s,a,o,c;for(c=[],s=0,a=(o=this.bbox).length;s<a;s++)A=o[s],c.push(Math.round(A*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(e=n>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(A){var e;return((e=this.cmap.unicode)!=null?e.codeMap[A]:void 0)||0},t.prototype.widthOfGlyph=function(A){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(A).advance*e},t.prototype.widthOfString=function(A,e,r){var n,i,s,a;for(s=0,i=0,a=(A=""+A).length;0<=a?i<a:i>a;i=0<=a?++i:--i)n=A.charCodeAt(i),s+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/e)||0;return s*(e/1e3)},t.prototype.lineHeight=function(A,e){var r;return e==null&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*A},t}();var Gr,ui=function(){function t(A){this.data=A??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(A){return this.data[this.pos++]=A},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(A){return this.writeByte(A>>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A)},t.prototype.readInt32=function(){var A;return(A=this.readUInt32())>=2147483648?A-4294967296:A},t.prototype.writeInt32=function(A){return A<0&&(A+=4294967296),this.writeUInt32(A)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(A){return this.writeByte(A>>8&255),this.writeByte(255&A)},t.prototype.readInt16=function(){var A;return(A=this.readUInt16())>=32768?A-65536:A},t.prototype.writeInt16=function(A){return A<0&&(A+=65536),this.writeUInt16(A)},t.prototype.readString=function(A){var e,r;for(r=[],e=0;0<=A?e<A:e>A;e=0<=A?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(A){var e,r,n;for(n=[],e=0,r=A.length;0<=r?e<r:e>r;e=0<=r?++e:--e)n.push(this.writeByte(A.charCodeAt(e)));return n},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(A){return this.writeInt16(A)},t.prototype.readLongLong=function(){var A,e,r,n,i,s,a,o;return A=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),s=this.readByte(),a=this.readByte(),o=this.readByte(),128&A?-1*(72057594037927940*(255^A)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^s)+256*(255^a)+(255^o)+1):72057594037927940*A+281474976710656*e+1099511627776*r+4294967296*n+16777216*i+65536*s+256*a+o},t.prototype.writeLongLong=function(A){var e,r;return e=Math.floor(A/4294967296),r=4294967295&A,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(A){return this.writeInt32(A)},t.prototype.read=function(A){var e,r;for(e=[],r=0;0<=A?r<A:r>A;r=0<=A?++r:--r)e.push(this.readByte());return e},t.prototype.write=function(A){var e,r,n,i;for(i=[],r=0,n=A.length;r<n;r++)e=A[r],i.push(this.writeByte(e));return i},t}(),GC=function(){var t;function A(e){var r,n,i;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,i=this.tableCount;0<=i?n<i:n>i;n=0<=i?++n:--n)r={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[r.tag]=r}return A.prototype.encode=function(e){var r,n,i,s,a,o,c,h,g,m,f,w,y;for(y in f=Object.keys(e).length,o=Math.log(2),g=16*Math.floor(Math.log(f)/o),s=Math.floor(g/o),h=16*f-g,(n=new ui).writeInt(this.scalarType),n.writeShort(f),n.writeShort(g),n.writeShort(s),n.writeShort(h),i=16*f,c=n.pos+i,a=null,w=[],e)for(m=e[y],n.writeString(y),n.writeInt(t(m)),n.writeInt(c),n.writeInt(m.length),w=w.concat(m),y==="head"&&(a=c),c+=m.length;c%4;)w.push(0),c++;return n.write(w),r=2981146554-t(n.data),n.pos=a+8,n.writeUInt32(r),n.data},t=function(e){var r,n,i,s;for(e=gm.call(e);e.length%4;)e.push(0);for(i=new ui(e),n=0,r=0,s=e.length;r<s;r=r+=4)n+=i.readUInt32();return 4294967295&n},A}(),qC={}.hasOwnProperty,on=function(t,A){for(var e in A)qC.call(A,e)&&(t[e]=A[e]);function r(){this.constructor=t}return r.prototype=A.prototype,t.prototype=new r,t.__super__=A.prototype,t};Gr=function(){function t(A){var e;this.file=A,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var VC=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return on(t,Gr),t.prototype.tag="head",t.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.revision=A.readInt(),this.checkSumAdjustment=A.readInt(),this.magicNumber=A.readInt(),this.flags=A.readShort(),this.unitsPerEm=A.readShort(),this.created=A.readLongLong(),this.modified=A.readLongLong(),this.xMin=A.readShort(),this.yMin=A.readShort(),this.xMax=A.readShort(),this.yMax=A.readShort(),this.macStyle=A.readShort(),this.lowestRecPPEM=A.readShort(),this.fontDirectionHint=A.readShort(),this.indexToLocFormat=A.readShort(),this.glyphDataFormat=A.readShort()},t.prototype.encode=function(A){var e;return(e=new ui).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(A),e.writeShort(this.glyphDataFormat),e.data},t}(),Ig=function(){function t(A,e){var r,n,i,s,a,o,c,h,g,m,f,w,y,F,v,L,N;switch(this.platformID=A.readUInt16(),this.encodingID=A.readShort(),this.offset=e+A.readInt(),g=A.pos,A.pos=this.offset,this.format=A.readUInt16(),this.length=A.readUInt16(),this.language=A.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(o=0;o<256;++o)this.codeMap[o]=A.readByte();break;case 4:for(f=A.readUInt16(),m=f/2,A.pos+=6,i=function(){var _,q;for(q=[],o=_=0;0<=m?_<m:_>m;o=0<=m?++_:--_)q.push(A.readUInt16());return q}(),A.pos+=2,y=function(){var _,q;for(q=[],o=_=0;0<=m?_<m:_>m;o=0<=m?++_:--_)q.push(A.readUInt16());return q}(),c=function(){var _,q;for(q=[],o=_=0;0<=m?_<m:_>m;o=0<=m?++_:--_)q.push(A.readUInt16());return q}(),h=function(){var _,q;for(q=[],o=_=0;0<=m?_<m:_>m;o=0<=m?++_:--_)q.push(A.readUInt16());return q}(),n=(this.length-A.pos+this.offset)/2,a=function(){var _,q;for(q=[],o=_=0;0<=n?_<n:_>n;o=0<=n?++_:--_)q.push(A.readUInt16());return q}(),o=v=0,N=i.length;v<N;o=++v)for(F=i[o],r=L=w=y[o];w<=F?L<=F:L>=F;r=w<=F?++L:--L)h[o]===0?s=r+c[o]:(s=a[h[o]/2+(r-w)-(m-o)]||0)!==0&&(s+=c[o]),this.codeMap[r]=65535&s}A.pos=g}return t.encode=function(A,e){var r,n,i,s,a,o,c,h,g,m,f,w,y,F,v,L,N,_,q,X,J,G,k,Z,x,S,K,T,z,lA,hA,iA,dA,QA,CA,U,M,j,$,AA,sA,fA,gA,yA,xA,NA;switch(T=new ui,s=Object.keys(A).sort(function(_A,$A){return _A-$A}),e){case"macroman":for(y=0,F=function(){var _A=[];for(w=0;w<256;++w)_A.push(0);return _A}(),L={0:0},i={},z=0,dA=s.length;z<dA;z++)L[gA=A[n=s[z]]]==null&&(L[gA]=++y),i[n]={old:A[n],new:L[A[n]]},F[n]=L[A[n]];return T.writeUInt16(1),T.writeUInt16(0),T.writeUInt32(12),T.writeUInt16(0),T.writeUInt16(262),T.writeUInt16(0),T.write(F),{charMap:i,subtable:T.data,maxGlyphID:y+1};case"unicode":for(S=[],g=[],N=0,L={},r={},v=c=null,lA=0,QA=s.length;lA<QA;lA++)L[q=A[n=s[lA]]]==null&&(L[q]=++N),r[n]={old:q,new:L[q]},a=L[q]-n,v!=null&&a===c||(v&&g.push(v),S.push(n),c=a),v=n;for(v&&g.push(v),g.push(65535),S.push(65535),Z=2*(k=S.length),G=2*Math.pow(Math.log(k)/Math.LN2,2),m=Math.log(G/2)/Math.LN2,J=2*k-G,o=[],X=[],f=[],w=hA=0,CA=S.length;hA<CA;w=++hA){if(x=S[w],h=g[w],x===65535){o.push(0),X.push(0);break}if(x-(K=r[x].new)>=32768)for(o.push(0),X.push(2*(f.length+k-w)),n=iA=x;x<=h?iA<=h:iA>=h;n=x<=h?++iA:--iA)f.push(r[n].new);else o.push(K-x),X.push(0)}for(T.writeUInt16(3),T.writeUInt16(1),T.writeUInt32(12),T.writeUInt16(4),T.writeUInt16(16+8*k+2*f.length),T.writeUInt16(0),T.writeUInt16(Z),T.writeUInt16(G),T.writeUInt16(m),T.writeUInt16(J),sA=0,U=g.length;sA<U;sA++)n=g[sA],T.writeUInt16(n);for(T.writeUInt16(0),fA=0,M=S.length;fA<M;fA++)n=S[fA],T.writeUInt16(n);for(yA=0,j=o.length;yA<j;yA++)a=o[yA],T.writeUInt16(a);for(xA=0,$=X.length;xA<$;xA++)_=X[xA],T.writeUInt16(_);for(NA=0,AA=f.length;NA<AA;NA++)y=f[NA],T.writeUInt16(y);return{charMap:r,subtable:T.data,maxGlyphID:N+1}}},t}(),dm=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return on(t,Gr),t.prototype.tag="cmap",t.prototype.parse=function(A){var e,r,n;for(A.pos=this.offset,this.version=A.readUInt16(),n=A.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)e=new Ig(A,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return!0},t.encode=function(A,e){var r,n;return e==null&&(e="macroman"),r=Ig.encode(A,e),(n=new ui).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},t}(),WC=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return on(t,Gr),t.prototype.tag="hhea",t.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.ascender=A.readShort(),this.decender=A.readShort(),this.lineGap=A.readShort(),this.advanceWidthMax=A.readShort(),this.minLeftSideBearing=A.readShort(),this.minRightSideBearing=A.readShort(),this.xMaxExtent=A.readShort(),this.caretSlopeRise=A.readShort(),this.caretSlopeRun=A.readShort(),this.caretOffset=A.readShort(),A.pos+=8,this.metricDataFormat=A.readShort(),this.numberOfMetrics=A.readUInt16()},t}(),zC=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return on(t,Gr),t.prototype.tag="OS/2",t.prototype.parse=function(A){if(A.pos=this.offset,this.version=A.readUInt16(),this.averageCharWidth=A.readShort(),this.weightClass=A.readUInt16(),this.widthClass=A.readUInt16(),this.type=A.readShort(),this.ySubscriptXSize=A.readShort(),this.ySubscriptYSize=A.readShort(),this.ySubscriptXOffset=A.readShort(),this.ySubscriptYOffset=A.readShort(),this.ySuperscriptXSize=A.readShort(),this.ySuperscriptYSize=A.readShort(),this.ySuperscriptXOffset=A.readShort(),this.ySuperscriptYOffset=A.readShort(),this.yStrikeoutSize=A.readShort(),this.yStrikeoutPosition=A.readShort(),this.familyClass=A.readShort(),this.panose=function(){var e,r;for(r=[],e=0;e<10;++e)r.push(A.readByte());return r}(),this.charRange=function(){var e,r;for(r=[],e=0;e<4;++e)r.push(A.readInt());return r}(),this.vendorID=A.readString(4),this.selection=A.readShort(),this.firstCharIndex=A.readShort(),this.lastCharIndex=A.readShort(),this.version>0&&(this.ascent=A.readShort(),this.descent=A.readShort(),this.lineGap=A.readShort(),this.winAscent=A.readShort(),this.winDescent=A.readShort(),this.codePageRange=function(){var e,r;for(r=[],e=0;e<2;e=++e)r.push(A.readInt());return r}(),this.version>1))return this.xHeight=A.readShort(),this.capHeight=A.readShort(),this.defaultChar=A.readShort(),this.breakChar=A.readShort(),this.maxContext=A.readShort()},t}(),$C=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return on(t,Gr),t.prototype.tag="post",t.prototype.parse=function(A){var e,r,n;switch(A.pos=this.offset,this.format=A.readInt(),this.italicAngle=A.readInt(),this.underlinePosition=A.readShort(),this.underlineThickness=A.readShort(),this.isFixedPitch=A.readInt(),this.minMemType42=A.readInt(),this.maxMemType42=A.readInt(),this.minMemType1=A.readInt(),this.maxMemType1=A.readInt(),this.format){case 65536:case 196608:break;case 131072:var i;for(r=A.readUInt16(),this.glyphNameIndex=[],i=0;0<=r?i<r:i>r;i=0<=r?++i:--i)this.glyphNameIndex.push(A.readUInt16());for(this.names=[],n=[];A.pos<this.offset+this.length;)e=A.readByte(),n.push(this.names.push(A.readString(e)));return n;case 151552:return r=A.readUInt16(),this.offsets=A.read(r);case 262144:return this.map=(function(){var s,a,o;for(o=[],i=s=0,a=this.file.maxp.numGlyphs;0<=a?s<a:s>a;i=0<=a?++s:--s)o.push(A.readUInt32());return o}).call(this)}},t}(),XC=function(t,A){this.raw=t,this.length=t.length,this.platformID=A.platformID,this.encodingID=A.encodingID,this.languageID=A.languageID},JC=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return on(t,Gr),t.prototype.tag="name",t.prototype.parse=function(A){var e,r,n,i,s,a,o,c,h,g,m;for(A.pos=this.offset,A.readShort(),e=A.readShort(),a=A.readShort(),r=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)r.push({platformID:A.readShort(),encodingID:A.readShort(),languageID:A.readShort(),nameID:A.readShort(),length:A.readShort(),offset:this.offset+a+A.readShort()});for(o={},i=h=0,g=r.length;h<g;i=++h)n=r[i],A.pos=n.offset,c=A.readString(n.length),s=new XC(c,n),o[m=n.nameID]==null&&(o[m]=[]),o[n.nameID].push(s);this.strings=o,this.copyright=o[0],this.fontFamily=o[1],this.fontSubfamily=o[2],this.uniqueSubfamily=o[3],this.fontName=o[4],this.version=o[5];try{this.postscriptName=o[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=o[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=o[7],this.manufacturer=o[8],this.designer=o[9],this.description=o[10],this.vendorUrl=o[11],this.designerUrl=o[12],this.license=o[13],this.licenseUrl=o[14],this.preferredFamily=o[15],this.preferredSubfamily=o[17],this.compatibleFull=o[18],this.sampleText=o[19]},t}(),YC=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return on(t,Gr),t.prototype.tag="maxp",t.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.numGlyphs=A.readUInt16(),this.maxPoints=A.readUInt16(),this.maxContours=A.readUInt16(),this.maxCompositePoints=A.readUInt16(),this.maxComponentContours=A.readUInt16(),this.maxZones=A.readUInt16(),this.maxTwilightPoints=A.readUInt16(),this.maxStorage=A.readUInt16(),this.maxFunctionDefs=A.readUInt16(),this.maxInstructionDefs=A.readUInt16(),this.maxStackElements=A.readUInt16(),this.maxSizeOfInstructions=A.readUInt16(),this.maxComponentElements=A.readUInt16(),this.maxComponentDepth=A.readUInt16()},t}(),ZC=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return on(t,Gr),t.prototype.tag="hmtx",t.prototype.parse=function(A){var e,r,n,i,s,a,o;for(A.pos=this.offset,this.metrics=[],e=0,a=this.file.hhea.numberOfMetrics;0<=a?e<a:e>a;e=0<=a?++e:--e)this.metrics.push({advance:A.readUInt16(),lsb:A.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var c,h;for(h=[],e=c=0;0<=n?c<n:c>n;e=0<=n?++c:--c)h.push(A.readInt16());return h}(),this.widths=(function(){var c,h,g,m;for(m=[],c=0,h=(g=this.metrics).length;c<h;c++)i=g[c],m.push(i.advance);return m}).call(this),r=this.widths[this.widths.length-1],o=[],e=s=0;0<=n?s<n:s>n;e=0<=n?++s:--s)o.push(this.widths.push(r));return o},t.prototype.forGlyph=function(A){return A in this.metrics?this.metrics[A]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[A-this.metrics.length]}},t}(),gm=[].slice,Ab=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return on(t,Gr),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(A){var e,r,n,i,s,a,o,c,h,g;return A in this.cache?this.cache[A]:(i=this.file.loca,e=this.file.contents,r=i.indexOf(A),(n=i.lengthOf(A))===0?this.cache[A]=null:(e.pos=this.offset+r,s=(a=new ui(e.read(n))).readShort(),c=a.readShort(),g=a.readShort(),o=a.readShort(),h=a.readShort(),this.cache[A]=s===-1?new tb(a,c,g,o,h):new eb(a,s,c,g,o,h),this.cache[A]))},t.prototype.encode=function(A,e,r){var n,i,s,a,o;for(s=[],i=[],a=0,o=e.length;a<o;a++)n=A[e[a]],i.push(s.length),n&&(s=s.concat(n.encode(r)));return i.push(s.length),{table:s,offsets:i}},t}(),eb=function(){function t(A,e,r,n,i,s){this.raw=A,this.numberOfContours=e,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=s,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),tb=function(){function t(A,e,r,n,i){var s,a;for(this.raw=A,this.xMin=e,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;a=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&a;)s.pos+=1&a?4:2,128&a?s.pos+=8:64&a?s.pos+=4:8&a&&(s.pos+=2)}return t.prototype.encode=function(){var A,e,r;for(e=new ui(gm.call(this.raw.data)),A=0,r=this.glyphIDs.length;A<r;++A)e.pos=this.glyphOffsets[A];return e.data},t}(),rb=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return on(t,Gr),t.prototype.tag="loca",t.prototype.parse=function(A){var e,r;return A.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=e===0?(function(){var n,i;for(i=[],r=0,n=this.length;r<n;r+=2)i.push(2*A.readUInt16());return i}).call(this):(function(){var n,i;for(i=[],r=0,n=this.length;r<n;r+=4)i.push(A.readUInt32());return i}).call(this)},t.prototype.indexOf=function(A){return this.offsets[A]},t.prototype.lengthOf=function(A){return this.offsets[A+1]-this.offsets[A]},t.prototype.encode=function(A,e){for(var r=new Uint32Array(this.offsets.length),n=0,i=0,s=0;s<r.length;++s)if(r[s]=n,i<e.length&&e[i]==s){++i,r[s]=n;var a=this.offsets[s],o=this.offsets[s+1]-a;o>0&&(n+=o)}for(var c=new Array(4*r.length),h=0;h<r.length;++h)c[4*h+3]=255&r[h],c[4*h+2]=(65280&r[h])>>8,c[4*h+1]=(16711680&r[h])>>16,c[4*h]=(4278190080&r[h])>>24;return c},t}(),nb=function(){function t(A){this.font=A,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var A,e,r,n,i;for(e in n=this.font.cmap.tables[0].codeMap,A={},i=this.subset)r=i[e],A[e]=n[r];return A},t.prototype.glyphsFor=function(A){var e,r,n,i,s,a,o;for(n={},s=0,a=A.length;s<a;s++)n[i=A[s]]=this.font.glyf.glyphFor(i);for(i in e=[],n)(r=n[i])!=null&&r.compound&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(i in o=this.glyphsFor(e))r=o[i],n[i]=r;return n},t.prototype.encode=function(A,e){var r,n,i,s,a,o,c,h,g,m,f,w,y,F,v;for(n in r=dm.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(A),f={0:0},v=r.charMap)f[(o=v[n]).old]=o.new;for(w in m=r.maxGlyphID,s)w in f||(f[w]=m++);return h=function(L){var N,_;for(N in _={},L)_[L[N]]=N;return _}(f),g=Object.keys(h).sort(function(L,N){return L-N}),y=function(){var L,N,_;for(_=[],L=0,N=g.length;L<N;L++)a=g[L],_.push(h[a]);return _}(),i=this.font.glyf.encode(s,y,f),c=this.font.loca.encode(i.offsets,y),F={cmap:this.font.cmap.raw(),glyf:i.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(F["OS/2"]=this.font.os2.raw()),this.font.directory.encode(F)},t}();zA.API.PDFObject=function(){var t;function A(){}return t=function(e,r){return(Array(r+1).join("0")+e).slice(-r)},A.convert=function(e){var r,n,i,s;if(Array.isArray(e))return"["+function(){var a,o,c;for(c=[],a=0,o=e.length;a<o;a++)r=e[a],c.push(A.convert(r));return c}().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e!=null&&e.isString)return"("+e+")";if(e instanceof Date)return"(D:"+t(e.getUTCFullYear(),4)+t(e.getUTCMonth(),2)+t(e.getUTCDate(),2)+t(e.getUTCHours(),2)+t(e.getUTCMinutes(),2)+t(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(n in i=["<<"],e)s=e[n],i.push("/"+n+" "+A.convert(s));return i.push(">>"),i.join(`
325
+ end`};A.events.push(["putFont",function(i){(function(s){var a=s.font,o=s.out,c=s.newObject,h=s.putStream;if(a.metadata instanceof t.API.TTFFont&&a.encoding==="Identity-H"){for(var d=a.metadata.Unicode.widths,m=a.metadata.subset.encode(a.metadata.glyIdsUsed,1),f="",w=0;w<m.length;w++)f+=String.fromCharCode(m[w]);var y=c();h({data:f,addLength1:!0,objectId:y}),o("endobj");var F=c();h({data:r(a.metadata.toUnicode),addLength1:!0,objectId:F}),o("endobj");var v=c();o("<<"),o("/Type /FontDescriptor"),o("/FontName /"+gs(a.fontName)),o("/FontFile2 "+y+" 0 R"),o("/FontBBox "+t.API.PDFObject.convert(a.metadata.bbox)),o("/Flags "+a.metadata.flags),o("/StemV "+a.metadata.stemV),o("/ItalicAngle "+a.metadata.italicAngle),o("/Ascent "+a.metadata.ascender),o("/Descent "+a.metadata.decender),o("/CapHeight "+a.metadata.capHeight),o(">>"),o("endobj");var L=c();o("<<"),o("/Type /Font"),o("/BaseFont /"+gs(a.fontName)),o("/FontDescriptor "+v+" 0 R"),o("/W "+t.API.PDFObject.convert(d)),o("/CIDToGIDMap /Identity"),o("/DW 1000"),o("/Subtype /CIDFontType2"),o("/CIDSystemInfo"),o("<<"),o("/Supplement 0"),o("/Registry (Adobe)"),o("/Ordering ("+a.encoding+")"),o(">>"),o(">>"),o("endobj"),a.objectNumber=c(),o("<<"),o("/Type /Font"),o("/Subtype /Type0"),o("/ToUnicode "+F+" 0 R"),o("/BaseFont /"+gs(a.fontName)),o("/Encoding /"+a.encoding),o("/DescendantFonts ["+L+" 0 R]"),o(">>"),o("endobj"),a.isAlreadyPutted=!0}})(i)}]),A.events.push(["putFont",function(i){(function(s){var a=s.font,o=s.out,c=s.newObject,h=s.putStream;if(a.metadata instanceof t.API.TTFFont&&a.encoding==="WinAnsiEncoding"){for(var d=a.metadata.rawData,m="",f=0;f<d.length;f++)m+=String.fromCharCode(d[f]);var w=c();h({data:m,addLength1:!0,objectId:w}),o("endobj");var y=c();h({data:r(a.metadata.toUnicode),addLength1:!0,objectId:y}),o("endobj");var F=c();o("<<"),o("/Descent "+a.metadata.decender),o("/CapHeight "+a.metadata.capHeight),o("/StemV "+a.metadata.stemV),o("/Type /FontDescriptor"),o("/FontFile2 "+w+" 0 R"),o("/Flags 96"),o("/FontBBox "+t.API.PDFObject.convert(a.metadata.bbox)),o("/FontName /"+gs(a.fontName)),o("/ItalicAngle "+a.metadata.italicAngle),o("/Ascent "+a.metadata.ascender),o(">>"),o("endobj"),a.objectNumber=c();for(var v=0;v<a.metadata.hmtx.widths.length;v++)a.metadata.hmtx.widths[v]=parseInt(a.metadata.hmtx.widths[v]*(1e3/a.metadata.head.unitsPerEm));o("<</Subtype/TrueType/Type/Font/ToUnicode "+y+" 0 R/BaseFont/"+gs(a.fontName)+"/FontDescriptor "+F+" 0 R/Encoding/"+a.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(a.metadata.hmtx.widths)+">>"),o("endobj"),a.isAlreadyPutted=!0}})(i)}]);var n=function(i){var s,a=i.text||"",o=i.x,c=i.y,h=i.options||{},d=i.mutex||{},m=d.pdfEscape,f=d.activeFontKey,w=d.fonts,y=f,F="",v=0,L="",_=w[y].encoding;if(w[y].encoding!=="Identity-H")return{text:a,x:o,y:c,options:h,mutex:d};for(L=a,y=f,Array.isArray(a)&&(L=a[0]),v=0;v<L.length;v+=1)w[y].metadata.hasOwnProperty("cmap")&&(s=w[y].metadata.cmap.unicode.codeMap[L[v].charCodeAt(0)]),s||L[v].charCodeAt(0)<256&&w[y].metadata.hasOwnProperty("Unicode")?F+=L[v]:F+="";var S="";return parseInt(y.slice(1))<14||_==="WinAnsiEncoding"?S=m(F,y).split("").map(function(V){return V.charCodeAt(0).toString(16)}).join(""):_==="Identity-H"&&(S=e(F,w[y])),d.isHex=!0,{text:S,x:o,y:c,options:h,mutex:d}};A.events.push(["postProcessText",function(i){var s=i.text||"",a=[],o={text:s,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(s)){var c=0;for(c=0;c<s.length;c+=1)Array.isArray(s[c])&&s[c].length===3?a.push([n(Object.assign({},o,{text:s[c][0]})).text,s[c][1],s[c][2]]):a.push(n(Object.assign({},o,{text:s[c]})).text);i.text=a}else i.text=n(Object.assign({},o,{text:s})).text}])}(Ae),function(t){var A=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(e){return A.call(this),this.internal.vFS[e]!==void 0},t.addFileToVFS=function(e,r){return A.call(this),this.internal.vFS[e]=r,this},t.getFileFromVFS=function(e){return A.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}}(Ae.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(r){var n,i,s,a,o,c,h,d=A,m=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],f=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],w={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},y={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},F=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],v=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),L=!1,_=0;this.__bidiEngine__={};var S=function(x){var P=x.charCodeAt(),j=P>>8,D=y[j];return D!==void 0?d[256*D+(255&P)]:j===252||j===253?"AL":v.test(j)?"L":j===8?"R":"N"},V=function(x){for(var P,j=0;j<x.length;j++){if((P=S(x.charAt(j)))==="L")return!1;if(P==="R")return!0}return!1},z=function(x,P,j,D){var J,lA,fA,aA,dA=P[D];switch(dA){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":L=!1;break;case"N":case"AN":break;case"EN":L&&(dA="AN");break;case"AL":L=!0,dA="R";break;case"WS":case"BN":dA="N";break;case"CS":D<1||D+1>=P.length||(J=j[D-1])!=="EN"&&J!=="AN"||(lA=P[D+1])!=="EN"&&lA!=="AN"?dA="N":L&&(lA="AN"),dA=lA===J?lA:"N";break;case"ES":dA=(J=D>0?j[D-1]:"B")==="EN"&&D+1<P.length&&P[D+1]==="EN"?"EN":"N";break;case"ET":if(D>0&&j[D-1]==="EN"){dA="EN";break}if(L){dA="N";break}for(fA=D+1,aA=P.length;fA<aA&&P[fA]==="ET";)fA++;dA=fA<aA&&P[fA]==="EN"?"EN":"N";break;case"NSM":if(s&&!a){for(aA=P.length,fA=D+1;fA<aA&&P[fA]==="NSM";)fA++;if(fA<aA){var QA=x[D],hA=QA>=1425&&QA<=2303||QA===64286;if(J=P[fA],hA&&(J==="R"||J==="AL")){dA="R";break}}}dA=D<1||(J=P[D-1])==="B"?"N":j[D-1];break;case"B":L=!1,n=!0,dA=_;break;case"S":i=!0,dA="N"}return dA},X=function(x,P,j){var D=x.split("");return j&&q(D,j,{hiLevel:_}),D.reverse(),P&&P.reverse(),D.join("")},q=function(x,P,j){var D,J,lA,fA,aA,dA=-1,QA=x.length,hA=0,U=[],R=_?f:m,G=[];for(L=!1,n=!1,i=!1,J=0;J<QA;J++)G[J]=S(x[J]);for(lA=0;lA<QA;lA++){if(aA=hA,U[lA]=z(x,G,U,lA),D=240&(hA=R[aA][w[U[lA]]]),hA&=15,P[lA]=fA=R[hA][5],D>0)if(D===16){for(J=dA;J<lA;J++)P[J]=1;dA=-1}else dA=-1;if(R[hA][6])dA===-1&&(dA=lA);else if(dA>-1){for(J=dA;J<lA;J++)P[J]=fA;dA=-1}G[lA]==="B"&&(P[lA]=0),j.hiLevel|=fA}i&&function(W,eA,nA){for(var gA=0;gA<nA;gA++)if(W[gA]==="S"){eA[gA]=_;for(var pA=gA-1;pA>=0&&W[pA]==="WS";pA--)eA[pA]=_}}(G,P,QA)},k=function(x,P,j,D,J){if(!(J.hiLevel<x)){if(x===1&&_===1&&!n)return P.reverse(),void(j&&j.reverse());for(var lA,fA,aA,dA,QA=P.length,hA=0;hA<QA;){if(D[hA]>=x){for(aA=hA+1;aA<QA&&D[aA]>=x;)aA++;for(dA=hA,fA=aA-1;dA<fA;dA++,fA--)lA=P[dA],P[dA]=P[fA],P[fA]=lA,j&&(lA=j[dA],j[dA]=j[fA],j[fA]=lA);hA=aA}hA++}}},Y=function(x,P,j){var D=x.split(""),J={hiLevel:_};return j||(j=[]),q(D,j,J),function(lA,fA,aA){if(aA.hiLevel!==0&&h)for(var dA,QA=0;QA<lA.length;QA++)fA[QA]===1&&(dA=F.indexOf(lA[QA]))>=0&&(lA[QA]=F[dA+1])}(D,j,J),k(2,D,P,j,J),k(1,D,P,j,J),D.join("")};return this.__bidiEngine__.doBidiReorder=function(x,P,j){if(function(J,lA){if(lA)for(var fA=0;fA<J.length;fA++)lA[fA]=fA;a===void 0&&(a=V(J)),c===void 0&&(c=V(J))}(x,P),s||!o||c)if(s&&o&&a^c)_=a?1:0,x=X(x,P,j);else if(!s&&o&&c)_=a?1:0,x=Y(x,P,j),x=X(x,P);else if(!s||a||o||c){if(s&&!o&&a^c)x=X(x,P),a?(_=0,x=Y(x,P,j)):(_=1,x=Y(x,P,j),x=X(x,P));else if(s&&a&&!o&&c)_=1,x=Y(x,P,j),x=X(x,P);else if(!s&&!o&&a^c){var D=h;a?(_=1,x=Y(x,P,j),_=0,h=!1,x=Y(x,P,j),h=D):(_=0,x=Y(x,P,j),x=X(x,P),_=1,h=!1,x=Y(x,P,j),h=D,x=X(x,P))}}else _=0,x=Y(x,P,j);else _=a?1:0,x=Y(x,P,j);return x},this.__bidiEngine__.setOptions=function(x){x&&(s=x.isInputVisual,o=x.isOutputVisual,a=x.isInputRtl,c=x.isOutputRtl,h=x.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var A=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],e=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(r){var n=r.text;r.x,r.y;var i=r.options||{};r.mutex,i.lang;var s=[];if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,e.setOptions(i),Object.prototype.toString.call(n)==="[object Array]"){var a=0;for(s=[],a=0;a<n.length;a+=1)Object.prototype.toString.call(n[a])==="[object Array]"?s.push([e.doBidiReorder(n[a][0]),n[a][1],n[a][2]]):s.push([e.doBidiReorder(n[a])]);r.text=s}else r.text=e.doBidiReorder(n);e.setOptions({isInputVisual:!0})}])}(Ae),Ae.API.TTFFont=function(){function t(A){var e;if(this.rawData=A,e=this.contents=new hi(A),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new nC(this),this.registerTTF()}return t.open=function(A){return new t(A)},t.prototype.parse=function(){return this.directory=new Gb(this.contents),this.head=new Vb(this),this.name=new Jb(this),this.cmap=new mm(this),this.toUnicode={},this.hhea=new Wb(this),this.maxp=new Yb(this),this.hmtx=new Zb(this),this.post=new $b(this),this.os2=new zb(this),this.loca=new rC(this),this.glyf=new AC(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var A,e,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var s,a,o,c;for(c=[],s=0,a=(o=this.bbox).length;s<a;s++)A=o[s],c.push(Math.round(A*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(e=n>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(A){var e;return((e=this.cmap.unicode)!=null?e.codeMap[A]:void 0)||0},t.prototype.widthOfGlyph=function(A){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(A).advance*e},t.prototype.widthOfString=function(A,e,r){var n,i,s,a;for(s=0,i=0,a=(A=""+A).length;0<=a?i<a:i>a;i=0<=a?++i:--i)n=A.charCodeAt(i),s+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/e)||0;return s*(e/1e3)},t.prototype.lineHeight=function(A,e){var r;return e==null&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*A},t}();var Vr,hi=function(){function t(A){this.data=A??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(A){return this.data[this.pos++]=A},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(A){return this.writeByte(A>>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A)},t.prototype.readInt32=function(){var A;return(A=this.readUInt32())>=2147483648?A-4294967296:A},t.prototype.writeInt32=function(A){return A<0&&(A+=4294967296),this.writeUInt32(A)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(A){return this.writeByte(A>>8&255),this.writeByte(255&A)},t.prototype.readInt16=function(){var A;return(A=this.readUInt16())>=32768?A-65536:A},t.prototype.writeInt16=function(A){return A<0&&(A+=65536),this.writeUInt16(A)},t.prototype.readString=function(A){var e,r;for(r=[],e=0;0<=A?e<A:e>A;e=0<=A?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(A){var e,r,n;for(n=[],e=0,r=A.length;0<=r?e<r:e>r;e=0<=r?++e:--e)n.push(this.writeByte(A.charCodeAt(e)));return n},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(A){return this.writeInt16(A)},t.prototype.readLongLong=function(){var A,e,r,n,i,s,a,o;return A=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),s=this.readByte(),a=this.readByte(),o=this.readByte(),128&A?-1*(72057594037927940*(255^A)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^s)+256*(255^a)+(255^o)+1):72057594037927940*A+281474976710656*e+1099511627776*r+4294967296*n+16777216*i+65536*s+256*a+o},t.prototype.writeLongLong=function(A){var e,r;return e=Math.floor(A/4294967296),r=4294967295&A,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(A){return this.writeInt32(A)},t.prototype.read=function(A){var e,r;for(e=[],r=0;0<=A?r<A:r>A;r=0<=A?++r:--r)e.push(this.readByte());return e},t.prototype.write=function(A){var e,r,n,i;for(i=[],r=0,n=A.length;r<n;r++)e=A[r],i.push(this.writeByte(e));return i},t}(),Gb=function(){var t;function A(e){var r,n,i;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,i=this.tableCount;0<=i?n<i:n>i;n=0<=i?++n:--n)r={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[r.tag]=r}return A.prototype.encode=function(e){var r,n,i,s,a,o,c,h,d,m,f,w,y;for(y in f=Object.keys(e).length,o=Math.log(2),d=16*Math.floor(Math.log(f)/o),s=Math.floor(d/o),h=16*f-d,(n=new hi).writeInt(this.scalarType),n.writeShort(f),n.writeShort(d),n.writeShort(s),n.writeShort(h),i=16*f,c=n.pos+i,a=null,w=[],e)for(m=e[y],n.writeString(y),n.writeInt(t(m)),n.writeInt(c),n.writeInt(m.length),w=w.concat(m),y==="head"&&(a=c),c+=m.length;c%4;)w.push(0),c++;return n.write(w),r=2981146554-t(n.data),n.pos=a+8,n.writeUInt32(r),n.data},t=function(e){var r,n,i,s;for(e=Bm.call(e);e.length%4;)e.push(0);for(i=new hi(e),n=0,r=0,s=e.length;r<s;r=r+=4)n+=i.readUInt32();return 4294967295&n},A}(),qb={}.hasOwnProperty,cn=function(t,A){for(var e in A)qb.call(A,e)&&(t[e]=A[e]);function r(){this.constructor=t}return r.prototype=A.prototype,t.prototype=new r,t.__super__=A.prototype,t};Vr=function(){function t(A){var e;this.file=A,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var Vb=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return cn(t,Vr),t.prototype.tag="head",t.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.revision=A.readInt(),this.checkSumAdjustment=A.readInt(),this.magicNumber=A.readInt(),this.flags=A.readShort(),this.unitsPerEm=A.readShort(),this.created=A.readLongLong(),this.modified=A.readLongLong(),this.xMin=A.readShort(),this.yMin=A.readShort(),this.xMax=A.readShort(),this.yMax=A.readShort(),this.macStyle=A.readShort(),this.lowestRecPPEM=A.readShort(),this.fontDirectionHint=A.readShort(),this.indexToLocFormat=A.readShort(),this.glyphDataFormat=A.readShort()},t.prototype.encode=function(A){var e;return(e=new hi).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(A),e.writeShort(this.glyphDataFormat),e.data},t}(),Hg=function(){function t(A,e){var r,n,i,s,a,o,c,h,d,m,f,w,y,F,v,L,_;switch(this.platformID=A.readUInt16(),this.encodingID=A.readShort(),this.offset=e+A.readInt(),d=A.pos,A.pos=this.offset,this.format=A.readUInt16(),this.length=A.readUInt16(),this.language=A.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(o=0;o<256;++o)this.codeMap[o]=A.readByte();break;case 4:for(f=A.readUInt16(),m=f/2,A.pos+=6,i=function(){var S,V;for(V=[],o=S=0;0<=m?S<m:S>m;o=0<=m?++S:--S)V.push(A.readUInt16());return V}(),A.pos+=2,y=function(){var S,V;for(V=[],o=S=0;0<=m?S<m:S>m;o=0<=m?++S:--S)V.push(A.readUInt16());return V}(),c=function(){var S,V;for(V=[],o=S=0;0<=m?S<m:S>m;o=0<=m?++S:--S)V.push(A.readUInt16());return V}(),h=function(){var S,V;for(V=[],o=S=0;0<=m?S<m:S>m;o=0<=m?++S:--S)V.push(A.readUInt16());return V}(),n=(this.length-A.pos+this.offset)/2,a=function(){var S,V;for(V=[],o=S=0;0<=n?S<n:S>n;o=0<=n?++S:--S)V.push(A.readUInt16());return V}(),o=v=0,_=i.length;v<_;o=++v)for(F=i[o],r=L=w=y[o];w<=F?L<=F:L>=F;r=w<=F?++L:--L)h[o]===0?s=r+c[o]:(s=a[h[o]/2+(r-w)-(m-o)]||0)!==0&&(s+=c[o]),this.codeMap[r]=65535&s}A.pos=d}return t.encode=function(A,e){var r,n,i,s,a,o,c,h,d,m,f,w,y,F,v,L,_,S,V,z,X,q,k,Y,x,P,j,D,J,lA,fA,aA,dA,QA,hA,U,R,G,W,eA,nA,gA,pA,wA,xA,DA;switch(D=new hi,s=Object.keys(A).sort(function(HA,WA){return HA-WA}),e){case"macroman":for(y=0,F=function(){var HA=[];for(w=0;w<256;++w)HA.push(0);return HA}(),L={0:0},i={},J=0,dA=s.length;J<dA;J++)L[pA=A[n=s[J]]]==null&&(L[pA]=++y),i[n]={old:A[n],new:L[A[n]]},F[n]=L[A[n]];return D.writeUInt16(1),D.writeUInt16(0),D.writeUInt32(12),D.writeUInt16(0),D.writeUInt16(262),D.writeUInt16(0),D.write(F),{charMap:i,subtable:D.data,maxGlyphID:y+1};case"unicode":for(P=[],d=[],_=0,L={},r={},v=c=null,lA=0,QA=s.length;lA<QA;lA++)L[V=A[n=s[lA]]]==null&&(L[V]=++_),r[n]={old:V,new:L[V]},a=L[V]-n,v!=null&&a===c||(v&&d.push(v),P.push(n),c=a),v=n;for(v&&d.push(v),d.push(65535),P.push(65535),Y=2*(k=P.length),q=2*Math.pow(Math.log(k)/Math.LN2,2),m=Math.log(q/2)/Math.LN2,X=2*k-q,o=[],z=[],f=[],w=fA=0,hA=P.length;fA<hA;w=++fA){if(x=P[w],h=d[w],x===65535){o.push(0),z.push(0);break}if(x-(j=r[x].new)>=32768)for(o.push(0),z.push(2*(f.length+k-w)),n=aA=x;x<=h?aA<=h:aA>=h;n=x<=h?++aA:--aA)f.push(r[n].new);else o.push(j-x),z.push(0)}for(D.writeUInt16(3),D.writeUInt16(1),D.writeUInt32(12),D.writeUInt16(4),D.writeUInt16(16+8*k+2*f.length),D.writeUInt16(0),D.writeUInt16(Y),D.writeUInt16(q),D.writeUInt16(m),D.writeUInt16(X),nA=0,U=d.length;nA<U;nA++)n=d[nA],D.writeUInt16(n);for(D.writeUInt16(0),gA=0,R=P.length;gA<R;gA++)n=P[gA],D.writeUInt16(n);for(wA=0,G=o.length;wA<G;wA++)a=o[wA],D.writeUInt16(a);for(xA=0,W=z.length;xA<W;xA++)S=z[xA],D.writeUInt16(S);for(DA=0,eA=f.length;DA<eA;DA++)y=f[DA],D.writeUInt16(y);return{charMap:r,subtable:D.data,maxGlyphID:_+1}}},t}(),mm=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return cn(t,Vr),t.prototype.tag="cmap",t.prototype.parse=function(A){var e,r,n;for(A.pos=this.offset,this.version=A.readUInt16(),n=A.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)e=new Hg(A,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return!0},t.encode=function(A,e){var r,n;return e==null&&(e="macroman"),r=Hg.encode(A,e),(n=new hi).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},t}(),Wb=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return cn(t,Vr),t.prototype.tag="hhea",t.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.ascender=A.readShort(),this.decender=A.readShort(),this.lineGap=A.readShort(),this.advanceWidthMax=A.readShort(),this.minLeftSideBearing=A.readShort(),this.minRightSideBearing=A.readShort(),this.xMaxExtent=A.readShort(),this.caretSlopeRise=A.readShort(),this.caretSlopeRun=A.readShort(),this.caretOffset=A.readShort(),A.pos+=8,this.metricDataFormat=A.readShort(),this.numberOfMetrics=A.readUInt16()},t}(),zb=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return cn(t,Vr),t.prototype.tag="OS/2",t.prototype.parse=function(A){if(A.pos=this.offset,this.version=A.readUInt16(),this.averageCharWidth=A.readShort(),this.weightClass=A.readUInt16(),this.widthClass=A.readUInt16(),this.type=A.readShort(),this.ySubscriptXSize=A.readShort(),this.ySubscriptYSize=A.readShort(),this.ySubscriptXOffset=A.readShort(),this.ySubscriptYOffset=A.readShort(),this.ySuperscriptXSize=A.readShort(),this.ySuperscriptYSize=A.readShort(),this.ySuperscriptXOffset=A.readShort(),this.ySuperscriptYOffset=A.readShort(),this.yStrikeoutSize=A.readShort(),this.yStrikeoutPosition=A.readShort(),this.familyClass=A.readShort(),this.panose=function(){var e,r;for(r=[],e=0;e<10;++e)r.push(A.readByte());return r}(),this.charRange=function(){var e,r;for(r=[],e=0;e<4;++e)r.push(A.readInt());return r}(),this.vendorID=A.readString(4),this.selection=A.readShort(),this.firstCharIndex=A.readShort(),this.lastCharIndex=A.readShort(),this.version>0&&(this.ascent=A.readShort(),this.descent=A.readShort(),this.lineGap=A.readShort(),this.winAscent=A.readShort(),this.winDescent=A.readShort(),this.codePageRange=function(){var e,r;for(r=[],e=0;e<2;e=++e)r.push(A.readInt());return r}(),this.version>1))return this.xHeight=A.readShort(),this.capHeight=A.readShort(),this.defaultChar=A.readShort(),this.breakChar=A.readShort(),this.maxContext=A.readShort()},t}(),$b=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return cn(t,Vr),t.prototype.tag="post",t.prototype.parse=function(A){var e,r,n;switch(A.pos=this.offset,this.format=A.readInt(),this.italicAngle=A.readInt(),this.underlinePosition=A.readShort(),this.underlineThickness=A.readShort(),this.isFixedPitch=A.readInt(),this.minMemType42=A.readInt(),this.maxMemType42=A.readInt(),this.minMemType1=A.readInt(),this.maxMemType1=A.readInt(),this.format){case 65536:case 196608:break;case 131072:var i;for(r=A.readUInt16(),this.glyphNameIndex=[],i=0;0<=r?i<r:i>r;i=0<=r?++i:--i)this.glyphNameIndex.push(A.readUInt16());for(this.names=[],n=[];A.pos<this.offset+this.length;)e=A.readByte(),n.push(this.names.push(A.readString(e)));return n;case 151552:return r=A.readUInt16(),this.offsets=A.read(r);case 262144:return this.map=(function(){var s,a,o;for(o=[],i=s=0,a=this.file.maxp.numGlyphs;0<=a?s<a:s>a;i=0<=a?++s:--s)o.push(A.readUInt32());return o}).call(this)}},t}(),Xb=function(t,A){this.raw=t,this.length=t.length,this.platformID=A.platformID,this.encodingID=A.encodingID,this.languageID=A.languageID},Jb=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return cn(t,Vr),t.prototype.tag="name",t.prototype.parse=function(A){var e,r,n,i,s,a,o,c,h,d,m;for(A.pos=this.offset,A.readShort(),e=A.readShort(),a=A.readShort(),r=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)r.push({platformID:A.readShort(),encodingID:A.readShort(),languageID:A.readShort(),nameID:A.readShort(),length:A.readShort(),offset:this.offset+a+A.readShort()});for(o={},i=h=0,d=r.length;h<d;i=++h)n=r[i],A.pos=n.offset,c=A.readString(n.length),s=new Xb(c,n),o[m=n.nameID]==null&&(o[m]=[]),o[n.nameID].push(s);this.strings=o,this.copyright=o[0],this.fontFamily=o[1],this.fontSubfamily=o[2],this.uniqueSubfamily=o[3],this.fontName=o[4],this.version=o[5];try{this.postscriptName=o[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=o[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=o[7],this.manufacturer=o[8],this.designer=o[9],this.description=o[10],this.vendorUrl=o[11],this.designerUrl=o[12],this.license=o[13],this.licenseUrl=o[14],this.preferredFamily=o[15],this.preferredSubfamily=o[17],this.compatibleFull=o[18],this.sampleText=o[19]},t}(),Yb=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return cn(t,Vr),t.prototype.tag="maxp",t.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.numGlyphs=A.readUInt16(),this.maxPoints=A.readUInt16(),this.maxContours=A.readUInt16(),this.maxCompositePoints=A.readUInt16(),this.maxComponentContours=A.readUInt16(),this.maxZones=A.readUInt16(),this.maxTwilightPoints=A.readUInt16(),this.maxStorage=A.readUInt16(),this.maxFunctionDefs=A.readUInt16(),this.maxInstructionDefs=A.readUInt16(),this.maxStackElements=A.readUInt16(),this.maxSizeOfInstructions=A.readUInt16(),this.maxComponentElements=A.readUInt16(),this.maxComponentDepth=A.readUInt16()},t}(),Zb=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return cn(t,Vr),t.prototype.tag="hmtx",t.prototype.parse=function(A){var e,r,n,i,s,a,o;for(A.pos=this.offset,this.metrics=[],e=0,a=this.file.hhea.numberOfMetrics;0<=a?e<a:e>a;e=0<=a?++e:--e)this.metrics.push({advance:A.readUInt16(),lsb:A.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var c,h;for(h=[],e=c=0;0<=n?c<n:c>n;e=0<=n?++c:--c)h.push(A.readInt16());return h}(),this.widths=(function(){var c,h,d,m;for(m=[],c=0,h=(d=this.metrics).length;c<h;c++)i=d[c],m.push(i.advance);return m}).call(this),r=this.widths[this.widths.length-1],o=[],e=s=0;0<=n?s<n:s>n;e=0<=n?++s:--s)o.push(this.widths.push(r));return o},t.prototype.forGlyph=function(A){return A in this.metrics?this.metrics[A]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[A-this.metrics.length]}},t}(),Bm=[].slice,AC=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return cn(t,Vr),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(A){var e,r,n,i,s,a,o,c,h,d;return A in this.cache?this.cache[A]:(i=this.file.loca,e=this.file.contents,r=i.indexOf(A),(n=i.lengthOf(A))===0?this.cache[A]=null:(e.pos=this.offset+r,s=(a=new hi(e.read(n))).readShort(),c=a.readShort(),d=a.readShort(),o=a.readShort(),h=a.readShort(),this.cache[A]=s===-1?new tC(a,c,d,o,h):new eC(a,s,c,d,o,h),this.cache[A]))},t.prototype.encode=function(A,e,r){var n,i,s,a,o;for(s=[],i=[],a=0,o=e.length;a<o;a++)n=A[e[a]],i.push(s.length),n&&(s=s.concat(n.encode(r)));return i.push(s.length),{table:s,offsets:i}},t}(),eC=function(){function t(A,e,r,n,i,s){this.raw=A,this.numberOfContours=e,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=s,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),tC=function(){function t(A,e,r,n,i){var s,a;for(this.raw=A,this.xMin=e,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;a=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&a;)s.pos+=1&a?4:2,128&a?s.pos+=8:64&a?s.pos+=4:8&a&&(s.pos+=2)}return t.prototype.encode=function(){var A,e,r;for(e=new hi(Bm.call(this.raw.data)),A=0,r=this.glyphIDs.length;A<r;++A)e.pos=this.glyphOffsets[A];return e.data},t}(),rC=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return cn(t,Vr),t.prototype.tag="loca",t.prototype.parse=function(A){var e,r;return A.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=e===0?(function(){var n,i;for(i=[],r=0,n=this.length;r<n;r+=2)i.push(2*A.readUInt16());return i}).call(this):(function(){var n,i;for(i=[],r=0,n=this.length;r<n;r+=4)i.push(A.readUInt32());return i}).call(this)},t.prototype.indexOf=function(A){return this.offsets[A]},t.prototype.lengthOf=function(A){return this.offsets[A+1]-this.offsets[A]},t.prototype.encode=function(A,e){for(var r=new Uint32Array(this.offsets.length),n=0,i=0,s=0;s<r.length;++s)if(r[s]=n,i<e.length&&e[i]==s){++i,r[s]=n;var a=this.offsets[s],o=this.offsets[s+1]-a;o>0&&(n+=o)}for(var c=new Array(4*r.length),h=0;h<r.length;++h)c[4*h+3]=255&r[h],c[4*h+2]=(65280&r[h])>>8,c[4*h+1]=(16711680&r[h])>>16,c[4*h]=(4278190080&r[h])>>24;return c},t}(),nC=function(){function t(A){this.font=A,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var A,e,r,n,i;for(e in n=this.font.cmap.tables[0].codeMap,A={},i=this.subset)r=i[e],A[e]=n[r];return A},t.prototype.glyphsFor=function(A){var e,r,n,i,s,a,o;for(n={},s=0,a=A.length;s<a;s++)n[i=A[s]]=this.font.glyf.glyphFor(i);for(i in e=[],n)(r=n[i])!=null&&r.compound&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(i in o=this.glyphsFor(e))r=o[i],n[i]=r;return n},t.prototype.encode=function(A,e){var r,n,i,s,a,o,c,h,d,m,f,w,y,F,v;for(n in r=mm.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(A),f={0:0},v=r.charMap)f[(o=v[n]).old]=o.new;for(w in m=r.maxGlyphID,s)w in f||(f[w]=m++);return h=function(L){var _,S;for(_ in S={},L)S[L[_]]=_;return S}(f),d=Object.keys(h).sort(function(L,_){return L-_}),y=function(){var L,_,S;for(S=[],L=0,_=d.length;L<_;L++)a=d[L],S.push(h[a]);return S}(),i=this.font.glyf.encode(s,y,f),c=this.font.loca.encode(i.offsets,y),F={cmap:this.font.cmap.raw(),glyf:i.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(F["OS/2"]=this.font.os2.raw()),this.font.directory.encode(F)},t}();Ae.API.PDFObject=function(){var t;function A(){}return t=function(e,r){return(Array(r+1).join("0")+e).slice(-r)},A.convert=function(e){var r,n,i,s;if(Array.isArray(e))return"["+function(){var a,o,c;for(c=[],a=0,o=e.length;a<o;a++)r=e[a],c.push(A.convert(r));return c}().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e!=null&&e.isString)return"("+e+")";if(e instanceof Date)return"(D:"+t(e.getUTCFullYear(),4)+t(e.getUTCMonth(),2)+t(e.getUTCDate(),2)+t(e.getUTCHours(),2)+t(e.getUTCMinutes(),2)+t(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(n in i=["<<"],e)s=e[n],i.push("/"+n+" "+A.convert(s));return i.push(">>"),i.join(`
323
326
  `)}return""+e},A}();/*!
324
327
  * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
325
328
  * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
@@ -337,11 +340,11 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
337
340
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
338
341
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
339
342
  PERFORMANCE OF THIS SOFTWARE.
340
- ***************************************************************************** */var wh=function(t,A){return wh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])},wh(t,A)};function qr(t,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");wh(t,A);function e(){this.constructor=t}t.prototype=A===null?Object.create(A):(e.prototype=A.prototype,new e)}var vh=function(){return vh=Object.assign||function(A){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(A[i]=e[i])}return A},vh.apply(this,arguments)};function Yt(t,A,e,r){function n(i){return i instanceof e?i:new e(function(s){s(i)})}return new(e||(e=Promise))(function(i,s){function a(h){try{c(r.next(h))}catch(g){s(g)}}function o(h){try{c(r.throw(h))}catch(g){s(g)}}function c(h){h.done?i(h.value):n(h.value).then(a,o)}c((r=r.apply(t,[])).next())})}function qt(t,A){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(h){return o([c,h])}}function o(c){if(r)throw new TypeError("Generator is already executing.");for(;e;)try{if(r=1,n&&(i=c[0]&2?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,n=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){e.label=c[1];break}if(c[0]===6&&e.label<i[1]){e.label=i[1],i=c;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(c);break}i[2]&&e.ops.pop(),e.trys.pop();continue}c=A.call(t,e)}catch(h){c=[6,h],n=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Go(t,A,e){if(arguments.length===2)for(var r=0,n=A.length,i;r<n;r++)(i||!(r in A))&&(i||(i=Array.prototype.slice.call(A,0,r)),i[r]=A[r]);return t.concat(i||A)}var Pn=function(){function t(A,e,r,n){this.left=A,this.top=e,this.width=r,this.height=n}return t.prototype.add=function(A,e,r,n){return new t(this.left+A,this.top+e,this.width+r,this.height+n)},t.fromClientRect=function(A,e){return new t(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height)},t.fromDOMRectList=function(A,e){var r=Array.from(e).find(function(n){return n.width!==0});return r?new t(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),tc=function(t,A){return Pn.fromClientRect(t,A.getBoundingClientRect())},ib=function(t){var A=t.body,e=t.documentElement;if(!A||!e)throw new Error("Unable to get document size");var r=Math.max(Math.max(A.scrollWidth,e.scrollWidth),Math.max(A.offsetWidth,e.offsetWidth),Math.max(A.clientWidth,e.clientWidth)),n=Math.max(Math.max(A.scrollHeight,e.scrollHeight),Math.max(A.offsetHeight,e.offsetHeight),Math.max(A.clientHeight,e.clientHeight));return new Pn(0,0,r,n)},rc=function(t){for(var A=[],e=0,r=t.length;e<r;){var n=t.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var i=t.charCodeAt(e++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),e--)}else A.push(n)}return A},st=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var e=t.length;if(!e)return"";for(var r=[],n=-1,i="";++n<e;){var s=t[n];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(n+1===e||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},_g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sb=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var qo=0;qo<_g.length;qo++)sb[_g.charCodeAt(qo)]=qo;var Ng="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ma=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Vo=0;Vo<Ng.length;Vo++)ma[Ng.charCodeAt(Vo)]=Vo;var ab=function(t){var A=t.length*.75,e=t.length,r,n=0,i,s,a,o;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),h=Array.isArray(c)?c:new Uint8Array(c);for(r=0;r<e;r+=4)i=ma[t.charCodeAt(r)],s=ma[t.charCodeAt(r+1)],a=ma[t.charCodeAt(r+2)],o=ma[t.charCodeAt(r+3)],h[n++]=i<<2|s>>4,h[n++]=(s&15)<<4|a>>2,h[n++]=(a&3)<<6|o&63;return c},ob=function(t){for(var A=t.length,e=[],r=0;r<A;r+=2)e.push(t[r+1]<<8|t[r]);return e},lb=function(t){for(var A=t.length,e=[],r=0;r<A;r+=4)e.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return e},Di=5,nf=11,vu=2,cb=nf-Di,pm=65536>>Di,ub=1<<Di,yu=ub-1,hb=1024>>Di,fb=pm+hb,db=fb,gb=32,pb=db+gb,mb=65536>>nf,Bb=1<<cb,wb=Bb-1,Hg=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},vb=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},yb=function(t,A){var e=ab(t),r=Array.isArray(e)?lb(e):new Uint32Array(e),n=Array.isArray(e)?ob(e):new Uint16Array(e),i=24,s=Hg(n,i/2,r[4]/2),a=r[5]===2?Hg(n,(i+r[4])/2):vb(r,Math.ceil((i+r[4])/4));return new Cb(r[0],r[1],r[2],r[3],s,a)},Cb=function(){function t(A,e,r,n,i,s){this.initialValue=A,this.errorValue=e,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=s}return t.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>Di],e=(e<<vu)+(A&yu),this.data[e];if(A<=65535)return e=this.index[pm+(A-55296>>Di)],e=(e<<vu)+(A&yu),this.data[e];if(A<this.highStart)return e=pb-mb+(A>>nf),e=this.index[e],e+=A>>Di&wb,e=this.index[e],e=(e<<vu)+(A&yu),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),kg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bb=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Wo=0;Wo<kg.length;Wo++)bb[kg.charCodeAt(Wo)]=Wo;var Fb="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Pg=50,Qb=1,mm=2,Bm=3,Ub=4,xb=5,Tg=7,wm=8,Dg=9,ii=10,yh=11,Rg=12,Ch=13,Eb=14,Ba=15,bh=16,zo=17,ha=18,Lb=19,Og=20,Fh=21,fa=22,Cu=23,os=24,dr=25,wa=26,va=27,ls=28,Sb=29,Hi=30,Ib=31,$o=32,Xo=33,Qh=34,Uh=35,xh=36,Ra=37,Eh=38,yl=39,Cl=40,bu=41,vm=42,_b=43,Nb=[9001,65288],ym="!",ye="×",Jo="÷",Lh=yb(Fb),In=[Hi,xh],Sh=[Qb,mm,Bm,xb],Cm=[ii,wm],Mg=[va,wa],Hb=Sh.concat(Cm),Kg=[Eh,yl,Cl,Qh,Uh],kb=[Ba,Ch],Pb=function(t,A){A===void 0&&(A="strict");var e=[],r=[],n=[];return t.forEach(function(i,s){var a=Lh.get(i);if(a>Pg?(n.push(!0),a-=Pg):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(s),e.push(bh);if(a===Ub||a===yh){if(s===0)return r.push(s),e.push(Hi);var o=e[s-1];return Hb.indexOf(o)===-1?(r.push(r[s-1]),e.push(o)):(r.push(s),e.push(Hi))}if(r.push(s),a===Ib)return e.push(A==="strict"?Fh:Ra);if(a===vm||a===Sb)return e.push(Hi);if(a===_b)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(Ra):e.push(Hi);e.push(a)}),[r,e,n]},Fu=function(t,A,e,r){var n=r[e];if(Array.isArray(t)?t.indexOf(n)!==-1:t===n)for(var i=e;i<=r.length;){i++;var s=r[i];if(s===A)return!0;if(s!==ii)break}if(n===ii)for(var i=e;i>0;){i--;var a=r[i];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var o=e;o<=r.length;){o++;var s=r[o];if(s===A)return!0;if(s!==ii)break}if(a!==ii)break}return!1},jg=function(t,A){for(var e=t;e>=0;){var r=A[e];if(r===ii)e--;else return r}return 0},Tb=function(t,A,e,r,n){if(e[r]===0)return ye;var i=r-1;if(Array.isArray(n)&&n[i]===!0)return ye;var s=i-1,a=i+1,o=A[i],c=s>=0?A[s]:0,h=A[a];if(o===mm&&h===Bm)return ye;if(Sh.indexOf(o)!==-1)return ym;if(Sh.indexOf(h)!==-1||Cm.indexOf(h)!==-1)return ye;if(jg(i,A)===wm)return Jo;if(Lh.get(t[i])===yh||(o===$o||o===Xo)&&Lh.get(t[a])===yh||o===Tg||h===Tg||o===Dg||[ii,Ch,Ba].indexOf(o)===-1&&h===Dg||[zo,ha,Lb,os,ls].indexOf(h)!==-1||jg(i,A)===fa||Fu(Cu,fa,i,A)||Fu([zo,ha],Fh,i,A)||Fu(Rg,Rg,i,A))return ye;if(o===ii)return Jo;if(o===Cu||h===Cu)return ye;if(h===bh||o===bh)return Jo;if([Ch,Ba,Fh].indexOf(h)!==-1||o===Eb||c===xh&&kb.indexOf(o)!==-1||o===ls&&h===xh||h===Og||In.indexOf(h)!==-1&&o===dr||In.indexOf(o)!==-1&&h===dr||o===va&&[Ra,$o,Xo].indexOf(h)!==-1||[Ra,$o,Xo].indexOf(o)!==-1&&h===wa||In.indexOf(o)!==-1&&Mg.indexOf(h)!==-1||Mg.indexOf(o)!==-1&&In.indexOf(h)!==-1||[va,wa].indexOf(o)!==-1&&(h===dr||[fa,Ba].indexOf(h)!==-1&&A[a+1]===dr)||[fa,Ba].indexOf(o)!==-1&&h===dr||o===dr&&[dr,ls,os].indexOf(h)!==-1)return ye;if([dr,ls,os,zo,ha].indexOf(h)!==-1)for(var g=i;g>=0;){var m=A[g];if(m===dr)return ye;if([ls,os].indexOf(m)!==-1)g--;else break}if([va,wa].indexOf(h)!==-1)for(var g=[zo,ha].indexOf(o)!==-1?s:i;g>=0;){var m=A[g];if(m===dr)return ye;if([ls,os].indexOf(m)!==-1)g--;else break}if(Eh===o&&[Eh,yl,Qh,Uh].indexOf(h)!==-1||[yl,Qh].indexOf(o)!==-1&&[yl,Cl].indexOf(h)!==-1||[Cl,Uh].indexOf(o)!==-1&&h===Cl||Kg.indexOf(o)!==-1&&[Og,wa].indexOf(h)!==-1||Kg.indexOf(h)!==-1&&o===va||In.indexOf(o)!==-1&&In.indexOf(h)!==-1||o===os&&In.indexOf(h)!==-1||In.concat(dr).indexOf(o)!==-1&&h===fa&&Nb.indexOf(t[a])===-1||In.concat(dr).indexOf(h)!==-1&&o===ha)return ye;if(o===bu&&h===bu){for(var f=e[i],w=1;f>0&&(f--,A[f]===bu);)w++;if(w%2!==0)return ye}return o===$o&&h===Xo?ye:Jo},Db=function(t,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=Pb(t,A.lineBreak),r=e[0],n=e[1],i=e[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(n=n.map(function(a){return[dr,Hi,vm].indexOf(a)!==-1?Ra:a}));var s=A.wordBreak==="keep-all"?i.map(function(a,o){return a&&t[o]>=19968&&t[o]<=40959}):void 0;return[r,n,s]},Rb=function(){function t(A,e,r,n){this.codePoints=A,this.required=e===ym,this.start=r,this.end=n}return t.prototype.slice=function(){return st.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),Ob=function(t,A){var e=rc(t),r=Db(e,A),n=r[0],i=r[1],s=r[2],a=e.length,o=0,c=0;return{next:function(){if(c>=a)return{done:!0,value:null};for(var h=ye;c<a&&(h=Tb(e,i,n,++c,s))===ye;);if(h!==ye||c===a){var g=new Rb(e,h,o,c);return o=c,{value:g,done:!1}}return{done:!0,value:null}}}},Mb=1,Kb=2,qa=4,Gg=8,Ol=10,qg=47,Ea=92,jb=9,Gb=32,Yo=34,da=61,qb=35,Vb=36,Wb=37,Zo=39,Al=40,ga=41,zb=95,er=45,$b=33,Xb=60,Jb=62,Yb=64,Zb=91,A4=93,e4=61,t4=123,el=63,r4=125,Vg=124,n4=126,i4=128,Wg=65533,Qu=42,Pi=43,s4=44,a4=58,o4=59,Oa=46,l4=0,c4=8,u4=11,h4=14,f4=31,d4=127,tn=-1,bm=48,Fm=97,Qm=101,g4=102,p4=117,m4=122,Um=65,xm=69,Em=70,B4=85,w4=90,Vt=function(t){return t>=bm&&t<=57},v4=function(t){return t>=55296&&t<=57343},cs=function(t){return Vt(t)||t>=Um&&t<=Em||t>=Fm&&t<=g4},y4=function(t){return t>=Fm&&t<=m4},C4=function(t){return t>=Um&&t<=w4},b4=function(t){return y4(t)||C4(t)},F4=function(t){return t>=i4},tl=function(t){return t===Ol||t===jb||t===Gb},Ml=function(t){return b4(t)||F4(t)||t===zb},zg=function(t){return Ml(t)||Vt(t)||t===er},Q4=function(t){return t>=l4&&t<=c4||t===u4||t>=h4&&t<=f4||t===d4},ri=function(t,A){return t!==Ea?!1:A!==Ol},rl=function(t,A,e){return t===er?Ml(A)||ri(A,e):Ml(t)?!0:!!(t===Ea&&ri(t,A))},Uu=function(t,A,e){return t===Pi||t===er?Vt(A)?!0:A===Oa&&Vt(e):Vt(t===Oa?A:t)},U4=function(t){var A=0,e=1;(t[A]===Pi||t[A]===er)&&(t[A]===er&&(e=-1),A++);for(var r=[];Vt(t[A]);)r.push(t[A++]);var n=r.length?parseInt(st.apply(void 0,r),10):0;t[A]===Oa&&A++;for(var i=[];Vt(t[A]);)i.push(t[A++]);var s=i.length,a=s?parseInt(st.apply(void 0,i),10):0;(t[A]===xm||t[A]===Qm)&&A++;var o=1;(t[A]===Pi||t[A]===er)&&(t[A]===er&&(o=-1),A++);for(var c=[];Vt(t[A]);)c.push(t[A++]);var h=c.length?parseInt(st.apply(void 0,c),10):0;return e*(n+a*Math.pow(10,-s))*Math.pow(10,o*h)},x4={type:2},E4={type:3},L4={type:4},S4={type:13},I4={type:8},_4={type:21},N4={type:9},H4={type:10},k4={type:11},P4={type:12},T4={type:14},nl={type:23},D4={type:1},R4={type:25},O4={type:24},M4={type:26},K4={type:27},j4={type:28},G4={type:29},q4={type:31},Ih={type:32},Lm=function(){function t(){this._value=[]}return t.prototype.write=function(A){this._value=this._value.concat(rc(A))},t.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==Ih;)A.push(e),e=this.consumeToken();return A},t.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Yo:return this.consumeStringToken(Yo);case qb:var e=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(zg(e)||ri(r,n)){var i=rl(e,r,n)?Kb:Mb,s=this.consumeName();return{type:5,value:s,flags:i}}break;case Vb:if(this.peekCodePoint(0)===da)return this.consumeCodePoint(),S4;break;case Zo:return this.consumeStringToken(Zo);case Al:return x4;case ga:return E4;case Qu:if(this.peekCodePoint(0)===da)return this.consumeCodePoint(),T4;break;case Pi:if(Uu(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case s4:return L4;case er:var a=A,o=this.peekCodePoint(0),c=this.peekCodePoint(1);if(Uu(a,o,c))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(rl(a,o,c))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(o===er&&c===Jb)return this.consumeCodePoint(),this.consumeCodePoint(),O4;break;case Oa:if(Uu(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case qg:if(this.peekCodePoint(0)===Qu)for(this.consumeCodePoint();;){var h=this.consumeCodePoint();if(h===Qu&&(h=this.consumeCodePoint(),h===qg))return this.consumeToken();if(h===tn)return this.consumeToken()}break;case a4:return M4;case o4:return K4;case Xb:if(this.peekCodePoint(0)===$b&&this.peekCodePoint(1)===er&&this.peekCodePoint(2)===er)return this.consumeCodePoint(),this.consumeCodePoint(),R4;break;case Yb:var g=this.peekCodePoint(0),m=this.peekCodePoint(1),f=this.peekCodePoint(2);if(rl(g,m,f)){var s=this.consumeName();return{type:7,value:s}}break;case Zb:return j4;case Ea:if(ri(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case A4:return G4;case e4:if(this.peekCodePoint(0)===da)return this.consumeCodePoint(),I4;break;case t4:return k4;case r4:return P4;case p4:case B4:var w=this.peekCodePoint(0),y=this.peekCodePoint(1);return w===Pi&&(cs(y)||y===el)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Vg:if(this.peekCodePoint(0)===da)return this.consumeCodePoint(),N4;if(this.peekCodePoint(0)===Vg)return this.consumeCodePoint(),_4;break;case n4:if(this.peekCodePoint(0)===da)return this.consumeCodePoint(),H4;break;case tn:return Ih}return tl(A)?(this.consumeWhiteSpace(),q4):Vt(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):Ml(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:st(A)}},t.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},t.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},t.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},t.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();cs(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var r=!1;e===el&&A.length<6;)A.push(e),e=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(st.apply(void 0,A.map(function(o){return o===el?bm:o})),16),i=parseInt(st.apply(void 0,A.map(function(o){return o===el?Em:o})),16);return{type:30,start:n,end:i}}var s=parseInt(st.apply(void 0,A),16);if(this.peekCodePoint(0)===er&&cs(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var a=[];cs(e)&&a.length<6;)a.push(e),e=this.consumeCodePoint();var i=parseInt(st.apply(void 0,a),16);return{type:30,start:s,end:i}}else return{type:30,start:s,end:s}},t.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Al?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Al?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},t.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===tn)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===Zo||e===Yo){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===tn||this.peekCodePoint(0)===ga)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),nl)}for(;;){var n=this.consumeCodePoint();if(n===tn||n===ga)return{type:22,value:st.apply(void 0,A)};if(tl(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===tn||this.peekCodePoint(0)===ga?(this.consumeCodePoint(),{type:22,value:st.apply(void 0,A)}):(this.consumeBadUrlRemnants(),nl);if(n===Yo||n===Zo||n===Al||Q4(n))return this.consumeBadUrlRemnants(),nl;if(n===Ea)if(ri(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),nl;else A.push(n)}},t.prototype.consumeWhiteSpace=function(){for(;tl(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===ga||A===tn)return;ri(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(A){for(var e=5e4,r="";A>0;){var n=Math.min(e,A);r+=st.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),r},t.prototype.consumeStringToken=function(A){var e="",r=0;do{var n=this._value[r];if(n===tn||n===void 0||n===A)return e+=this.consumeStringSlice(r),{type:0,value:e};if(n===Ol)return this._value.splice(0,r),D4;if(n===Ea){var i=this._value[r+1];i!==tn&&i!==void 0&&(i===Ol?(e+=this.consumeStringSlice(r),r=-1,this._value.shift()):ri(n,i)&&(e+=this.consumeStringSlice(r),e+=st(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},t.prototype.consumeNumber=function(){var A=[],e=qa,r=this.peekCodePoint(0);for((r===Pi||r===er)&&A.push(this.consumeCodePoint());Vt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===Oa&&Vt(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Gg;Vt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===xm||r===Qm)&&((n===Pi||n===er)&&Vt(i)||Vt(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Gg;Vt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[U4(A),e]},t.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],r=A[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),s=this.peekCodePoint(2);if(rl(n,i,s)){var a=this.consumeName();return{type:15,number:e,flags:r,unit:a}}return n===Wb?(this.consumeCodePoint(),{type:16,number:e,flags:r}):{type:17,number:e,flags:r}},t.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(cs(A)){for(var e=st(A);cs(this.peekCodePoint(0))&&e.length<6;)e+=st(this.consumeCodePoint());tl(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(e,16);return r===0||v4(r)||r>1114111?Wg:r}return A===tn?Wg:A},t.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(zg(e))A+=st(e);else if(ri(e,this.peekCodePoint(0)))A+=st(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}},t}(),Sm=function(){function t(A){this._tokens=A}return t.create=function(A){var e=new Lm;return e.write(A),new t(e.read())},t.parseValue=function(A){return t.create(A).parseComponentValue()},t.parseValues=function(A){return t.create(A).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(e.type===32)return A;A.push(e),A.push()}},t.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},t.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},r=this.consumeToken();;){if(r.type===32||W4(r,A))return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue()),r=this.consumeToken()}},t.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?Ih:A},t.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},t}(),Va=function(t){return t.type===15},Ns=function(t){return t.type===17},ke=function(t){return t.type===20},V4=function(t){return t.type===0},_h=function(t,A){return ke(t)&&t.value===A},Im=function(t){return t.type!==31},Ls=function(t){return t.type!==31&&t.type!==4},ln=function(t){var A=[],e=[];return t.forEach(function(r){if(r.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(e),e=[];return}r.type!==31&&e.push(r)}),e.length&&A.push(e),A},W4=function(t,A){return A===11&&t.type===12||A===28&&t.type===29?!0:A===2&&t.type===3},hi=function(t){return t.type===17||t.type===15},gt=function(t){return t.type===16||hi(t)},_m=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Pt={type:17,number:0,flags:qa},sf={type:16,number:50,flags:qa},si={type:16,number:100,flags:qa},ya=function(t,A,e){var r=t[0],n=t[1];return[je(r,A),je(typeof n<"u"?n:r,e)]},je=function(t,A){if(t.type===16)return t.number/100*A;if(Va(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},Nm="deg",Hm="grad",km="rad",Pm="turn",nc={name:"angle",parse:function(t,A){if(A.type===15)switch(A.unit){case Nm:return Math.PI*A.number/180;case Hm:return Math.PI/200*A.number;case km:return A.number;case Pm:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},Tm=function(t){return t.type===15&&(t.unit===Nm||t.unit===Hm||t.unit===km||t.unit===Pm)},Dm=function(t){var A=t.filter(ke).map(function(e){return e.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Pt,Pt];case"to top":case"bottom":return Lr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Pt,si];case"to right":case"left":return Lr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[si,si];case"to bottom":case"top":return Lr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[si,Pt];case"to left":case"right":return Lr(270)}return 0},Lr=function(t){return Math.PI*t/180},li={name:"color",parse:function(t,A){if(A.type===18){var e=z4[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return e(t,A.values)}if(A.type===5){if(A.value.length===3){var r=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3);return ai(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(A.value.length===4){var r=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3),s=A.value.substring(3,4);return ai(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(A.value.length===6){var r=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6);return ai(parseInt(r,16),parseInt(n,16),parseInt(i,16),1)}if(A.value.length===8){var r=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6),s=A.value.substring(6,8);return ai(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(s,16)/255)}}if(A.type===20){var a=kn[A.value.toUpperCase()];if(typeof a<"u")return a}return kn.TRANSPARENT}},ci=function(t){return(255&t)===0},Ut=function(t){var A=255&t,e=255&t>>8,r=255&t>>16,n=255&t>>24;return A<255?"rgba("+n+","+r+","+e+","+A/255+")":"rgb("+n+","+r+","+e+")"},ai=function(t,A,e,r){return(t<<24|A<<16|e<<8|Math.round(r*255)<<0)>>>0},$g=function(t,A){if(t.type===17)return t.number;if(t.type===16){var e=A===3?1:255;return A===3?t.number/100*e:Math.round(t.number/100*e)}return 0},Xg=function(t,A){var e=A.filter(Ls);if(e.length===3){var r=e.map($g),n=r[0],i=r[1],s=r[2];return ai(n,i,s,1)}if(e.length===4){var a=e.map($g),n=a[0],i=a[1],s=a[2],o=a[3];return ai(n,i,s,o)}return 0};function xu(t,A,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(A-t)*e*6+t:e<1/2?A:e<2/3?(A-t)*6*(2/3-e)+t:t}var Jg=function(t,A){var e=A.filter(Ls),r=e[0],n=e[1],i=e[2],s=e[3],a=(r.type===17?Lr(r.number):nc.parse(t,r))/(Math.PI*2),o=gt(n)?n.number/100:0,c=gt(i)?i.number/100:0,h=typeof s<"u"&&gt(s)?je(s,1):1;if(o===0)return ai(c*255,c*255,c*255,1);var g=c<=.5?c*(o+1):c+o-c*o,m=c*2-g,f=xu(m,g,a+1/3),w=xu(m,g,a),y=xu(m,g,a-1/3);return ai(f*255,w*255,y*255,h)},z4={hsl:Jg,hsla:Jg,rgb:Xg,rgba:Xg},La=function(t,A){return li.parse(t,Sm.create(A).parseComponentValue())},kn={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},$4={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(ke(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},X4={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ic=function(t,A){var e=li.parse(t,A[0]),r=A[1];return r&&gt(r)?{color:e,stop:r}:{color:e,stop:null}},Yg=function(t,A){var e=t[0],r=t[t.length-1];e.stop===null&&(e.stop=Pt),r.stop===null&&(r.stop=si);for(var n=[],i=0,s=0;s<t.length;s++){var a=t[s].stop;if(a!==null){var o=je(a,A);o>i?n.push(o):n.push(i),i=o}else n.push(null)}for(var c=null,s=0;s<n.length;s++){var h=n[s];if(h===null)c===null&&(c=s);else if(c!==null){for(var g=s-c,m=n[c-1],f=(h-m)/(g+1),w=1;w<=g;w++)n[c+w-1]=f*w;c=null}}return t.map(function(y,F){var v=y.color;return{color:v,stop:Math.max(Math.min(1,n[F]/A),0)}})},J4=function(t,A,e){var r=A/2,n=e/2,i=je(t[0],A)-r,s=n-je(t[1],e);return(Math.atan2(s,i)+Math.PI*2)%(Math.PI*2)},Y4=function(t,A,e){var r=typeof t=="number"?t:J4(t,A,e),n=Math.abs(A*Math.sin(r))+Math.abs(e*Math.cos(r)),i=A/2,s=e/2,a=n/2,o=Math.sin(r-Math.PI/2)*a,c=Math.cos(r-Math.PI/2)*a;return[n,i-c,i+c,s-o,s+o]},Mr=function(t,A){return Math.sqrt(t*t+A*A)},Zg=function(t,A,e,r,n){var i=[[0,0],[0,A],[t,0],[t,A]];return i.reduce(function(s,a){var o=a[0],c=a[1],h=Mr(e-o,r-c);return(n?h<s.optimumDistance:h>s.optimumDistance)?{optimumCorner:a,optimumDistance:h}:s},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Z4=function(t,A,e,r,n){var i=0,s=0;switch(t.size){case 0:t.shape===0?i=s=Math.min(Math.abs(A),Math.abs(A-r),Math.abs(e),Math.abs(e-n)):t.shape===1&&(i=Math.min(Math.abs(A),Math.abs(A-r)),s=Math.min(Math.abs(e),Math.abs(e-n)));break;case 2:if(t.shape===0)i=s=Math.min(Mr(A,e),Mr(A,e-n),Mr(A-r,e),Mr(A-r,e-n));else if(t.shape===1){var a=Math.min(Math.abs(e),Math.abs(e-n))/Math.min(Math.abs(A),Math.abs(A-r)),o=Zg(r,n,A,e,!0),c=o[0],h=o[1];i=Mr(c-A,(h-e)/a),s=a*i}break;case 1:t.shape===0?i=s=Math.max(Math.abs(A),Math.abs(A-r),Math.abs(e),Math.abs(e-n)):t.shape===1&&(i=Math.max(Math.abs(A),Math.abs(A-r)),s=Math.max(Math.abs(e),Math.abs(e-n)));break;case 3:if(t.shape===0)i=s=Math.max(Mr(A,e),Mr(A,e-n),Mr(A-r,e),Mr(A-r,e-n));else if(t.shape===1){var a=Math.max(Math.abs(e),Math.abs(e-n))/Math.max(Math.abs(A),Math.abs(A-r)),g=Zg(r,n,A,e,!1),c=g[0],h=g[1];i=Mr(c-A,(h-e)/a),s=a*i}break}return Array.isArray(t.size)&&(i=je(t.size[0],r),s=t.size.length===2?je(t.size[1],n):i),[i,s]},AF=function(t,A){var e=Lr(180),r=[];return ln(A).forEach(function(n,i){if(i===0){var s=n[0];if(s.type===20&&s.value==="to"){e=Dm(n);return}else if(Tm(s)){e=nc.parse(t,s);return}}var a=ic(t,n);r.push(a)}),{angle:e,stops:r,type:1}},il=function(t,A){var e=Lr(180),r=[];return ln(A).forEach(function(n,i){if(i===0){var s=n[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){e=Dm(n);return}else if(Tm(s)){e=(nc.parse(t,s)+Lr(270))%Lr(360);return}}var a=ic(t,n);r.push(a)}),{angle:e,stops:r,type:1}},eF=function(t,A){var e=Lr(180),r=[],n=1,i=0,s=3,a=[];return ln(A).forEach(function(o,c){var h=o[0];if(c===0){if(ke(h)&&h.value==="linear"){n=1;return}else if(ke(h)&&h.value==="radial"){n=2;return}}if(h.type===18){if(h.name==="from"){var g=li.parse(t,h.values[0]);r.push({stop:Pt,color:g})}else if(h.name==="to"){var g=li.parse(t,h.values[0]);r.push({stop:si,color:g})}else if(h.name==="color-stop"){var m=h.values.filter(Ls);if(m.length===2){var g=li.parse(t,m[1]),f=m[0];Ns(f)&&r.push({stop:{type:16,number:f.number*100,flags:f.flags},color:g})}}}}),n===1?{angle:(e+Lr(180))%Lr(360),stops:r,type:n}:{size:s,shape:i,stops:r,position:a,type:n}},Rm="closest-side",Om="farthest-side",Mm="closest-corner",Km="farthest-corner",jm="circle",Gm="ellipse",qm="cover",Vm="contain",tF=function(t,A){var e=0,r=3,n=[],i=[];return ln(A).forEach(function(s,a){var o=!0;if(a===0){var c=!1;o=s.reduce(function(g,m){if(c)if(ke(m))switch(m.value){case"center":return i.push(sf),g;case"top":case"left":return i.push(Pt),g;case"right":case"bottom":return i.push(si),g}else(gt(m)||hi(m))&&i.push(m);else if(ke(m))switch(m.value){case jm:return e=0,!1;case Gm:return e=1,!1;case"at":return c=!0,!1;case Rm:return r=0,!1;case qm:case Om:return r=1,!1;case Vm:case Mm:return r=2,!1;case Km:return r=3,!1}else if(hi(m)||gt(m))return Array.isArray(r)||(r=[]),r.push(m),!1;return g},o)}if(o){var h=ic(t,s);n.push(h)}}),{size:r,shape:e,stops:n,position:i,type:2}},sl=function(t,A){var e=0,r=3,n=[],i=[];return ln(A).forEach(function(s,a){var o=!0;if(a===0?o=s.reduce(function(h,g){if(ke(g))switch(g.value){case"center":return i.push(sf),!1;case"top":case"left":return i.push(Pt),!1;case"right":case"bottom":return i.push(si),!1}else if(gt(g)||hi(g))return i.push(g),!1;return h},o):a===1&&(o=s.reduce(function(h,g){if(ke(g))switch(g.value){case jm:return e=0,!1;case Gm:return e=1,!1;case Vm:case Rm:return r=0,!1;case Om:return r=1,!1;case Mm:return r=2,!1;case qm:case Km:return r=3,!1}else if(hi(g)||gt(g))return Array.isArray(r)||(r=[]),r.push(g),!1;return h},o)),o){var c=ic(t,s);n.push(c)}}),{size:r,shape:e,stops:n,position:i,type:2}},rF=function(t){return t.type===1},nF=function(t){return t.type===2},af={name:"image",parse:function(t,A){if(A.type===22){var e={url:A.value,type:0};return t.cache.addImage(A.value),e}if(A.type===18){var r=Wm[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return r(t,A.values)}throw new Error("Unsupported image type "+A.type)}};function iF(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!Wm[t.name])}var Wm={"linear-gradient":AF,"-moz-linear-gradient":il,"-ms-linear-gradient":il,"-o-linear-gradient":il,"-webkit-linear-gradient":il,"radial-gradient":tF,"-moz-radial-gradient":sl,"-ms-radial-gradient":sl,"-o-radial-gradient":sl,"-webkit-radial-gradient":sl,"-webkit-gradient":eF},sF={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A.filter(function(r){return Ls(r)&&iF(r)}).map(function(r){return af.parse(t,r)})}},aF={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(ke(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},oF={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,A){return ln(A).map(function(e){return e.filter(gt)}).map(_m)}},lF={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,A){return ln(A).map(function(e){return e.filter(ke).map(function(r){return r.value}).join(" ")}).map(cF)}},cF=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},xs;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(xs||(xs={}));var uF={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,A){return ln(A).map(function(e){return e.filter(hF)})}},hF=function(t){return ke(t)||gt(t)},sc=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},fF=sc("top"),dF=sc("right"),gF=sc("bottom"),pF=sc("left"),ac=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return _m(e.filter(gt))}}},mF=ac("top-left"),BF=ac("top-right"),wF=ac("bottom-right"),vF=ac("bottom-left"),oc=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},yF=oc("top"),CF=oc("right"),bF=oc("bottom"),FF=oc("left"),lc=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Va(e)?e.number:0}}},QF=lc("top"),UF=lc("right"),xF=lc("bottom"),EF=lc("left"),LF={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},SF={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},IF={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,A){return A.filter(ke).reduce(function(e,r){return e|_F(r.value)},0)}},_F=function(t){switch(t){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},NF={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},HF={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},Kl;(function(t){t.NORMAL="normal",t.STRICT="strict"})(Kl||(Kl={}));var kF={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"strict":return Kl.STRICT;case"normal":default:return Kl.NORMAL}}},PF={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ap=function(t,A){return ke(t)&&t.value==="normal"?1.2*A:t.type===17?A*t.number:gt(t)?je(t,A):A},TF={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,A){return A.type===20&&A.value==="none"?null:af.parse(t,A)}},DF={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,A){switch(A){case"inside":return 0;case"outside":default:return 1}}},Nh={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){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 22;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;case"none":default:return-1}}},cc=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},RF=cc("top"),OF=cc("right"),MF=cc("bottom"),KF=cc("left"),jF={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,A){return A.filter(ke).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},GF={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"break-word":return"break-word";case"normal":default:return"normal"}}},uc=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},qF=uc("top"),VF=uc("right"),WF=uc("bottom"),zF=uc("left"),$F={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,A){switch(A){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},XF={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},JF={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&_h(A[0],"none")?[]:ln(A).map(function(e){for(var r={color:kn.TRANSPARENT,offsetX:Pt,offsetY:Pt,blur:Pt},n=0,i=0;i<e.length;i++){var s=e[i];hi(s)?(n===0?r.offsetX=s:n===1?r.offsetY=s:r.blur=s,n++):r.color=li.parse(t,s)}return r})}},YF={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},ZF={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var e=tQ[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return e(A.values)}return null}},AQ=function(t){var A=t.filter(function(e){return e.type===17}).map(function(e){return e.number});return A.length===6?A:null},eQ=function(t){var A=t.filter(function(o){return o.type===17}).map(function(o){return o.number}),e=A[0],r=A[1];A[2],A[3];var n=A[4],i=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var s=A[12],a=A[13];return A[14],A[15],A.length===16?[e,r,n,i,s,a]:null},tQ={matrix:AQ,matrix3d:eQ},ep={type:16,number:50,flags:qa},rQ=[ep,ep],nQ={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,A){var e=A.filter(gt);return e.length!==2?rQ:[e[0],e[1]]}},iQ={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Sa;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(Sa||(Sa={}));var sQ={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"break-all":return Sa.BREAK_ALL;case"keep-all":return Sa.KEEP_ALL;case"normal":default:return Sa.NORMAL}}},aQ={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,A){if(A.type===20)return{auto:!0,order:0};if(Ns(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},zm={name:"time",parse:function(t,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},oQ={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,A){return Ns(A)?A.number:1}},lQ={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},cQ={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,A){return A.filter(ke).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return e!==0})}},uQ={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,A){var e=[],r=[];return A.forEach(function(n){switch(n.type){case 20:case 0:e.push(n.value);break;case 17:e.push(n.number.toString());break;case 4:r.push(e.join(" ")),e.length=0;break}}),e.length&&r.push(e.join(" ")),r.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},hQ={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},fQ={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,A){if(Ns(A))return A.number;if(ke(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},dQ={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.filter(ke).map(function(e){return e.value})}},gQ={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},bt=function(t,A){return(t&A)!==0},pQ={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A}},mQ={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;for(var r=[],n=A.filter(Im),i=0;i<n.length;i++){var s=n[i],a=n[i+1];if(s.type===20){var o=a&&Ns(a)?a.number:1;r.push({counter:s.value,increment:o})}}return r}},BQ={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return[];for(var e=[],r=A.filter(Im),n=0;n<r.length;n++){var i=r[n],s=r[n+1];if(ke(i)&&i.value!=="none"){var a=s&&Ns(s)?s.number:0;e.push({counter:i.value,reset:a})}}return e}},wQ={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,A){return A.filter(Va).map(function(e){return zm.parse(t,e)})}},vQ={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;var r=[],n=A.filter(V4);if(n.length%2!==0)return null;for(var i=0;i<n.length;i+=2){var s=n[i].value,a=n[i+1].value;r.push({open:s,close:a})}return r}},tp=function(t,A,e){if(!t)return"";var r=t[Math.min(A,t.length-1)];return r?e?r.open:r.close:""},yQ={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&_h(A[0],"none")?[]:ln(A).map(function(e){for(var r={color:255,offsetX:Pt,offsetY:Pt,blur:Pt,spread:Pt,inset:!1},n=0,i=0;i<e.length;i++){var s=e[i];_h(s,"inset")?r.inset=!0:hi(s)?(n===0?r.offsetX=s:n===1?r.offsetY=s:n===2?r.blur=s:r.spread=s,n++):r.color=li.parse(t,s)}return r})}},CQ={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,A){var e=[0,1,2],r=[];return A.filter(ke).forEach(function(n){switch(n.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),e.forEach(function(n){r.indexOf(n)===-1&&r.push(n)}),r}},bQ={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},FQ={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,A){return Va(A)?A.number:0}},QQ=function(){function t(A,e){var r,n;this.animationDuration=TA(A,wQ,e.animationDuration),this.backgroundClip=TA(A,$4,e.backgroundClip),this.backgroundColor=TA(A,X4,e.backgroundColor),this.backgroundImage=TA(A,sF,e.backgroundImage),this.backgroundOrigin=TA(A,aF,e.backgroundOrigin),this.backgroundPosition=TA(A,oF,e.backgroundPosition),this.backgroundRepeat=TA(A,lF,e.backgroundRepeat),this.backgroundSize=TA(A,uF,e.backgroundSize),this.borderTopColor=TA(A,fF,e.borderTopColor),this.borderRightColor=TA(A,dF,e.borderRightColor),this.borderBottomColor=TA(A,gF,e.borderBottomColor),this.borderLeftColor=TA(A,pF,e.borderLeftColor),this.borderTopLeftRadius=TA(A,mF,e.borderTopLeftRadius),this.borderTopRightRadius=TA(A,BF,e.borderTopRightRadius),this.borderBottomRightRadius=TA(A,wF,e.borderBottomRightRadius),this.borderBottomLeftRadius=TA(A,vF,e.borderBottomLeftRadius),this.borderTopStyle=TA(A,yF,e.borderTopStyle),this.borderRightStyle=TA(A,CF,e.borderRightStyle),this.borderBottomStyle=TA(A,bF,e.borderBottomStyle),this.borderLeftStyle=TA(A,FF,e.borderLeftStyle),this.borderTopWidth=TA(A,QF,e.borderTopWidth),this.borderRightWidth=TA(A,UF,e.borderRightWidth),this.borderBottomWidth=TA(A,xF,e.borderBottomWidth),this.borderLeftWidth=TA(A,EF,e.borderLeftWidth),this.boxShadow=TA(A,yQ,e.boxShadow),this.color=TA(A,LF,e.color),this.direction=TA(A,SF,e.direction),this.display=TA(A,IF,e.display),this.float=TA(A,NF,e.cssFloat),this.fontFamily=TA(A,uQ,e.fontFamily),this.fontSize=TA(A,hQ,e.fontSize),this.fontStyle=TA(A,gQ,e.fontStyle),this.fontVariant=TA(A,dQ,e.fontVariant),this.fontWeight=TA(A,fQ,e.fontWeight),this.letterSpacing=TA(A,HF,e.letterSpacing),this.lineBreak=TA(A,kF,e.lineBreak),this.lineHeight=TA(A,PF,e.lineHeight),this.listStyleImage=TA(A,TF,e.listStyleImage),this.listStylePosition=TA(A,DF,e.listStylePosition),this.listStyleType=TA(A,Nh,e.listStyleType),this.marginTop=TA(A,RF,e.marginTop),this.marginRight=TA(A,OF,e.marginRight),this.marginBottom=TA(A,MF,e.marginBottom),this.marginLeft=TA(A,KF,e.marginLeft),this.opacity=TA(A,oQ,e.opacity);var i=TA(A,jF,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=TA(A,GF,e.overflowWrap),this.paddingTop=TA(A,qF,e.paddingTop),this.paddingRight=TA(A,VF,e.paddingRight),this.paddingBottom=TA(A,WF,e.paddingBottom),this.paddingLeft=TA(A,zF,e.paddingLeft),this.paintOrder=TA(A,CQ,e.paintOrder),this.position=TA(A,XF,e.position),this.textAlign=TA(A,$F,e.textAlign),this.textDecorationColor=TA(A,lQ,(r=e.textDecorationColor)!==null&&r!==void 0?r:e.color),this.textDecorationLine=TA(A,cQ,(n=e.textDecorationLine)!==null&&n!==void 0?n:e.textDecoration),this.textShadow=TA(A,JF,e.textShadow),this.textTransform=TA(A,YF,e.textTransform),this.transform=TA(A,ZF,e.transform),this.transformOrigin=TA(A,nQ,e.transformOrigin),this.visibility=TA(A,iQ,e.visibility),this.webkitTextStrokeColor=TA(A,bQ,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=TA(A,FQ,e.webkitTextStrokeWidth),this.wordBreak=TA(A,sQ,e.wordBreak),this.zIndex=TA(A,aQ,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return ci(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return bt(this.display,4)||bt(this.display,33554432)||bt(this.display,268435456)||bt(this.display,536870912)||bt(this.display,67108864)||bt(this.display,134217728)},t}(),UQ=function(){function t(A,e){this.content=TA(A,pQ,e.content),this.quotes=TA(A,vQ,e.quotes)}return t}(),rp=function(){function t(A,e){this.counterIncrement=TA(A,mQ,e.counterIncrement),this.counterReset=TA(A,BQ,e.counterReset)}return t}(),TA=function(t,A,e){var r=new Lm,n=e!==null&&typeof e<"u"?e.toString():A.initialValue;r.write(n);var i=new Sm(r.read());switch(A.type){case 2:var s=i.parseComponentValue();return A.parse(t,ke(s)?s.value:A.initialValue);case 0:return A.parse(t,i.parseComponentValue());case 1:return A.parse(t,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(A.format){case"angle":return nc.parse(t,i.parseComponentValue());case"color":return li.parse(t,i.parseComponentValue());case"image":return af.parse(t,i.parseComponentValue());case"length":var a=i.parseComponentValue();return hi(a)?a:Pt;case"length-percentage":var o=i.parseComponentValue();return gt(o)?o:Pt;case"time":return zm.parse(t,i.parseComponentValue())}break}},xQ="data-html2canvas-debug",EQ=function(t){var A=t.getAttribute(xQ);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Hh=function(t,A){var e=EQ(t);return e===1||A===e},cn=function(){function t(A,e){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Hh(e,3))debugger;this.styles=new QQ(A,window.getComputedStyle(e,null)),Th(e)&&(this.styles.animationDuration.some(function(r){return r>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=tc(this.context,e),Hh(e,4)&&(this.flags|=16)}return t}(),LQ="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",np="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ca=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var al=0;al<np.length;al++)Ca[np.charCodeAt(al)]=al;var SQ=function(t){var A=t.length*.75,e=t.length,r,n=0,i,s,a,o;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),h=Array.isArray(c)?c:new Uint8Array(c);for(r=0;r<e;r+=4)i=Ca[t.charCodeAt(r)],s=Ca[t.charCodeAt(r+1)],a=Ca[t.charCodeAt(r+2)],o=Ca[t.charCodeAt(r+3)],h[n++]=i<<2|s>>4,h[n++]=(s&15)<<4|a>>2,h[n++]=(a&3)<<6|o&63;return c},IQ=function(t){for(var A=t.length,e=[],r=0;r<A;r+=2)e.push(t[r+1]<<8|t[r]);return e},_Q=function(t){for(var A=t.length,e=[],r=0;r<A;r+=4)e.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return e},Ri=5,of=11,Eu=2,NQ=of-Ri,$m=65536>>Ri,HQ=1<<Ri,Lu=HQ-1,kQ=1024>>Ri,PQ=$m+kQ,TQ=PQ,DQ=32,RQ=TQ+DQ,OQ=65536>>of,MQ=1<<NQ,KQ=MQ-1,ip=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},jQ=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},GQ=function(t,A){var e=SQ(t),r=Array.isArray(e)?_Q(e):new Uint32Array(e),n=Array.isArray(e)?IQ(e):new Uint16Array(e),i=24,s=ip(n,i/2,r[4]/2),a=r[5]===2?ip(n,(i+r[4])/2):jQ(r,Math.ceil((i+r[4])/4));return new qQ(r[0],r[1],r[2],r[3],s,a)},qQ=function(){function t(A,e,r,n,i,s){this.initialValue=A,this.errorValue=e,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=s}return t.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>Ri],e=(e<<Eu)+(A&Lu),this.data[e];if(A<=65535)return e=this.index[$m+(A-55296>>Ri)],e=(e<<Eu)+(A&Lu),this.data[e];if(A<this.highStart)return e=RQ-OQ+(A>>of),e=this.index[e],e+=A>>Ri&KQ,e=this.index[e],e=(e<<Eu)+(A&Lu),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),sp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",VQ=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ol=0;ol<sp.length;ol++)VQ[sp.charCodeAt(ol)]=ol;var WQ=1,Su=2,Iu=3,ap=4,op=5,zQ=7,lp=8,_u=9,Nu=10,cp=11,up=12,hp=13,fp=14,Hu=15,$Q=function(t){for(var A=[],e=0,r=t.length;e<r;){var n=t.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var i=t.charCodeAt(e++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),e--)}else A.push(n)}return A},XQ=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var e=t.length;if(!e)return"";for(var r=[],n=-1,i="";++n<e;){var s=t[n];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(n+1===e||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},JQ=GQ(LQ),Ur="×",ku="÷",YQ=function(t){return JQ.get(t)},ZQ=function(t,A,e){var r=e-2,n=A[r],i=A[e-1],s=A[e];if(i===Su&&s===Iu)return Ur;if(i===Su||i===Iu||i===ap||s===Su||s===Iu||s===ap)return ku;if(i===lp&&[lp,_u,cp,up].indexOf(s)!==-1||(i===cp||i===_u)&&(s===_u||s===Nu)||(i===up||i===Nu)&&s===Nu||s===hp||s===op||s===zQ||i===WQ)return Ur;if(i===hp&&s===fp){for(;n===op;)n=A[--r];if(n===fp)return Ur}if(i===Hu&&s===Hu){for(var a=0;n===Hu;)a++,n=A[--r];if(a%2===0)return Ur}return ku},AU=function(t){var A=$Q(t),e=A.length,r=0,n=0,i=A.map(YQ);return{next:function(){if(r>=e)return{done:!0,value:null};for(var s=Ur;r<e&&(s=ZQ(A,i,++r))===Ur;);if(s!==Ur||r===e){var a=XQ.apply(null,A.slice(n,r));return n=r,{value:a,done:!1}}return{done:!0,value:null}}}},eU=function(t){for(var A=AU(t),e=[],r;!(r=A.next()).done;)r.value&&e.push(r.value.slice());return e},tU=function(t){var A=123;if(t.createRange){var e=t.createRange();if(e.getBoundingClientRect){var r=t.createElement("boundtest");r.style.height=A+"px",r.style.display="block",t.body.appendChild(r),e.selectNode(r);var n=e.getBoundingClientRect(),i=Math.round(n.height);if(t.body.removeChild(r),i===A)return!0}}return!1},rU=function(t){var A=t.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",t.body.appendChild(A);var e=t.createRange();A.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=A.firstChild,n=rc(r.data).map(function(o){return st(o)}),i=0,s={},a=n.every(function(o,c){e.setStart(r,i),e.setEnd(r,i+o.length);var h=e.getBoundingClientRect();i+=o.length;var g=h.x>s.x||h.y>s.y;return s=h,c===0?!0:g});return t.body.removeChild(A),a},nU=function(){return typeof new Image().crossOrigin<"u"},iU=function(){return typeof new XMLHttpRequest().responseType=="string"},sU=function(t){var A=new Image,e=t.createElement("canvas"),r=e.getContext("2d");if(!r)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(A,0,0),e.toDataURL()}catch{return!1}return!0},dp=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},aU=function(t){var A=t.createElement("canvas"),e=100;A.width=e,A.height=e;var r=A.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,e,e);var n=new Image,i=A.toDataURL();n.src=i;var s=kh(e,e,0,0,n);return r.fillStyle="red",r.fillRect(0,0,e,e),gp(s).then(function(a){r.drawImage(a,0,0);var o=r.getImageData(0,0,e,e).data;r.fillStyle="red",r.fillRect(0,0,e,e);var c=t.createElement("div");return c.style.backgroundImage="url("+i+")",c.style.height=e+"px",dp(o)?gp(kh(e,e,0,0,c)):Promise.reject(!1)}).then(function(a){return r.drawImage(a,0,0),dp(r.getImageData(0,0,e,e).data)}).catch(function(){return!1})},kh=function(t,A,e,r,n){var i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return s.setAttributeNS(null,"width",t.toString()),s.setAttributeNS(null,"height",A.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",e.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(n),s},gp=function(t){return new Promise(function(A,e){var r=new Image;r.onload=function(){return A(r)},r.onerror=e,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},kt={get SUPPORT_RANGE_BOUNDS(){var t=tU(document);return Object.defineProperty(kt,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=kt.SUPPORT_RANGE_BOUNDS&&rU(document);return Object.defineProperty(kt,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=sU(document);return Object.defineProperty(kt,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?aU(document):Promise.resolve(!1);return Object.defineProperty(kt,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=nU();return Object.defineProperty(kt,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=iU();return Object.defineProperty(kt,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(kt,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(kt,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Ia=function(){function t(A,e){this.text=A,this.bounds=e}return t}(),oU=function(t,A,e,r){var n=uU(A,e),i=[],s=0;return n.forEach(function(a){if(e.textDecorationLine.length||a.trim().length>0)if(kt.SUPPORT_RANGE_BOUNDS){var o=pp(r,s,a.length).getClientRects();if(o.length>1){var c=lf(a),h=0;c.forEach(function(m){i.push(new Ia(m,Pn.fromDOMRectList(t,pp(r,h+s,m.length).getClientRects()))),h+=m.length})}else i.push(new Ia(a,Pn.fromDOMRectList(t,o)))}else{var g=r.splitText(a.length);i.push(new Ia(a,lU(t,r))),r=g}else kt.SUPPORT_RANGE_BOUNDS||(r=r.splitText(a.length));s+=a.length}),i},lU=function(t,A){var e=A.ownerDocument;if(e){var r=e.createElement("html2canvaswrapper");r.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(r,A);var i=tc(t,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return Pn.EMPTY},pp=function(t,A,e){var r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(t,A),n.setEnd(t,A+e),n},lf=function(t){if(kt.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(t)).map(function(e){return e.segment})}return eU(t)},cU=function(t,A){if(kt.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(t)).map(function(r){return r.segment})}return fU(t,A)},uU=function(t,A){return A.letterSpacing!==0?lf(t):cU(t,A)},hU=[32,160,4961,65792,65793,4153,4241],fU=function(t,A){for(var e=Ob(t,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),r=[],n,i=function(){if(n.value){var s=n.value.slice(),a=rc(s),o="";a.forEach(function(c){hU.indexOf(c)===-1?o+=st(c):(o.length&&r.push(o),r.push(st(c)),o="")}),o.length&&r.push(o)}};!(n=e.next()).done;)i();return r},dU=function(){function t(A,e,r){this.text=gU(e.data,r.textTransform),this.textBounds=oU(A,this.text,r,e)}return t}(),gU=function(t,A){switch(A){case 1:return t.toLowerCase();case 3:return t.replace(pU,mU);case 2:return t.toUpperCase();default:return t}},pU=/(^|\s|:|-|\(|\))([a-z])/g,mU=function(t,A,e){return t.length>0?A+e.toUpperCase():t},Xm=function(t){qr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return A}(cn),Jm=function(t){qr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return A}(cn),Ym=function(t){qr(A,t);function A(e,r){var n=t.call(this,e,r)||this,i=new XMLSerializer,s=tc(e,r);return r.setAttribute("width",s.width+"px"),r.setAttribute("height",s.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return A}(cn),Zm=function(t){qr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.value=r.value,n}return A}(cn),Ph=function(t){qr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return A}(cn),BU=[{type:15,flags:0,unit:"px",number:3}],wU=[{type:16,flags:0,number:50}],vU=function(t){return t.width>t.height?new Pn(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new Pn(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},yU=function(t){var A=t.type===CU?new Array(t.value.length+1).join("•"):t.value;return A.length===0?t.placeholder||"":A},jl="checkbox",Gl="radio",CU="password",mp=707406591,cf=function(t){qr(A,t);function A(e,r){var n=t.call(this,e,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=yU(r),(n.type===jl||n.type===Gl)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=vU(n.bounds)),n.type){case jl:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=BU;break;case Gl:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=wU;break}return n}return A}(cn),A1=function(t){qr(A,t);function A(e,r){var n=t.call(this,e,r)||this,i=r.options[r.selectedIndex||0];return n.value=i&&i.text||"",n}return A}(cn),e1=function(t){qr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.value=r.value,n}return A}(cn),t1=function(t){qr(A,t);function A(e,r){var n=t.call(this,e,r)||this;n.src=r.src,n.width=parseInt(r.width,10)||0,n.height=parseInt(r.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){n.tree=n1(e,r.contentWindow.document.documentElement);var i=r.contentWindow.document.documentElement?La(e,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):kn.TRANSPARENT,s=r.contentWindow.document.body?La(e,getComputedStyle(r.contentWindow.document.body).backgroundColor):kn.TRANSPARENT;n.backgroundColor=ci(i)?ci(s)?n.styles.backgroundColor:s:i}}catch{}return n}return A}(cn),bU=["OL","UL","MENU"],bl=function(t,A,e,r){for(var n=A.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,i1(n)&&n.data.trim().length>0)e.textNodes.push(new dU(t,n,e.styles));else if(vs(n))if(l1(n)&&n.assignedNodes)n.assignedNodes().forEach(function(a){return bl(t,a,e,r)});else{var s=r1(t,n);s.styles.isVisible()&&(FU(n,s,r)?s.flags|=4:QU(s.styles)&&(s.flags|=2),bU.indexOf(n.tagName)!==-1&&(s.flags|=8),e.elements.push(s),n.slot,n.shadowRoot?bl(t,n.shadowRoot,s,r):!ql(n)&&!s1(n)&&!Vl(n)&&bl(t,n,s,r))}},r1=function(t,A){return Dh(A)?new Xm(t,A):a1(A)?new Jm(t,A):s1(A)?new Ym(t,A):UU(A)?new Zm(t,A):xU(A)?new Ph(t,A):EU(A)?new cf(t,A):Vl(A)?new A1(t,A):ql(A)?new e1(t,A):o1(A)?new t1(t,A):new cn(t,A)},n1=function(t,A){var e=r1(t,A);return e.flags|=4,bl(t,A,e,e),e},FU=function(t,A,e){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||uf(t)&&e.styles.isTransparent()},QU=function(t){return t.isPositioned()||t.isFloating()},i1=function(t){return t.nodeType===Node.TEXT_NODE},vs=function(t){return t.nodeType===Node.ELEMENT_NODE},Th=function(t){return vs(t)&&typeof t.style<"u"&&!Fl(t)},Fl=function(t){return typeof t.className=="object"},UU=function(t){return t.tagName==="LI"},xU=function(t){return t.tagName==="OL"},EU=function(t){return t.tagName==="INPUT"},LU=function(t){return t.tagName==="HTML"},s1=function(t){return t.tagName==="svg"},uf=function(t){return t.tagName==="BODY"},a1=function(t){return t.tagName==="CANVAS"},Bp=function(t){return t.tagName==="VIDEO"},Dh=function(t){return t.tagName==="IMG"},o1=function(t){return t.tagName==="IFRAME"},wp=function(t){return t.tagName==="STYLE"},SU=function(t){return t.tagName==="SCRIPT"},ql=function(t){return t.tagName==="TEXTAREA"},Vl=function(t){return t.tagName==="SELECT"},l1=function(t){return t.tagName==="SLOT"},vp=function(t){return t.tagName.indexOf("-")>0},IU=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},t.prototype.pop=function(A){var e=this;A.forEach(function(r){return e.counters[r].pop()})},t.prototype.parse=function(A){var e=this,r=A.counterIncrement,n=A.counterReset,i=!0;r!==null&&r.forEach(function(a){var o=e.counters[a.counter];o&&a.increment!==0&&(i=!1,o.length||o.push(1),o[Math.max(0,o.length-1)]+=a.increment)});var s=[];return i&&n.forEach(function(a){var o=e.counters[a.counter];s.push(a.counter),o||(o=e.counters[a.counter]=[]),o.push(a.reset)}),s},t}(),yp={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"]},Cp={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},_U={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},NU={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},us=function(t,A,e,r,n,i){return t<A||t>e?Ma(t,n,i.length>0):r.integers.reduce(function(s,a,o){for(;t>=a;)t-=a,s+=r.values[o];return s},"")+i},c1=function(t,A,e,r){var n="";do e||t--,n=r(t)+n,t/=A;while(t*A>=A);return n},it=function(t,A,e,r,n){var i=e-A+1;return(t<0?"-":"")+(c1(Math.abs(t),i,r,function(s){return st(Math.floor(s%i)+A)})+n)},Ii=function(t,A,e){e===void 0&&(e=". ");var r=A.length;return c1(Math.abs(t),r,!1,function(n){return A[Math.floor(n%r)]})+e},ps=1,ei=2,ti=4,ba=8,_n=function(t,A,e,r,n,i){if(t<-9999||t>9999)return Ma(t,4,n.length>0);var s=Math.abs(t),a=n;if(s===0)return A[0]+a;for(var o=0;s>0&&o<=4;o++){var c=s%10;c===0&&bt(i,ps)&&a!==""?a=A[c]+a:c>1||c===1&&o===0||c===1&&o===1&&bt(i,ei)||c===1&&o===1&&bt(i,ti)&&t>100||c===1&&o>1&&bt(i,ba)?a=A[c]+(o>0?e[o-1]:"")+a:c===1&&o>0&&(a=e[o-1]+a),s=Math.floor(s/10)}return(t<0?r:"")+a},bp="十百千萬",Fp="拾佰仟萬",Qp="マイナス",Pu="마이너스",Ma=function(t,A,e){var r=e?". ":"",n=e?"、":"",i=e?", ":"",s=e?" ":"";switch(A){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var a=it(t,48,57,!0,r);return a.length<4?"0"+a:a;case 4:return Ii(t,"〇一二三四五六七八九",n);case 6:return us(t,1,3999,yp,3,r).toLowerCase();case 7:return us(t,1,3999,yp,3,r);case 8:return it(t,945,969,!1,r);case 9:return it(t,97,122,!1,r);case 10:return it(t,65,90,!1,r);case 11:return it(t,1632,1641,!0,r);case 12:case 49:return us(t,1,9999,Cp,3,r);case 35:return us(t,1,9999,Cp,3,r).toLowerCase();case 13:return it(t,2534,2543,!0,r);case 14:case 30:return it(t,6112,6121,!0,r);case 15:return Ii(t,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Ii(t,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return _n(t,"零一二三四五六七八九",bp,"負",n,ei|ti|ba);case 47:return _n(t,"零壹貳參肆伍陸柒捌玖",Fp,"負",n,ps|ei|ti|ba);case 42:return _n(t,"零一二三四五六七八九",bp,"负",n,ei|ti|ba);case 41:return _n(t,"零壹贰叁肆伍陆柒捌玖",Fp,"负",n,ps|ei|ti|ba);case 26:return _n(t,"〇一二三四五六七八九","十百千万",Qp,n,0);case 25:return _n(t,"零壱弐参四伍六七八九","拾百千万",Qp,n,ps|ei|ti);case 31:return _n(t,"영일이삼사오육칠팔구","십백천만",Pu,i,ps|ei|ti);case 33:return _n(t,"零一二三四五六七八九","十百千萬",Pu,i,0);case 32:return _n(t,"零壹貳參四五六七八九","拾百千",Pu,i,ps|ei|ti);case 18:return it(t,2406,2415,!0,r);case 20:return us(t,1,19999,NU,3,r);case 21:return it(t,2790,2799,!0,r);case 22:return it(t,2662,2671,!0,r);case 22:return us(t,1,10999,_U,3,r);case 23:return Ii(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ii(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return it(t,3302,3311,!0,r);case 28:return Ii(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Ii(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return it(t,3792,3801,!0,r);case 37:return it(t,6160,6169,!0,r);case 38:return it(t,4160,4169,!0,r);case 39:return it(t,2918,2927,!0,r);case 40:return it(t,1776,1785,!0,r);case 43:return it(t,3046,3055,!0,r);case 44:return it(t,3174,3183,!0,r);case 45:return it(t,3664,3673,!0,r);case 46:return it(t,3872,3881,!0,r);case 3:default:return it(t,48,57,!0,r)}},u1="data-html2canvas-ignore",Up=function(){function t(A,e,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=e,this.counters=new IU,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(A,e){var r=this,n=HU(A,e);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,a=n.contentWindow,o=a.document,c=TU(n).then(function(){return Yt(r,void 0,void 0,function(){var h,g;return qt(this,function(m){switch(m.label){case 0:return this.scrolledElements.forEach(MU),a&&(a.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(a.scrollY!==e.top||a.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-e.left,a.scrollY-e.top,0,0))),h=this.options.onclone,g=this.clonedReferenceElement,typeof g>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:o.fonts&&o.fonts.ready?[4,o.fonts.ready]:[3,2];case 1:m.sent(),m.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,PU(o)]:[3,4];case 3:m.sent(),m.label=4;case 4:return typeof h=="function"?[2,Promise.resolve().then(function(){return h(o,g)}).then(function(){return n})]:[2,n]}})})});return o.open(),o.write(RU(document.doctype)+"<html></html>"),OU(this.referenceElement.ownerDocument,i,s),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),c},t.prototype.createElementClone=function(A){if(Hh(A,2))debugger;if(a1(A))return this.createCanvasClone(A);if(Bp(A))return this.createVideoClone(A);if(wp(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Dh(e)&&(Dh(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),vp(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return Tu(A.style,e),e},t.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var r=[].slice.call(e.cssRules,0).reduce(function(i,s){return s&&typeof s.cssText=="string"?i+s.cssText:i},""),n=A.cloneNode(!1);return n.textContent=r,n}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return A.cloneNode(!1)},t.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var i=A.getContext("2d"),s=n.getContext("2d");if(s)if(!this.options.allowTaint&&i)s.putImageData(i.getImageData(0,0,A.width,A.height),0,0);else{var a=(e=A.getContext("webgl2"))!==null&&e!==void 0?e:A.getContext("webgl");if(a){var o=a.getContextAttributes();(o==null?void 0:o.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}s.drawImage(A,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},t.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var r=e.getContext("2d");try{return r&&(r.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||r.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},t.prototype.appendChildNode=function(A,e,r){(!vs(e)||!SU(e)&&!e.hasAttribute(u1)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!vs(e)||!wp(e))&&A.appendChild(this.cloneNode(e,r))},t.prototype.cloneChildNodes=function(A,e,r){for(var n=this,i=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;i;i=i.nextSibling)if(vs(i)&&l1(i)&&typeof i.assignedNodes=="function"){var s=i.assignedNodes();s.length&&s.forEach(function(a){return n.appendChildNode(e,a,r)})}else this.appendChildNode(e,i,r)},t.prototype.cloneNode=function(A,e){if(i1(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var r=A.ownerDocument.defaultView;if(r&&vs(A)&&(Th(A)||Fl(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var i=r.getComputedStyle(A),s=r.getComputedStyle(A,":before"),a=r.getComputedStyle(A,":after");this.referenceElement===A&&Th(n)&&(this.clonedReferenceElement=n),uf(n)&&GU(n);var o=this.counters.parse(new rp(this.context,i)),c=this.resolvePseudoContent(A,n,s,_a.BEFORE);vp(A)&&(e=!0),Bp(A)||this.cloneChildNodes(A,n,e),c&&n.insertBefore(c,n.firstChild);var h=this.resolvePseudoContent(A,n,a,_a.AFTER);return h&&n.appendChild(h),this.counters.pop(o),(i&&(this.options.copyStyles||Fl(A))&&!o1(A)||e)&&Tu(i,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(ql(A)||Vl(A))&&(ql(n)||Vl(n))&&(n.value=A.value),n}return A.cloneNode(!1)},t.prototype.resolvePseudoContent=function(A,e,r,n){var i=this;if(r){var s=r.content,a=e.ownerDocument;if(!(!a||!s||s==="none"||s==="-moz-alt-content"||r.display==="none")){this.counters.parse(new rp(this.context,r));var o=new UQ(this.context,r),c=a.createElement("html2canvaspseudoelement");Tu(r,c),o.content.forEach(function(g){if(g.type===0)c.appendChild(a.createTextNode(g.value));else if(g.type===22){var m=a.createElement("img");m.src=g.value,m.style.opacity="1",c.appendChild(m)}else if(g.type===18){if(g.name==="attr"){var f=g.values.filter(ke);f.length&&c.appendChild(a.createTextNode(A.getAttribute(f[0].value)||""))}else if(g.name==="counter"){var w=g.values.filter(Ls),y=w[0],F=w[1];if(y&&ke(y)){var v=i.counters.getCounterValue(y.value),L=F&&ke(F)?Nh.parse(i.context,F.value):3;c.appendChild(a.createTextNode(Ma(v,L,!1)))}}else if(g.name==="counters"){var N=g.values.filter(Ls),y=N[0],_=N[1],F=N[2];if(y&&ke(y)){var q=i.counters.getCounterValues(y.value),X=F&&ke(F)?Nh.parse(i.context,F.value):3,J=_&&_.type===0?_.value:"",G=q.map(function(x){return Ma(x,X,!1)}).join(J);c.appendChild(a.createTextNode(G))}}}else if(g.type===20)switch(g.value){case"open-quote":c.appendChild(a.createTextNode(tp(o.quotes,i.quoteDepth++,!0)));break;case"close-quote":c.appendChild(a.createTextNode(tp(o.quotes,--i.quoteDepth,!1)));break;default:c.appendChild(a.createTextNode(g.value))}}),c.className=Rh+" "+Oh;var h=n===_a.BEFORE?" "+Rh:" "+Oh;return Fl(e)?e.className.baseValue+=h:e.className+=h,c}}},t.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},t}(),_a;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(_a||(_a={}));var HU=function(t,A){var e=t.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=A.width.toString(),e.height=A.height.toString(),e.scrolling="no",e.setAttribute(u1,"true"),t.body.appendChild(e),e},kU=function(t){return new Promise(function(A){if(t.complete){A();return}if(!t.src){A();return}t.onload=A,t.onerror=A})},PU=function(t){return Promise.all([].slice.call(t.images,0).map(kU))},TU=function(t){return new Promise(function(A,e){var r=t.contentWindow;if(!r)return e("No window assigned for iframe");var n=r.document;r.onload=t.onload=function(){r.onload=t.onload=null;var i=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(i),A(t))},50)}})},DU=["all","d","content"],Tu=function(t,A){for(var e=t.length-1;e>=0;e--){var r=t.item(e);DU.indexOf(r)===-1&&A.style.setProperty(r,t.getPropertyValue(r))}return A},RU=function(t){var A="";return t&&(A+="<!DOCTYPE ",t.name&&(A+=t.name),t.internalSubset&&(A+=t.internalSubset),t.publicId&&(A+='"'+t.publicId+'"'),t.systemId&&(A+='"'+t.systemId+'"'),A+=">"),A},OU=function(t,A,e){t&&t.defaultView&&(A!==t.defaultView.pageXOffset||e!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(A,e)},MU=function(t){var A=t[0],e=t[1],r=t[2];A.scrollLeft=e,A.scrollTop=r},KU=":before",jU=":after",Rh="___html2canvas___pseudoelement_before",Oh="___html2canvas___pseudoelement_after",xp=`{
343
+ ***************************************************************************** */var yh=function(t,A){return yh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])},yh(t,A)};function Wr(t,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");yh(t,A);function e(){this.constructor=t}t.prototype=A===null?Object.create(A):(e.prototype=A.prototype,new e)}var bh=function(){return bh=Object.assign||function(A){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(A[i]=e[i])}return A},bh.apply(this,arguments)};function Yt(t,A,e,r){function n(i){return i instanceof e?i:new e(function(s){s(i)})}return new(e||(e=Promise))(function(i,s){function a(h){try{c(r.next(h))}catch(d){s(d)}}function o(h){try{c(r.throw(h))}catch(d){s(d)}}function c(h){h.done?i(h.value):n(h.value).then(a,o)}c((r=r.apply(t,[])).next())})}function qt(t,A){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(h){return o([c,h])}}function o(c){if(r)throw new TypeError("Generator is already executing.");for(;e;)try{if(r=1,n&&(i=c[0]&2?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,n=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){e.label=c[1];break}if(c[0]===6&&e.label<i[1]){e.label=i[1],i=c;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(c);break}i[2]&&e.ops.pop(),e.trys.pop();continue}c=A.call(t,e)}catch(h){c=[6,h],n=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function qo(t,A,e){if(arguments.length===2)for(var r=0,n=A.length,i;r<n;r++)(i||!(r in A))&&(i||(i=Array.prototype.slice.call(A,0,r)),i[r]=A[r]);return t.concat(i||A)}var Tn=function(){function t(A,e,r,n){this.left=A,this.top=e,this.width=r,this.height=n}return t.prototype.add=function(A,e,r,n){return new t(this.left+A,this.top+e,this.width+r,this.height+n)},t.fromClientRect=function(A,e){return new t(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height)},t.fromDOMRectList=function(A,e){var r=Array.from(e).find(function(n){return n.width!==0});return r?new t(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),rc=function(t,A){return Tn.fromClientRect(t,A.getBoundingClientRect())},iC=function(t){var A=t.body,e=t.documentElement;if(!A||!e)throw new Error("Unable to get document size");var r=Math.max(Math.max(A.scrollWidth,e.scrollWidth),Math.max(A.offsetWidth,e.offsetWidth),Math.max(A.clientWidth,e.clientWidth)),n=Math.max(Math.max(A.scrollHeight,e.scrollHeight),Math.max(A.offsetHeight,e.offsetHeight),Math.max(A.clientHeight,e.clientHeight));return new Tn(0,0,r,n)},nc=function(t){for(var A=[],e=0,r=t.length;e<r;){var n=t.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var i=t.charCodeAt(e++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),e--)}else A.push(n)}return A},at=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var e=t.length;if(!e)return"";for(var r=[],n=-1,i="";++n<e;){var s=t[n];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(n+1===e||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},Pg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sC=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Vo=0;Vo<Pg.length;Vo++)sC[Pg.charCodeAt(Vo)]=Vo;var Tg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ma=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Wo=0;Wo<Tg.length;Wo++)ma[Tg.charCodeAt(Wo)]=Wo;var aC=function(t){var A=t.length*.75,e=t.length,r,n=0,i,s,a,o;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),h=Array.isArray(c)?c:new Uint8Array(c);for(r=0;r<e;r+=4)i=ma[t.charCodeAt(r)],s=ma[t.charCodeAt(r+1)],a=ma[t.charCodeAt(r+2)],o=ma[t.charCodeAt(r+3)],h[n++]=i<<2|s>>4,h[n++]=(s&15)<<4|a>>2,h[n++]=(a&3)<<6|o&63;return c},oC=function(t){for(var A=t.length,e=[],r=0;r<A;r+=2)e.push(t[r+1]<<8|t[r]);return e},lC=function(t){for(var A=t.length,e=[],r=0;r<A;r+=4)e.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return e},Di=5,lf=11,yu=2,cC=lf-Di,wm=65536>>Di,uC=1<<Di,bu=uC-1,hC=1024>>Di,fC=wm+hC,dC=fC,gC=32,pC=dC+gC,mC=65536>>lf,BC=1<<cC,wC=BC-1,Dg=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},vC=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},yC=function(t,A){var e=aC(t),r=Array.isArray(e)?lC(e):new Uint32Array(e),n=Array.isArray(e)?oC(e):new Uint16Array(e),i=24,s=Dg(n,i/2,r[4]/2),a=r[5]===2?Dg(n,(i+r[4])/2):vC(r,Math.ceil((i+r[4])/4));return new bC(r[0],r[1],r[2],r[3],s,a)},bC=function(){function t(A,e,r,n,i,s){this.initialValue=A,this.errorValue=e,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=s}return t.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>Di],e=(e<<yu)+(A&bu),this.data[e];if(A<=65535)return e=this.index[wm+(A-55296>>Di)],e=(e<<yu)+(A&bu),this.data[e];if(A<this.highStart)return e=pC-mC+(A>>lf),e=this.index[e],e+=A>>Di&wC,e=this.index[e],e=(e<<yu)+(A&bu),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),Rg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",CC=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var zo=0;zo<Rg.length;zo++)CC[Rg.charCodeAt(zo)]=zo;var FC="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Og=50,QC=1,vm=2,ym=3,UC=4,xC=5,Mg=7,bm=8,Kg=9,si=10,Ch=11,jg=12,Fh=13,EC=14,Ba=15,Qh=16,$o=17,ha=18,LC=19,Gg=20,Uh=21,fa=22,Cu=23,os=24,gr=25,wa=26,va=27,ls=28,SC=29,ki=30,IC=31,Xo=32,Jo=33,xh=34,Eh=35,Lh=36,Oa=37,Sh=38,bl=39,Cl=40,Fu=41,Cm=42,_C=43,NC=[9001,65288],Fm="!",Qe="×",Yo="÷",Ih=yC(FC),_n=[ki,Lh],_h=[QC,vm,ym,xC],Qm=[si,bm],qg=[va,wa],kC=_h.concat(Qm),Vg=[Sh,bl,Cl,xh,Eh],HC=[Ba,Fh],PC=function(t,A){A===void 0&&(A="strict");var e=[],r=[],n=[];return t.forEach(function(i,s){var a=Ih.get(i);if(a>Og?(n.push(!0),a-=Og):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(s),e.push(Qh);if(a===UC||a===Ch){if(s===0)return r.push(s),e.push(ki);var o=e[s-1];return kC.indexOf(o)===-1?(r.push(r[s-1]),e.push(o)):(r.push(s),e.push(ki))}if(r.push(s),a===IC)return e.push(A==="strict"?Uh:Oa);if(a===Cm||a===SC)return e.push(ki);if(a===_C)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(Oa):e.push(ki);e.push(a)}),[r,e,n]},Qu=function(t,A,e,r){var n=r[e];if(Array.isArray(t)?t.indexOf(n)!==-1:t===n)for(var i=e;i<=r.length;){i++;var s=r[i];if(s===A)return!0;if(s!==si)break}if(n===si)for(var i=e;i>0;){i--;var a=r[i];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var o=e;o<=r.length;){o++;var s=r[o];if(s===A)return!0;if(s!==si)break}if(a!==si)break}return!1},Wg=function(t,A){for(var e=t;e>=0;){var r=A[e];if(r===si)e--;else return r}return 0},TC=function(t,A,e,r,n){if(e[r]===0)return Qe;var i=r-1;if(Array.isArray(n)&&n[i]===!0)return Qe;var s=i-1,a=i+1,o=A[i],c=s>=0?A[s]:0,h=A[a];if(o===vm&&h===ym)return Qe;if(_h.indexOf(o)!==-1)return Fm;if(_h.indexOf(h)!==-1||Qm.indexOf(h)!==-1)return Qe;if(Wg(i,A)===bm)return Yo;if(Ih.get(t[i])===Ch||(o===Xo||o===Jo)&&Ih.get(t[a])===Ch||o===Mg||h===Mg||o===Kg||[si,Fh,Ba].indexOf(o)===-1&&h===Kg||[$o,ha,LC,os,ls].indexOf(h)!==-1||Wg(i,A)===fa||Qu(Cu,fa,i,A)||Qu([$o,ha],Uh,i,A)||Qu(jg,jg,i,A))return Qe;if(o===si)return Yo;if(o===Cu||h===Cu)return Qe;if(h===Qh||o===Qh)return Yo;if([Fh,Ba,Uh].indexOf(h)!==-1||o===EC||c===Lh&&HC.indexOf(o)!==-1||o===ls&&h===Lh||h===Gg||_n.indexOf(h)!==-1&&o===gr||_n.indexOf(o)!==-1&&h===gr||o===va&&[Oa,Xo,Jo].indexOf(h)!==-1||[Oa,Xo,Jo].indexOf(o)!==-1&&h===wa||_n.indexOf(o)!==-1&&qg.indexOf(h)!==-1||qg.indexOf(o)!==-1&&_n.indexOf(h)!==-1||[va,wa].indexOf(o)!==-1&&(h===gr||[fa,Ba].indexOf(h)!==-1&&A[a+1]===gr)||[fa,Ba].indexOf(o)!==-1&&h===gr||o===gr&&[gr,ls,os].indexOf(h)!==-1)return Qe;if([gr,ls,os,$o,ha].indexOf(h)!==-1)for(var d=i;d>=0;){var m=A[d];if(m===gr)return Qe;if([ls,os].indexOf(m)!==-1)d--;else break}if([va,wa].indexOf(h)!==-1)for(var d=[$o,ha].indexOf(o)!==-1?s:i;d>=0;){var m=A[d];if(m===gr)return Qe;if([ls,os].indexOf(m)!==-1)d--;else break}if(Sh===o&&[Sh,bl,xh,Eh].indexOf(h)!==-1||[bl,xh].indexOf(o)!==-1&&[bl,Cl].indexOf(h)!==-1||[Cl,Eh].indexOf(o)!==-1&&h===Cl||Vg.indexOf(o)!==-1&&[Gg,wa].indexOf(h)!==-1||Vg.indexOf(h)!==-1&&o===va||_n.indexOf(o)!==-1&&_n.indexOf(h)!==-1||o===os&&_n.indexOf(h)!==-1||_n.concat(gr).indexOf(o)!==-1&&h===fa&&NC.indexOf(t[a])===-1||_n.concat(gr).indexOf(h)!==-1&&o===ha)return Qe;if(o===Fu&&h===Fu){for(var f=e[i],w=1;f>0&&(f--,A[f]===Fu);)w++;if(w%2!==0)return Qe}return o===Xo&&h===Jo?Qe:Yo},DC=function(t,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=PC(t,A.lineBreak),r=e[0],n=e[1],i=e[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(n=n.map(function(a){return[gr,ki,Cm].indexOf(a)!==-1?Oa:a}));var s=A.wordBreak==="keep-all"?i.map(function(a,o){return a&&t[o]>=19968&&t[o]<=40959}):void 0;return[r,n,s]},RC=function(){function t(A,e,r,n){this.codePoints=A,this.required=e===Fm,this.start=r,this.end=n}return t.prototype.slice=function(){return at.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),OC=function(t,A){var e=nc(t),r=DC(e,A),n=r[0],i=r[1],s=r[2],a=e.length,o=0,c=0;return{next:function(){if(c>=a)return{done:!0,value:null};for(var h=Qe;c<a&&(h=TC(e,i,n,++c,s))===Qe;);if(h!==Qe||c===a){var d=new RC(e,h,o,c);return o=c,{value:d,done:!1}}return{done:!0,value:null}}}},MC=1,KC=2,Va=4,zg=8,Ml=10,$g=47,Ea=92,jC=9,GC=32,Zo=34,da=61,qC=35,VC=36,WC=37,Al=39,el=40,ga=41,zC=95,er=45,$C=33,XC=60,JC=62,YC=64,ZC=91,A4=93,e4=61,t4=123,tl=63,r4=125,Xg=124,n4=126,i4=128,Jg=65533,Uu=42,Pi=43,s4=44,a4=58,o4=59,Ma=46,l4=0,c4=8,u4=11,h4=14,f4=31,d4=127,nn=-1,Um=48,xm=97,Em=101,g4=102,p4=117,m4=122,Lm=65,Sm=69,Im=70,B4=85,w4=90,Vt=function(t){return t>=Um&&t<=57},v4=function(t){return t>=55296&&t<=57343},cs=function(t){return Vt(t)||t>=Lm&&t<=Im||t>=xm&&t<=g4},y4=function(t){return t>=xm&&t<=m4},b4=function(t){return t>=Lm&&t<=w4},C4=function(t){return y4(t)||b4(t)},F4=function(t){return t>=i4},rl=function(t){return t===Ml||t===jC||t===GC},Kl=function(t){return C4(t)||F4(t)||t===zC},Yg=function(t){return Kl(t)||Vt(t)||t===er},Q4=function(t){return t>=l4&&t<=c4||t===u4||t>=h4&&t<=f4||t===d4},ni=function(t,A){return t!==Ea?!1:A!==Ml},nl=function(t,A,e){return t===er?Kl(A)||ni(A,e):Kl(t)?!0:!!(t===Ea&&ni(t,A))},xu=function(t,A,e){return t===Pi||t===er?Vt(A)?!0:A===Ma&&Vt(e):Vt(t===Ma?A:t)},U4=function(t){var A=0,e=1;(t[A]===Pi||t[A]===er)&&(t[A]===er&&(e=-1),A++);for(var r=[];Vt(t[A]);)r.push(t[A++]);var n=r.length?parseInt(at.apply(void 0,r),10):0;t[A]===Ma&&A++;for(var i=[];Vt(t[A]);)i.push(t[A++]);var s=i.length,a=s?parseInt(at.apply(void 0,i),10):0;(t[A]===Sm||t[A]===Em)&&A++;var o=1;(t[A]===Pi||t[A]===er)&&(t[A]===er&&(o=-1),A++);for(var c=[];Vt(t[A]);)c.push(t[A++]);var h=c.length?parseInt(at.apply(void 0,c),10):0;return e*(n+a*Math.pow(10,-s))*Math.pow(10,o*h)},x4={type:2},E4={type:3},L4={type:4},S4={type:13},I4={type:8},_4={type:21},N4={type:9},k4={type:10},H4={type:11},P4={type:12},T4={type:14},il={type:23},D4={type:1},R4={type:25},O4={type:24},M4={type:26},K4={type:27},j4={type:28},G4={type:29},q4={type:31},Nh={type:32},_m=function(){function t(){this._value=[]}return t.prototype.write=function(A){this._value=this._value.concat(nc(A))},t.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==Nh;)A.push(e),e=this.consumeToken();return A},t.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Zo:return this.consumeStringToken(Zo);case qC:var e=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Yg(e)||ni(r,n)){var i=nl(e,r,n)?KC:MC,s=this.consumeName();return{type:5,value:s,flags:i}}break;case VC:if(this.peekCodePoint(0)===da)return this.consumeCodePoint(),S4;break;case Al:return this.consumeStringToken(Al);case el:return x4;case ga:return E4;case Uu:if(this.peekCodePoint(0)===da)return this.consumeCodePoint(),T4;break;case Pi:if(xu(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case s4:return L4;case er:var a=A,o=this.peekCodePoint(0),c=this.peekCodePoint(1);if(xu(a,o,c))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(nl(a,o,c))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(o===er&&c===JC)return this.consumeCodePoint(),this.consumeCodePoint(),O4;break;case Ma:if(xu(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case $g:if(this.peekCodePoint(0)===Uu)for(this.consumeCodePoint();;){var h=this.consumeCodePoint();if(h===Uu&&(h=this.consumeCodePoint(),h===$g))return this.consumeToken();if(h===nn)return this.consumeToken()}break;case a4:return M4;case o4:return K4;case XC:if(this.peekCodePoint(0)===$C&&this.peekCodePoint(1)===er&&this.peekCodePoint(2)===er)return this.consumeCodePoint(),this.consumeCodePoint(),R4;break;case YC:var d=this.peekCodePoint(0),m=this.peekCodePoint(1),f=this.peekCodePoint(2);if(nl(d,m,f)){var s=this.consumeName();return{type:7,value:s}}break;case ZC:return j4;case Ea:if(ni(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case A4:return G4;case e4:if(this.peekCodePoint(0)===da)return this.consumeCodePoint(),I4;break;case t4:return H4;case r4:return P4;case p4:case B4:var w=this.peekCodePoint(0),y=this.peekCodePoint(1);return w===Pi&&(cs(y)||y===tl)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Xg:if(this.peekCodePoint(0)===da)return this.consumeCodePoint(),N4;if(this.peekCodePoint(0)===Xg)return this.consumeCodePoint(),_4;break;case n4:if(this.peekCodePoint(0)===da)return this.consumeCodePoint(),k4;break;case nn:return Nh}return rl(A)?(this.consumeWhiteSpace(),q4):Vt(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):Kl(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:at(A)}},t.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},t.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},t.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},t.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();cs(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var r=!1;e===tl&&A.length<6;)A.push(e),e=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(at.apply(void 0,A.map(function(o){return o===tl?Um:o})),16),i=parseInt(at.apply(void 0,A.map(function(o){return o===tl?Im:o})),16);return{type:30,start:n,end:i}}var s=parseInt(at.apply(void 0,A),16);if(this.peekCodePoint(0)===er&&cs(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var a=[];cs(e)&&a.length<6;)a.push(e),e=this.consumeCodePoint();var i=parseInt(at.apply(void 0,a),16);return{type:30,start:s,end:i}}else return{type:30,start:s,end:s}},t.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===el?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===el?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},t.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===nn)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===Al||e===Zo){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===nn||this.peekCodePoint(0)===ga)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),il)}for(;;){var n=this.consumeCodePoint();if(n===nn||n===ga)return{type:22,value:at.apply(void 0,A)};if(rl(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===nn||this.peekCodePoint(0)===ga?(this.consumeCodePoint(),{type:22,value:at.apply(void 0,A)}):(this.consumeBadUrlRemnants(),il);if(n===Zo||n===Al||n===el||Q4(n))return this.consumeBadUrlRemnants(),il;if(n===Ea)if(ni(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),il;else A.push(n)}},t.prototype.consumeWhiteSpace=function(){for(;rl(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===ga||A===nn)return;ni(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(A){for(var e=5e4,r="";A>0;){var n=Math.min(e,A);r+=at.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),r},t.prototype.consumeStringToken=function(A){var e="",r=0;do{var n=this._value[r];if(n===nn||n===void 0||n===A)return e+=this.consumeStringSlice(r),{type:0,value:e};if(n===Ml)return this._value.splice(0,r),D4;if(n===Ea){var i=this._value[r+1];i!==nn&&i!==void 0&&(i===Ml?(e+=this.consumeStringSlice(r),r=-1,this._value.shift()):ni(n,i)&&(e+=this.consumeStringSlice(r),e+=at(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},t.prototype.consumeNumber=function(){var A=[],e=Va,r=this.peekCodePoint(0);for((r===Pi||r===er)&&A.push(this.consumeCodePoint());Vt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===Ma&&Vt(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=zg;Vt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===Sm||r===Em)&&((n===Pi||n===er)&&Vt(i)||Vt(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=zg;Vt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[U4(A),e]},t.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],r=A[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),s=this.peekCodePoint(2);if(nl(n,i,s)){var a=this.consumeName();return{type:15,number:e,flags:r,unit:a}}return n===WC?(this.consumeCodePoint(),{type:16,number:e,flags:r}):{type:17,number:e,flags:r}},t.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(cs(A)){for(var e=at(A);cs(this.peekCodePoint(0))&&e.length<6;)e+=at(this.consumeCodePoint());rl(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(e,16);return r===0||v4(r)||r>1114111?Jg:r}return A===nn?Jg:A},t.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(Yg(e))A+=at(e);else if(ni(e,this.peekCodePoint(0)))A+=at(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}},t}(),Nm=function(){function t(A){this._tokens=A}return t.create=function(A){var e=new _m;return e.write(A),new t(e.read())},t.parseValue=function(A){return t.create(A).parseComponentValue()},t.parseValues=function(A){return t.create(A).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(e.type===32)return A;A.push(e),A.push()}},t.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},t.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},r=this.consumeToken();;){if(r.type===32||W4(r,A))return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue()),r=this.consumeToken()}},t.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?Nh:A},t.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},t}(),Wa=function(t){return t.type===15},Ns=function(t){return t.type===17},De=function(t){return t.type===20},V4=function(t){return t.type===0},kh=function(t,A){return De(t)&&t.value===A},km=function(t){return t.type!==31},Ls=function(t){return t.type!==31&&t.type!==4},un=function(t){var A=[],e=[];return t.forEach(function(r){if(r.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(e),e=[];return}r.type!==31&&e.push(r)}),e.length&&A.push(e),A},W4=function(t,A){return A===11&&t.type===12||A===28&&t.type===29?!0:A===2&&t.type===3},fi=function(t){return t.type===17||t.type===15},pt=function(t){return t.type===16||fi(t)},Hm=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Tt={type:17,number:0,flags:Va},cf={type:16,number:50,flags:Va},ai={type:16,number:100,flags:Va},ya=function(t,A,e){var r=t[0],n=t[1];return[qe(r,A),qe(typeof n<"u"?n:r,e)]},qe=function(t,A){if(t.type===16)return t.number/100*A;if(Wa(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},Pm="deg",Tm="grad",Dm="rad",Rm="turn",ic={name:"angle",parse:function(t,A){if(A.type===15)switch(A.unit){case Pm:return Math.PI*A.number/180;case Tm:return Math.PI/200*A.number;case Dm:return A.number;case Rm:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},Om=function(t){return t.type===15&&(t.unit===Pm||t.unit===Tm||t.unit===Dm||t.unit===Rm)},Mm=function(t){var A=t.filter(De).map(function(e){return e.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Tt,Tt];case"to top":case"bottom":return Ir(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Tt,ai];case"to right":case"left":return Ir(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ai,ai];case"to bottom":case"top":return Ir(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ai,Tt];case"to left":case"right":return Ir(270)}return 0},Ir=function(t){return Math.PI*t/180},ci={name:"color",parse:function(t,A){if(A.type===18){var e=z4[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return e(t,A.values)}if(A.type===5){if(A.value.length===3){var r=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3);return oi(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(A.value.length===4){var r=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3),s=A.value.substring(3,4);return oi(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(A.value.length===6){var r=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6);return oi(parseInt(r,16),parseInt(n,16),parseInt(i,16),1)}if(A.value.length===8){var r=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6),s=A.value.substring(6,8);return oi(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(s,16)/255)}}if(A.type===20){var a=Pn[A.value.toUpperCase()];if(typeof a<"u")return a}return Pn.TRANSPARENT}},ui=function(t){return(255&t)===0},xt=function(t){var A=255&t,e=255&t>>8,r=255&t>>16,n=255&t>>24;return A<255?"rgba("+n+","+r+","+e+","+A/255+")":"rgb("+n+","+r+","+e+")"},oi=function(t,A,e,r){return(t<<24|A<<16|e<<8|Math.round(r*255)<<0)>>>0},Zg=function(t,A){if(t.type===17)return t.number;if(t.type===16){var e=A===3?1:255;return A===3?t.number/100*e:Math.round(t.number/100*e)}return 0},Ap=function(t,A){var e=A.filter(Ls);if(e.length===3){var r=e.map(Zg),n=r[0],i=r[1],s=r[2];return oi(n,i,s,1)}if(e.length===4){var a=e.map(Zg),n=a[0],i=a[1],s=a[2],o=a[3];return oi(n,i,s,o)}return 0};function Eu(t,A,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(A-t)*e*6+t:e<1/2?A:e<2/3?(A-t)*6*(2/3-e)+t:t}var ep=function(t,A){var e=A.filter(Ls),r=e[0],n=e[1],i=e[2],s=e[3],a=(r.type===17?Ir(r.number):ic.parse(t,r))/(Math.PI*2),o=pt(n)?n.number/100:0,c=pt(i)?i.number/100:0,h=typeof s<"u"&&pt(s)?qe(s,1):1;if(o===0)return oi(c*255,c*255,c*255,1);var d=c<=.5?c*(o+1):c+o-c*o,m=c*2-d,f=Eu(m,d,a+1/3),w=Eu(m,d,a),y=Eu(m,d,a-1/3);return oi(f*255,w*255,y*255,h)},z4={hsl:ep,hsla:ep,rgb:Ap,rgba:Ap},La=function(t,A){return ci.parse(t,Nm.create(A).parseComponentValue())},Pn={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},$4={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(De(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},X4={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},sc=function(t,A){var e=ci.parse(t,A[0]),r=A[1];return r&&pt(r)?{color:e,stop:r}:{color:e,stop:null}},tp=function(t,A){var e=t[0],r=t[t.length-1];e.stop===null&&(e.stop=Tt),r.stop===null&&(r.stop=ai);for(var n=[],i=0,s=0;s<t.length;s++){var a=t[s].stop;if(a!==null){var o=qe(a,A);o>i?n.push(o):n.push(i),i=o}else n.push(null)}for(var c=null,s=0;s<n.length;s++){var h=n[s];if(h===null)c===null&&(c=s);else if(c!==null){for(var d=s-c,m=n[c-1],f=(h-m)/(d+1),w=1;w<=d;w++)n[c+w-1]=f*w;c=null}}return t.map(function(y,F){var v=y.color;return{color:v,stop:Math.max(Math.min(1,n[F]/A),0)}})},J4=function(t,A,e){var r=A/2,n=e/2,i=qe(t[0],A)-r,s=n-qe(t[1],e);return(Math.atan2(s,i)+Math.PI*2)%(Math.PI*2)},Y4=function(t,A,e){var r=typeof t=="number"?t:J4(t,A,e),n=Math.abs(A*Math.sin(r))+Math.abs(e*Math.cos(r)),i=A/2,s=e/2,a=n/2,o=Math.sin(r-Math.PI/2)*a,c=Math.cos(r-Math.PI/2)*a;return[n,i-c,i+c,s-o,s+o]},jr=function(t,A){return Math.sqrt(t*t+A*A)},rp=function(t,A,e,r,n){var i=[[0,0],[0,A],[t,0],[t,A]];return i.reduce(function(s,a){var o=a[0],c=a[1],h=jr(e-o,r-c);return(n?h<s.optimumDistance:h>s.optimumDistance)?{optimumCorner:a,optimumDistance:h}:s},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Z4=function(t,A,e,r,n){var i=0,s=0;switch(t.size){case 0:t.shape===0?i=s=Math.min(Math.abs(A),Math.abs(A-r),Math.abs(e),Math.abs(e-n)):t.shape===1&&(i=Math.min(Math.abs(A),Math.abs(A-r)),s=Math.min(Math.abs(e),Math.abs(e-n)));break;case 2:if(t.shape===0)i=s=Math.min(jr(A,e),jr(A,e-n),jr(A-r,e),jr(A-r,e-n));else if(t.shape===1){var a=Math.min(Math.abs(e),Math.abs(e-n))/Math.min(Math.abs(A),Math.abs(A-r)),o=rp(r,n,A,e,!0),c=o[0],h=o[1];i=jr(c-A,(h-e)/a),s=a*i}break;case 1:t.shape===0?i=s=Math.max(Math.abs(A),Math.abs(A-r),Math.abs(e),Math.abs(e-n)):t.shape===1&&(i=Math.max(Math.abs(A),Math.abs(A-r)),s=Math.max(Math.abs(e),Math.abs(e-n)));break;case 3:if(t.shape===0)i=s=Math.max(jr(A,e),jr(A,e-n),jr(A-r,e),jr(A-r,e-n));else if(t.shape===1){var a=Math.max(Math.abs(e),Math.abs(e-n))/Math.max(Math.abs(A),Math.abs(A-r)),d=rp(r,n,A,e,!1),c=d[0],h=d[1];i=jr(c-A,(h-e)/a),s=a*i}break}return Array.isArray(t.size)&&(i=qe(t.size[0],r),s=t.size.length===2?qe(t.size[1],n):i),[i,s]},AF=function(t,A){var e=Ir(180),r=[];return un(A).forEach(function(n,i){if(i===0){var s=n[0];if(s.type===20&&s.value==="to"){e=Mm(n);return}else if(Om(s)){e=ic.parse(t,s);return}}var a=sc(t,n);r.push(a)}),{angle:e,stops:r,type:1}},sl=function(t,A){var e=Ir(180),r=[];return un(A).forEach(function(n,i){if(i===0){var s=n[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){e=Mm(n);return}else if(Om(s)){e=(ic.parse(t,s)+Ir(270))%Ir(360);return}}var a=sc(t,n);r.push(a)}),{angle:e,stops:r,type:1}},eF=function(t,A){var e=Ir(180),r=[],n=1,i=0,s=3,a=[];return un(A).forEach(function(o,c){var h=o[0];if(c===0){if(De(h)&&h.value==="linear"){n=1;return}else if(De(h)&&h.value==="radial"){n=2;return}}if(h.type===18){if(h.name==="from"){var d=ci.parse(t,h.values[0]);r.push({stop:Tt,color:d})}else if(h.name==="to"){var d=ci.parse(t,h.values[0]);r.push({stop:ai,color:d})}else if(h.name==="color-stop"){var m=h.values.filter(Ls);if(m.length===2){var d=ci.parse(t,m[1]),f=m[0];Ns(f)&&r.push({stop:{type:16,number:f.number*100,flags:f.flags},color:d})}}}}),n===1?{angle:(e+Ir(180))%Ir(360),stops:r,type:n}:{size:s,shape:i,stops:r,position:a,type:n}},Km="closest-side",jm="farthest-side",Gm="closest-corner",qm="farthest-corner",Vm="circle",Wm="ellipse",zm="cover",$m="contain",tF=function(t,A){var e=0,r=3,n=[],i=[];return un(A).forEach(function(s,a){var o=!0;if(a===0){var c=!1;o=s.reduce(function(d,m){if(c)if(De(m))switch(m.value){case"center":return i.push(cf),d;case"top":case"left":return i.push(Tt),d;case"right":case"bottom":return i.push(ai),d}else(pt(m)||fi(m))&&i.push(m);else if(De(m))switch(m.value){case Vm:return e=0,!1;case Wm:return e=1,!1;case"at":return c=!0,!1;case Km:return r=0,!1;case zm:case jm:return r=1,!1;case $m:case Gm:return r=2,!1;case qm:return r=3,!1}else if(fi(m)||pt(m))return Array.isArray(r)||(r=[]),r.push(m),!1;return d},o)}if(o){var h=sc(t,s);n.push(h)}}),{size:r,shape:e,stops:n,position:i,type:2}},al=function(t,A){var e=0,r=3,n=[],i=[];return un(A).forEach(function(s,a){var o=!0;if(a===0?o=s.reduce(function(h,d){if(De(d))switch(d.value){case"center":return i.push(cf),!1;case"top":case"left":return i.push(Tt),!1;case"right":case"bottom":return i.push(ai),!1}else if(pt(d)||fi(d))return i.push(d),!1;return h},o):a===1&&(o=s.reduce(function(h,d){if(De(d))switch(d.value){case Vm:return e=0,!1;case Wm:return e=1,!1;case $m:case Km:return r=0,!1;case jm:return r=1,!1;case Gm:return r=2,!1;case zm:case qm:return r=3,!1}else if(fi(d)||pt(d))return Array.isArray(r)||(r=[]),r.push(d),!1;return h},o)),o){var c=sc(t,s);n.push(c)}}),{size:r,shape:e,stops:n,position:i,type:2}},rF=function(t){return t.type===1},nF=function(t){return t.type===2},uf={name:"image",parse:function(t,A){if(A.type===22){var e={url:A.value,type:0};return t.cache.addImage(A.value),e}if(A.type===18){var r=Xm[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return r(t,A.values)}throw new Error("Unsupported image type "+A.type)}};function iF(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!Xm[t.name])}var Xm={"linear-gradient":AF,"-moz-linear-gradient":sl,"-ms-linear-gradient":sl,"-o-linear-gradient":sl,"-webkit-linear-gradient":sl,"radial-gradient":tF,"-moz-radial-gradient":al,"-ms-radial-gradient":al,"-o-radial-gradient":al,"-webkit-radial-gradient":al,"-webkit-gradient":eF},sF={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A.filter(function(r){return Ls(r)&&iF(r)}).map(function(r){return uf.parse(t,r)})}},aF={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(De(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},oF={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,A){return un(A).map(function(e){return e.filter(pt)}).map(Hm)}},lF={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,A){return un(A).map(function(e){return e.filter(De).map(function(r){return r.value}).join(" ")}).map(cF)}},cF=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},xs;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(xs||(xs={}));var uF={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,A){return un(A).map(function(e){return e.filter(hF)})}},hF=function(t){return De(t)||pt(t)},ac=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},fF=ac("top"),dF=ac("right"),gF=ac("bottom"),pF=ac("left"),oc=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return Hm(e.filter(pt))}}},mF=oc("top-left"),BF=oc("top-right"),wF=oc("bottom-right"),vF=oc("bottom-left"),lc=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},yF=lc("top"),bF=lc("right"),CF=lc("bottom"),FF=lc("left"),cc=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Wa(e)?e.number:0}}},QF=cc("top"),UF=cc("right"),xF=cc("bottom"),EF=cc("left"),LF={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},SF={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},IF={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,A){return A.filter(De).reduce(function(e,r){return e|_F(r.value)},0)}},_F=function(t){switch(t){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},NF={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},kF={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},jl;(function(t){t.NORMAL="normal",t.STRICT="strict"})(jl||(jl={}));var HF={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"strict":return jl.STRICT;case"normal":default:return jl.NORMAL}}},PF={name:"line-height",initialValue:"normal",prefix:!1,type:4},np=function(t,A){return De(t)&&t.value==="normal"?1.2*A:t.type===17?A*t.number:pt(t)?qe(t,A):A},TF={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,A){return A.type===20&&A.value==="none"?null:uf.parse(t,A)}},DF={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,A){switch(A){case"inside":return 0;case"outside":default:return 1}}},Hh={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){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 22;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;case"none":default:return-1}}},uc=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},RF=uc("top"),OF=uc("right"),MF=uc("bottom"),KF=uc("left"),jF={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,A){return A.filter(De).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},GF={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"break-word":return"break-word";case"normal":default:return"normal"}}},hc=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},qF=hc("top"),VF=hc("right"),WF=hc("bottom"),zF=hc("left"),$F={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,A){switch(A){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},XF={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},JF={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&kh(A[0],"none")?[]:un(A).map(function(e){for(var r={color:Pn.TRANSPARENT,offsetX:Tt,offsetY:Tt,blur:Tt},n=0,i=0;i<e.length;i++){var s=e[i];fi(s)?(n===0?r.offsetX=s:n===1?r.offsetY=s:r.blur=s,n++):r.color=ci.parse(t,s)}return r})}},YF={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},ZF={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var e=tQ[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return e(A.values)}return null}},AQ=function(t){var A=t.filter(function(e){return e.type===17}).map(function(e){return e.number});return A.length===6?A:null},eQ=function(t){var A=t.filter(function(o){return o.type===17}).map(function(o){return o.number}),e=A[0],r=A[1];A[2],A[3];var n=A[4],i=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var s=A[12],a=A[13];return A[14],A[15],A.length===16?[e,r,n,i,s,a]:null},tQ={matrix:AQ,matrix3d:eQ},ip={type:16,number:50,flags:Va},rQ=[ip,ip],nQ={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,A){var e=A.filter(pt);return e.length!==2?rQ:[e[0],e[1]]}},iQ={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Sa;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(Sa||(Sa={}));var sQ={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"break-all":return Sa.BREAK_ALL;case"keep-all":return Sa.KEEP_ALL;case"normal":default:return Sa.NORMAL}}},aQ={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,A){if(A.type===20)return{auto:!0,order:0};if(Ns(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},Jm={name:"time",parse:function(t,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},oQ={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,A){return Ns(A)?A.number:1}},lQ={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},cQ={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,A){return A.filter(De).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return e!==0})}},uQ={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,A){var e=[],r=[];return A.forEach(function(n){switch(n.type){case 20:case 0:e.push(n.value);break;case 17:e.push(n.number.toString());break;case 4:r.push(e.join(" ")),e.length=0;break}}),e.length&&r.push(e.join(" ")),r.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},hQ={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},fQ={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,A){if(Ns(A))return A.number;if(De(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},dQ={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.filter(De).map(function(e){return e.value})}},gQ={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Ft=function(t,A){return(t&A)!==0},pQ={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A}},mQ={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;for(var r=[],n=A.filter(km),i=0;i<n.length;i++){var s=n[i],a=n[i+1];if(s.type===20){var o=a&&Ns(a)?a.number:1;r.push({counter:s.value,increment:o})}}return r}},BQ={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return[];for(var e=[],r=A.filter(km),n=0;n<r.length;n++){var i=r[n],s=r[n+1];if(De(i)&&i.value!=="none"){var a=s&&Ns(s)?s.number:0;e.push({counter:i.value,reset:a})}}return e}},wQ={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,A){return A.filter(Wa).map(function(e){return Jm.parse(t,e)})}},vQ={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;var r=[],n=A.filter(V4);if(n.length%2!==0)return null;for(var i=0;i<n.length;i+=2){var s=n[i].value,a=n[i+1].value;r.push({open:s,close:a})}return r}},sp=function(t,A,e){if(!t)return"";var r=t[Math.min(A,t.length-1)];return r?e?r.open:r.close:""},yQ={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&kh(A[0],"none")?[]:un(A).map(function(e){for(var r={color:255,offsetX:Tt,offsetY:Tt,blur:Tt,spread:Tt,inset:!1},n=0,i=0;i<e.length;i++){var s=e[i];kh(s,"inset")?r.inset=!0:fi(s)?(n===0?r.offsetX=s:n===1?r.offsetY=s:n===2?r.blur=s:r.spread=s,n++):r.color=ci.parse(t,s)}return r})}},bQ={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,A){var e=[0,1,2],r=[];return A.filter(De).forEach(function(n){switch(n.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),e.forEach(function(n){r.indexOf(n)===-1&&r.push(n)}),r}},CQ={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},FQ={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,A){return Wa(A)?A.number:0}},QQ=function(){function t(A,e){var r,n;this.animationDuration=OA(A,wQ,e.animationDuration),this.backgroundClip=OA(A,$4,e.backgroundClip),this.backgroundColor=OA(A,X4,e.backgroundColor),this.backgroundImage=OA(A,sF,e.backgroundImage),this.backgroundOrigin=OA(A,aF,e.backgroundOrigin),this.backgroundPosition=OA(A,oF,e.backgroundPosition),this.backgroundRepeat=OA(A,lF,e.backgroundRepeat),this.backgroundSize=OA(A,uF,e.backgroundSize),this.borderTopColor=OA(A,fF,e.borderTopColor),this.borderRightColor=OA(A,dF,e.borderRightColor),this.borderBottomColor=OA(A,gF,e.borderBottomColor),this.borderLeftColor=OA(A,pF,e.borderLeftColor),this.borderTopLeftRadius=OA(A,mF,e.borderTopLeftRadius),this.borderTopRightRadius=OA(A,BF,e.borderTopRightRadius),this.borderBottomRightRadius=OA(A,wF,e.borderBottomRightRadius),this.borderBottomLeftRadius=OA(A,vF,e.borderBottomLeftRadius),this.borderTopStyle=OA(A,yF,e.borderTopStyle),this.borderRightStyle=OA(A,bF,e.borderRightStyle),this.borderBottomStyle=OA(A,CF,e.borderBottomStyle),this.borderLeftStyle=OA(A,FF,e.borderLeftStyle),this.borderTopWidth=OA(A,QF,e.borderTopWidth),this.borderRightWidth=OA(A,UF,e.borderRightWidth),this.borderBottomWidth=OA(A,xF,e.borderBottomWidth),this.borderLeftWidth=OA(A,EF,e.borderLeftWidth),this.boxShadow=OA(A,yQ,e.boxShadow),this.color=OA(A,LF,e.color),this.direction=OA(A,SF,e.direction),this.display=OA(A,IF,e.display),this.float=OA(A,NF,e.cssFloat),this.fontFamily=OA(A,uQ,e.fontFamily),this.fontSize=OA(A,hQ,e.fontSize),this.fontStyle=OA(A,gQ,e.fontStyle),this.fontVariant=OA(A,dQ,e.fontVariant),this.fontWeight=OA(A,fQ,e.fontWeight),this.letterSpacing=OA(A,kF,e.letterSpacing),this.lineBreak=OA(A,HF,e.lineBreak),this.lineHeight=OA(A,PF,e.lineHeight),this.listStyleImage=OA(A,TF,e.listStyleImage),this.listStylePosition=OA(A,DF,e.listStylePosition),this.listStyleType=OA(A,Hh,e.listStyleType),this.marginTop=OA(A,RF,e.marginTop),this.marginRight=OA(A,OF,e.marginRight),this.marginBottom=OA(A,MF,e.marginBottom),this.marginLeft=OA(A,KF,e.marginLeft),this.opacity=OA(A,oQ,e.opacity);var i=OA(A,jF,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=OA(A,GF,e.overflowWrap),this.paddingTop=OA(A,qF,e.paddingTop),this.paddingRight=OA(A,VF,e.paddingRight),this.paddingBottom=OA(A,WF,e.paddingBottom),this.paddingLeft=OA(A,zF,e.paddingLeft),this.paintOrder=OA(A,bQ,e.paintOrder),this.position=OA(A,XF,e.position),this.textAlign=OA(A,$F,e.textAlign),this.textDecorationColor=OA(A,lQ,(r=e.textDecorationColor)!==null&&r!==void 0?r:e.color),this.textDecorationLine=OA(A,cQ,(n=e.textDecorationLine)!==null&&n!==void 0?n:e.textDecoration),this.textShadow=OA(A,JF,e.textShadow),this.textTransform=OA(A,YF,e.textTransform),this.transform=OA(A,ZF,e.transform),this.transformOrigin=OA(A,nQ,e.transformOrigin),this.visibility=OA(A,iQ,e.visibility),this.webkitTextStrokeColor=OA(A,CQ,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=OA(A,FQ,e.webkitTextStrokeWidth),this.wordBreak=OA(A,sQ,e.wordBreak),this.zIndex=OA(A,aQ,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return ui(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return Ft(this.display,4)||Ft(this.display,33554432)||Ft(this.display,268435456)||Ft(this.display,536870912)||Ft(this.display,67108864)||Ft(this.display,134217728)},t}(),UQ=function(){function t(A,e){this.content=OA(A,pQ,e.content),this.quotes=OA(A,vQ,e.quotes)}return t}(),ap=function(){function t(A,e){this.counterIncrement=OA(A,mQ,e.counterIncrement),this.counterReset=OA(A,BQ,e.counterReset)}return t}(),OA=function(t,A,e){var r=new _m,n=e!==null&&typeof e<"u"?e.toString():A.initialValue;r.write(n);var i=new Nm(r.read());switch(A.type){case 2:var s=i.parseComponentValue();return A.parse(t,De(s)?s.value:A.initialValue);case 0:return A.parse(t,i.parseComponentValue());case 1:return A.parse(t,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(A.format){case"angle":return ic.parse(t,i.parseComponentValue());case"color":return ci.parse(t,i.parseComponentValue());case"image":return uf.parse(t,i.parseComponentValue());case"length":var a=i.parseComponentValue();return fi(a)?a:Tt;case"length-percentage":var o=i.parseComponentValue();return pt(o)?o:Tt;case"time":return Jm.parse(t,i.parseComponentValue())}break}},xQ="data-html2canvas-debug",EQ=function(t){var A=t.getAttribute(xQ);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ph=function(t,A){var e=EQ(t);return e===1||A===e},hn=function(){function t(A,e){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Ph(e,3))debugger;this.styles=new QQ(A,window.getComputedStyle(e,null)),Rh(e)&&(this.styles.animationDuration.some(function(r){return r>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=rc(this.context,e),Ph(e,4)&&(this.flags|=16)}return t}(),LQ="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",op="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ba=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ol=0;ol<op.length;ol++)ba[op.charCodeAt(ol)]=ol;var SQ=function(t){var A=t.length*.75,e=t.length,r,n=0,i,s,a,o;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),h=Array.isArray(c)?c:new Uint8Array(c);for(r=0;r<e;r+=4)i=ba[t.charCodeAt(r)],s=ba[t.charCodeAt(r+1)],a=ba[t.charCodeAt(r+2)],o=ba[t.charCodeAt(r+3)],h[n++]=i<<2|s>>4,h[n++]=(s&15)<<4|a>>2,h[n++]=(a&3)<<6|o&63;return c},IQ=function(t){for(var A=t.length,e=[],r=0;r<A;r+=2)e.push(t[r+1]<<8|t[r]);return e},_Q=function(t){for(var A=t.length,e=[],r=0;r<A;r+=4)e.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return e},Ri=5,hf=11,Lu=2,NQ=hf-Ri,Ym=65536>>Ri,kQ=1<<Ri,Su=kQ-1,HQ=1024>>Ri,PQ=Ym+HQ,TQ=PQ,DQ=32,RQ=TQ+DQ,OQ=65536>>hf,MQ=1<<NQ,KQ=MQ-1,lp=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},jQ=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},GQ=function(t,A){var e=SQ(t),r=Array.isArray(e)?_Q(e):new Uint32Array(e),n=Array.isArray(e)?IQ(e):new Uint16Array(e),i=24,s=lp(n,i/2,r[4]/2),a=r[5]===2?lp(n,(i+r[4])/2):jQ(r,Math.ceil((i+r[4])/4));return new qQ(r[0],r[1],r[2],r[3],s,a)},qQ=function(){function t(A,e,r,n,i,s){this.initialValue=A,this.errorValue=e,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=s}return t.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>Ri],e=(e<<Lu)+(A&Su),this.data[e];if(A<=65535)return e=this.index[Ym+(A-55296>>Ri)],e=(e<<Lu)+(A&Su),this.data[e];if(A<this.highStart)return e=RQ-OQ+(A>>hf),e=this.index[e],e+=A>>Ri&KQ,e=this.index[e],e=(e<<Lu)+(A&Su),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),cp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",VQ=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ll=0;ll<cp.length;ll++)VQ[cp.charCodeAt(ll)]=ll;var WQ=1,Iu=2,_u=3,up=4,hp=5,zQ=7,fp=8,Nu=9,ku=10,dp=11,gp=12,pp=13,mp=14,Hu=15,$Q=function(t){for(var A=[],e=0,r=t.length;e<r;){var n=t.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var i=t.charCodeAt(e++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),e--)}else A.push(n)}return A},XQ=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var e=t.length;if(!e)return"";for(var r=[],n=-1,i="";++n<e;){var s=t[n];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(n+1===e||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},JQ=GQ(LQ),Er="×",Pu="÷",YQ=function(t){return JQ.get(t)},ZQ=function(t,A,e){var r=e-2,n=A[r],i=A[e-1],s=A[e];if(i===Iu&&s===_u)return Er;if(i===Iu||i===_u||i===up||s===Iu||s===_u||s===up)return Pu;if(i===fp&&[fp,Nu,dp,gp].indexOf(s)!==-1||(i===dp||i===Nu)&&(s===Nu||s===ku)||(i===gp||i===ku)&&s===ku||s===pp||s===hp||s===zQ||i===WQ)return Er;if(i===pp&&s===mp){for(;n===hp;)n=A[--r];if(n===mp)return Er}if(i===Hu&&s===Hu){for(var a=0;n===Hu;)a++,n=A[--r];if(a%2===0)return Er}return Pu},AU=function(t){var A=$Q(t),e=A.length,r=0,n=0,i=A.map(YQ);return{next:function(){if(r>=e)return{done:!0,value:null};for(var s=Er;r<e&&(s=ZQ(A,i,++r))===Er;);if(s!==Er||r===e){var a=XQ.apply(null,A.slice(n,r));return n=r,{value:a,done:!1}}return{done:!0,value:null}}}},eU=function(t){for(var A=AU(t),e=[],r;!(r=A.next()).done;)r.value&&e.push(r.value.slice());return e},tU=function(t){var A=123;if(t.createRange){var e=t.createRange();if(e.getBoundingClientRect){var r=t.createElement("boundtest");r.style.height=A+"px",r.style.display="block",t.body.appendChild(r),e.selectNode(r);var n=e.getBoundingClientRect(),i=Math.round(n.height);if(t.body.removeChild(r),i===A)return!0}}return!1},rU=function(t){var A=t.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",t.body.appendChild(A);var e=t.createRange();A.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=A.firstChild,n=nc(r.data).map(function(o){return at(o)}),i=0,s={},a=n.every(function(o,c){e.setStart(r,i),e.setEnd(r,i+o.length);var h=e.getBoundingClientRect();i+=o.length;var d=h.x>s.x||h.y>s.y;return s=h,c===0?!0:d});return t.body.removeChild(A),a},nU=function(){return typeof new Image().crossOrigin<"u"},iU=function(){return typeof new XMLHttpRequest().responseType=="string"},sU=function(t){var A=new Image,e=t.createElement("canvas"),r=e.getContext("2d");if(!r)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(A,0,0),e.toDataURL()}catch{return!1}return!0},Bp=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},aU=function(t){var A=t.createElement("canvas"),e=100;A.width=e,A.height=e;var r=A.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,e,e);var n=new Image,i=A.toDataURL();n.src=i;var s=Th(e,e,0,0,n);return r.fillStyle="red",r.fillRect(0,0,e,e),wp(s).then(function(a){r.drawImage(a,0,0);var o=r.getImageData(0,0,e,e).data;r.fillStyle="red",r.fillRect(0,0,e,e);var c=t.createElement("div");return c.style.backgroundImage="url("+i+")",c.style.height=e+"px",Bp(o)?wp(Th(e,e,0,0,c)):Promise.reject(!1)}).then(function(a){return r.drawImage(a,0,0),Bp(r.getImageData(0,0,e,e).data)}).catch(function(){return!1})},Th=function(t,A,e,r,n){var i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return s.setAttributeNS(null,"width",t.toString()),s.setAttributeNS(null,"height",A.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",e.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(n),s},wp=function(t){return new Promise(function(A,e){var r=new Image;r.onload=function(){return A(r)},r.onerror=e,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},Pt={get SUPPORT_RANGE_BOUNDS(){var t=tU(document);return Object.defineProperty(Pt,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Pt.SUPPORT_RANGE_BOUNDS&&rU(document);return Object.defineProperty(Pt,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=sU(document);return Object.defineProperty(Pt,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?aU(document):Promise.resolve(!1);return Object.defineProperty(Pt,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=nU();return Object.defineProperty(Pt,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=iU();return Object.defineProperty(Pt,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Pt,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Pt,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Ia=function(){function t(A,e){this.text=A,this.bounds=e}return t}(),oU=function(t,A,e,r){var n=uU(A,e),i=[],s=0;return n.forEach(function(a){if(e.textDecorationLine.length||a.trim().length>0)if(Pt.SUPPORT_RANGE_BOUNDS){var o=vp(r,s,a.length).getClientRects();if(o.length>1){var c=ff(a),h=0;c.forEach(function(m){i.push(new Ia(m,Tn.fromDOMRectList(t,vp(r,h+s,m.length).getClientRects()))),h+=m.length})}else i.push(new Ia(a,Tn.fromDOMRectList(t,o)))}else{var d=r.splitText(a.length);i.push(new Ia(a,lU(t,r))),r=d}else Pt.SUPPORT_RANGE_BOUNDS||(r=r.splitText(a.length));s+=a.length}),i},lU=function(t,A){var e=A.ownerDocument;if(e){var r=e.createElement("html2canvaswrapper");r.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(r,A);var i=rc(t,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return Tn.EMPTY},vp=function(t,A,e){var r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(t,A),n.setEnd(t,A+e),n},ff=function(t){if(Pt.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(t)).map(function(e){return e.segment})}return eU(t)},cU=function(t,A){if(Pt.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(t)).map(function(r){return r.segment})}return fU(t,A)},uU=function(t,A){return A.letterSpacing!==0?ff(t):cU(t,A)},hU=[32,160,4961,65792,65793,4153,4241],fU=function(t,A){for(var e=OC(t,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),r=[],n,i=function(){if(n.value){var s=n.value.slice(),a=nc(s),o="";a.forEach(function(c){hU.indexOf(c)===-1?o+=at(c):(o.length&&r.push(o),r.push(at(c)),o="")}),o.length&&r.push(o)}};!(n=e.next()).done;)i();return r},dU=function(){function t(A,e,r){this.text=gU(e.data,r.textTransform),this.textBounds=oU(A,this.text,r,e)}return t}(),gU=function(t,A){switch(A){case 1:return t.toLowerCase();case 3:return t.replace(pU,mU);case 2:return t.toUpperCase();default:return t}},pU=/(^|\s|:|-|\(|\))([a-z])/g,mU=function(t,A,e){return t.length>0?A+e.toUpperCase():t},Zm=function(t){Wr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return A}(hn),A1=function(t){Wr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return A}(hn),e1=function(t){Wr(A,t);function A(e,r){var n=t.call(this,e,r)||this,i=new XMLSerializer,s=rc(e,r);return r.setAttribute("width",s.width+"px"),r.setAttribute("height",s.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return A}(hn),t1=function(t){Wr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.value=r.value,n}return A}(hn),Dh=function(t){Wr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return A}(hn),BU=[{type:15,flags:0,unit:"px",number:3}],wU=[{type:16,flags:0,number:50}],vU=function(t){return t.width>t.height?new Tn(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new Tn(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},yU=function(t){var A=t.type===bU?new Array(t.value.length+1).join("•"):t.value;return A.length===0?t.placeholder||"":A},Gl="checkbox",ql="radio",bU="password",yp=707406591,df=function(t){Wr(A,t);function A(e,r){var n=t.call(this,e,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=yU(r),(n.type===Gl||n.type===ql)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=vU(n.bounds)),n.type){case Gl:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=BU;break;case ql:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=wU;break}return n}return A}(hn),r1=function(t){Wr(A,t);function A(e,r){var n=t.call(this,e,r)||this,i=r.options[r.selectedIndex||0];return n.value=i&&i.text||"",n}return A}(hn),n1=function(t){Wr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.value=r.value,n}return A}(hn),i1=function(t){Wr(A,t);function A(e,r){var n=t.call(this,e,r)||this;n.src=r.src,n.width=parseInt(r.width,10)||0,n.height=parseInt(r.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){n.tree=a1(e,r.contentWindow.document.documentElement);var i=r.contentWindow.document.documentElement?La(e,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):Pn.TRANSPARENT,s=r.contentWindow.document.body?La(e,getComputedStyle(r.contentWindow.document.body).backgroundColor):Pn.TRANSPARENT;n.backgroundColor=ui(i)?ui(s)?n.styles.backgroundColor:s:i}}catch{}return n}return A}(hn),CU=["OL","UL","MENU"],Fl=function(t,A,e,r){for(var n=A.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,o1(n)&&n.data.trim().length>0)e.textNodes.push(new dU(t,n,e.styles));else if(vs(n))if(h1(n)&&n.assignedNodes)n.assignedNodes().forEach(function(a){return Fl(t,a,e,r)});else{var s=s1(t,n);s.styles.isVisible()&&(FU(n,s,r)?s.flags|=4:QU(s.styles)&&(s.flags|=2),CU.indexOf(n.tagName)!==-1&&(s.flags|=8),e.elements.push(s),n.slot,n.shadowRoot?Fl(t,n.shadowRoot,s,r):!Vl(n)&&!l1(n)&&!Wl(n)&&Fl(t,n,s,r))}},s1=function(t,A){return Oh(A)?new Zm(t,A):c1(A)?new A1(t,A):l1(A)?new e1(t,A):UU(A)?new t1(t,A):xU(A)?new Dh(t,A):EU(A)?new df(t,A):Wl(A)?new r1(t,A):Vl(A)?new n1(t,A):u1(A)?new i1(t,A):new hn(t,A)},a1=function(t,A){var e=s1(t,A);return e.flags|=4,Fl(t,A,e,e),e},FU=function(t,A,e){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||gf(t)&&e.styles.isTransparent()},QU=function(t){return t.isPositioned()||t.isFloating()},o1=function(t){return t.nodeType===Node.TEXT_NODE},vs=function(t){return t.nodeType===Node.ELEMENT_NODE},Rh=function(t){return vs(t)&&typeof t.style<"u"&&!Ql(t)},Ql=function(t){return typeof t.className=="object"},UU=function(t){return t.tagName==="LI"},xU=function(t){return t.tagName==="OL"},EU=function(t){return t.tagName==="INPUT"},LU=function(t){return t.tagName==="HTML"},l1=function(t){return t.tagName==="svg"},gf=function(t){return t.tagName==="BODY"},c1=function(t){return t.tagName==="CANVAS"},bp=function(t){return t.tagName==="VIDEO"},Oh=function(t){return t.tagName==="IMG"},u1=function(t){return t.tagName==="IFRAME"},Cp=function(t){return t.tagName==="STYLE"},SU=function(t){return t.tagName==="SCRIPT"},Vl=function(t){return t.tagName==="TEXTAREA"},Wl=function(t){return t.tagName==="SELECT"},h1=function(t){return t.tagName==="SLOT"},Fp=function(t){return t.tagName.indexOf("-")>0},IU=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},t.prototype.pop=function(A){var e=this;A.forEach(function(r){return e.counters[r].pop()})},t.prototype.parse=function(A){var e=this,r=A.counterIncrement,n=A.counterReset,i=!0;r!==null&&r.forEach(function(a){var o=e.counters[a.counter];o&&a.increment!==0&&(i=!1,o.length||o.push(1),o[Math.max(0,o.length-1)]+=a.increment)});var s=[];return i&&n.forEach(function(a){var o=e.counters[a.counter];s.push(a.counter),o||(o=e.counters[a.counter]=[]),o.push(a.reset)}),s},t}(),Qp={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"]},Up={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},_U={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},NU={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},us=function(t,A,e,r,n,i){return t<A||t>e?Ka(t,n,i.length>0):r.integers.reduce(function(s,a,o){for(;t>=a;)t-=a,s+=r.values[o];return s},"")+i},f1=function(t,A,e,r){var n="";do e||t--,n=r(t)+n,t/=A;while(t*A>=A);return n},st=function(t,A,e,r,n){var i=e-A+1;return(t<0?"-":"")+(f1(Math.abs(t),i,r,function(s){return at(Math.floor(s%i)+A)})+n)},Ii=function(t,A,e){e===void 0&&(e=". ");var r=A.length;return f1(Math.abs(t),r,!1,function(n){return A[Math.floor(n%r)]})+e},ps=1,ti=2,ri=4,Ca=8,Nn=function(t,A,e,r,n,i){if(t<-9999||t>9999)return Ka(t,4,n.length>0);var s=Math.abs(t),a=n;if(s===0)return A[0]+a;for(var o=0;s>0&&o<=4;o++){var c=s%10;c===0&&Ft(i,ps)&&a!==""?a=A[c]+a:c>1||c===1&&o===0||c===1&&o===1&&Ft(i,ti)||c===1&&o===1&&Ft(i,ri)&&t>100||c===1&&o>1&&Ft(i,Ca)?a=A[c]+(o>0?e[o-1]:"")+a:c===1&&o>0&&(a=e[o-1]+a),s=Math.floor(s/10)}return(t<0?r:"")+a},xp="十百千萬",Ep="拾佰仟萬",Lp="マイナス",Tu="마이너스",Ka=function(t,A,e){var r=e?". ":"",n=e?"、":"",i=e?", ":"",s=e?" ":"";switch(A){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var a=st(t,48,57,!0,r);return a.length<4?"0"+a:a;case 4:return Ii(t,"〇一二三四五六七八九",n);case 6:return us(t,1,3999,Qp,3,r).toLowerCase();case 7:return us(t,1,3999,Qp,3,r);case 8:return st(t,945,969,!1,r);case 9:return st(t,97,122,!1,r);case 10:return st(t,65,90,!1,r);case 11:return st(t,1632,1641,!0,r);case 12:case 49:return us(t,1,9999,Up,3,r);case 35:return us(t,1,9999,Up,3,r).toLowerCase();case 13:return st(t,2534,2543,!0,r);case 14:case 30:return st(t,6112,6121,!0,r);case 15:return Ii(t,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Ii(t,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return Nn(t,"零一二三四五六七八九",xp,"負",n,ti|ri|Ca);case 47:return Nn(t,"零壹貳參肆伍陸柒捌玖",Ep,"負",n,ps|ti|ri|Ca);case 42:return Nn(t,"零一二三四五六七八九",xp,"负",n,ti|ri|Ca);case 41:return Nn(t,"零壹贰叁肆伍陆柒捌玖",Ep,"负",n,ps|ti|ri|Ca);case 26:return Nn(t,"〇一二三四五六七八九","十百千万",Lp,n,0);case 25:return Nn(t,"零壱弐参四伍六七八九","拾百千万",Lp,n,ps|ti|ri);case 31:return Nn(t,"영일이삼사오육칠팔구","십백천만",Tu,i,ps|ti|ri);case 33:return Nn(t,"零一二三四五六七八九","十百千萬",Tu,i,0);case 32:return Nn(t,"零壹貳參四五六七八九","拾百千",Tu,i,ps|ti|ri);case 18:return st(t,2406,2415,!0,r);case 20:return us(t,1,19999,NU,3,r);case 21:return st(t,2790,2799,!0,r);case 22:return st(t,2662,2671,!0,r);case 22:return us(t,1,10999,_U,3,r);case 23:return Ii(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ii(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return st(t,3302,3311,!0,r);case 28:return Ii(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Ii(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return st(t,3792,3801,!0,r);case 37:return st(t,6160,6169,!0,r);case 38:return st(t,4160,4169,!0,r);case 39:return st(t,2918,2927,!0,r);case 40:return st(t,1776,1785,!0,r);case 43:return st(t,3046,3055,!0,r);case 44:return st(t,3174,3183,!0,r);case 45:return st(t,3664,3673,!0,r);case 46:return st(t,3872,3881,!0,r);case 3:default:return st(t,48,57,!0,r)}},d1="data-html2canvas-ignore",Sp=function(){function t(A,e,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=e,this.counters=new IU,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(A,e){var r=this,n=kU(A,e);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,a=n.contentWindow,o=a.document,c=TU(n).then(function(){return Yt(r,void 0,void 0,function(){var h,d;return qt(this,function(m){switch(m.label){case 0:return this.scrolledElements.forEach(MU),a&&(a.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(a.scrollY!==e.top||a.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-e.left,a.scrollY-e.top,0,0))),h=this.options.onclone,d=this.clonedReferenceElement,typeof d>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:o.fonts&&o.fonts.ready?[4,o.fonts.ready]:[3,2];case 1:m.sent(),m.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,PU(o)]:[3,4];case 3:m.sent(),m.label=4;case 4:return typeof h=="function"?[2,Promise.resolve().then(function(){return h(o,d)}).then(function(){return n})]:[2,n]}})})});return o.open(),o.write(RU(document.doctype)+"<html></html>"),OU(this.referenceElement.ownerDocument,i,s),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),c},t.prototype.createElementClone=function(A){if(Ph(A,2))debugger;if(c1(A))return this.createCanvasClone(A);if(bp(A))return this.createVideoClone(A);if(Cp(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Oh(e)&&(Oh(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),Fp(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return Du(A.style,e),e},t.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var r=[].slice.call(e.cssRules,0).reduce(function(i,s){return s&&typeof s.cssText=="string"?i+s.cssText:i},""),n=A.cloneNode(!1);return n.textContent=r,n}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return A.cloneNode(!1)},t.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var i=A.getContext("2d"),s=n.getContext("2d");if(s)if(!this.options.allowTaint&&i)s.putImageData(i.getImageData(0,0,A.width,A.height),0,0);else{var a=(e=A.getContext("webgl2"))!==null&&e!==void 0?e:A.getContext("webgl");if(a){var o=a.getContextAttributes();(o==null?void 0:o.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}s.drawImage(A,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},t.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var r=e.getContext("2d");try{return r&&(r.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||r.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},t.prototype.appendChildNode=function(A,e,r){(!vs(e)||!SU(e)&&!e.hasAttribute(d1)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!vs(e)||!Cp(e))&&A.appendChild(this.cloneNode(e,r))},t.prototype.cloneChildNodes=function(A,e,r){for(var n=this,i=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;i;i=i.nextSibling)if(vs(i)&&h1(i)&&typeof i.assignedNodes=="function"){var s=i.assignedNodes();s.length&&s.forEach(function(a){return n.appendChildNode(e,a,r)})}else this.appendChildNode(e,i,r)},t.prototype.cloneNode=function(A,e){if(o1(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var r=A.ownerDocument.defaultView;if(r&&vs(A)&&(Rh(A)||Ql(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var i=r.getComputedStyle(A),s=r.getComputedStyle(A,":before"),a=r.getComputedStyle(A,":after");this.referenceElement===A&&Rh(n)&&(this.clonedReferenceElement=n),gf(n)&&GU(n);var o=this.counters.parse(new ap(this.context,i)),c=this.resolvePseudoContent(A,n,s,_a.BEFORE);Fp(A)&&(e=!0),bp(A)||this.cloneChildNodes(A,n,e),c&&n.insertBefore(c,n.firstChild);var h=this.resolvePseudoContent(A,n,a,_a.AFTER);return h&&n.appendChild(h),this.counters.pop(o),(i&&(this.options.copyStyles||Ql(A))&&!u1(A)||e)&&Du(i,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(Vl(A)||Wl(A))&&(Vl(n)||Wl(n))&&(n.value=A.value),n}return A.cloneNode(!1)},t.prototype.resolvePseudoContent=function(A,e,r,n){var i=this;if(r){var s=r.content,a=e.ownerDocument;if(!(!a||!s||s==="none"||s==="-moz-alt-content"||r.display==="none")){this.counters.parse(new ap(this.context,r));var o=new UQ(this.context,r),c=a.createElement("html2canvaspseudoelement");Du(r,c),o.content.forEach(function(d){if(d.type===0)c.appendChild(a.createTextNode(d.value));else if(d.type===22){var m=a.createElement("img");m.src=d.value,m.style.opacity="1",c.appendChild(m)}else if(d.type===18){if(d.name==="attr"){var f=d.values.filter(De);f.length&&c.appendChild(a.createTextNode(A.getAttribute(f[0].value)||""))}else if(d.name==="counter"){var w=d.values.filter(Ls),y=w[0],F=w[1];if(y&&De(y)){var v=i.counters.getCounterValue(y.value),L=F&&De(F)?Hh.parse(i.context,F.value):3;c.appendChild(a.createTextNode(Ka(v,L,!1)))}}else if(d.name==="counters"){var _=d.values.filter(Ls),y=_[0],S=_[1],F=_[2];if(y&&De(y)){var V=i.counters.getCounterValues(y.value),z=F&&De(F)?Hh.parse(i.context,F.value):3,X=S&&S.type===0?S.value:"",q=V.map(function(x){return Ka(x,z,!1)}).join(X);c.appendChild(a.createTextNode(q))}}}else if(d.type===20)switch(d.value){case"open-quote":c.appendChild(a.createTextNode(sp(o.quotes,i.quoteDepth++,!0)));break;case"close-quote":c.appendChild(a.createTextNode(sp(o.quotes,--i.quoteDepth,!1)));break;default:c.appendChild(a.createTextNode(d.value))}}),c.className=Mh+" "+Kh;var h=n===_a.BEFORE?" "+Mh:" "+Kh;return Ql(e)?e.className.baseValue+=h:e.className+=h,c}}},t.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},t}(),_a;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(_a||(_a={}));var kU=function(t,A){var e=t.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=A.width.toString(),e.height=A.height.toString(),e.scrolling="no",e.setAttribute(d1,"true"),t.body.appendChild(e),e},HU=function(t){return new Promise(function(A){if(t.complete){A();return}if(!t.src){A();return}t.onload=A,t.onerror=A})},PU=function(t){return Promise.all([].slice.call(t.images,0).map(HU))},TU=function(t){return new Promise(function(A,e){var r=t.contentWindow;if(!r)return e("No window assigned for iframe");var n=r.document;r.onload=t.onload=function(){r.onload=t.onload=null;var i=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(i),A(t))},50)}})},DU=["all","d","content"],Du=function(t,A){for(var e=t.length-1;e>=0;e--){var r=t.item(e);DU.indexOf(r)===-1&&A.style.setProperty(r,t.getPropertyValue(r))}return A},RU=function(t){var A="";return t&&(A+="<!DOCTYPE ",t.name&&(A+=t.name),t.internalSubset&&(A+=t.internalSubset),t.publicId&&(A+='"'+t.publicId+'"'),t.systemId&&(A+='"'+t.systemId+'"'),A+=">"),A},OU=function(t,A,e){t&&t.defaultView&&(A!==t.defaultView.pageXOffset||e!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(A,e)},MU=function(t){var A=t[0],e=t[1],r=t[2];A.scrollLeft=e,A.scrollTop=r},KU=":before",jU=":after",Mh="___html2canvas___pseudoelement_before",Kh="___html2canvas___pseudoelement_after",Ip=`{
341
344
  content: "" !important;
342
345
  display: none !important;
343
- }`,GU=function(t){qU(t,"."+Rh+KU+xp+`
344
- .`+Oh+jU+xp)},qU=function(t,A){var e=t.ownerDocument;if(e){var r=e.createElement("style");r.textContent=A,t.appendChild(r)}},h1=function(){function t(){}return t.getOrigin=function(A){var e=t._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},t.isSameOrigin=function(A){return t.getOrigin(A)===t._origin},t.setContext=function(A){t._link=A.document.createElement("a"),t._origin=t.getOrigin(A.location.href)},t._origin="about:blank",t}(),VU=function(){function t(A,e){this.context=A,this._options=e,this._cache={}}return t.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Ru(A)||XU(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},t.prototype.match=function(A){return this._cache[A]},t.prototype.loadImage=function(A){return Yt(this,void 0,void 0,function(){var e,r,n,i,s=this;return qt(this,function(a){switch(a.label){case 0:return e=h1.isSameOrigin(A),r=!Du(A)&&this._options.useCORS===!0&&kt.SUPPORT_CORS_IMAGES&&!e,n=!Du(A)&&!e&&!Ru(A)&&typeof this._options.proxy=="string"&&kt.SUPPORT_CORS_XHR&&!r,!e&&this._options.allowTaint===!1&&!Du(A)&&!Ru(A)&&!n&&!r?[2]:(i=A,n?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(o,c){var h=new Image;h.onload=function(){return o(h)},h.onerror=c,(JU(i)||r)&&(h.crossOrigin="anonymous"),h.src=i,h.complete===!0&&setTimeout(function(){return o(h)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},t.prototype.has=function(A){return typeof this._cache[A]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(A){var e=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(i,s){var a=kt.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(o.status===200)if(a==="text")i(o.response);else{var g=new FileReader;g.addEventListener("load",function(){return i(g.result)},!1),g.addEventListener("error",function(m){return s(m)},!1),g.readAsDataURL(o.response)}else s("Failed to proxy resource "+n+" with status code "+o.status)},o.onerror=s;var c=r.indexOf("?")>-1?"&":"?";if(o.open("GET",""+r+c+"url="+encodeURIComponent(A)+"&responseType="+a),a!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=a),e._options.imageTimeout){var h=e._options.imageTimeout;o.timeout=h,o.ontimeout=function(){return s("Timed out ("+h+"ms) proxying "+n)}}o.send()})},t}(),WU=/^data:image\/svg\+xml/i,zU=/^data:image\/.*;base64,/i,$U=/^data:image\/.*/i,XU=function(t){return kt.SUPPORT_SVG_DRAWING||!YU(t)},Du=function(t){return $U.test(t)},JU=function(t){return zU.test(t)},Ru=function(t){return t.substr(0,4)==="blob"},YU=function(t){return t.substr(-3).toLowerCase()==="svg"||WU.test(t)},HA=function(){function t(A,e){this.type=0,this.x=A,this.y=e}return t.prototype.add=function(A,e){return new t(this.x+A,this.y+e)},t}(),hs=function(t,A,e){return new HA(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},ll=function(){function t(A,e,r,n){this.type=1,this.start=A,this.startControl=e,this.endControl=r,this.end=n}return t.prototype.subdivide=function(A,e){var r=hs(this.start,this.startControl,A),n=hs(this.startControl,this.endControl,A),i=hs(this.endControl,this.end,A),s=hs(r,n,A),a=hs(n,i,A),o=hs(s,a,A);return e?new t(this.start,r,s,o):new t(o,a,i,this.end)},t.prototype.add=function(A,e){return new t(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),xr=function(t){return t.type===1},ZU=function(){function t(A){var e=A.styles,r=A.bounds,n=ya(e.borderTopLeftRadius,r.width,r.height),i=n[0],s=n[1],a=ya(e.borderTopRightRadius,r.width,r.height),o=a[0],c=a[1],h=ya(e.borderBottomRightRadius,r.width,r.height),g=h[0],m=h[1],f=ya(e.borderBottomLeftRadius,r.width,r.height),w=f[0],y=f[1],F=[];F.push((i+o)/r.width),F.push((w+g)/r.width),F.push((s+y)/r.height),F.push((c+m)/r.height);var v=Math.max.apply(Math,F);v>1&&(i/=v,s/=v,o/=v,c/=v,g/=v,m/=v,w/=v,y/=v);var L=r.width-o,N=r.height-m,_=r.width-g,q=r.height-y,X=e.borderTopWidth,J=e.borderRightWidth,G=e.borderBottomWidth,k=e.borderLeftWidth,Z=je(e.paddingTop,A.bounds.width),x=je(e.paddingRight,A.bounds.width),S=je(e.paddingBottom,A.bounds.width),K=je(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?$e(r.left+k/3,r.top+X/3,i-k/3,s-X/3,Ie.TOP_LEFT):new HA(r.left+k/3,r.top+X/3),this.topRightBorderDoubleOuterBox=i>0||s>0?$e(r.left+L,r.top+X/3,o-J/3,c-X/3,Ie.TOP_RIGHT):new HA(r.left+r.width-J/3,r.top+X/3),this.bottomRightBorderDoubleOuterBox=g>0||m>0?$e(r.left+_,r.top+N,g-J/3,m-G/3,Ie.BOTTOM_RIGHT):new HA(r.left+r.width-J/3,r.top+r.height-G/3),this.bottomLeftBorderDoubleOuterBox=w>0||y>0?$e(r.left+k/3,r.top+q,w-k/3,y-G/3,Ie.BOTTOM_LEFT):new HA(r.left+k/3,r.top+r.height-G/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?$e(r.left+k*2/3,r.top+X*2/3,i-k*2/3,s-X*2/3,Ie.TOP_LEFT):new HA(r.left+k*2/3,r.top+X*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?$e(r.left+L,r.top+X*2/3,o-J*2/3,c-X*2/3,Ie.TOP_RIGHT):new HA(r.left+r.width-J*2/3,r.top+X*2/3),this.bottomRightBorderDoubleInnerBox=g>0||m>0?$e(r.left+_,r.top+N,g-J*2/3,m-G*2/3,Ie.BOTTOM_RIGHT):new HA(r.left+r.width-J*2/3,r.top+r.height-G*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||y>0?$e(r.left+k*2/3,r.top+q,w-k*2/3,y-G*2/3,Ie.BOTTOM_LEFT):new HA(r.left+k*2/3,r.top+r.height-G*2/3),this.topLeftBorderStroke=i>0||s>0?$e(r.left+k/2,r.top+X/2,i-k/2,s-X/2,Ie.TOP_LEFT):new HA(r.left+k/2,r.top+X/2),this.topRightBorderStroke=i>0||s>0?$e(r.left+L,r.top+X/2,o-J/2,c-X/2,Ie.TOP_RIGHT):new HA(r.left+r.width-J/2,r.top+X/2),this.bottomRightBorderStroke=g>0||m>0?$e(r.left+_,r.top+N,g-J/2,m-G/2,Ie.BOTTOM_RIGHT):new HA(r.left+r.width-J/2,r.top+r.height-G/2),this.bottomLeftBorderStroke=w>0||y>0?$e(r.left+k/2,r.top+q,w-k/2,y-G/2,Ie.BOTTOM_LEFT):new HA(r.left+k/2,r.top+r.height-G/2),this.topLeftBorderBox=i>0||s>0?$e(r.left,r.top,i,s,Ie.TOP_LEFT):new HA(r.left,r.top),this.topRightBorderBox=o>0||c>0?$e(r.left+L,r.top,o,c,Ie.TOP_RIGHT):new HA(r.left+r.width,r.top),this.bottomRightBorderBox=g>0||m>0?$e(r.left+_,r.top+N,g,m,Ie.BOTTOM_RIGHT):new HA(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=w>0||y>0?$e(r.left,r.top+q,w,y,Ie.BOTTOM_LEFT):new HA(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||s>0?$e(r.left+k,r.top+X,Math.max(0,i-k),Math.max(0,s-X),Ie.TOP_LEFT):new HA(r.left+k,r.top+X),this.topRightPaddingBox=o>0||c>0?$e(r.left+Math.min(L,r.width-J),r.top+X,L>r.width+J?0:Math.max(0,o-J),Math.max(0,c-X),Ie.TOP_RIGHT):new HA(r.left+r.width-J,r.top+X),this.bottomRightPaddingBox=g>0||m>0?$e(r.left+Math.min(_,r.width-k),r.top+Math.min(N,r.height-G),Math.max(0,g-J),Math.max(0,m-G),Ie.BOTTOM_RIGHT):new HA(r.left+r.width-J,r.top+r.height-G),this.bottomLeftPaddingBox=w>0||y>0?$e(r.left+k,r.top+Math.min(q,r.height-G),Math.max(0,w-k),Math.max(0,y-G),Ie.BOTTOM_LEFT):new HA(r.left+k,r.top+r.height-G),this.topLeftContentBox=i>0||s>0?$e(r.left+k+K,r.top+X+Z,Math.max(0,i-(k+K)),Math.max(0,s-(X+Z)),Ie.TOP_LEFT):new HA(r.left+k+K,r.top+X+Z),this.topRightContentBox=o>0||c>0?$e(r.left+Math.min(L,r.width+k+K),r.top+X+Z,L>r.width+k+K?0:o-k+K,c-(X+Z),Ie.TOP_RIGHT):new HA(r.left+r.width-(J+x),r.top+X+Z),this.bottomRightContentBox=g>0||m>0?$e(r.left+Math.min(_,r.width-(k+K)),r.top+Math.min(N,r.height+X+Z),Math.max(0,g-(J+x)),m-(G+S),Ie.BOTTOM_RIGHT):new HA(r.left+r.width-(J+x),r.top+r.height-(G+S)),this.bottomLeftContentBox=w>0||y>0?$e(r.left+k+K,r.top+q,Math.max(0,w-(k+K)),y-(G+S),Ie.BOTTOM_LEFT):new HA(r.left+k+K,r.top+r.height-(G+S))}return t}(),Ie;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ie||(Ie={}));var $e=function(t,A,e,r,n){var i=4*((Math.sqrt(2)-1)/3),s=e*i,a=r*i,o=t+e,c=A+r;switch(n){case Ie.TOP_LEFT:return new ll(new HA(t,c),new HA(t,c-a),new HA(o-s,A),new HA(o,A));case Ie.TOP_RIGHT:return new ll(new HA(t,A),new HA(t+s,A),new HA(o,c-a),new HA(o,c));case Ie.BOTTOM_RIGHT:return new ll(new HA(o,A),new HA(o,A+a),new HA(t+s,c),new HA(t,c));case Ie.BOTTOM_LEFT:default:return new ll(new HA(o,c),new HA(o-s,c),new HA(t,A+a),new HA(t,A))}},Wl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},A3=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},zl=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},e3=function(){function t(A,e,r){this.offsetX=A,this.offsetY=e,this.matrix=r,this.type=0,this.target=6}return t}(),cl=function(){function t(A,e){this.path=A,this.target=e,this.type=1}return t}(),t3=function(){function t(A){this.opacity=A,this.type=2,this.target=6}return t}(),r3=function(t){return t.type===0},f1=function(t){return t.type===1},n3=function(t){return t.type===2},Ep=function(t,A){return t.length===A.length?t.some(function(e,r){return e===A[r]}):!1},i3=function(t,A,e,r,n){return t.map(function(i,s){switch(s){case 0:return i.add(A,e);case 1:return i.add(A+r,e);case 2:return i.add(A+r,e+n);case 3:return i.add(A,e+n)}return i})},d1=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),g1=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new ZU(this.container),this.container.styles.opacity<1&&this.effects.push(new t3(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new e3(r,n,i))}if(this.container.styles.overflowX!==0){var s=Wl(this.curves),a=zl(this.curves);Ep(s,a)?this.effects.push(new cl(s,6)):(this.effects.push(new cl(s,2)),this.effects.push(new cl(a,4)))}}return t.prototype.getEffects=function(A){for(var e=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var i=r.effects.filter(function(o){return!f1(o)});if(e||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,i),e=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=Wl(r.curves),a=zl(r.curves);Ep(s,a)||n.unshift(new cl(a,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter(function(o){return bt(o.target,A)})},t}(),Mh=function(t,A,e,r){t.container.elements.forEach(function(n){var i=bt(n.flags,4),s=bt(n.flags,2),a=new g1(n,t);bt(n.styles.display,2048)&&r.push(a);var o=bt(n.flags,8)?[]:r;if(i||s){var c=i||n.styles.isPositioned()?e:A,h=new d1(a);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var g=n.styles.zIndex.order;if(g<0){var m=0;c.negativeZIndex.some(function(w,y){return g>w.element.container.styles.zIndex.order?(m=y,!1):m>0}),c.negativeZIndex.splice(m,0,h)}else if(g>0){var f=0;c.positiveZIndex.some(function(w,y){return g>=w.element.container.styles.zIndex.order?(f=y+1,!1):f>0}),c.positiveZIndex.splice(f,0,h)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(h)}else n.styles.isFloating()?c.nonPositionedFloats.push(h):c.nonPositionedInlineLevel.push(h);Mh(a,h,i?h:e,o)}else n.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),Mh(a,A,e,o);bt(n.flags,8)&&p1(n,o)})},p1=function(t,A){for(var e=t instanceof Ph?t.start:1,r=t instanceof Ph?t.reversed:!1,n=0;n<A.length;n++){var i=A[n];i.container instanceof Zm&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=Ma(e,i.container.styles.listStyleType,!0),e+=r?-1:1}},s3=function(t){var A=new g1(t,null),e=new d1(A),r=[];return Mh(A,e,e,r),p1(A.container,r),e},Lp=function(t,A){switch(A){case 0:return Sr(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Sr(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Sr(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Sr(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},a3=function(t,A){switch(A){case 0:return Sr(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Sr(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Sr(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return Sr(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},o3=function(t,A){switch(A){case 0:return Sr(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Sr(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Sr(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return Sr(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},l3=function(t,A){switch(A){case 0:return ul(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return ul(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return ul(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return ul(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},ul=function(t,A){var e=[];return xr(t)?e.push(t.subdivide(.5,!1)):e.push(t),xr(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},Sr=function(t,A,e,r){var n=[];return xr(t)?n.push(t.subdivide(.5,!1)):n.push(t),xr(e)?n.push(e.subdivide(.5,!0)):n.push(e),xr(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),xr(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},m1=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},$l=function(t){var A=t.styles,e=t.bounds,r=je(A.paddingLeft,e.width),n=je(A.paddingRight,e.width),i=je(A.paddingTop,e.width),s=je(A.paddingBottom,e.width);return e.add(r+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+r+n),-(A.borderTopWidth+A.borderBottomWidth+i+s))},c3=function(t,A){return t===0?A.bounds:t===2?$l(A):m1(A)},u3=function(t,A){return t===0?A.bounds:t===2?$l(A):m1(A)},Ou=function(t,A,e){var r=c3(ms(t.styles.backgroundOrigin,A),t),n=u3(ms(t.styles.backgroundClip,A),t),i=h3(ms(t.styles.backgroundSize,A),e,r),s=i[0],a=i[1],o=ya(ms(t.styles.backgroundPosition,A),r.width-s,r.height-a),c=f3(ms(t.styles.backgroundRepeat,A),o,i,r,n),h=Math.round(r.left+o[0]),g=Math.round(r.top+o[1]);return[c,h,g,s,a]},fs=function(t){return ke(t)&&t.value===xs.AUTO},hl=function(t){return typeof t=="number"},h3=function(t,A,e){var r=A[0],n=A[1],i=A[2],s=t[0],a=t[1];if(!s)return[0,0];if(gt(s)&&a&&gt(a))return[je(s,e.width),je(a,e.height)];var o=hl(i);if(ke(s)&&(s.value===xs.CONTAIN||s.value===xs.COVER)){if(hl(i)){var c=e.width/e.height;return c<i!=(s.value===xs.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var h=hl(r),g=hl(n),m=h||g;if(fs(s)&&(!a||fs(a))){if(h&&g)return[r,n];if(!o&&!m)return[e.width,e.height];if(m&&o){var f=h?r:n*i,w=g?n:r/i;return[f,w]}var y=h?r:e.width,F=g?n:e.height;return[y,F]}if(o){var v=0,L=0;return gt(s)?v=je(s,e.width):gt(a)&&(L=je(a,e.height)),fs(s)?v=L*i:(!a||fs(a))&&(L=v/i),[v,L]}var N=null,_=null;if(gt(s)?N=je(s,e.width):a&&gt(a)&&(_=je(a,e.height)),N!==null&&(!a||fs(a))&&(_=h&&g?N/r*n:e.height),_!==null&&fs(s)&&(N=h&&g?_/n*r:e.width),N!==null&&_!==null)return[N,_];throw new Error("Unable to calculate background-size for element")},ms=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},f3=function(t,A,e,r,n){var i=A[0],s=A[1],a=e[0],o=e[1];switch(t){case 2:return[new HA(Math.round(r.left),Math.round(r.top+s)),new HA(Math.round(r.left+r.width),Math.round(r.top+s)),new HA(Math.round(r.left+r.width),Math.round(o+r.top+s)),new HA(Math.round(r.left),Math.round(o+r.top+s))];case 3:return[new HA(Math.round(r.left+i),Math.round(r.top)),new HA(Math.round(r.left+i+a),Math.round(r.top)),new HA(Math.round(r.left+i+a),Math.round(r.height+r.top)),new HA(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new HA(Math.round(r.left+i),Math.round(r.top+s)),new HA(Math.round(r.left+i+a),Math.round(r.top+s)),new HA(Math.round(r.left+i+a),Math.round(r.top+s+o)),new HA(Math.round(r.left+i),Math.round(r.top+s+o))];default:return[new HA(Math.round(n.left),Math.round(n.top)),new HA(Math.round(n.left+n.width),Math.round(n.top)),new HA(Math.round(n.left+n.width),Math.round(n.height+n.top)),new HA(Math.round(n.left),Math.round(n.height+n.top))]}},d3="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Sp="Hidden Text",g3=function(){function t(A){this._data={},this._document=A}return t.prototype.parseMetrics=function(A,e){var r=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=A,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),n.src=d3,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(Sp)),r.appendChild(i),r.appendChild(n);var a=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(Sp)),r.style.lineHeight="normal",n.style.verticalAlign="super";var o=n.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:a,middle:o}},t.prototype.getMetrics=function(A,e){var r=A+" "+e;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(A,e)),this._data[r]},t}(),B1=function(){function t(A,e){this.context=A,this.options=e}return t}(),p3=1e4,m3=function(t){qr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new g3(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return A.prototype.applyEffects=function(e){for(var r=this;this._activeEffects.length;)this.popEffect();e.forEach(function(n){return r.applyEffect(n)})},A.prototype.applyEffect=function(e){this.ctx.save(),n3(e)&&(this.ctx.globalAlpha=e.opacity),r3(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),f1(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return Yt(this,void 0,void 0,function(){var r;return qt(this,function(n){switch(n.label){case 0:return r=e.element.container.styles,r.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return Yt(this,void 0,void 0,function(){return qt(this,function(r){switch(r.label){case 0:if(bt(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(e)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,r,n){var i=this;if(r===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n);else{var s=lf(e.text);s.reduce(function(a,o){return i.ctx.fillText(o,a,e.bounds.top+n),a+i.ctx.measureText(o).width},e.bounds.left)}},A.prototype.createFontStyle=function(e){var r=e.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),n=C3(e.fontFamily).join(", "),i=Va(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,r,e.fontWeight,i,n].join(" "),n,i]},A.prototype.renderTextNode=function(e,r){return Yt(this,void 0,void 0,function(){var n,i,s,a,o,c,h,g,m=this;return qt(this,function(f){return n=this.createFontStyle(r),i=n[0],s=n[1],a=n[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(s,a),c=o.baseline,h=o.middle,g=r.paintOrder,e.textBounds.forEach(function(w){g.forEach(function(y){switch(y){case 0:m.ctx.fillStyle=Ut(r.color),m.renderTextWithLetterSpacing(w,r.letterSpacing,c);var F=r.textShadow;F.length&&w.text.trim().length&&(F.slice(0).reverse().forEach(function(v){m.ctx.shadowColor=Ut(v.color),m.ctx.shadowOffsetX=v.offsetX.number*m.options.scale,m.ctx.shadowOffsetY=v.offsetY.number*m.options.scale,m.ctx.shadowBlur=v.blur.number,m.renderTextWithLetterSpacing(w,r.letterSpacing,c)}),m.ctx.shadowColor="",m.ctx.shadowOffsetX=0,m.ctx.shadowOffsetY=0,m.ctx.shadowBlur=0),r.textDecorationLine.length&&(m.ctx.fillStyle=Ut(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(v){switch(v){case 1:m.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top+c),w.bounds.width,1);break;case 2:m.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top),w.bounds.width,1);break;case 3:m.ctx.fillRect(w.bounds.left,Math.ceil(w.bounds.top+h),w.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&w.text.trim().length&&(m.ctx.strokeStyle=Ut(r.webkitTextStrokeColor),m.ctx.lineWidth=r.webkitTextStrokeWidth,m.ctx.lineJoin=window.chrome?"miter":"round",m.ctx.strokeText(w.text,w.bounds.left,w.bounds.top+c)),m.ctx.strokeStyle="",m.ctx.lineWidth=0,m.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(e,r,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=$l(e),s=zl(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return Yt(this,void 0,void 0,function(){var r,n,i,s,a,o,L,L,c,h,g,m,_,f,w,q,y,F,v,L,N,_,q;return qt(this,function(X){switch(X.label){case 0:this.applyEffects(e.getEffects(4)),r=e.container,n=e.curves,i=r.styles,s=0,a=r.textNodes,X.label=1;case 1:return s<a.length?(o=a[s],[4,this.renderTextNode(o,i)]):[3,4];case 2:X.sent(),X.label=3;case 3:return s++,[3,1];case 4:if(!(r instanceof Xm))return[3,8];X.label=5;case 5:return X.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return L=X.sent(),this.renderReplacedElement(r,n,L),[3,8];case 7:return X.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof Jm&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof Ym))return[3,12];X.label=9;case 9:return X.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return L=X.sent(),this.renderReplacedElement(r,n,L),[3,12];case 11:return X.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof t1&&r.tree?(c=new A(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,c.render(r.tree)]):[3,14];case 13:h=X.sent(),r.width&&r.height&&this.ctx.drawImage(h,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),X.label=14;case 14:if(r instanceof cf&&(g=Math.min(r.bounds.width,r.bounds.height),r.type===jl?r.checked&&(this.ctx.save(),this.path([new HA(r.bounds.left+g*.39363,r.bounds.top+g*.79),new HA(r.bounds.left+g*.16,r.bounds.top+g*.5549),new HA(r.bounds.left+g*.27347,r.bounds.top+g*.44071),new HA(r.bounds.left+g*.39694,r.bounds.top+g*.5649),new HA(r.bounds.left+g*.72983,r.bounds.top+g*.23),new HA(r.bounds.left+g*.84,r.bounds.top+g*.34085),new HA(r.bounds.left+g*.39363,r.bounds.top+g*.79)]),this.ctx.fillStyle=Ut(mp),this.ctx.fill(),this.ctx.restore()):r.type===Gl&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+g/2,r.bounds.top+g/2,g/4,0,Math.PI*2,!0),this.ctx.fillStyle=Ut(mp),this.ctx.fill(),this.ctx.restore())),B3(r)&&r.value.length){switch(m=this.createFontStyle(i),_=m[0],f=m[1],w=this.fontMetrics.getMetrics(_,f).baseline,this.ctx.font=_,this.ctx.fillStyle=Ut(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=v3(r.styles.textAlign),q=$l(r),y=0,r.styles.textAlign){case 1:y+=q.width/2;break;case 2:y+=q.width;break}F=q.add(y,0,0,-q.height/2+1),this.ctx.save(),this.path([new HA(q.left,q.top),new HA(q.left+q.width,q.top),new HA(q.left+q.width,q.top+q.height),new HA(q.left,q.top+q.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ia(r.value,F),i.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!bt(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(v=r.styles.listStyleImage,v.type!==0)return[3,18];L=void 0,N=v.url,X.label=15;case 15:return X.trys.push([15,17,,18]),[4,this.context.cache.match(N)];case 16:return L=X.sent(),this.ctx.drawImage(L,r.bounds.left-(L.width+10),r.bounds.top),[3,18];case 17:return X.sent(),this.context.logger.error("Error loading list-style-image "+N),[3,18];case 18:return[3,20];case 19:e.listValue&&r.styles.listStyleType!==-1&&(_=this.createFontStyle(i)[0],this.ctx.font=_,this.ctx.fillStyle=Ut(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",q=new Pn(r.bounds.left,r.bounds.top+je(r.styles.paddingTop,r.bounds.width),r.bounds.width,Ap(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ia(e.listValue,q),i.letterSpacing,Ap(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),X.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return Yt(this,void 0,void 0,function(){var r,n,v,i,s,v,a,o,v,c,h,v,g,m,v,f,w,v,y,F,v;return qt(this,function(L){switch(L.label){case 0:if(bt(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:L.sent(),r=0,n=e.negativeZIndex,L.label=2;case 2:return r<n.length?(v=n[r],[4,this.renderStack(v)]):[3,5];case 3:L.sent(),L.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:L.sent(),i=0,s=e.nonInlineLevel,L.label=7;case 7:return i<s.length?(v=s[i],[4,this.renderNode(v)]):[3,10];case 8:L.sent(),L.label=9;case 9:return i++,[3,7];case 10:a=0,o=e.nonPositionedFloats,L.label=11;case 11:return a<o.length?(v=o[a],[4,this.renderStack(v)]):[3,14];case 12:L.sent(),L.label=13;case 13:return a++,[3,11];case 14:c=0,h=e.nonPositionedInlineLevel,L.label=15;case 15:return c<h.length?(v=h[c],[4,this.renderStack(v)]):[3,18];case 16:L.sent(),L.label=17;case 17:return c++,[3,15];case 18:g=0,m=e.inlineLevel,L.label=19;case 19:return g<m.length?(v=m[g],[4,this.renderNode(v)]):[3,22];case 20:L.sent(),L.label=21;case 21:return g++,[3,19];case 22:f=0,w=e.zeroOrAutoZIndexOrTransformedOrOpacity,L.label=23;case 23:return f<w.length?(v=w[f],[4,this.renderStack(v)]):[3,26];case 24:L.sent(),L.label=25;case 25:return f++,[3,23];case 26:y=0,F=e.positiveZIndex,L.label=27;case 27:return y<F.length?(v=F[y],[4,this.renderStack(v)]):[3,30];case 28:L.sent(),L.label=29;case 29:return y++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var r=this;e.forEach(function(n,i){var s=xr(n)?n.start:n;i===0?r.ctx.moveTo(s.x,s.y):r.ctx.lineTo(s.x,s.y),xr(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},A.prototype.renderRepeat=function(e,r,n,i){this.path(e),this.ctx.fillStyle=r,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},A.prototype.resizeImage=function(e,r,n){var i;if(e.width===r&&e.height===n)return e;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=s.createElement("canvas");a.width=Math.max(1,r),a.height=Math.max(1,n);var o=a.getContext("2d");return o.drawImage(e,0,0,e.width,e.height,0,0,r,n),a},A.prototype.renderBackgroundImage=function(e){return Yt(this,void 0,void 0,function(){var r,n,i,s,a,o;return qt(this,function(c){switch(c.label){case 0:r=e.styles.backgroundImage.length-1,n=function(h){var g,m,f,Z,lA,hA,K,T,G,w,Z,lA,hA,K,T,y,F,v,L,N,_,q,X,J,G,k,Z,x,S,K,T,z,lA,hA,iA,dA,QA,CA,U,M,j,$;return qt(this,function(AA){switch(AA.label){case 0:if(h.type!==0)return[3,5];g=void 0,m=h.url,AA.label=1;case 1:return AA.trys.push([1,3,,4]),[4,i.context.cache.match(m)];case 2:return g=AA.sent(),[3,4];case 3:return AA.sent(),i.context.logger.error("Error loading background-image "+m),[3,4];case 4:return g&&(f=Ou(e,r,[g.width,g.height,g.width/g.height]),Z=f[0],lA=f[1],hA=f[2],K=f[3],T=f[4],G=i.ctx.createPattern(i.resizeImage(g,K,T),"repeat"),i.renderRepeat(Z,G,lA,hA)),[3,6];case 5:rF(h)?(w=Ou(e,r,[null,null,null]),Z=w[0],lA=w[1],hA=w[2],K=w[3],T=w[4],y=Y4(h.angle,K,T),F=y[0],v=y[1],L=y[2],N=y[3],_=y[4],q=document.createElement("canvas"),q.width=K,q.height=T,X=q.getContext("2d"),J=X.createLinearGradient(v,N,L,_),Yg(h.stops,F).forEach(function(sA){return J.addColorStop(sA.stop,Ut(sA.color))}),X.fillStyle=J,X.fillRect(0,0,K,T),K>0&&T>0&&(G=i.ctx.createPattern(q,"repeat"),i.renderRepeat(Z,G,lA,hA))):nF(h)&&(k=Ou(e,r,[null,null,null]),Z=k[0],x=k[1],S=k[2],K=k[3],T=k[4],z=h.position.length===0?[sf]:h.position,lA=je(z[0],K),hA=je(z[z.length-1],T),iA=Z4(h,lA,hA,K,T),dA=iA[0],QA=iA[1],dA>0&&QA>0&&(CA=i.ctx.createRadialGradient(x+lA,S+hA,0,x+lA,S+hA,dA),Yg(h.stops,dA*2).forEach(function(sA){return CA.addColorStop(sA.stop,Ut(sA.color))}),i.path(Z),i.ctx.fillStyle=CA,dA!==QA?(U=e.bounds.left+.5*e.bounds.width,M=e.bounds.top+.5*e.bounds.height,j=QA/dA,$=1/j,i.ctx.save(),i.ctx.translate(U,M),i.ctx.transform(1,0,0,j,0,0),i.ctx.translate(-U,-M),i.ctx.fillRect(x,$*(S-M)+M,K,T*$),i.ctx.restore()):i.ctx.fill())),AA.label=6;case 6:return r--,[2]}})},i=this,s=0,a=e.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<a.length?(o=a[s],[5,n(o)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(e,r,n){return Yt(this,void 0,void 0,function(){return qt(this,function(i){return this.path(Lp(n,r)),this.ctx.fillStyle=Ut(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,r,n,i){return Yt(this,void 0,void 0,function(){var s,a;return qt(this,function(o){switch(o.label){case 0:return r<3?[4,this.renderSolidBorder(e,n,i)]:[3,2];case 1:return o.sent(),[2];case 2:return s=a3(i,n),this.path(s),this.ctx.fillStyle=Ut(e),this.ctx.fill(),a=o3(i,n),this.path(a),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return Yt(this,void 0,void 0,function(){var r,n,i,s,a,o,c,h,g=this;return qt(this,function(m){switch(m.label){case 0:return this.applyEffects(e.getEffects(2)),r=e.container.styles,n=!ci(r.backgroundColor)||r.backgroundImage.length,i=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],s=w3(ms(r.backgroundClip,0),e.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),ci(r.backgroundColor)||(this.ctx.fillStyle=Ut(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:m.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(f){g.ctx.save();var w=Wl(e.curves),y=f.inset?0:p3,F=i3(w,-y+(f.inset?1:-1)*f.spread.number,(f.inset?1:-1)*f.spread.number,f.spread.number*(f.inset?-2:2),f.spread.number*(f.inset?-2:2));f.inset?(g.path(w),g.ctx.clip(),g.mask(F)):(g.mask(w),g.ctx.clip(),g.path(F)),g.ctx.shadowOffsetX=f.offsetX.number+y,g.ctx.shadowOffsetY=f.offsetY.number,g.ctx.shadowColor=Ut(f.color),g.ctx.shadowBlur=f.blur.number,g.ctx.fillStyle=f.inset?Ut(f.color):"rgba(0,0,0,1)",g.ctx.fill(),g.ctx.restore()}),m.label=2;case 2:a=0,o=0,c=i,m.label=3;case 3:return o<c.length?(h=c[o],h.style!==0&&!ci(h.color)&&h.width>0?h.style!==2?[3,5]:[4,this.renderDashedDottedBorder(h.color,h.width,a,e.curves,2)]:[3,11]):[3,13];case 4:return m.sent(),[3,11];case 5:return h.style!==3?[3,7]:[4,this.renderDashedDottedBorder(h.color,h.width,a,e.curves,3)];case 6:return m.sent(),[3,11];case 7:return h.style!==4?[3,9]:[4,this.renderDoubleBorder(h.color,h.width,a,e.curves)];case 8:return m.sent(),[3,11];case 9:return[4,this.renderSolidBorder(h.color,a,e.curves)];case 10:m.sent(),m.label=11;case 11:a++,m.label=12;case 12:return o++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,r,n,i,s){return Yt(this,void 0,void 0,function(){var a,o,c,h,g,m,f,w,y,F,v,L,N,_,q,X,q,X;return qt(this,function(J){return this.ctx.save(),a=l3(i,n),o=Lp(i,n),s===2&&(this.path(o),this.ctx.clip()),xr(o[0])?(c=o[0].start.x,h=o[0].start.y):(c=o[0].x,h=o[0].y),xr(o[1])?(g=o[1].end.x,m=o[1].end.y):(g=o[1].x,m=o[1].y),n===0||n===2?f=Math.abs(c-g):f=Math.abs(h-m),this.ctx.beginPath(),s===3?this.formatPath(a):this.formatPath(o.slice(0,2)),w=r<3?r*3:r*2,y=r<3?r*2:r,s===3&&(w=r,y=r),F=!0,f<=w*2?F=!1:f<=w*2+y?(v=f/(2*w+y),w*=v,y*=v):(L=Math.floor((f+y)/(w+y)),N=(f-L*w)/(L-1),_=(f-(L+1)*w)/L,y=_<=0||Math.abs(y-N)<Math.abs(y-_)?N:_),F&&(s===3?this.ctx.setLineDash([0,w+y]):this.ctx.setLineDash([w,y])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=Ut(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(xr(o[0])&&(q=o[3],X=o[0],this.ctx.beginPath(),this.formatPath([new HA(q.end.x,q.end.y),new HA(X.start.x,X.start.y)]),this.ctx.stroke()),xr(o[1])&&(q=o[1],X=o[2],this.ctx.beginPath(),this.formatPath([new HA(q.end.x,q.end.y),new HA(X.start.x,X.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return Yt(this,void 0,void 0,function(){var r;return qt(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ut(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=s3(e),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(B1),B3=function(t){return t instanceof e1||t instanceof A1?!0:t instanceof cf&&t.type!==Gl&&t.type!==jl},w3=function(t,A){switch(t){case 0:return Wl(A);case 2:return A3(A);case 1:default:return zl(A)}},v3=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},y3=["-apple-system","system-ui"],C3=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return y3.indexOf(A)===-1}):t},b3=function(t){qr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=r,n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),n}return A.prototype.render=function(e){return Yt(this,void 0,void 0,function(){var r,n;return qt(this,function(i){switch(i.label){case 0:return r=kh(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,F3(r)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ut(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(B1),F3=function(t){return new Promise(function(A,e){var r=new Image;r.onload=function(){A(r)},r.onerror=e,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},Q3=function(){function t(A){var e=A.id,r=A.enabled;this.id=e,this.enabled=r,this.start=Date.now()}return t.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Go([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Go([this.id,this.getTime()+"ms"],A))},t.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Go([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Go([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),U3=function(){function t(A,e){var r;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new Q3({id:this.instanceName,enabled:A.logging}),this.cache=(r=A.cache)!==null&&r!==void 0?r:new VU(this,A)}return t.instanceCount=1,t}(),w1=function(t,A){return A===void 0&&(A={}),x3(t,A)};typeof window<"u"&&h1.setContext(window);var x3=function(t,A){return Yt(void 0,void 0,void 0,function(){var e,r,n,i,s,a,o,c,h,g,m,f,w,y,F,v,L,N,_,q,J,X,J,G,k,Z,x,S,K,T,z,lA,hA,iA,dA,QA,CA,U,M,j;return qt(this,function($){switch($.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=t.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(r=e.defaultView,!r)throw new Error("Document is not attached to a Window");return n={allowTaint:(G=A.allowTaint)!==null&&G!==void 0?G:!1,imageTimeout:(k=A.imageTimeout)!==null&&k!==void 0?k:15e3,proxy:A.proxy,useCORS:(Z=A.useCORS)!==null&&Z!==void 0?Z:!1},i=vh({logging:(x=A.logging)!==null&&x!==void 0?x:!0,cache:A.cache},n),s={windowWidth:(S=A.windowWidth)!==null&&S!==void 0?S:r.innerWidth,windowHeight:(K=A.windowHeight)!==null&&K!==void 0?K:r.innerHeight,scrollX:(T=A.scrollX)!==null&&T!==void 0?T:r.pageXOffset,scrollY:(z=A.scrollY)!==null&&z!==void 0?z:r.pageYOffset},a=new Pn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),o=new U3(i,a),c=(lA=A.foreignObjectRendering)!==null&&lA!==void 0?lA:!1,h={allowTaint:(hA=A.allowTaint)!==null&&hA!==void 0?hA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:c,copyStyles:c},o.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),g=new Up(o,t,h),m=g.clonedReferenceElement,m?[4,g.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return f=$.sent(),w=uf(m)||LU(m)?ib(m.ownerDocument):tc(o,m),y=w.width,F=w.height,v=w.left,L=w.top,N=E3(o,m,A.backgroundColor),_={canvas:A.canvas,backgroundColor:N,scale:(dA=(iA=A.scale)!==null&&iA!==void 0?iA:r.devicePixelRatio)!==null&&dA!==void 0?dA:1,x:((QA=A.x)!==null&&QA!==void 0?QA:0)+v,y:((CA=A.y)!==null&&CA!==void 0?CA:0)+L,width:(U=A.width)!==null&&U!==void 0?U:Math.ceil(y),height:(M=A.height)!==null&&M!==void 0?M:Math.ceil(F)},c?(o.logger.debug("Document cloned, using foreign object rendering"),J=new b3(o,_),[4,J.render(m)]):[3,3];case 2:return q=$.sent(),[3,5];case 3:return o.logger.debug("Document cloned, element located at "+v+","+L+" with size "+y+"x"+F+" using computed rendering"),o.logger.debug("Starting DOM parsing"),X=n1(o,m),N===X.styles.backgroundColor&&(X.styles.backgroundColor=kn.TRANSPARENT),o.logger.debug("Starting renderer for element at "+_.x+","+_.y+" with size "+_.width+"x"+_.height),J=new m3(o,_),[4,J.render(X)];case 4:q=$.sent(),$.label=5;case 5:return(!((j=A.removeContainer)!==null&&j!==void 0)||j)&&(Up.destroy(f)||o.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),o.logger.debug("Finished rendering"),[2,q]}})})},E3=function(t,A,e){var r=A.ownerDocument,n=r.documentElement?La(t,getComputedStyle(r.documentElement).backgroundColor):kn.TRANSPARENT,i=r.body?La(t,getComputedStyle(r.body).backgroundColor):kn.TRANSPARENT,s=typeof e=="string"?La(t,e):e===null?kn.TRANSPARENT:4294967295;return A===r.documentElement?ci(n)?ci(i)?s:i:n:s};const L3=Object.freeze(Object.defineProperty({__proto__:null,default:w1},Symbol.toStringTag,{value:"Module"}));function S3({isOpen:t,onClose:A,html:e,theme:r="dark"}){const n=r==="light",i=RA.useRef(null),s=()=>{window.print()},a=async()=>{if(i.current)try{const o=document.createElement("div");o.textContent="Генерация PDF...",o.style.cssText="position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,0.8);color:white;padding:20px;border-radius:8px;z-index:10000;",document.body.appendChild(o);const c=await w1(i.current,{scale:2,useCORS:!0,logging:!1,backgroundColor:"#ffffff"}),h=c.toDataURL("image/png"),g=new zA({orientation:"portrait",unit:"mm",format:"a4"}),m=210,f=297,w=c.height*m/c.width;let y=w,F=0;for(g.addImage(h,"PNG",0,F,m,w),y-=f;y>0;)F=y-w,g.addPage(),g.addImage(h,"PNG",0,F,m,w),y-=f;g.save("document.pdf"),document.body.removeChild(o),A()}catch(o){console.error("Error generating PDF:",o),alert("Ошибка при создании PDF. Попробуйте еще раз.")}};return t?V.jsxs("div",{className:`${eA.modalOverlay} ${t?eA.show:""}`,onClick:A,children:[V.jsxs("div",{className:`${eA.modal} ${n?eA.light:""}`,onClick:o=>o.stopPropagation(),style:{maxWidth:"900px",width:"95%",maxHeight:"90vh",display:"flex",flexDirection:"column"},children:[V.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px"},children:[V.jsx("h3",{style:{margin:0},children:"🖨️ Предпросмотр печати"}),V.jsx("button",{className:`${eA.toolbarBtn} ${n?eA.light:""}`,onClick:A,title:"Закрыть",children:V.jsx("i",{className:"fas fa-times"})})]}),V.jsx("div",{style:{flex:1,overflow:"auto",background:n?"#f5f5f5":"#1a1a1a",padding:"20px",borderRadius:"8px",marginBottom:"16px"},children:V.jsx("div",{ref:i,className:"print-preview-page",style:{background:"white",width:"210mm",minHeight:"297mm",padding:"20mm",margin:"0 auto",boxShadow:"0 0 10px rgba(0,0,0,0.3)",color:"#000",fontFamily:"Arial, sans-serif",fontSize:"12pt",lineHeight:"1.6"},dangerouslySetInnerHTML:{__html:e}})}),V.jsxs("div",{style:{display:"flex",gap:"12px",justifyContent:"flex-end"},children:[V.jsx("button",{className:`${eA.modalBtn} ${eA.modalBtnSecondary}`,onClick:A,children:"Отмена"}),V.jsxs("button",{className:`${eA.modalBtn} ${eA.modalBtnPrimary}`,onClick:s,style:{background:"#6366f1"},children:[V.jsx("i",{className:"fas fa-print",style:{marginRight:"8px"}}),"Печать"]}),V.jsxs("button",{className:`${eA.modalBtn} ${eA.modalBtnPrimary}`,onClick:a,style:{background:"#10b981"},children:[V.jsx("i",{className:"fas fa-file-pdf",style:{marginRight:"8px"}}),"Сохранить PDF"]})]})]}),V.jsx("style",{children:`
346
+ }`,GU=function(t){qU(t,"."+Mh+KU+Ip+`
347
+ .`+Kh+jU+Ip)},qU=function(t,A){var e=t.ownerDocument;if(e){var r=e.createElement("style");r.textContent=A,t.appendChild(r)}},g1=function(){function t(){}return t.getOrigin=function(A){var e=t._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},t.isSameOrigin=function(A){return t.getOrigin(A)===t._origin},t.setContext=function(A){t._link=A.document.createElement("a"),t._origin=t.getOrigin(A.location.href)},t._origin="about:blank",t}(),VU=function(){function t(A,e){this.context=A,this._options=e,this._cache={}}return t.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Ou(A)||XU(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},t.prototype.match=function(A){return this._cache[A]},t.prototype.loadImage=function(A){return Yt(this,void 0,void 0,function(){var e,r,n,i,s=this;return qt(this,function(a){switch(a.label){case 0:return e=g1.isSameOrigin(A),r=!Ru(A)&&this._options.useCORS===!0&&Pt.SUPPORT_CORS_IMAGES&&!e,n=!Ru(A)&&!e&&!Ou(A)&&typeof this._options.proxy=="string"&&Pt.SUPPORT_CORS_XHR&&!r,!e&&this._options.allowTaint===!1&&!Ru(A)&&!Ou(A)&&!n&&!r?[2]:(i=A,n?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(o,c){var h=new Image;h.onload=function(){return o(h)},h.onerror=c,(JU(i)||r)&&(h.crossOrigin="anonymous"),h.src=i,h.complete===!0&&setTimeout(function(){return o(h)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},t.prototype.has=function(A){return typeof this._cache[A]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(A){var e=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(i,s){var a=Pt.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(o.status===200)if(a==="text")i(o.response);else{var d=new FileReader;d.addEventListener("load",function(){return i(d.result)},!1),d.addEventListener("error",function(m){return s(m)},!1),d.readAsDataURL(o.response)}else s("Failed to proxy resource "+n+" with status code "+o.status)},o.onerror=s;var c=r.indexOf("?")>-1?"&":"?";if(o.open("GET",""+r+c+"url="+encodeURIComponent(A)+"&responseType="+a),a!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=a),e._options.imageTimeout){var h=e._options.imageTimeout;o.timeout=h,o.ontimeout=function(){return s("Timed out ("+h+"ms) proxying "+n)}}o.send()})},t}(),WU=/^data:image\/svg\+xml/i,zU=/^data:image\/.*;base64,/i,$U=/^data:image\/.*/i,XU=function(t){return Pt.SUPPORT_SVG_DRAWING||!YU(t)},Ru=function(t){return $U.test(t)},JU=function(t){return zU.test(t)},Ou=function(t){return t.substr(0,4)==="blob"},YU=function(t){return t.substr(-3).toLowerCase()==="svg"||WU.test(t)},RA=function(){function t(A,e){this.type=0,this.x=A,this.y=e}return t.prototype.add=function(A,e){return new t(this.x+A,this.y+e)},t}(),hs=function(t,A,e){return new RA(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},cl=function(){function t(A,e,r,n){this.type=1,this.start=A,this.startControl=e,this.endControl=r,this.end=n}return t.prototype.subdivide=function(A,e){var r=hs(this.start,this.startControl,A),n=hs(this.startControl,this.endControl,A),i=hs(this.endControl,this.end,A),s=hs(r,n,A),a=hs(n,i,A),o=hs(s,a,A);return e?new t(this.start,r,s,o):new t(o,a,i,this.end)},t.prototype.add=function(A,e){return new t(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Lr=function(t){return t.type===1},ZU=function(){function t(A){var e=A.styles,r=A.bounds,n=ya(e.borderTopLeftRadius,r.width,r.height),i=n[0],s=n[1],a=ya(e.borderTopRightRadius,r.width,r.height),o=a[0],c=a[1],h=ya(e.borderBottomRightRadius,r.width,r.height),d=h[0],m=h[1],f=ya(e.borderBottomLeftRadius,r.width,r.height),w=f[0],y=f[1],F=[];F.push((i+o)/r.width),F.push((w+d)/r.width),F.push((s+y)/r.height),F.push((c+m)/r.height);var v=Math.max.apply(Math,F);v>1&&(i/=v,s/=v,o/=v,c/=v,d/=v,m/=v,w/=v,y/=v);var L=r.width-o,_=r.height-m,S=r.width-d,V=r.height-y,z=e.borderTopWidth,X=e.borderRightWidth,q=e.borderBottomWidth,k=e.borderLeftWidth,Y=qe(e.paddingTop,A.bounds.width),x=qe(e.paddingRight,A.bounds.width),P=qe(e.paddingBottom,A.bounds.width),j=qe(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?Xe(r.left+k/3,r.top+z/3,i-k/3,s-z/3,ke.TOP_LEFT):new RA(r.left+k/3,r.top+z/3),this.topRightBorderDoubleOuterBox=i>0||s>0?Xe(r.left+L,r.top+z/3,o-X/3,c-z/3,ke.TOP_RIGHT):new RA(r.left+r.width-X/3,r.top+z/3),this.bottomRightBorderDoubleOuterBox=d>0||m>0?Xe(r.left+S,r.top+_,d-X/3,m-q/3,ke.BOTTOM_RIGHT):new RA(r.left+r.width-X/3,r.top+r.height-q/3),this.bottomLeftBorderDoubleOuterBox=w>0||y>0?Xe(r.left+k/3,r.top+V,w-k/3,y-q/3,ke.BOTTOM_LEFT):new RA(r.left+k/3,r.top+r.height-q/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?Xe(r.left+k*2/3,r.top+z*2/3,i-k*2/3,s-z*2/3,ke.TOP_LEFT):new RA(r.left+k*2/3,r.top+z*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?Xe(r.left+L,r.top+z*2/3,o-X*2/3,c-z*2/3,ke.TOP_RIGHT):new RA(r.left+r.width-X*2/3,r.top+z*2/3),this.bottomRightBorderDoubleInnerBox=d>0||m>0?Xe(r.left+S,r.top+_,d-X*2/3,m-q*2/3,ke.BOTTOM_RIGHT):new RA(r.left+r.width-X*2/3,r.top+r.height-q*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||y>0?Xe(r.left+k*2/3,r.top+V,w-k*2/3,y-q*2/3,ke.BOTTOM_LEFT):new RA(r.left+k*2/3,r.top+r.height-q*2/3),this.topLeftBorderStroke=i>0||s>0?Xe(r.left+k/2,r.top+z/2,i-k/2,s-z/2,ke.TOP_LEFT):new RA(r.left+k/2,r.top+z/2),this.topRightBorderStroke=i>0||s>0?Xe(r.left+L,r.top+z/2,o-X/2,c-z/2,ke.TOP_RIGHT):new RA(r.left+r.width-X/2,r.top+z/2),this.bottomRightBorderStroke=d>0||m>0?Xe(r.left+S,r.top+_,d-X/2,m-q/2,ke.BOTTOM_RIGHT):new RA(r.left+r.width-X/2,r.top+r.height-q/2),this.bottomLeftBorderStroke=w>0||y>0?Xe(r.left+k/2,r.top+V,w-k/2,y-q/2,ke.BOTTOM_LEFT):new RA(r.left+k/2,r.top+r.height-q/2),this.topLeftBorderBox=i>0||s>0?Xe(r.left,r.top,i,s,ke.TOP_LEFT):new RA(r.left,r.top),this.topRightBorderBox=o>0||c>0?Xe(r.left+L,r.top,o,c,ke.TOP_RIGHT):new RA(r.left+r.width,r.top),this.bottomRightBorderBox=d>0||m>0?Xe(r.left+S,r.top+_,d,m,ke.BOTTOM_RIGHT):new RA(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=w>0||y>0?Xe(r.left,r.top+V,w,y,ke.BOTTOM_LEFT):new RA(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||s>0?Xe(r.left+k,r.top+z,Math.max(0,i-k),Math.max(0,s-z),ke.TOP_LEFT):new RA(r.left+k,r.top+z),this.topRightPaddingBox=o>0||c>0?Xe(r.left+Math.min(L,r.width-X),r.top+z,L>r.width+X?0:Math.max(0,o-X),Math.max(0,c-z),ke.TOP_RIGHT):new RA(r.left+r.width-X,r.top+z),this.bottomRightPaddingBox=d>0||m>0?Xe(r.left+Math.min(S,r.width-k),r.top+Math.min(_,r.height-q),Math.max(0,d-X),Math.max(0,m-q),ke.BOTTOM_RIGHT):new RA(r.left+r.width-X,r.top+r.height-q),this.bottomLeftPaddingBox=w>0||y>0?Xe(r.left+k,r.top+Math.min(V,r.height-q),Math.max(0,w-k),Math.max(0,y-q),ke.BOTTOM_LEFT):new RA(r.left+k,r.top+r.height-q),this.topLeftContentBox=i>0||s>0?Xe(r.left+k+j,r.top+z+Y,Math.max(0,i-(k+j)),Math.max(0,s-(z+Y)),ke.TOP_LEFT):new RA(r.left+k+j,r.top+z+Y),this.topRightContentBox=o>0||c>0?Xe(r.left+Math.min(L,r.width+k+j),r.top+z+Y,L>r.width+k+j?0:o-k+j,c-(z+Y),ke.TOP_RIGHT):new RA(r.left+r.width-(X+x),r.top+z+Y),this.bottomRightContentBox=d>0||m>0?Xe(r.left+Math.min(S,r.width-(k+j)),r.top+Math.min(_,r.height+z+Y),Math.max(0,d-(X+x)),m-(q+P),ke.BOTTOM_RIGHT):new RA(r.left+r.width-(X+x),r.top+r.height-(q+P)),this.bottomLeftContentBox=w>0||y>0?Xe(r.left+k+j,r.top+V,Math.max(0,w-(k+j)),y-(q+P),ke.BOTTOM_LEFT):new RA(r.left+k+j,r.top+r.height-(q+P))}return t}(),ke;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ke||(ke={}));var Xe=function(t,A,e,r,n){var i=4*((Math.sqrt(2)-1)/3),s=e*i,a=r*i,o=t+e,c=A+r;switch(n){case ke.TOP_LEFT:return new cl(new RA(t,c),new RA(t,c-a),new RA(o-s,A),new RA(o,A));case ke.TOP_RIGHT:return new cl(new RA(t,A),new RA(t+s,A),new RA(o,c-a),new RA(o,c));case ke.BOTTOM_RIGHT:return new cl(new RA(o,A),new RA(o,A+a),new RA(t+s,c),new RA(t,c));case ke.BOTTOM_LEFT:default:return new cl(new RA(o,c),new RA(o-s,c),new RA(t,A+a),new RA(t,A))}},zl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},Ax=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},$l=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},ex=function(){function t(A,e,r){this.offsetX=A,this.offsetY=e,this.matrix=r,this.type=0,this.target=6}return t}(),ul=function(){function t(A,e){this.path=A,this.target=e,this.type=1}return t}(),tx=function(){function t(A){this.opacity=A,this.type=2,this.target=6}return t}(),rx=function(t){return t.type===0},p1=function(t){return t.type===1},nx=function(t){return t.type===2},_p=function(t,A){return t.length===A.length?t.some(function(e,r){return e===A[r]}):!1},ix=function(t,A,e,r,n){return t.map(function(i,s){switch(s){case 0:return i.add(A,e);case 1:return i.add(A+r,e);case 2:return i.add(A+r,e+n);case 3:return i.add(A,e+n)}return i})},m1=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),B1=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new ZU(this.container),this.container.styles.opacity<1&&this.effects.push(new tx(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new ex(r,n,i))}if(this.container.styles.overflowX!==0){var s=zl(this.curves),a=$l(this.curves);_p(s,a)?this.effects.push(new ul(s,6)):(this.effects.push(new ul(s,2)),this.effects.push(new ul(a,4)))}}return t.prototype.getEffects=function(A){for(var e=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var i=r.effects.filter(function(o){return!p1(o)});if(e||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,i),e=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=zl(r.curves),a=$l(r.curves);_p(s,a)||n.unshift(new ul(a,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter(function(o){return Ft(o.target,A)})},t}(),jh=function(t,A,e,r){t.container.elements.forEach(function(n){var i=Ft(n.flags,4),s=Ft(n.flags,2),a=new B1(n,t);Ft(n.styles.display,2048)&&r.push(a);var o=Ft(n.flags,8)?[]:r;if(i||s){var c=i||n.styles.isPositioned()?e:A,h=new m1(a);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var d=n.styles.zIndex.order;if(d<0){var m=0;c.negativeZIndex.some(function(w,y){return d>w.element.container.styles.zIndex.order?(m=y,!1):m>0}),c.negativeZIndex.splice(m,0,h)}else if(d>0){var f=0;c.positiveZIndex.some(function(w,y){return d>=w.element.container.styles.zIndex.order?(f=y+1,!1):f>0}),c.positiveZIndex.splice(f,0,h)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(h)}else n.styles.isFloating()?c.nonPositionedFloats.push(h):c.nonPositionedInlineLevel.push(h);jh(a,h,i?h:e,o)}else n.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),jh(a,A,e,o);Ft(n.flags,8)&&w1(n,o)})},w1=function(t,A){for(var e=t instanceof Dh?t.start:1,r=t instanceof Dh?t.reversed:!1,n=0;n<A.length;n++){var i=A[n];i.container instanceof t1&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=Ka(e,i.container.styles.listStyleType,!0),e+=r?-1:1}},sx=function(t){var A=new B1(t,null),e=new m1(A),r=[];return jh(A,e,e,r),w1(A.container,r),e},Np=function(t,A){switch(A){case 0:return _r(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return _r(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return _r(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return _r(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},ax=function(t,A){switch(A){case 0:return _r(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return _r(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return _r(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return _r(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},ox=function(t,A){switch(A){case 0:return _r(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return _r(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return _r(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return _r(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},lx=function(t,A){switch(A){case 0:return hl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return hl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return hl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return hl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},hl=function(t,A){var e=[];return Lr(t)?e.push(t.subdivide(.5,!1)):e.push(t),Lr(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},_r=function(t,A,e,r){var n=[];return Lr(t)?n.push(t.subdivide(.5,!1)):n.push(t),Lr(e)?n.push(e.subdivide(.5,!0)):n.push(e),Lr(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),Lr(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},v1=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},Xl=function(t){var A=t.styles,e=t.bounds,r=qe(A.paddingLeft,e.width),n=qe(A.paddingRight,e.width),i=qe(A.paddingTop,e.width),s=qe(A.paddingBottom,e.width);return e.add(r+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+r+n),-(A.borderTopWidth+A.borderBottomWidth+i+s))},cx=function(t,A){return t===0?A.bounds:t===2?Xl(A):v1(A)},ux=function(t,A){return t===0?A.bounds:t===2?Xl(A):v1(A)},Mu=function(t,A,e){var r=cx(ms(t.styles.backgroundOrigin,A),t),n=ux(ms(t.styles.backgroundClip,A),t),i=hx(ms(t.styles.backgroundSize,A),e,r),s=i[0],a=i[1],o=ya(ms(t.styles.backgroundPosition,A),r.width-s,r.height-a),c=fx(ms(t.styles.backgroundRepeat,A),o,i,r,n),h=Math.round(r.left+o[0]),d=Math.round(r.top+o[1]);return[c,h,d,s,a]},fs=function(t){return De(t)&&t.value===xs.AUTO},fl=function(t){return typeof t=="number"},hx=function(t,A,e){var r=A[0],n=A[1],i=A[2],s=t[0],a=t[1];if(!s)return[0,0];if(pt(s)&&a&&pt(a))return[qe(s,e.width),qe(a,e.height)];var o=fl(i);if(De(s)&&(s.value===xs.CONTAIN||s.value===xs.COVER)){if(fl(i)){var c=e.width/e.height;return c<i!=(s.value===xs.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var h=fl(r),d=fl(n),m=h||d;if(fs(s)&&(!a||fs(a))){if(h&&d)return[r,n];if(!o&&!m)return[e.width,e.height];if(m&&o){var f=h?r:n*i,w=d?n:r/i;return[f,w]}var y=h?r:e.width,F=d?n:e.height;return[y,F]}if(o){var v=0,L=0;return pt(s)?v=qe(s,e.width):pt(a)&&(L=qe(a,e.height)),fs(s)?v=L*i:(!a||fs(a))&&(L=v/i),[v,L]}var _=null,S=null;if(pt(s)?_=qe(s,e.width):a&&pt(a)&&(S=qe(a,e.height)),_!==null&&(!a||fs(a))&&(S=h&&d?_/r*n:e.height),S!==null&&fs(s)&&(_=h&&d?S/n*r:e.width),_!==null&&S!==null)return[_,S];throw new Error("Unable to calculate background-size for element")},ms=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},fx=function(t,A,e,r,n){var i=A[0],s=A[1],a=e[0],o=e[1];switch(t){case 2:return[new RA(Math.round(r.left),Math.round(r.top+s)),new RA(Math.round(r.left+r.width),Math.round(r.top+s)),new RA(Math.round(r.left+r.width),Math.round(o+r.top+s)),new RA(Math.round(r.left),Math.round(o+r.top+s))];case 3:return[new RA(Math.round(r.left+i),Math.round(r.top)),new RA(Math.round(r.left+i+a),Math.round(r.top)),new RA(Math.round(r.left+i+a),Math.round(r.height+r.top)),new RA(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new RA(Math.round(r.left+i),Math.round(r.top+s)),new RA(Math.round(r.left+i+a),Math.round(r.top+s)),new RA(Math.round(r.left+i+a),Math.round(r.top+s+o)),new RA(Math.round(r.left+i),Math.round(r.top+s+o))];default:return[new RA(Math.round(n.left),Math.round(n.top)),new RA(Math.round(n.left+n.width),Math.round(n.top)),new RA(Math.round(n.left+n.width),Math.round(n.height+n.top)),new RA(Math.round(n.left),Math.round(n.height+n.top))]}},dx="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",kp="Hidden Text",gx=function(){function t(A){this._data={},this._document=A}return t.prototype.parseMetrics=function(A,e){var r=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=A,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),n.src=dx,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(kp)),r.appendChild(i),r.appendChild(n);var a=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(kp)),r.style.lineHeight="normal",n.style.verticalAlign="super";var o=n.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:a,middle:o}},t.prototype.getMetrics=function(A,e){var r=A+" "+e;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(A,e)),this._data[r]},t}(),y1=function(){function t(A,e){this.context=A,this.options=e}return t}(),px=1e4,mx=function(t){Wr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new gx(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return A.prototype.applyEffects=function(e){for(var r=this;this._activeEffects.length;)this.popEffect();e.forEach(function(n){return r.applyEffect(n)})},A.prototype.applyEffect=function(e){this.ctx.save(),nx(e)&&(this.ctx.globalAlpha=e.opacity),rx(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),p1(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return Yt(this,void 0,void 0,function(){var r;return qt(this,function(n){switch(n.label){case 0:return r=e.element.container.styles,r.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return Yt(this,void 0,void 0,function(){return qt(this,function(r){switch(r.label){case 0:if(Ft(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(e)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,r,n){var i=this;if(r===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n);else{var s=ff(e.text);s.reduce(function(a,o){return i.ctx.fillText(o,a,e.bounds.top+n),a+i.ctx.measureText(o).width},e.bounds.left)}},A.prototype.createFontStyle=function(e){var r=e.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),n=bx(e.fontFamily).join(", "),i=Wa(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,r,e.fontWeight,i,n].join(" "),n,i]},A.prototype.renderTextNode=function(e,r){return Yt(this,void 0,void 0,function(){var n,i,s,a,o,c,h,d,m=this;return qt(this,function(f){return n=this.createFontStyle(r),i=n[0],s=n[1],a=n[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(s,a),c=o.baseline,h=o.middle,d=r.paintOrder,e.textBounds.forEach(function(w){d.forEach(function(y){switch(y){case 0:m.ctx.fillStyle=xt(r.color),m.renderTextWithLetterSpacing(w,r.letterSpacing,c);var F=r.textShadow;F.length&&w.text.trim().length&&(F.slice(0).reverse().forEach(function(v){m.ctx.shadowColor=xt(v.color),m.ctx.shadowOffsetX=v.offsetX.number*m.options.scale,m.ctx.shadowOffsetY=v.offsetY.number*m.options.scale,m.ctx.shadowBlur=v.blur.number,m.renderTextWithLetterSpacing(w,r.letterSpacing,c)}),m.ctx.shadowColor="",m.ctx.shadowOffsetX=0,m.ctx.shadowOffsetY=0,m.ctx.shadowBlur=0),r.textDecorationLine.length&&(m.ctx.fillStyle=xt(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(v){switch(v){case 1:m.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top+c),w.bounds.width,1);break;case 2:m.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top),w.bounds.width,1);break;case 3:m.ctx.fillRect(w.bounds.left,Math.ceil(w.bounds.top+h),w.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&w.text.trim().length&&(m.ctx.strokeStyle=xt(r.webkitTextStrokeColor),m.ctx.lineWidth=r.webkitTextStrokeWidth,m.ctx.lineJoin=window.chrome?"miter":"round",m.ctx.strokeText(w.text,w.bounds.left,w.bounds.top+c)),m.ctx.strokeStyle="",m.ctx.lineWidth=0,m.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(e,r,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=Xl(e),s=$l(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return Yt(this,void 0,void 0,function(){var r,n,i,s,a,o,L,L,c,h,d,m,S,f,w,V,y,F,v,L,_,S,V;return qt(this,function(z){switch(z.label){case 0:this.applyEffects(e.getEffects(4)),r=e.container,n=e.curves,i=r.styles,s=0,a=r.textNodes,z.label=1;case 1:return s<a.length?(o=a[s],[4,this.renderTextNode(o,i)]):[3,4];case 2:z.sent(),z.label=3;case 3:return s++,[3,1];case 4:if(!(r instanceof Zm))return[3,8];z.label=5;case 5:return z.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return L=z.sent(),this.renderReplacedElement(r,n,L),[3,8];case 7:return z.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof A1&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof e1))return[3,12];z.label=9;case 9:return z.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return L=z.sent(),this.renderReplacedElement(r,n,L),[3,12];case 11:return z.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof i1&&r.tree?(c=new A(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,c.render(r.tree)]):[3,14];case 13:h=z.sent(),r.width&&r.height&&this.ctx.drawImage(h,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),z.label=14;case 14:if(r instanceof df&&(d=Math.min(r.bounds.width,r.bounds.height),r.type===Gl?r.checked&&(this.ctx.save(),this.path([new RA(r.bounds.left+d*.39363,r.bounds.top+d*.79),new RA(r.bounds.left+d*.16,r.bounds.top+d*.5549),new RA(r.bounds.left+d*.27347,r.bounds.top+d*.44071),new RA(r.bounds.left+d*.39694,r.bounds.top+d*.5649),new RA(r.bounds.left+d*.72983,r.bounds.top+d*.23),new RA(r.bounds.left+d*.84,r.bounds.top+d*.34085),new RA(r.bounds.left+d*.39363,r.bounds.top+d*.79)]),this.ctx.fillStyle=xt(yp),this.ctx.fill(),this.ctx.restore()):r.type===ql&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+d/2,r.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=xt(yp),this.ctx.fill(),this.ctx.restore())),Bx(r)&&r.value.length){switch(m=this.createFontStyle(i),S=m[0],f=m[1],w=this.fontMetrics.getMetrics(S,f).baseline,this.ctx.font=S,this.ctx.fillStyle=xt(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=vx(r.styles.textAlign),V=Xl(r),y=0,r.styles.textAlign){case 1:y+=V.width/2;break;case 2:y+=V.width;break}F=V.add(y,0,0,-V.height/2+1),this.ctx.save(),this.path([new RA(V.left,V.top),new RA(V.left+V.width,V.top),new RA(V.left+V.width,V.top+V.height),new RA(V.left,V.top+V.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ia(r.value,F),i.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ft(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(v=r.styles.listStyleImage,v.type!==0)return[3,18];L=void 0,_=v.url,z.label=15;case 15:return z.trys.push([15,17,,18]),[4,this.context.cache.match(_)];case 16:return L=z.sent(),this.ctx.drawImage(L,r.bounds.left-(L.width+10),r.bounds.top),[3,18];case 17:return z.sent(),this.context.logger.error("Error loading list-style-image "+_),[3,18];case 18:return[3,20];case 19:e.listValue&&r.styles.listStyleType!==-1&&(S=this.createFontStyle(i)[0],this.ctx.font=S,this.ctx.fillStyle=xt(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",V=new Tn(r.bounds.left,r.bounds.top+qe(r.styles.paddingTop,r.bounds.width),r.bounds.width,np(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ia(e.listValue,V),i.letterSpacing,np(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),z.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return Yt(this,void 0,void 0,function(){var r,n,v,i,s,v,a,o,v,c,h,v,d,m,v,f,w,v,y,F,v;return qt(this,function(L){switch(L.label){case 0:if(Ft(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:L.sent(),r=0,n=e.negativeZIndex,L.label=2;case 2:return r<n.length?(v=n[r],[4,this.renderStack(v)]):[3,5];case 3:L.sent(),L.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:L.sent(),i=0,s=e.nonInlineLevel,L.label=7;case 7:return i<s.length?(v=s[i],[4,this.renderNode(v)]):[3,10];case 8:L.sent(),L.label=9;case 9:return i++,[3,7];case 10:a=0,o=e.nonPositionedFloats,L.label=11;case 11:return a<o.length?(v=o[a],[4,this.renderStack(v)]):[3,14];case 12:L.sent(),L.label=13;case 13:return a++,[3,11];case 14:c=0,h=e.nonPositionedInlineLevel,L.label=15;case 15:return c<h.length?(v=h[c],[4,this.renderStack(v)]):[3,18];case 16:L.sent(),L.label=17;case 17:return c++,[3,15];case 18:d=0,m=e.inlineLevel,L.label=19;case 19:return d<m.length?(v=m[d],[4,this.renderNode(v)]):[3,22];case 20:L.sent(),L.label=21;case 21:return d++,[3,19];case 22:f=0,w=e.zeroOrAutoZIndexOrTransformedOrOpacity,L.label=23;case 23:return f<w.length?(v=w[f],[4,this.renderStack(v)]):[3,26];case 24:L.sent(),L.label=25;case 25:return f++,[3,23];case 26:y=0,F=e.positiveZIndex,L.label=27;case 27:return y<F.length?(v=F[y],[4,this.renderStack(v)]):[3,30];case 28:L.sent(),L.label=29;case 29:return y++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var r=this;e.forEach(function(n,i){var s=Lr(n)?n.start:n;i===0?r.ctx.moveTo(s.x,s.y):r.ctx.lineTo(s.x,s.y),Lr(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},A.prototype.renderRepeat=function(e,r,n,i){this.path(e),this.ctx.fillStyle=r,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},A.prototype.resizeImage=function(e,r,n){var i;if(e.width===r&&e.height===n)return e;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=s.createElement("canvas");a.width=Math.max(1,r),a.height=Math.max(1,n);var o=a.getContext("2d");return o.drawImage(e,0,0,e.width,e.height,0,0,r,n),a},A.prototype.renderBackgroundImage=function(e){return Yt(this,void 0,void 0,function(){var r,n,i,s,a,o;return qt(this,function(c){switch(c.label){case 0:r=e.styles.backgroundImage.length-1,n=function(h){var d,m,f,Y,lA,fA,j,D,q,w,Y,lA,fA,j,D,y,F,v,L,_,S,V,z,X,q,k,Y,x,P,j,D,J,lA,fA,aA,dA,QA,hA,U,R,G,W;return qt(this,function(eA){switch(eA.label){case 0:if(h.type!==0)return[3,5];d=void 0,m=h.url,eA.label=1;case 1:return eA.trys.push([1,3,,4]),[4,i.context.cache.match(m)];case 2:return d=eA.sent(),[3,4];case 3:return eA.sent(),i.context.logger.error("Error loading background-image "+m),[3,4];case 4:return d&&(f=Mu(e,r,[d.width,d.height,d.width/d.height]),Y=f[0],lA=f[1],fA=f[2],j=f[3],D=f[4],q=i.ctx.createPattern(i.resizeImage(d,j,D),"repeat"),i.renderRepeat(Y,q,lA,fA)),[3,6];case 5:rF(h)?(w=Mu(e,r,[null,null,null]),Y=w[0],lA=w[1],fA=w[2],j=w[3],D=w[4],y=Y4(h.angle,j,D),F=y[0],v=y[1],L=y[2],_=y[3],S=y[4],V=document.createElement("canvas"),V.width=j,V.height=D,z=V.getContext("2d"),X=z.createLinearGradient(v,_,L,S),tp(h.stops,F).forEach(function(nA){return X.addColorStop(nA.stop,xt(nA.color))}),z.fillStyle=X,z.fillRect(0,0,j,D),j>0&&D>0&&(q=i.ctx.createPattern(V,"repeat"),i.renderRepeat(Y,q,lA,fA))):nF(h)&&(k=Mu(e,r,[null,null,null]),Y=k[0],x=k[1],P=k[2],j=k[3],D=k[4],J=h.position.length===0?[cf]:h.position,lA=qe(J[0],j),fA=qe(J[J.length-1],D),aA=Z4(h,lA,fA,j,D),dA=aA[0],QA=aA[1],dA>0&&QA>0&&(hA=i.ctx.createRadialGradient(x+lA,P+fA,0,x+lA,P+fA,dA),tp(h.stops,dA*2).forEach(function(nA){return hA.addColorStop(nA.stop,xt(nA.color))}),i.path(Y),i.ctx.fillStyle=hA,dA!==QA?(U=e.bounds.left+.5*e.bounds.width,R=e.bounds.top+.5*e.bounds.height,G=QA/dA,W=1/G,i.ctx.save(),i.ctx.translate(U,R),i.ctx.transform(1,0,0,G,0,0),i.ctx.translate(-U,-R),i.ctx.fillRect(x,W*(P-R)+R,j,D*W),i.ctx.restore()):i.ctx.fill())),eA.label=6;case 6:return r--,[2]}})},i=this,s=0,a=e.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<a.length?(o=a[s],[5,n(o)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(e,r,n){return Yt(this,void 0,void 0,function(){return qt(this,function(i){return this.path(Np(n,r)),this.ctx.fillStyle=xt(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,r,n,i){return Yt(this,void 0,void 0,function(){var s,a;return qt(this,function(o){switch(o.label){case 0:return r<3?[4,this.renderSolidBorder(e,n,i)]:[3,2];case 1:return o.sent(),[2];case 2:return s=ax(i,n),this.path(s),this.ctx.fillStyle=xt(e),this.ctx.fill(),a=ox(i,n),this.path(a),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return Yt(this,void 0,void 0,function(){var r,n,i,s,a,o,c,h,d=this;return qt(this,function(m){switch(m.label){case 0:return this.applyEffects(e.getEffects(2)),r=e.container.styles,n=!ui(r.backgroundColor)||r.backgroundImage.length,i=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],s=wx(ms(r.backgroundClip,0),e.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),ui(r.backgroundColor)||(this.ctx.fillStyle=xt(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:m.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(f){d.ctx.save();var w=zl(e.curves),y=f.inset?0:px,F=ix(w,-y+(f.inset?1:-1)*f.spread.number,(f.inset?1:-1)*f.spread.number,f.spread.number*(f.inset?-2:2),f.spread.number*(f.inset?-2:2));f.inset?(d.path(w),d.ctx.clip(),d.mask(F)):(d.mask(w),d.ctx.clip(),d.path(F)),d.ctx.shadowOffsetX=f.offsetX.number+y,d.ctx.shadowOffsetY=f.offsetY.number,d.ctx.shadowColor=xt(f.color),d.ctx.shadowBlur=f.blur.number,d.ctx.fillStyle=f.inset?xt(f.color):"rgba(0,0,0,1)",d.ctx.fill(),d.ctx.restore()}),m.label=2;case 2:a=0,o=0,c=i,m.label=3;case 3:return o<c.length?(h=c[o],h.style!==0&&!ui(h.color)&&h.width>0?h.style!==2?[3,5]:[4,this.renderDashedDottedBorder(h.color,h.width,a,e.curves,2)]:[3,11]):[3,13];case 4:return m.sent(),[3,11];case 5:return h.style!==3?[3,7]:[4,this.renderDashedDottedBorder(h.color,h.width,a,e.curves,3)];case 6:return m.sent(),[3,11];case 7:return h.style!==4?[3,9]:[4,this.renderDoubleBorder(h.color,h.width,a,e.curves)];case 8:return m.sent(),[3,11];case 9:return[4,this.renderSolidBorder(h.color,a,e.curves)];case 10:m.sent(),m.label=11;case 11:a++,m.label=12;case 12:return o++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,r,n,i,s){return Yt(this,void 0,void 0,function(){var a,o,c,h,d,m,f,w,y,F,v,L,_,S,V,z,V,z;return qt(this,function(X){return this.ctx.save(),a=lx(i,n),o=Np(i,n),s===2&&(this.path(o),this.ctx.clip()),Lr(o[0])?(c=o[0].start.x,h=o[0].start.y):(c=o[0].x,h=o[0].y),Lr(o[1])?(d=o[1].end.x,m=o[1].end.y):(d=o[1].x,m=o[1].y),n===0||n===2?f=Math.abs(c-d):f=Math.abs(h-m),this.ctx.beginPath(),s===3?this.formatPath(a):this.formatPath(o.slice(0,2)),w=r<3?r*3:r*2,y=r<3?r*2:r,s===3&&(w=r,y=r),F=!0,f<=w*2?F=!1:f<=w*2+y?(v=f/(2*w+y),w*=v,y*=v):(L=Math.floor((f+y)/(w+y)),_=(f-L*w)/(L-1),S=(f-(L+1)*w)/L,y=S<=0||Math.abs(y-_)<Math.abs(y-S)?_:S),F&&(s===3?this.ctx.setLineDash([0,w+y]):this.ctx.setLineDash([w,y])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=xt(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Lr(o[0])&&(V=o[3],z=o[0],this.ctx.beginPath(),this.formatPath([new RA(V.end.x,V.end.y),new RA(z.start.x,z.start.y)]),this.ctx.stroke()),Lr(o[1])&&(V=o[1],z=o[2],this.ctx.beginPath(),this.formatPath([new RA(V.end.x,V.end.y),new RA(z.start.x,z.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return Yt(this,void 0,void 0,function(){var r;return qt(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=xt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=sx(e),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(y1),Bx=function(t){return t instanceof n1||t instanceof r1?!0:t instanceof df&&t.type!==ql&&t.type!==Gl},wx=function(t,A){switch(t){case 0:return zl(A);case 2:return Ax(A);case 1:default:return $l(A)}},vx=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},yx=["-apple-system","system-ui"],bx=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return yx.indexOf(A)===-1}):t},Cx=function(t){Wr(A,t);function A(e,r){var n=t.call(this,e,r)||this;return n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=r,n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),n}return A.prototype.render=function(e){return Yt(this,void 0,void 0,function(){var r,n;return qt(this,function(i){switch(i.label){case 0:return r=Th(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,Fx(r)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=xt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(y1),Fx=function(t){return new Promise(function(A,e){var r=new Image;r.onload=function(){A(r)},r.onerror=e,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},Qx=function(){function t(A){var e=A.id,r=A.enabled;this.id=e,this.enabled=r,this.start=Date.now()}return t.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,qo([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,qo([this.id,this.getTime()+"ms"],A))},t.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,qo([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,qo([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),Ux=function(){function t(A,e){var r;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new Qx({id:this.instanceName,enabled:A.logging}),this.cache=(r=A.cache)!==null&&r!==void 0?r:new VU(this,A)}return t.instanceCount=1,t}(),b1=function(t,A){return A===void 0&&(A={}),xx(t,A)};typeof window<"u"&&g1.setContext(window);var xx=function(t,A){return Yt(void 0,void 0,void 0,function(){var e,r,n,i,s,a,o,c,h,d,m,f,w,y,F,v,L,_,S,V,X,z,X,q,k,Y,x,P,j,D,J,lA,fA,aA,dA,QA,hA,U,R,G;return qt(this,function(W){switch(W.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=t.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(r=e.defaultView,!r)throw new Error("Document is not attached to a Window");return n={allowTaint:(q=A.allowTaint)!==null&&q!==void 0?q:!1,imageTimeout:(k=A.imageTimeout)!==null&&k!==void 0?k:15e3,proxy:A.proxy,useCORS:(Y=A.useCORS)!==null&&Y!==void 0?Y:!1},i=bh({logging:(x=A.logging)!==null&&x!==void 0?x:!0,cache:A.cache},n),s={windowWidth:(P=A.windowWidth)!==null&&P!==void 0?P:r.innerWidth,windowHeight:(j=A.windowHeight)!==null&&j!==void 0?j:r.innerHeight,scrollX:(D=A.scrollX)!==null&&D!==void 0?D:r.pageXOffset,scrollY:(J=A.scrollY)!==null&&J!==void 0?J:r.pageYOffset},a=new Tn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),o=new Ux(i,a),c=(lA=A.foreignObjectRendering)!==null&&lA!==void 0?lA:!1,h={allowTaint:(fA=A.allowTaint)!==null&&fA!==void 0?fA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:c,copyStyles:c},o.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),d=new Sp(o,t,h),m=d.clonedReferenceElement,m?[4,d.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return f=W.sent(),w=gf(m)||LU(m)?iC(m.ownerDocument):rc(o,m),y=w.width,F=w.height,v=w.left,L=w.top,_=Ex(o,m,A.backgroundColor),S={canvas:A.canvas,backgroundColor:_,scale:(dA=(aA=A.scale)!==null&&aA!==void 0?aA:r.devicePixelRatio)!==null&&dA!==void 0?dA:1,x:((QA=A.x)!==null&&QA!==void 0?QA:0)+v,y:((hA=A.y)!==null&&hA!==void 0?hA:0)+L,width:(U=A.width)!==null&&U!==void 0?U:Math.ceil(y),height:(R=A.height)!==null&&R!==void 0?R:Math.ceil(F)},c?(o.logger.debug("Document cloned, using foreign object rendering"),X=new Cx(o,S),[4,X.render(m)]):[3,3];case 2:return V=W.sent(),[3,5];case 3:return o.logger.debug("Document cloned, element located at "+v+","+L+" with size "+y+"x"+F+" using computed rendering"),o.logger.debug("Starting DOM parsing"),z=a1(o,m),_===z.styles.backgroundColor&&(z.styles.backgroundColor=Pn.TRANSPARENT),o.logger.debug("Starting renderer for element at "+S.x+","+S.y+" with size "+S.width+"x"+S.height),X=new mx(o,S),[4,X.render(z)];case 4:V=W.sent(),W.label=5;case 5:return(!((G=A.removeContainer)!==null&&G!==void 0)||G)&&(Sp.destroy(f)||o.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),o.logger.debug("Finished rendering"),[2,V]}})})},Ex=function(t,A,e){var r=A.ownerDocument,n=r.documentElement?La(t,getComputedStyle(r.documentElement).backgroundColor):Pn.TRANSPARENT,i=r.body?La(t,getComputedStyle(r.body).backgroundColor):Pn.TRANSPARENT,s=typeof e=="string"?La(t,e):e===null?Pn.TRANSPARENT:4294967295;return A===r.documentElement?ui(n)?ui(i)?s:i:n:s};const Lx=Object.freeze(Object.defineProperty({__proto__:null,default:b1},Symbol.toStringTag,{value:"Module"}));function Sx({isOpen:t,onClose:A,html:e,theme:r="dark"}){const n=r==="light",i=IA.useRef(null),s=()=>{window.print()},a=async()=>{if(i.current)try{const o=document.createElement("div");o.textContent="Генерация PDF...",o.style.cssText="position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,0.8);color:white;padding:20px;border-radius:8px;z-index:10000;",document.body.appendChild(o);const c=await b1(i.current,{scale:2,useCORS:!0,logging:!1,backgroundColor:"#ffffff"}),h=c.toDataURL("image/png"),d=new Ae({orientation:"portrait",unit:"mm",format:"a4"}),m=210,f=297,w=c.height*m/c.width;let y=w,F=0;for(d.addImage(h,"PNG",0,F,m,w),y-=f;y>0;)F=y-w,d.addPage(),d.addImage(h,"PNG",0,F,m,w),y-=f;d.save("document.pdf"),document.body.removeChild(o),A()}catch(o){console.error("Error generating PDF:",o),alert("Ошибка при создании PDF. Попробуйте еще раз.")}};return t?N.jsxs("div",{className:`${AA.modalOverlay} ${t?AA.show:""}`,onClick:A,children:[N.jsxs("div",{className:`${AA.modal} ${n?AA.light:""}`,onClick:o=>o.stopPropagation(),style:{maxWidth:"900px",width:"95%",maxHeight:"90vh",display:"flex",flexDirection:"column"},children:[N.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px"},children:[N.jsx("h3",{style:{margin:0},children:"🖨️ Предпросмотр печати"}),N.jsx("button",{className:`${AA.toolbarBtn} ${n?AA.light:""}`,onClick:A,title:"Закрыть",children:N.jsx("i",{className:"fas fa-times"})})]}),N.jsx("div",{style:{flex:1,overflow:"auto",background:n?"#f5f5f5":"#1a1a1a",padding:"20px",borderRadius:"8px",marginBottom:"16px"},children:N.jsx("div",{ref:i,className:"print-preview-page",style:{background:"white",width:"210mm",minHeight:"297mm",padding:"20mm",margin:"0 auto",boxShadow:"0 0 10px rgba(0,0,0,0.3)",color:"#000",fontFamily:"Arial, sans-serif",fontSize:"12pt",lineHeight:"1.6"},dangerouslySetInnerHTML:{__html:e}})}),N.jsxs("div",{style:{display:"flex",gap:"12px",justifyContent:"flex-end"},children:[N.jsx("button",{className:`${AA.modalBtn} ${AA.modalBtnSecondary}`,onClick:A,children:"Отмена"}),N.jsxs("button",{className:`${AA.modalBtn} ${AA.modalBtnPrimary}`,onClick:s,style:{background:"#6366f1"},children:[N.jsx("i",{className:"fas fa-print",style:{marginRight:"8px"}}),"Печать"]}),N.jsxs("button",{className:`${AA.modalBtn} ${AA.modalBtnPrimary}`,onClick:a,style:{background:"#10b981"},children:[N.jsx("i",{className:"fas fa-file-pdf",style:{marginRight:"8px"}}),"Сохранить PDF"]})]})]}),N.jsx("style",{children:`
345
348
  @media print {
346
349
  body * {
347
350
  visibility: hidden;
@@ -415,5 +418,5 @@ PERFORMANCE OF THIS SOFTWARE.
415
418
  margin: 0.5em 0;
416
419
  padding-left: 20px;
417
420
  }
418
- `})]}):null}const I3="_codeBlockWrapper_x9adu_5",_3="_light_x9adu_29",N3="_controls_x9adu_57",H3="_languageSelector_x9adu_99",k3="_langBadge_x9adu_107",P3="_chevron_x9adu_179",T3="_langDropdown_x9adu_189",D3="_langDropdownScroll_x9adu_227",R3="_langOption_x9adu_239",O3="_active_x9adu_273",M3="_actions_x9adu_307",K3="_actionBtn_x9adu_317",j3="_codeContent_x9adu_377",G3="_wrap_x9adu_437",jt={codeBlockWrapper:I3,light:_3,controls:N3,languageSelector:H3,langBadge:k3,chevron:P3,langDropdown:T3,langDropdownScroll:D3,langOption:R3,active:O3,actions:M3,actionBtn:K3,codeContent:j3,wrap:G3};function q3({code:t,language:A,theme:e,onLanguageChange:r,editable:n=!1}){const[i,s]=RA.useState(""),[a,o]=RA.useState(!0),[c,h]=RA.useState(!1),[g,m]=RA.useState(!0),[f,w]=RA.useState(!1),y=RA.useRef(null),F=RA.useRef(null),[v,L]=RA.useState({top:0,left:0});RA.useEffect(()=>{let J=!1;o(!0),console.log("[CodeBlock] Starting highlight:",{language:A,theme:e,codeLength:t.length});const G=setTimeout(()=>{J||(console.warn("[CodeBlock] Highlighting timeout, using fallback"),s(`<pre style="background: #1e1e1e; color: #d4d4d4; padding: 1em; border-radius: 4px; overflow-x: auto;"><code>${Ip(t)}</code></pre>`),o(!1))},5e3);return C0(t,A,e).then(k=>{clearTimeout(G),J||(console.log("[CodeBlock] Highlight success, html length:",k.length),s(k),o(!1))}).catch(k=>{clearTimeout(G),console.error("[CodeBlock] Highlighting failed:",k),J||(s(`<pre style="background: #1e1e1e; color: #d4d4d4; padding: 1em; border-radius: 4px; overflow-x: auto;"><code>${Ip(t)}</code></pre>`),o(!1))}),()=>{J=!0,clearTimeout(G)}},[t,A,e]),RA.useEffect(()=>{const J=G=>{y.current&&!y.current.contains(G.target)&&F.current&&!F.current.contains(G.target)&&h(!1)};if(c)return document.addEventListener("mousedown",J),()=>document.removeEventListener("mousedown",J)},[c]),RA.useEffect(()=>{if(c&&F.current){const J=F.current.getBoundingClientRect();L({top:J.bottom+8,left:J.right-200})}},[c]);const N=async()=>{try{await navigator.clipboard.writeText(t),w(!0),setTimeout(()=>w(!1),2e3)}catch(J){console.error("Copy failed:",J)}},_=J=>{h(!1),r==null||r(J)},q=Fa(A),X=uv();return V.jsxs("div",{className:`${jt.codeBlockWrapper} ${e==="light"?jt.light:jt.dark}`,children:[V.jsxs("div",{className:jt.controls,children:[V.jsxs("div",{className:jt.languageSelector,children:[V.jsxs("button",{ref:F,className:jt.langBadge,onClick:()=>n&&h(!c),disabled:!n,title:n?"Change language":q,children:[q,n&&V.jsx("span",{className:jt.chevron,children:"▼"})]}),c&&n&&V.jsx("div",{ref:y,className:jt.langDropdown,style:{top:`${v.top}px`,left:`${v.left}px`},children:V.jsx("div",{className:jt.langDropdownScroll,children:X.map(J=>V.jsx("button",{className:`${jt.langOption} ${kl(J)===kl(A)?jt.active:""}`,onClick:()=>_(J),children:Fa(J)},J))})})]}),V.jsxs("div",{className:jt.actions,children:[V.jsx("button",{className:jt.actionBtn,onClick:()=>m(!g),title:g?"Disable line wrap":"Enable line wrap",children:g?"↔":"⤸"}),V.jsx("button",{className:jt.actionBtn,onClick:N,title:"Copy code",children:f?"✓":"📋"})]})]}),V.jsx("div",{className:`${jt.codeContent} ${g?jt.wrap:""}`,children:a?V.jsx("pre",{style:{background:"#1e1e1e",color:"#888",padding:"1em",margin:0,border:"none"},children:V.jsx("code",{children:"Initializing highlighter..."})}):V.jsx("div",{dangerouslySetInnerHTML:{__html:i}})})]})}function Ip(t){const A=document.createElement("div");return A.textContent=t,A.innerHTML}function V3(t){const{value:A,defaultValue:e,onChange:r,placeholder:n="Начните печатать или перетащите изображение...",className:i="",style:s,enableAutosave:a=!1,autosaveKey:o="wysiwyg-editor-content",autosaveIntervalMs:c=2e3,enablePreviewPanel:h=!0,enableSourceTab:g=!0,enableFindReplace:m=!0,enablePrint:f=!0,enableFullscreen:w=!0,allowImages:y=!0,allowImageUpload:F=!0,allowVideoEmbeds:v=!0,allowVideoUpload:L=!1,allowTables:N=!0,onImageUpload:_,onVideoUpload:q,theme:X="dark",sanitizeHtml:J=!1,mobileOptimized:G=!0}=t,k=oB(),Z=G&&k,{editorRef:x,core:S,stats:K,isFullscreen:T,theme:z,toggleFullscreen:lA}=Np({value:A,defaultValue:e,onChange:r,placeholder:n,autosave:{enabled:a,key:o,intervalMs:c},sanitize:J,theme:X}),[hA,iA]=RA.useState(!1),[dA,QA]=RA.useState(!1),[CA,U]=RA.useState(!1),[M,j]=RA.useState(!1),[$,AA]=RA.useState(!1),[sA,fA]=RA.useState(!1),gA=RA.useRef(new Map),yA=z==="light";RA.useEffect(()=>{if(!x.current)return;const wA=()=>{var ie;const XA=(ie=x.current)==null?void 0:ie.querySelectorAll("pre.code-block");if(!XA)return;const qA=gA.current,Qe=new Set;XA.forEach(JA=>{Qe.add(JA);const te=JA.querySelector("code");if(!te)return;const KA=JA.getAttribute("data-language")||"plain-text",se=JA.getAttribute("data-original-code");let kA="";if(se)try{kA=decodeURIComponent(escape(atob(se)))}catch(Ue){console.error("Failed to decode base64 code:",Ue),kA=te.textContent||""}else kA=te.textContent||"";if(!kA||kA.trim().length===0){console.warn("[CodeBlock] Empty code, skipping");return}if(!se&&kA)try{const Ue=btoa(unescape(encodeURIComponent(kA)));JA.setAttribute("data-original-code",Ue)}catch(Ue){console.error("Failed to encode code to base64:",Ue)}const Ve=`${KA}:${kA.substring(0,50)}`,Ce=JA.getAttribute("data-block-key"),ge=JA.getAttribute("data-rendered")==="true";if(Ce===Ve&&ge&&qA.has(JA))return;JA.setAttribute("data-block-key",Ve),JA.setAttribute("data-rendered","true");let le=qA.get(JA);le||(le=zu(JA),qA.set(JA,le)),le.render(V.jsx(q3,{code:kA,language:KA,theme:z==="auto"?"dark":z,editable:!0,onLanguageChange:Ue=>{if(JA.setAttribute("data-language",Ue),JA.removeAttribute("data-block-key"),JA.removeAttribute("data-rendered"),kA)try{const YA=btoa(unescape(encodeURIComponent(kA)));JA.setAttribute("data-original-code",YA)}catch(YA){console.error("Failed to encode code:",YA)}te&&(te.className=`language-${Ue}`,te.textContent=kA),setTimeout(()=>wA(),0)}}))});const we=[];qA.forEach((JA,te)=>{!Qe.has(te)&&!document.contains(te)&&we.push([te,JA])}),we.length>0&&queueMicrotask(()=>{we.forEach(([JA,te])=>{te.unmount(),qA.delete(JA)})})};wA();let SA;const PA=new MutationObserver(()=>{clearTimeout(SA),SA=window.setTimeout(wA,100)});return PA.observe(x.current,{childList:!0,subtree:!0}),()=>{clearTimeout(SA),PA.disconnect(),queueMicrotask(()=>{gA.current.forEach(XA=>XA.unmount()),gA.current.clear()})}},[x]),RA.useEffect(()=>{const wA=SA=>{if(SA.ctrlKey||SA.metaKey)switch(SA.key.toLowerCase()){case"b":SA.preventDefault(),S.commands.exec("bold");break;case"i":SA.preventDefault(),S.commands.exec("italic");break;case"u":SA.preventDefault(),S.commands.exec("underline");break;case"k":SA.preventDefault(),S.selection.save(),iA(!0);break;case"f":SA.preventDefault(),fA(PA=>!PA);break;case"s":SA.preventDefault(),S.saveNow();break}SA.key==="F11"&&(SA.preventDefault(),lA()),SA.key==="Escape"&&(iA(!1),QA(!1),U(!1),j(!1),AA(!1),fA(!1),T&&lA())};return document.addEventListener("keydown",wA),()=>document.removeEventListener("keydown",wA)},[S,T,lA]),RA.useEffect(()=>(y&&F&&S.enableDragDrop((wA,SA)=>{S.commands.insertImage(wA,SA)}),()=>S.disableDragDrop()),[S,y,F]);const xA=(wA,SA)=>{S.selection.restore(),S.commands.insertLink(wA,SA)},NA=(wA,SA)=>{S.selection.restore(),S.commands.insertImage(wA,SA)},_A=wA=>{S.selection.restore(),S.commands.insertHTML(wA)},$A=(wA,SA)=>{console.log("[WysiwygEditor] Inserting table:",{rows:wA,cols:SA}),console.log("[WysiwygEditor] Has saved selection:",S.selection.hasSaved()),x.current&&x.current.focus(),S.selection.restore(),S.commands.insertTable(wA,SA),console.log("[WysiwygEditor] Table inserted")},P=()=>{S.selection.save(),iA(!0)},IA=()=>{S.selection.save(),QA(!0)},fe=()=>{S.selection.save(),U(!0)},ZA=()=>{console.log("[WysiwygEditor] Opening table modal, saving selection"),S.selection.save(),j(!0)};return V.jsxs(V.Fragment,{children:[V.jsxs("div",{className:`${eA.editorWrapper} ${yA?eA.light:""} ${T?eA.fullscreen:""} ${i}`,style:s,children:[V.jsx(GB,{core:S,theme:z,onLinkClick:P,onImageClick:IA,onVideoClick:fe,onTableClick:ZA,onFindClick:()=>fA(wA=>!wA),onFullscreenClick:lA,onPrintClick:()=>AA(!0),isFullscreen:T,allowImages:y,allowVideoEmbeds:v,allowTables:N,enableFindReplace:m,enablePrint:f,enableFullscreen:w,isMobile:Z}),m&&V.jsx(VB,{isOpen:sA,onClose:()=>fA(!1),core:S,theme:z}),V.jsx("div",{ref:x,className:`${eA.editorContent} ${yA?eA.light:""} ${T?eA.fullscreen:""}`,style:{outline:"none"}}),V.jsx(qB,{meta:K,theme:z,enableAutosave:a,lastSaveTime:null})]}),h&&V.jsx(hv,{html:S.getHTML(),theme:z,onExportHtml:()=>S.export.downloadHTML(),onExportText:()=>S.export.downloadText(),onCopyHtml:()=>S.export.copyHTML(),enableSourceTab:g}),V.jsx(fv,{isOpen:hA,onClose:()=>iA(!1),onInsert:xA,theme:z}),y&&V.jsx(dv,{isOpen:dA,onClose:()=>QA(!1),onInsert:NA,allowUpload:F,onUpload:_}),v&&V.jsx(gv,{isOpen:CA,onClose:()=>U(!1),onInsert:_A,onUpload:q,allowUpload:L}),N&&V.jsx(pv,{isOpen:M,onClose:()=>j(!1),onInsert:$A}),V.jsx(S3,{isOpen:$,onClose:()=>AA(!1),html:S.getHTML(),theme:z})]})}function W3(t){const A=document.createElement("div");return A.innerHTML=t,A.querySelectorAll("script").forEach(n=>n.remove()),A.querySelectorAll("*").forEach(n=>{Array.from(n.attributes).forEach(i=>{i.name.startsWith("on")&&n.removeAttribute(i.name)})}),A.innerHTML}function z3(t){const A=document.createElement("div");return A.innerHTML=t,A.querySelectorAll("p:empty").forEach(r=>r.remove()),A.innerHTML.trim()}function $3(t){const A=document.createElement("div");return A.innerHTML=t,A.textContent||A.innerText||""}function X3(t){return t.trim()?t.trim().split(/\s+/).length:0}function J3(t){const A=document.createElement("div");return A.innerHTML=t,A.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li").length||(t.trim()?1:0)}function Y3(){const t=window.getSelection();return t&&t.rangeCount>0?t.getRangeAt(0):null}function Z3(t){if(t){const A=window.getSelection();A&&(A.removeAllRanges(),A.addRange(t))}}exports.Autosave=Gu;exports.COLORS=$u;exports.Commands=Ku;exports.DEFAULT_CONTENT=lB;exports.DragDrop=qu;exports.EMOJIS=Hp;exports.EditorCore=Wu;exports.Export=Vu;exports.SelectionManager=_p;exports.Stats=ju;exports.WysiwygEditor=V3;exports._typeof=_e;exports.countParagraphs=J3;exports.countWords=X3;exports.createVideoEmbed=F0;exports.normalizeHtml=z3;exports.parseVideoUrl=b0;exports.restoreSelection=Z3;exports.sanitizeHtml=W3;exports.saveSelection=Y3;exports.stripHtml=$3;exports.useWysiwygEditor=Np;
419
- //# sourceMappingURL=index-aqFdHXK3.js.map
421
+ `})]}):null}const Ix="_codeBlockWrapper_x9adu_5",_x="_light_x9adu_29",Nx="_controls_x9adu_57",kx="_languageSelector_x9adu_99",Hx="_langBadge_x9adu_107",Px="_chevron_x9adu_179",Tx="_langDropdown_x9adu_189",Dx="_langDropdownScroll_x9adu_227",Rx="_langOption_x9adu_239",Ox="_active_x9adu_273",Mx="_actions_x9adu_307",Kx="_actionBtn_x9adu_317",jx="_codeContent_x9adu_377",Gx="_wrap_x9adu_437",jt={codeBlockWrapper:Ix,light:_x,controls:Nx,languageSelector:kx,langBadge:Hx,chevron:Px,langDropdown:Tx,langDropdownScroll:Dx,langOption:Rx,active:Ox,actions:Mx,actionBtn:Kx,codeContent:jx,wrap:Gx};function qx({code:t,language:A,theme:e,onLanguageChange:r,editable:n=!1}){const[i,s]=IA.useState(""),[a,o]=IA.useState(!0),[c,h]=IA.useState(!1),[d,m]=IA.useState(!0),[f,w]=IA.useState(!1),y=IA.useRef(null),F=IA.useRef(null),[v,L]=IA.useState({top:0,left:0});IA.useEffect(()=>{let X=!1;o(!0),console.log("[CodeBlock] Starting highlight:",{language:A,theme:e,codeLength:t.length});const q=setTimeout(()=>{X||(console.warn("[CodeBlock] Highlighting timeout, using fallback"),s(`<pre style="background: #1e1e1e; color: #d4d4d4; padding: 1em; border-radius: 4px; overflow-x: auto;"><code>${Hp(t)}</code></pre>`),o(!1))},5e3);return Q0(t,A,e).then(k=>{clearTimeout(q),X||(console.log("[CodeBlock] Highlight success, html length:",k.length),s(k),o(!1))}).catch(k=>{clearTimeout(q),console.error("[CodeBlock] Highlighting failed:",k),X||(s(`<pre style="background: #1e1e1e; color: #d4d4d4; padding: 1em; border-radius: 4px; overflow-x: auto;"><code>${Hp(t)}</code></pre>`),o(!1))}),()=>{X=!0,clearTimeout(q)}},[t,A,e]),IA.useEffect(()=>{const X=q=>{y.current&&!y.current.contains(q.target)&&F.current&&!F.current.contains(q.target)&&h(!1)};if(c)return document.addEventListener("mousedown",X),()=>document.removeEventListener("mousedown",X)},[c]),IA.useEffect(()=>{if(c&&F.current){const X=F.current.getBoundingClientRect();L({top:X.bottom+8,left:X.right-200})}},[c]);const _=async()=>{try{await navigator.clipboard.writeText(t),w(!0),setTimeout(()=>w(!1),2e3)}catch(X){console.error("Copy failed:",X)}},S=X=>{h(!1),r==null||r(X)},V=Fa(A),z=hv();return N.jsxs("div",{className:`${jt.codeBlockWrapper} ${e==="light"?jt.light:jt.dark}`,children:[N.jsxs("div",{className:jt.controls,children:[N.jsxs("div",{className:jt.languageSelector,children:[N.jsxs("button",{ref:F,className:jt.langBadge,onClick:()=>n&&h(!c),disabled:!n,title:n?"Change language":V,children:[V,n&&N.jsx("span",{className:jt.chevron,children:"▼"})]}),c&&n&&N.jsx("div",{ref:y,className:jt.langDropdown,style:{top:`${v.top}px`,left:`${v.left}px`},children:N.jsx("div",{className:jt.langDropdownScroll,children:z.map(X=>N.jsx("button",{className:`${jt.langOption} ${Pl(X)===Pl(A)?jt.active:""}`,onClick:()=>S(X),children:Fa(X)},X))})})]}),N.jsxs("div",{className:jt.actions,children:[N.jsx("button",{className:jt.actionBtn,onClick:()=>m(!d),title:d?"Disable line wrap":"Enable line wrap",children:d?"↔":"⤸"}),N.jsx("button",{className:jt.actionBtn,onClick:_,title:"Copy code",children:f?"✓":"📋"})]})]}),N.jsx("div",{className:`${jt.codeContent} ${d?jt.wrap:""}`,children:a?N.jsx("pre",{style:{background:"#1e1e1e",color:"#888",padding:"1em",margin:0,border:"none"},children:N.jsx("code",{children:"Initializing highlighter..."})}):N.jsx("div",{dangerouslySetInnerHTML:{__html:i}})})]})}function Hp(t){const A=document.createElement("div");return A.textContent=t,A.innerHTML}function Vx(t){const{value:A,defaultValue:e,onChange:r,placeholder:n="Начните печатать или перетащите изображение...",className:i="",style:s,enableAutosave:a=!1,autosaveKey:o="wysiwyg-editor-content",autosaveIntervalMs:c=2e3,enablePreviewPanel:h=!0,previewPosition:d="right",previewWidth:m,previewHeight:f,enableSourceTab:w=!0,enableFindReplace:y=!0,enablePrint:F=!0,enableFullscreen:v=!0,allowImages:L=!0,allowImageUpload:_=!0,allowVideoEmbeds:S=!0,allowVideoUpload:V=!1,allowTables:z=!0,onImageUpload:X,onVideoUpload:q,theme:k="dark",themeName:Y="dark",customTheme:x,customClassName:P="",customStyles:j,sanitizeHtml:D=!1,mobileOptimized:J=!0}=t,lA=uB(),fA=J&&lA,dA=qh(x?"custom":Y,x),{editorRef:QA,core:hA,stats:U,isFullscreen:R,theme:G,toggleFullscreen:W}=Gh({value:A,defaultValue:e,onChange:r,placeholder:n,autosave:{enabled:a,key:o,intervalMs:c},sanitize:D,theme:k}),[eA,nA]=IA.useState(!1),[gA,pA]=IA.useState(!1),[wA,xA]=IA.useState(!1),[DA,HA]=IA.useState(!1),[WA,T]=IA.useState(!1),[kA,ie]=IA.useState(!1),JA=IA.useRef(new Map),UA=G==="light",_A=IA.useRef(null);IA.useEffect(()=>{_A.current&&Object.entries(dA).forEach(([SA,TA])=>{if(TA){const KA=`--${SA.replace(/([A-Z])/g,"-$1").toLowerCase()}`;_A.current.style.setProperty(KA,TA)}})},[dA]),IA.useEffect(()=>{if(!QA.current)return;const SA=()=>{var be;const _e=(be=QA.current)==null?void 0:be.querySelectorAll("pre.code-block");if(!_e)return;const me=JA.current,bA=new Set;_e.forEach(NA=>{bA.add(NA);const Ce=NA.querySelector("code");if(!Ce)return;const te=NA.getAttribute("data-language")||"plain-text",ae=NA.getAttribute("data-original-code");let Fe="";if(ae)try{Fe=decodeURIComponent(escape(atob(ae)))}catch(Ve){console.error("Failed to decode base64 code:",Ve),Fe=Ce.textContent||""}else Fe=Ce.textContent||"";if(!Fe||Fe.trim().length===0){console.warn("[CodeBlock] Empty code, skipping");return}if(!ae&&Fe)try{const Ve=btoa(unescape(encodeURIComponent(Fe)));NA.setAttribute("data-original-code",Ve)}catch(Ve){console.error("Failed to encode code to base64:",Ve)}const Be=`${te}:${Fe.substring(0,50)}`,re=NA.getAttribute("data-block-key"),Ie=NA.getAttribute("data-rendered")==="true";if(re===Be&&Ie&&me.has(NA))return;NA.setAttribute("data-block-key",Be),NA.setAttribute("data-rendered","true");let mr=me.get(NA);mr||(mr=$u(NA),me.set(NA,mr)),mr.render(N.jsx(qx,{code:Fe,language:te,theme:G==="auto"?"dark":G,editable:!0,onLanguageChange:Ve=>{if(NA.setAttribute("data-language",Ve),NA.removeAttribute("data-block-key"),NA.removeAttribute("data-rendered"),Fe)try{const nr=btoa(unescape(encodeURIComponent(Fe)));NA.setAttribute("data-original-code",nr)}catch(nr){console.error("Failed to encode code:",nr)}Ce&&(Ce.className=`language-${Ve}`,Ce.textContent=Fe),setTimeout(()=>SA(),0)}}))});const GA=[];me.forEach((NA,Ce)=>{!bA.has(Ce)&&!document.contains(Ce)&&GA.push([Ce,NA])}),GA.length>0&&queueMicrotask(()=>{GA.forEach(([NA,Ce])=>{Ce.unmount(),me.delete(NA)})})};SA();let TA;const KA=new MutationObserver(()=>{clearTimeout(TA),TA=window.setTimeout(SA,100)});return KA.observe(QA.current,{childList:!0,subtree:!0}),()=>{clearTimeout(TA),KA.disconnect(),queueMicrotask(()=>{JA.current.forEach(_e=>_e.unmount()),JA.current.clear()})}},[QA]),IA.useEffect(()=>{const SA=TA=>{if(TA.ctrlKey||TA.metaKey)switch(TA.key.toLowerCase()){case"b":TA.preventDefault(),hA.commands.exec("bold");break;case"i":TA.preventDefault(),hA.commands.exec("italic");break;case"u":TA.preventDefault(),hA.commands.exec("underline");break;case"k":TA.preventDefault(),hA.selection.save(),nA(!0);break;case"f":TA.preventDefault(),ie(KA=>!KA);break;case"s":TA.preventDefault(),hA.saveNow();break}TA.key==="F11"&&(TA.preventDefault(),W()),TA.key==="Escape"&&(nA(!1),pA(!1),xA(!1),HA(!1),T(!1),ie(!1),R&&W())};return document.addEventListener("keydown",SA),()=>document.removeEventListener("keydown",SA)},[hA,R,W]),IA.useEffect(()=>(L&&_&&hA.enableDragDrop((SA,TA)=>{hA.commands.insertImage(SA,TA)}),()=>hA.disableDragDrop()),[hA,L,_]);const MA=(SA,TA)=>{hA.selection.restore(),hA.commands.insertLink(SA,TA)},ee=(SA,TA)=>{hA.selection.restore(),hA.commands.insertImage(SA,TA)},YA=SA=>{hA.selection.restore(),hA.commands.insertHTML(SA)},Ue=(SA,TA)=>{console.log("[WysiwygEditor] Inserting table:",{rows:SA,cols:TA}),console.log("[WysiwygEditor] Has saved selection:",hA.selection.hasSaved()),QA.current&&QA.current.focus(),hA.selection.restore(),hA.commands.insertTable(SA,TA),console.log("[WysiwygEditor] Table inserted")},ge=()=>{hA.selection.save(),nA(!0)},se=()=>{hA.selection.save(),pA(!0)},pe=()=>{hA.selection.save(),xA(!0)},fe=()=>{console.log("[WysiwygEditor] Opening table modal, saving selection"),hA.selection.save(),HA(!0)};return N.jsxs(N.Fragment,{children:[N.jsxs("div",{ref:_A,className:`wysiwyg-editor-wrapper ${UA?"light":""} ${R?"fullscreen":""} ${P} ${i}`,style:{...s,...j,display:h&&d==="right"?"grid":"block",gridTemplateColumns:h&&d==="right"?"1fr 1fr":void 0},children:[N.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[N.jsx(qB,{core:hA,theme:G,onLinkClick:ge,onImageClick:se,onVideoClick:pe,onTableClick:fe,onFindClick:()=>ie(SA=>!SA),onFullscreenClick:W,onPrintClick:()=>T(!0),isFullscreen:R,allowImages:L,allowVideoEmbeds:S,allowTables:z,enableFindReplace:y,enablePrint:F,enableFullscreen:v,isMobile:fA}),y&&N.jsx(WB,{isOpen:kA,onClose:()=>ie(!1),core:hA,theme:G}),N.jsx("div",{ref:QA,className:`wysiwyg-editor-content ${UA?"light":""} ${R?"fullscreen":""}`,style:{outline:"none",flex:1,overflow:"auto"}}),N.jsx(VB,{meta:U,theme:G,enableAutosave:a,lastSaveTime:null})]}),h&&d!=="none"&&N.jsx("div",{style:{width:m?typeof m=="number"?`${m}px`:m:void 0,height:f?typeof f=="number"?`${f}px`:f:void 0,overflow:"auto",borderLeft:d==="right"?"1px solid var(--border-color, #ddd)":void 0,borderTop:d==="bottom"?"1px solid var(--border-color, #ddd)":void 0},children:N.jsx(lh,{html:hA.getHTML(),theme:G,onExportHtml:()=>hA.export.downloadHTML(),onExportText:()=>hA.export.downloadText(),onCopyHtml:()=>hA.export.copyHTML(),enableSourceTab:w})})]}),h&&d==="none"&&N.jsx(lh,{html:hA.getHTML(),theme:G,onExportHtml:()=>hA.export.downloadHTML(),onExportText:()=>hA.export.downloadText(),onCopyHtml:()=>hA.export.copyHTML(),enableSourceTab:w}),N.jsx(fv,{isOpen:eA,onClose:()=>nA(!1),onInsert:MA,theme:G}),L&&N.jsx(dv,{isOpen:gA,onClose:()=>pA(!1),onInsert:ee,allowUpload:_,onUpload:X}),S&&N.jsx(gv,{isOpen:wA,onClose:()=>xA(!1),onInsert:YA,onUpload:q,allowUpload:V}),z&&N.jsx(pv,{isOpen:DA,onClose:()=>HA(!1),onInsert:Ue}),N.jsx(Sx,{isOpen:WA,onClose:()=>T(!1),html:hA.getHTML(),theme:G})]})}function Wx({value:t,defaultValue:A,onChange:e,onSubmit:r,placeholder:n="Введите сообщение...",theme:i="dark",customTheme:s,className:a="",style:o,maxHeight:c=200,minHeight:h=40,enableEmoji:d=!0,enableBold:m=!0,enableItalic:f=!0,enableUnderline:w=!1,enableStrike:y=!1,enableLink:F=!0,enableCode:v=!0,enableList:L=!1,enableTextColor:_=!1,enableBgColor:S=!1,enableImage:V=!1,enableVideo:z=!1,enableTable:X=!1,onImageUpload:q,submitOnEnter:k=!1,submitOnCtrlEnter:Y=!0,submitButtonText:x="Отправить",showSubmitButton:P=!0}){const j=IA.useRef(null),[D,J]=IA.useState(!1),[lA,fA]=IA.useState(!1),[aA,dA]=IA.useState(!1),[QA,hA]=IA.useState(!1),[U,R]=IA.useState(!1),[G,W]=IA.useState(!1),[eA,nA]=IA.useState(""),[gA,pA]=IA.useState(""),[wA,xA]=IA.useState("3"),[DA,HA]=IA.useState("3"),WA=IA.useRef(null),T=IA.useRef(null),kA=IA.useRef(null),ie=IA.useRef(null),JA=qh(s?"custom":"dark",s),{editorRef:UA,core:_A,theme:MA}=Gh({value:t,defaultValue:A,onChange:e,placeholder:n,theme:i}),ee=MA==="light";IA.useEffect(()=>{j.current&&Object.entries(JA).forEach(([bA,GA])=>{if(GA){const be=`--${bA.replace(/([A-Z])/g,"-$1").toLowerCase()}`;j.current.style.setProperty(be,GA)}})},[JA]),IA.useEffect(()=>{const bA=GA=>{WA.current&&!WA.current.contains(GA.target)&&J(!1),T.current&&!T.current.contains(GA.target)&&fA(!1),kA.current&&!kA.current.contains(GA.target)&&dA(!1)};return document.addEventListener("click",bA),()=>document.removeEventListener("click",bA)},[]);const YA=async bA=>{var be;const GA=(be=bA.target.files)==null?void 0:be[0];if(GA){if(q){const NA=await q(GA);_A.commands.insertImage(NA,GA.name)}else{const NA=new FileReader;NA.onload=()=>{_A.commands.insertImage(NA.result,GA.name)},NA.readAsDataURL(GA)}bA.target.value=""}},Ue=()=>{if(!gA)return;let bA="";const GA=gA.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/)([^&\s]+)/),be=gA.match(/vimeo\.com\/(\d+)/);if(GA)bA=`https://www.youtube.com/embed/${GA[1]}`;else if(be)bA=`https://player.vimeo.com/video/${be[1]}`;else return;const NA=`<iframe width="560" height="315" src="${bA}" frameborder="0" allowfullscreen></iframe>`;_A.commands.insertHTML(NA),pA(""),R(!1)},ge=()=>{eA&&(_A.selection.restore(),_A.commands.insertLink(eA,""),nA(""),hA(!1))},se=()=>{const bA=parseInt(wA)||0,GA=parseInt(DA)||0;bA>0&&GA>0&&(_A.commands.insertTable(bA,GA),xA("3"),HA("3"),W(!1))},pe={position:"fixed",top:0,left:0,right:0,bottom:0,background:"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999999},fe={background:"var(--bg-primary, #1e1e2e)",borderRadius:"12px",padding:"20px",minWidth:"300px",boxShadow:"0 8px 32px rgba(0,0,0,0.4)"},SA={width:"100%",padding:"10px 12px",borderRadius:"6px",border:"1px solid var(--bg-secondary, #2d2d3f)",background:"var(--bg-secondary, #2d2d3f)",color:"var(--text-primary, #fff)",fontSize:"14px",marginBottom:"12px",outline:"none"},TA={padding:"8px 16px",borderRadius:"6px",border:"none",cursor:"pointer",fontSize:"14px",fontWeight:500},KA=bA=>{if(bA.key==="Enter"&&(k&&!bA.shiftKey&&!bA.ctrlKey||Y&&bA.ctrlKey)&&(bA.preventDefault(),_e()),bA.ctrlKey||bA.metaKey)switch(bA.key.toLowerCase()){case"b":m&&(bA.preventDefault(),_A.commands.exec("bold"));break;case"i":f&&(bA.preventDefault(),_A.commands.exec("italic"));break;case"u":w&&(bA.preventDefault(),_A.commands.exec("underline"));break}},_e=()=>{const bA=_A.getHTML();bA&&bA.trim()&&r&&(r(bA),_A.setHTML(""))},me=["😀","😂","😍","🤔","👍","👎","❤️","🔥","✅","❌","🎉","😢"];return N.jsxs("div",{ref:j,className:`chat-editor-wrapper ${ee?"light":""} ${a}`,style:{display:"flex",flexDirection:"column",background:"var(--bg-secondary)",borderRadius:"12px",border:"1px solid var(--bg-secondary)",position:"relative",...o},children:[N.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"2px",padding:"4px 8px",borderBottom:"1px solid var(--bg-primary)",background:"var(--bg-secondary)",flexWrap:"wrap",position:"relative",zIndex:10,borderRadius:"12px 12px 0 0"},children:[m&&N.jsx("button",{className:AA.toolbarBtn,onClick:()=>_A.commands.exec("bold"),title:"Жирный (Ctrl+B)",style:{width:28,height:28,fontSize:12},children:N.jsx("i",{className:"fas fa-bold"})}),f&&N.jsx("button",{className:AA.toolbarBtn,onClick:()=>_A.commands.exec("italic"),title:"Курсив (Ctrl+I)",style:{width:28,height:28,fontSize:12},children:N.jsx("i",{className:"fas fa-italic"})}),w&&N.jsx("button",{className:AA.toolbarBtn,onClick:()=>_A.commands.exec("underline"),title:"Подчёркнутый (Ctrl+U)",style:{width:28,height:28,fontSize:12},children:N.jsx("i",{className:"fas fa-underline"})}),y&&N.jsx("button",{className:AA.toolbarBtn,onClick:()=>_A.commands.exec("strikeThrough"),title:"Зачёркнутый",style:{width:28,height:28,fontSize:12},children:N.jsx("i",{className:"fas fa-strikethrough"})}),F&&N.jsx("button",{className:AA.toolbarBtn,onClick:()=>{_A.selection.save(),hA(!0)},title:"Ссылка",style:{width:28,height:28,fontSize:12},children:N.jsx("i",{className:"fas fa-link"})}),v&&N.jsx("button",{className:AA.toolbarBtn,onClick:()=>_A.commands.insertCodeBlock(),title:"Код",style:{width:28,height:28,fontSize:12},children:N.jsx("i",{className:"fas fa-code"})}),L&&N.jsx(N.Fragment,{children:N.jsx("button",{className:AA.toolbarBtn,onClick:()=>_A.commands.exec("insertUnorderedList"),title:"Список",style:{width:28,height:28,fontSize:12},children:N.jsx("i",{className:"fas fa-list-ul"})})}),d&&N.jsxs("div",{ref:WA,style:{position:"relative"},children:[N.jsx("button",{className:AA.toolbarBtn,onClick:bA=>{bA.stopPropagation(),_A.selection.save(),J(!D),fA(!1),dA(!1)},title:"Эмодзи",style:{width:28,height:28,fontSize:12},children:N.jsx("i",{className:"fas fa-smile"})}),D&&N.jsx("div",{style:{position:"absolute",top:"100%",left:0,marginTop:"4px",background:"var(--bg-primary)",border:"1px solid var(--bg-secondary)",borderRadius:"8px",padding:"8px",display:"grid",gridTemplateColumns:"repeat(6, 1fr)",gap:"4px",zIndex:999999,boxShadow:"0 4px 20px rgba(0,0,0,0.3)"},children:me.map((bA,GA)=>N.jsx("div",{onClick:()=>{_A.selection.restore(),_A.commands.insertEmoji(bA),J(!1)},style:{fontSize:18,padding:"4px",cursor:"pointer",borderRadius:"4px",textAlign:"center"},onMouseEnter:be=>be.currentTarget.style.background="var(--bg-secondary)",onMouseLeave:be=>be.currentTarget.style.background="transparent",children:bA},GA))})]}),_&&N.jsxs("div",{ref:T,style:{position:"relative"},children:[N.jsx("button",{className:AA.toolbarBtn,onClick:bA=>{bA.stopPropagation(),_A.selection.save(),fA(!lA),dA(!1),J(!1)},title:"Цвет текста",style:{width:28,height:28,fontSize:12},children:N.jsx("i",{className:"fas fa-font",style:{borderBottom:"3px solid #ff6b6b"}})}),lA&&N.jsx("div",{style:{position:"absolute",top:"100%",left:0,marginTop:"4px",background:"var(--bg-primary)",border:"1px solid var(--bg-secondary)",borderRadius:"8px",padding:"8px",display:"grid",gridTemplateColumns:"repeat(6, 1fr)",gap:"4px",zIndex:999999,boxShadow:"0 4px 20px rgba(0,0,0,0.3)"},children:Na.map(bA=>N.jsx("div",{onClick:()=>{_A.selection.restore(),_A.commands.setForeColor(bA),fA(!1)},style:{width:24,height:24,background:bA,cursor:"pointer",borderRadius:"4px",border:"1px solid rgba(255,255,255,0.2)"}},bA))})]}),S&&N.jsxs("div",{ref:kA,style:{position:"relative"},children:[N.jsx("button",{className:AA.toolbarBtn,onClick:bA=>{bA.stopPropagation(),_A.selection.save(),dA(!aA),fA(!1),J(!1)},title:"Цвет фона",style:{width:28,height:28,fontSize:12},children:N.jsx("i",{className:"fas fa-highlighter",style:{borderBottom:"3px solid #feca57"}})}),aA&&N.jsx("div",{style:{position:"absolute",top:"100%",left:0,marginTop:"4px",background:"var(--bg-primary)",border:"1px solid var(--bg-secondary)",borderRadius:"8px",padding:"8px",display:"grid",gridTemplateColumns:"repeat(6, 1fr)",gap:"4px",zIndex:999999,boxShadow:"0 4px 20px rgba(0,0,0,0.3)"},children:Na.map(bA=>N.jsx("div",{onClick:()=>{_A.selection.restore(),_A.commands.setBackColor(bA),dA(!1)},style:{width:24,height:24,background:bA,cursor:"pointer",borderRadius:"4px",border:"1px solid rgba(255,255,255,0.2)"}},bA))})]}),V&&N.jsxs(N.Fragment,{children:[N.jsx("input",{ref:ie,type:"file",accept:"image/*",onChange:YA,style:{display:"none"}}),N.jsx("button",{className:AA.toolbarBtn,onClick:()=>{var bA;return(bA=ie.current)==null?void 0:bA.click()},title:"Вставить изображение",style:{width:28,height:28,fontSize:12},children:N.jsx("i",{className:"fas fa-image"})})]}),z&&N.jsx("button",{className:AA.toolbarBtn,onClick:()=>R(!0),title:"Вставить видео",style:{width:28,height:28,fontSize:12},children:N.jsx("i",{className:"fas fa-video"})}),X&&N.jsx("button",{className:AA.toolbarBtn,onClick:()=>W(!0),title:"Вставить таблицу",style:{width:28,height:28,fontSize:12},children:N.jsx("i",{className:"fas fa-table"})})]}),N.jsx("div",{ref:UA,onKeyDown:KA,style:{flex:1,padding:"8px 12px",outline:"none",color:"var(--text-primary)",fontSize:"14px",lineHeight:1.5,overflowY:"auto",minHeight:typeof h=="number"?`${h}px`:h,maxHeight:typeof c=="number"?`${c}px`:c,background:"var(--bg-primary)"}}),P&&N.jsx("div",{style:{display:"flex",justifyContent:"flex-end",padding:"8px",borderTop:"1px solid var(--bg-secondary)",background:"var(--bg-secondary)",borderRadius:"0 0 12px 12px"},children:N.jsxs("button",{onClick:_e,style:{padding:"6px 16px",background:"var(--primary)",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"13px",fontWeight:500},children:[x,Y&&N.jsx("span",{style:{opacity:.7,marginLeft:8,fontSize:11},children:"Ctrl+Enter"})]})}),QA&&N.jsx("div",{style:pe,onClick:()=>hA(!1),children:N.jsxs("div",{style:fe,onClick:bA=>bA.stopPropagation(),children:[N.jsx("h3",{style:{margin:"0 0 16px",color:"var(--text-primary, #fff)",fontSize:"16px"},children:"Вставить ссылку"}),N.jsx("input",{type:"url",placeholder:"https://example.com",value:eA,onChange:bA=>nA(bA.target.value),style:SA,autoFocus:!0,onKeyDown:bA=>bA.key==="Enter"&&ge()}),N.jsxs("div",{style:{display:"flex",gap:"8px",justifyContent:"flex-end"},children:[N.jsx("button",{onClick:()=>hA(!1),style:{...TA,background:"var(--bg-secondary, #2d2d3f)",color:"var(--text-primary, #fff)"},children:"Отмена"}),N.jsx("button",{onClick:ge,style:{...TA,background:"var(--primary, #6366f1)",color:"#fff"},children:"Вставить"})]})]})}),U&&N.jsx("div",{style:pe,onClick:()=>R(!1),children:N.jsxs("div",{style:fe,onClick:bA=>bA.stopPropagation(),children:[N.jsx("h3",{style:{margin:"0 0 16px",color:"var(--text-primary, #fff)",fontSize:"16px"},children:"Вставить видео"}),N.jsx("input",{type:"url",placeholder:"YouTube или Vimeo URL",value:gA,onChange:bA=>pA(bA.target.value),style:SA,autoFocus:!0,onKeyDown:bA=>bA.key==="Enter"&&Ue()}),N.jsx("p",{style:{margin:"0 0 12px",color:"var(--text-secondary, #9ca3af)",fontSize:"12px"},children:"Поддерживаются: YouTube, Vimeo"}),N.jsxs("div",{style:{display:"flex",gap:"8px",justifyContent:"flex-end"},children:[N.jsx("button",{onClick:()=>R(!1),style:{...TA,background:"var(--bg-secondary, #2d2d3f)",color:"var(--text-primary, #fff)"},children:"Отмена"}),N.jsx("button",{onClick:Ue,style:{...TA,background:"var(--primary, #6366f1)",color:"#fff"},children:"Вставить"})]})]})}),G&&N.jsx("div",{style:pe,onClick:()=>W(!1),children:N.jsxs("div",{style:fe,onClick:bA=>bA.stopPropagation(),children:[N.jsx("h3",{style:{margin:"0 0 16px",color:"var(--text-primary, #fff)",fontSize:"16px"},children:"Вставить таблицу"}),N.jsxs("div",{style:{display:"flex",gap:"12px",marginBottom:"12px"},children:[N.jsxs("div",{style:{flex:1},children:[N.jsx("label",{style:{display:"block",marginBottom:"4px",color:"var(--text-secondary, #9ca3af)",fontSize:"12px"},children:"Строки"}),N.jsx("input",{type:"number",min:"1",max:"20",value:wA,onChange:bA=>xA(bA.target.value),style:{...SA,marginBottom:0}})]}),N.jsxs("div",{style:{flex:1},children:[N.jsx("label",{style:{display:"block",marginBottom:"4px",color:"var(--text-secondary, #9ca3af)",fontSize:"12px"},children:"Столбцы"}),N.jsx("input",{type:"number",min:"1",max:"10",value:DA,onChange:bA=>HA(bA.target.value),style:{...SA,marginBottom:0}})]})]}),N.jsxs("div",{style:{display:"flex",gap:"8px",justifyContent:"flex-end"},children:[N.jsx("button",{onClick:()=>W(!1),style:{...TA,background:"var(--bg-secondary, #2d2d3f)",color:"var(--text-primary, #fff)"},children:"Отмена"}),N.jsx("button",{onClick:se,style:{...TA,background:"var(--primary, #6366f1)",color:"#fff"},children:"Вставить"})]})]})})]})}function zx(t){const A=document.createElement("div");return A.innerHTML=t,A.querySelectorAll("script").forEach(n=>n.remove()),A.querySelectorAll("*").forEach(n=>{Array.from(n.attributes).forEach(i=>{i.name.startsWith("on")&&n.removeAttribute(i.name)})}),A.innerHTML}function $x(t){const A=document.createElement("div");return A.innerHTML=t,A.querySelectorAll("p:empty").forEach(r=>r.remove()),A.innerHTML.trim()}function Xx(t){const A=document.createElement("div");return A.innerHTML=t,A.textContent||A.innerText||""}function Jx(t){return t.trim()?t.trim().split(/\s+/).length:0}function Yx(t){const A=document.createElement("div");return A.innerHTML=t,A.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li").length||(t.trim()?1:0)}function Zx(){const t=window.getSelection();return t&&t.rangeCount>0?t.getRangeAt(0):null}function A3(t){if(t){const A=window.getSelection();A&&(A.removeAllRanges(),A.addRange(t))}}exports.Autosave=qu;exports.COLORS=Na;exports.ChatEditor=Wx;exports.Commands=ju;exports.DEFAULT_CONTENT=fB;exports.DragDrop=Vu;exports.EMOJIS=Tp;exports.EditorCore=zu;exports.Export=Wu;exports.PreviewPanel=lh;exports.SelectionManager=Pp;exports.Stats=Gu;exports.WysiwygEditor=Vx;exports._typeof=He;exports.countParagraphs=Yx;exports.countWords=Jx;exports.createVideoEmbed=x0;exports.generateThemeCSS=hB;exports.getThemeConfig=qh;exports.normalizeHtml=$x;exports.parseVideoUrl=U0;exports.restoreSelection=A3;exports.sanitizeHtml=zx;exports.saveSelection=Zx;exports.stripHtml=Xx;exports.themes=Xu;exports.useWysiwygEditor=Gh;
422
+ //# sourceMappingURL=index-PjfLe6dO.js.map