UNPKG

jordium-gantt-vue3

Version:

A modern, flexible, and feature-rich Gantt chart component library for Vue 3

280 lines 1.04 MB
"use strict";var CE=Object.defineProperty;var EE=(A,t,e)=>t in A?CE(A,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):A[t]=e;var kr=(A,t,e)=>EE(A,typeof t!="symbol"?t+"":t,e);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),gc={"zh-CN":{dateNotSet:"未设置",taskName:"任务名称",predecessor:"前置任务",assignee:"分配人",startDate:"开始日期",endDate:"结束日期",estimatedHours:"预计工时(hr)",actualHours:"实际工时(hr)",progress:"进度",type:"类型",description:"描述",csvHeaders:{id:"ID",taskName:"任务名称",predecessor:"前置任务",assignee:"分配人",startDate:"开始日期",endDate:"结束日期",estimatedHours:"预计工时(hr)",actualHours:"实际工时(hr)",progress:"进度(%)",type:"类型",description:"描述"},yearMonthFormat:(A,t)=>`${A}年${String(t).padStart(2,"0")}月`,monthFormat:A=>`${A}月`,monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],weekDays:["日","一","二","三","四","五","六"],milestone:"里程碑",targetDate:"目标日期",today:"今天",milestoneDetails:"里程碑详情",milestoneName:"里程碑名称",milestoneDate:"里程碑日期",milestoneIcon:"里程碑图标",diamond:"菱形",rocket:"火箭",enterMilestoneName:"请输入里程碑名称",enterAssignee:"请输入负责人",enterDescription:"请输入描述信息",milestoneNameRequired:"里程碑名称为必填项",milestoneDateRequired:"里程碑日期为必填项",save:"保存",close:"关闭",confirm:"确认",delete:"删除",confirmDelete:"确定要删除这个里程碑吗?",addTask:"新增需求/任务",addMilestone:"新增里程碑",todayLocate:"今日",todayLocateTooltip:"定位到今天",exportCsv:"导出 CSV",exportPdf:"导出 PDF",expandAll:"全部展开",collapseAll:"全部折叠",language:"中文",languageTooltip:"选择语言",lightMode:"明亮模式",darkMode:"暗黑模式",fullscreen:"全屏",exitFullscreen:"退出全屏",githubDocs:"查看Github文档",giteeDocs:"查看Gitee文档",timeScaleHour:"时",timeScaleDay:"日",timeScaleWeek:"周",timeScaleMonth:"月",timeScaleQuarter:"季",timeScaleYear:"年",timeScaleTooltip:"切换时间刻度",halfYearFirst:"上半年",halfYearSecond:"下半年",confirmDialogMessage:"是否需要保留该设置?",newTask:"新建任务",taskNamePlaceholder:"请输入任务名称",assigneePlaceholder:"请输入负责人",progressPlaceholder:"0-100",hoursPlaceholder:"工时",descriptionPlaceholder:"请输入任务描述...",hours:"小时",create:"创建",taskNameRequired:"任务名称不能为空",startDateRequired:"开始日期不能为空",endDateRequired:"结束日期不能为空",endDateInvalid:"结束日期不能早于开始日期",newMilestone:"新建里程碑",editMilestone:"编辑里程碑",cancel:"取消",startTimer:"开始计时",stopTimer:"停止计时",timerStarted:"任务计时已开始",timerStopped:"任务计时已停止",addPredecessor:"添加前置任务",addSuccessor:"添加后置任务",pdfExportLoading:"正在生成PDF,请稍候...",pdfExportTitle:"甘特图导出",pdfExportDate:"导出日期",milestoneGroup:"里程碑",collapseTaskList:"收起任务列表",expandTaskList:"展开任务列表",taskType:"任务类型",taskTypeRequired:"请选择任务类型",taskTypeMap:{task:"任务",milestone:"里程碑",story:"需求",epic:"史诗",bug:"缺陷"},editTask:"编辑任务",parentTask:"上级任务",time:"时间",selectTime:"选择时间",hour:"时",minute:"分",noParentTask:"无上级任务",update:"更新",taskNameTooLong:"任务名称不能超过50个字符",predecessorPlaceholder:"请选择前置任务",selectPredecessor:"选择前置任务",removePredecessor:"移除前置任务",deleteLinks:"删除链接",noLinks:"无链接",predecessorLink:"前置: {name}",successorLink:"后置: {name}",operationFailed:"操作失败,请重试",taskUpdateSuccess:"任务更新成功",taskCreateSuccess:"任务创建成功",confirmDeleteTask:'确定要删除任务"{name}"吗?此操作不可撤销。',taskDeleteFailed:"删除失败,请重试",confirmDeleteStory:"是否删除该需求{name}及其所有的子任务?该操作不可撤回",storyDeleteYes:"是, 继续",storyDeleteNo:"不,仅删除需求",storyDeleteAllSuccess:"已删除需求【{name}】及其所有子任务",storyDeleteOnlySuccess:"已删除需求【{name}】,{count}个子任务已升级保留",storyNotFound:"未找到要删除的需求,ID:{id}",milestoneDeleteSuccess:"里程碑删除成功",taskDeletedSuccess:"已删除任务",selectAssignee:"请选择负责人",customCsvExportCalled:"自定义CSV导出被调用",languageSwitchedTo:"语言切换到:{language}",themeSwitchedTo:"主题切换到:{theme}",lightModeText:"明亮模式",darkModeText:"暗黑模式",taskNotFound:"未找到要更新的任务,ID:{id}",newParentTaskNotFound:"未找到新父任务,ID:{parentId},将作为顶级任务添加",inPlaceUpdateFailed:"就地更新失败,未找到任务,ID:{id}",taskToDeleteNotFound:"未找到要删除的任务,ID:{id}",milestoneIconUpdateNotFound:"未找到要更新图标的里程碑,ID:{id}",overtime:"超",overdue:"逾期",days:"天",timerConfirmPrefix:"即将为任务",timerConfirmSuffix:"计时,若有特殊说明请完善下面的描述",timerConfirmPlaceholder:"请输入计时说明",configDemo:"配置演示",taskListConfig:{title:"TaskList 配置",columns:{title:"列显示(默认渲染模式下生效)",renderMode:"渲染模式",renderModeDefault:"默认(通过 TaskListColumnConfig 设置)",renderModeDeclarative:"声明式(使用 TaskListColumn 设置可见列)"},width:{title:"宽度设置",defaultWidth:"默认宽度",minWidth:"最小宽度",maxWidth:"最大宽度",pixelsModel:"像素 (px)",percentageModel:"百分比 (%)"}},taskBarConfig:{title:"TaskBar 配置",display:{title:"显示选项",showAvatar:"显示头像 (Avatar)",showTitle:"显示标题 (Title)",showProgress:"显示进度 (Progress)"},mistouch:{title:"防误触配置",dragThreshold:"拖拽阈值 (px)",dragThresholdHint:"移动超过此距离才触发拖拽",resizeHandleWidth:"拉伸手柄宽度 (px)",resizeHandleWidthHint:"调整手柄的可点击宽度 (5-15px)",enableDragDelay:"启用拖拽延迟",enableDragDelayHint:"按住一段时间后才能拖拽",dragDelayTime:"延迟时间 (ms)",dragDelayTimeHint:"延迟启动拖拽的时间",allowDragOnClick:"允许拖拽和拉伸 TaskBar 和 Milestone",allowDragOnClickHint:"控制是否允许拖拽 TaskBar 和 Milestone,以及拉伸 TaskBar 的长度"}},disableTaskbarFocusMode:"关闭聚焦功能",dataSourceAlreadyLoaded:"{name} 已是当前数据源",dataSourceLoadSuccess:"已加载 {name}",dataSourceLoadFailed:"{name} 加载失败",dataSourceSwitch:{title:"数据源切换",subtitle:"对比常规与超大数据集的初始化体验",loading:"数据加载中,请稍候...",alreadyLoaded:"{name} 已是当前数据源",loadSuccess:"已加载 {name}",loadFailed:"{name} 加载失败",sources:{normal:{label:"常规数据源",description:"data.json · 含完整前/后置依赖,适合功能演示",badge:"data.json"},large:{label:"超大数据源",description:"data-large-1m.json · 百万级任务,验证虚拟渲染性能",badge:"data-large-1m.json"}}}},"en-US":{dateNotSet:"Not set",taskName:"Task Name",predecessor:"Predecessor",assignee:"Assignee",startDate:"Start Date",endDate:"End Date",estimatedHours:"Est. Hours",actualHours:"Act. Hours",progress:"Progress",type:"Type",csvHeaders:{id:"ID",taskName:"Task Name",predecessor:"Predecessor",assignee:"Assignee",startDate:"Start Date",endDate:"End Date",estimatedHours:"Est. Hours",actualHours:"Act. Hours",progress:"Progress (%)",type:"Type",description:"Description"},yearMonthFormat:(A,t)=>`${A}/${String(t).padStart(2,"0")}`,monthFormat:A=>`${String(A).padStart(2,"0")}`,monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],milestone:"Milestone",today:"Today",targetDate:"Target Date",milestoneDetails:"Milestone Details",milestoneName:"Milestone Name",milestoneDate:"Milestone Date",milestoneIcon:"Milestone Icon",diamond:"Diamond",rocket:"Rocket",enterMilestoneName:"Enter milestone name",enterAssignee:"Enter assignee",enterDescription:"Enter description",milestoneNameRequired:"Milestone name is required",milestoneDateRequired:"Milestone date is required",save:"Save",close:"Close",confirm:"Confirm",description:"Description",delete:"Delete",confirmDelete:"Are you sure you want to delete this milestone?",addTask:"Add Requirement/Task",addMilestone:"Add Milestone",todayLocate:"Today",todayLocateTooltip:"Locate to today",exportCsv:"Export CSV",exportPdf:"Export PDF",expandAll:"Expand All",collapseAll:"Collapse All",language:"English",languageTooltip:"Select language",lightMode:"Light Mode",darkMode:"Dark Mode",fullscreen:"Fullscreen",exitFullscreen:"Exit Fullscreen",githubDocs:"GitHub Docs",giteeDocs:"Gitee Docs",timeScaleHour:"Hour",timeScaleDay:"Day",timeScaleWeek:"Week",timeScaleMonth:"Month",timeScaleQuarter:"Quarter",timeScaleYear:"Year",timeScaleTooltip:"Switch Time Scale",halfYearFirst:"First Half",halfYearSecond:"Second Half",confirmDialogMessage:"Do you want to save this setting?",taskNamePlaceholder:"Enter task name",assigneePlaceholder:"Enter assignee",progressPlaceholder:"0-100",hoursPlaceholder:"Hours",descriptionPlaceholder:"Enter task description...",hours:"Hours",create:"Create",taskNameRequired:"Task name is required",startDateRequired:"Start date is required",endDateRequired:"End date is required",endDateInvalid:"End date cannot be earlier than start date",newMilestone:"New Milestone",editMilestone:"Edit Milestone",cancel:"Cancel",timerStarted:"Timer Started",timerStopped:"Timer Stopped",startTimer:"Start Timer",stopTimer:"Stop Timer",addPredecessor:"Add Predecessor",addSuccessor:"Add Successor",pdfExportLoading:"Generating PDF, please wait...",pdfExportTitle:"Gantt Chart Export",pdfExportDate:"Export Date",milestoneGroup:"Milestone",collapseTaskList:"Collapse Task List",expandTaskList:"Expand Task List",taskType:"Task Type",taskTypeRequired:"Please select task type",taskTypeMap:{task:"Task",milestone:"Milestone",story:"Story",epic:"Epic",bug:"Bug"},editTask:"Edit Task",newTask:"New Task",parentTask:"Parent Task",time:"Time",selectTime:"Select Time",hour:"Hour",minute:"Minute",noParentTask:"No Parent Task",update:"Update",taskNameTooLong:"Task name cannot exceed 50 characters",predecessorPlaceholder:"Select predecessor",selectPredecessor:"Select Predecessor",removePredecessor:"Remove Predecessor",deleteLinks:"Delete Links",noLinks:"No Links",predecessorLink:"Predecessor: {name}",successorLink:"Successor: {name}",operationFailed:"Operation failed, please try again",taskUpdateSuccess:"Task updated successfully",taskCreateSuccess:"Task created successfully",confirmDeleteTask:'Are you sure you want to delete task "{name}"? This action cannot be undone.',taskDeleteFailed:"Delete failed, please try again",confirmDeleteStory:"Do you want to delete the requirement {name} and all its subtasks? This action cannot be undone",storyDeleteYes:"Yes, Continue",storyDeleteNo:"No, Delete Requirement Only",storyDeleteAllSuccess:"Deleted requirement [{name}] and all its subtasks",storyDeleteOnlySuccess:"Deleted requirement [{name}], {count} subtasks have been promoted",storyNotFound:"Requirement not found, ID: {id}",milestoneDeleteSuccess:"Milestone deleted successfully",taskDeletedSuccess:"Task deleted",selectAssignee:"Select assignee",customCsvExportCalled:"Custom CSV export called",languageSwitchedTo:"Language switched to: {language}",themeSwitchedTo:"Theme switched to: {theme}",lightModeText:"Light Mode",darkModeText:"Dark Mode",taskNotFound:"Task not found for update, ID: {id}",newParentTaskNotFound:"New parent task not found, ID: {parentId}, will be added as top-level task",inPlaceUpdateFailed:"In-place update failed, task not found, ID: {id}",taskToDeleteNotFound:"Task to delete not found, ID: {id}",milestoneIconUpdateNotFound:"Milestone not found for icon update, ID: {id}",overtime:"Over",overdue:"Overdue",days:" days",timerConfirmPrefix:"About to start timing for",timerConfirmSuffix:". If there are special notes, please complete the description below.",timerConfirmPlaceholder:"Please enter timer description",configDemo:"Configuration Demo",taskListConfig:{title:"TaskList Configuration",columns:{title:"Columns(默effective in default render mode)",renderMode:"Render Mode",renderModeDefault:"Default (via TaskListColumnConfig)",renderModeDeclarative:"Declarative (via TaskListColumn)"},width:{title:"Width Settings",defaultWidth:"Default Width",minWidth:"Min Width",maxWidth:"Max Width",pixelsModel:"pixels (px)",percentageModel:"percentage (%)"}},taskBarConfig:{title:"TaskBar Configuration",display:{title:"Display Options",showAvatar:"Show Avatar",showTitle:"Show Title",showProgress:"Show Progress"},mistouch:{title:"Mistouch Prevention",dragThreshold:"Drag Threshold (px)",dragThresholdHint:"Distance to trigger dragging",resizeHandleWidth:"Resize Handle Width (px)",resizeHandleWidthHint:"Clickable width of resize handle (5-15px)",enableDragDelay:"Enable Drag Delay",enableDragDelayHint:"Hold to drag after a delay",dragDelayTime:"Delay Time (ms)",dragDelayTimeHint:"Delay time before dragging starts",allowDragOnClick:"Allow dragging and resizing of TaskBars and Milestones",allowDragOnClickHint:"Controls whether to allow dragging of TaskBars and Milestones, as well as resizing the length of TaskBars"}},disableTaskbarFocusMode:"Disable Focus Mode",dataSourceAlreadyLoaded:"{name} is already active",dataSourceLoadSuccess:"{name} loaded successfully",dataSourceLoadFailed:"{name} failed to load",dataSourceSwitch:{title:"Data Sources",subtitle:"Compare default vs. mega dataset initialization",loading:"Loading data, please wait…",alreadyLoaded:"{name} is already active",loadSuccess:"{name} loaded successfully",loadFailed:"{name} failed to load",sources:{normal:{label:"Standard Dataset",description:"data.json · Full predecessor graph for feature demos",badge:"data.json"},large:{label:"Massive Dataset",description:"data-large-1m.json · Million-level tasks to stress virtual rendering",badge:"data-large-1m.json"}}}}};function Vv(A,t){gc[A]&&(gc[A]={...gc[A],...t},pc.value===A&&window.dispatchEvent(new CustomEvent("locale-changed",{detail:{locale:A}})))}const FE="gantt-locale",kE=()=>{if(typeof window<"u"){const A=localStorage.getItem(FE);if(A&&(A==="zh-CN"||A==="en-US"))return A}return"zh-CN"},pc=i.ref(kE());function ea(){const A=i.computed(()=>gc[pc.value]),t=(s,l)=>{const c=s.split(".");let u=A.value;for(const h of c)if(u&&typeof u=="object"&&h in u)u=u[h];else return l||s;return typeof u=="string"?u:l||s},e=(s,l)=>{let c=t(s);return Object.keys(l).forEach(u=>{c=c.replace(new RegExp(`{${u}}`,"g"),String(l[u]))}),c},r=s=>{pc.value=s,window.dispatchEvent(new CustomEvent("locale-changed",{detail:{locale:s}}))},n=i.computed(()=>pc.value);return{t:A,getTranslation:t,formatTranslation:e,locale:n,setLocale:r,formatYearMonth:(s,l)=>A.value.yearMonthFormat(s,l),formatMonth:s=>A.value.monthFormat(s)}}function xE(A){if(!A)return null;const[t,e,r]=A.split("-").map(Number);return new Date(t,e-1,r)}function ca(A){return A?Array.isArray(A)&&typeof A[0]=="number"?A:Array.isArray(A)?A.filter(t=>t&&t.toString().trim()).map(t=>Number(t.toString().trim())).filter(t=>!isNaN(t)):A.split(",").map(t=>t.trim()).filter(t=>t).map(t=>Number(t)).filter(t=>!isNaN(t)):[]}function pg(A){const t=ca(A);return t.length>0?t.join(", "):"-"}const SE={class:"confirm-timer-dialog-overlay"},TE={class:"confirm-timer-dialog"},UE={class:"dialog-message"},DE={class:"task-name-highlight"},QE=["placeholder"],LE={class:"dialog-actions"},IE=i.defineComponent({__name:"ConfirmTimerDialog",props:{visible:Boolean,title:{type:String,default:"确认开始计时"},message:{type:String,default:""},defaultDesc:{type:String,default:""},placeholder:{type:String,default:"请输入计时说明"}},emits:["confirm","cancel"],setup(A,{emit:t}){const e=A,r=t,{getTranslation:n}=ea(),a=i.ref(e.defaultDesc);i.watch(()=>e.visible,l=>{l&&(a.value=e.defaultDesc)});const o=()=>r("confirm",a.value),s=i.computed(()=>{if(e.message){const l=e.message.match(/任务([\S\s]+?)计时|Task ([\S\s]+?) timing/);if(l&&(l[1]||l[2]))return l[1]||l[2]}return e.defaultDesc});return(l,c)=>(i.openBlock(),i.createElementBlock("div",SE,[i.createElementVNode("div",TE,[i.createElementVNode("div",UE,[i.createElementVNode("span",null,i.toDisplayString(i.unref(n)("timerConfirmPrefix")),1),i.createElementVNode("span",DE,i.toDisplayString(s.value),1),i.createElementVNode("span",null,i.toDisplayString(i.unref(n)("timerConfirmSuffix")),1)]),i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":c[0]||(c[0]=u=>a.value=u),class:"dialog-textarea",placeholder:i.unref(n)("timerConfirmPlaceholder"),rows:"3"},null,8,QE),[[i.vModelText,a.value]]),i.createElementVNode("div",LE,[i.createElementVNode("button",{class:"gantt-btn gantt-btn-default",onClick:c[1]||(c[1]=u=>l.$emit("cancel"))},i.toDisplayString(i.unref(n)("cancel")),1),i.createElementVNode("button",{class:"gantt-btn gantt-btn-confirm",onClick:o},i.toDisplayString(i.unref(n)("startTimer")),1)])])]))}}),sn=(A,t)=>{const e=A.__vccOpts||A;for(const[r,n]of t)e[r]=n;return e},ry=sn(IE,[["__scopeId","data-v-c362ca3d"]]),NE={class:"gantt-confirm-header"},_E={class:"gantt-confirm-title"},ME={class:"gantt-confirm-content"},OE={class:"gantt-confirm-footer"},RE={class:"gantt-confirm-footer-right"},HE=i.defineComponent({__name:"GanttConfirmDialog",props:{visible:Boolean,title:{type:String,default:"确认"},message:{type:String,default:""},confirmText:{type:String,default:"确认"},cancelText:{type:String,default:"取消"},yesText:{type:String,default:"是"},noText:{type:String,default:"否"},type:{type:String,default:"confirm-cancel"}},emits:["confirm","cancel","yes","no"],setup(A,{emit:t}){const e=A,r=t,n=()=>r("confirm"),a=()=>r("cancel"),o=()=>r("yes"),s=()=>r("no");return(l,c)=>A.visible?(i.openBlock(),i.createElementBlock("div",{key:0,class:"gantt-confirm-overlay",onClick:a},[i.createElementVNode("div",{class:"gantt-confirm-dialog",onClick:c[0]||(c[0]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",NE,[i.createElementVNode("h4",_E,i.toDisplayString(e.title),1)]),i.createElementVNode("div",ME,[i.createElementVNode("p",null,i.toDisplayString(e.message),1)]),i.createElementVNode("div",OE,[e.type==="yes-no-cancel"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("button",{type:"button",class:"gantt-btn gantt-btn-default",onClick:a},i.toDisplayString(e.cancelText),1),i.createElementVNode("div",RE,[i.createElementVNode("button",{type:"button",class:"gantt-btn gantt-btn-warning",onClick:s},i.toDisplayString(e.noText),1),i.createElementVNode("button",{type:"button",class:"gantt-btn gantt-btn-danger",onClick:o},i.toDisplayString(e.yesText),1)])],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("button",{type:"button",class:"gantt-btn gantt-btn-default",onClick:a},i.toDisplayString(e.cancelText),1),c[1]||(c[1]=i.createTextVNode("    ")),i.createElementVNode("button",{type:"button",class:"gantt-btn gantt-btn-danger",onClick:n},i.toDisplayString(e.confirmText),1)],64))])])])):i.createCommentVNode("",!0)}}),gp=sn(HE,[["__scopeId","data-v-4a27f0b2"]]),PE={class:"icon-wrapper"},VE=["onClick"],KE=["innerHTML"],qE=i.defineComponent({__name:"TaskContextMenu",props:{visible:{type:Boolean},position:{},task:{},allTasks:{}},emits:["start-timer","stop-timer","add-predecessor","add-successor","delete","delete-link","close"],setup(A,{emit:t}){const e=A,r=t,{t:n}=ea(),a=i.ref(null),o=i.ref({x:0,y:0}),s=i.ref({display:"none",left:"50%",top:"-8px",transform:"rotate(0deg)"}),l=i.ref(!1),c=i.ref(""),u=i.ref(!1),h=i.computed(()=>{var X;return((X=e.task)==null?void 0:X.type)==="story"?"yes-no-cancel":"confirm-cancel"}),p=i.computed(()=>{var X,re,se;return((X=e.task)==null?void 0:X.type)==="story"?n.value.confirmDeleteStory.replace("{name}",((re=e.task)==null?void 0:re.name)||""):n.value.confirmDeleteTask.replace("{name}",((se=e.task)==null?void 0:se.name)||"")});function f(){var X;c.value=((X=e.task)==null?void 0:X.name)||"",l.value=!0}function v(){l.value=!1}function w(X){if(l.value=!1,e.task&&typeof e.task=="object"){r("close");const re=Date.now();Object.assign(e.task,{timerStartDesc:X||"",isTimerRunning:!0,timerStartTime:re,timerElapsedTime:0}),r("start-timer",e.task)}}function b(){u.value=!0}const B=()=>{u.value=!1,e.task&&(r("delete",e.task),r("close"))},F=()=>{u.value=!1},E=()=>{u.value=!1,e.task&&(r("delete",e.task,!0),R())},k=()=>{u.value=!1,e.task&&(r("delete",e.task,!1),R())},P=i.computed(()=>{var X;return((X=e.task)==null?void 0:X.type)!=="story"}),j=i.ref(!1);let M=null;const O=i.computed(()=>{const X=[];if(!e.task||!e.allTasks)return X;if(e.task.predecessor){const re=ca(e.task.predecessor);for(const se of re){const x=e.allTasks.find(I=>I.id===se);x&&X.push({type:"predecessor",taskId:se,taskName:x.name||`任务 ${se}`})}}for(const re of e.allTasks)re.predecessor&&re.id!==e.task.id&&ca(re.predecessor).includes(e.task.id)&&X.push({type:"successor",taskId:re.id,taskName:re.name||`任务 ${re.id}`});return X}),L=i.computed(()=>O.value.length>0);i.watch([()=>e.visible,()=>e.position],([X,re])=>{X&&re&&i.nextTick(()=>{if(a.value){const se=window.innerWidth,x=window.innerHeight,I=a.value.offsetWidth,W=a.value.offsetHeight;let z=re.x-I/2,Ae=re.y+10,he="50%",fe="-8px",ce="rotate(0deg)";if(z+I>se){const Fe=z+I-se+5;z-=Fe,he=`calc(50% + ${Fe}px)`}if(z<5){const Fe=5-z;z=5,he=`calc(50% - ${Fe}px)`}Ae+W>x&&(Ae=re.y-W-10,fe="100%",ce="rotate(180deg)"),o.value={x:z,y:Ae},s.value={display:"block",left:he,top:fe,transform:ce}}})},{immediate:!0,deep:!0});const R=()=>{r("close")},S=()=>{var X;(X=e.task)!=null&&X.isTimerRunning?(r("close"),Object.assign(e.task,{isTimerRunning:!1,timerEndTime:Date.now(),timerElapsedTime:(e.task.timerElapsedTime||0)+(Date.now()-(e.task.timerStartTime||Date.now()))}),r("stop-timer",e.task)):f()},T=()=>{e.task&&(r("close"),i.nextTick(()=>{r("add-predecessor",e.task)}))},G=()=>{e.task&&(r("close"),i.nextTick(()=>{r("add-successor",e.task)}))},N=X=>{M&&(clearTimeout(M),M=null),j.value=!1,r("delete-link",{sourceTaskId:X.type==="predecessor"?X.taskId:e.task.id,targetTaskId:X.type==="predecessor"?e.task.id:X.taskId}),r("close")},oe=()=>{M&&(clearTimeout(M),M=null),j.value=!0},le=()=>{M=window.setTimeout(()=>{j.value=!1},200)},Z=X=>{a.value&&!a.value.contains(X.target)&&R()},ee=X=>{X.key==="Escape"&&R()};return i.onMounted(()=>{document.addEventListener("mousedown",Z),document.addEventListener("keydown",ee)}),i.onUnmounted(()=>{document.removeEventListener("mousedown",Z),document.removeEventListener("keydown",ee),M&&clearTimeout(M)}),(X,re)=>{var se,x,I,W;return i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[X.visible?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"menuRef",ref:a,class:"task-context-menu",style:i.normalizeStyle({left:`${o.value.x}px`,top:`${o.value.y}px`,zIndex:1e4,position:"fixed"})},[i.createElementVNode("div",{class:"menu-arrow",style:i.normalizeStyle({display:s.value.display,left:s.value.left,top:s.value.top,transform:s.value.transform})},null,4),P.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"menu-item",onClick:S},[i.createElementVNode("div",PE,[i.createElementVNode("i",{class:i.normalizeClass(["menu-icon",(se=e.task)!=null&&se.isTimerRunning?"stop-icon":"timer-icon"])},null,2)]),i.createTextVNode(" "+i.toDisplayString((x=e.task)!=null&&x.isTimerRunning?i.unref(n).stopTimer:i.unref(n).startTimer),1)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"menu-item",onClick:T},[re[0]||(re[0]=i.createElementVNode("div",{class:"icon-wrapper"},[i.createElementVNode("i",{class:"menu-icon predecessor-icon"})],-1)),i.createTextVNode(" "+i.toDisplayString(i.unref(n).addPredecessor),1)]),i.createElementVNode("div",{class:"menu-item",onClick:G},[re[1]||(re[1]=i.createElementVNode("div",{class:"icon-wrapper"},[i.createElementVNode("i",{class:"menu-icon successor-icon"})],-1)),i.createTextVNode(" "+i.toDisplayString(i.unref(n).addSuccessor),1)]),L.value?(i.openBlock(),i.createElementBlock("div",{key:1,class:"menu-item menu-item-with-submenu",onMouseenter:oe,onMouseleave:le},[re[2]||(re[2]=i.createElementVNode("div",{class:"icon-wrapper"},[i.createElementVNode("i",{class:"menu-icon link-delete-icon"})],-1)),i.createTextVNode(" "+i.toDisplayString(i.unref(n).deleteLinks)+" ",1),re[3]||(re[3]=i.createElementVNode("i",{class:"submenu-arrow"},"›",-1)),j.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"submenu",onMouseenter:oe,onMouseleave:le},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(O.value,z=>(i.openBlock(),i.createElementBlock("div",{key:`${z.type}-${z.taskId}`,class:"menu-item submenu-item",onClick:i.withModifiers(Ae=>N(z),["stop"])},[i.createElementVNode("span",{innerHTML:z.type==="predecessor"?i.unref(n).predecessorLink.replace("{name}",z.taskName):i.unref(n).successorLink.replace("{name}",z.taskName)},null,8,KE)],8,VE))),128))],32)):i.createCommentVNode("",!0)],32)):i.createCommentVNode("",!0),re[5]||(re[5]=i.createElementVNode("div",{class:"menu-divider"},null,-1)),i.createElementVNode("div",{class:"menu-item menu-item-danger",onClick:b},[re[4]||(re[4]=i.createElementVNode("div",{class:"icon-wrapper"},[i.createElementVNode("i",{class:"menu-icon delete-icon"})],-1)),i.createTextVNode(" "+i.toDisplayString(i.unref(n).delete),1)]),i.createVNode(gp,{visible:u.value,title:i.unref(n).delete,type:h.value,message:p.value,"confirm-text":i.unref(n).confirm,"cancel-text":i.unref(n).cancel,"yes-text":i.unref(n).storyDeleteYes,"no-text":i.unref(n).storyDeleteNo,onConfirm:B,onYes:E,onNo:k,onCancel:F},null,8,["visible","title","type","message","confirm-text","cancel-text","yes-text","no-text"]),l.value?(i.openBlock(),i.createBlock(ry,{key:2,visible:l.value,title:"确认开始计时",message:`即将为任务${(I=e.task)==null?void 0:I.name}计时,若有特殊说明请完善下面的描述`,"default-desc":((W=e.task)==null?void 0:W.name)||"",onConfirm:w,onCancel:v},null,8,["visible","message","default-desc"])):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0)])}}}),Ay=sn(qE,[["__scopeId","data-v-604bf4d7"]]),jE=["data-task-id"],WE={width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},GE={key:0,points:"9,18 15,12 9,6"},YE={key:1,points:"18,15 12,9 6,15"},zE={key:1,class:"milestone-spacer"},$E={key:2,class:"leaf-spacer"},XE={width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},JE={key:0,points:"9,18 15,12 9,6"},ZE={key:1,points:"18,15 12,9 6,15"},e4={key:1,class:"milestone-spacer"},t4={key:2,class:"leaf-spacer"},r4={key:0,class:"task-icon"},A4={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",class:"milestone-group-icon"},n4={key:1,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},a4={key:2,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},i4=["title"],s4={key:0,class:"timer-dot"},o4={key:1,class:"status-badge overtime"},l4={key:2,class:"status-badge overdue"},c4={key:0,class:"task-icon"},u4={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",class:"milestone-group-icon"},f4={key:1,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},d4={key:2,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},h4=["title"],g4={key:0,class:"timer-dot"},p4={key:1,class:"status-badge overtime"},v4={key:2,class:"status-badge overdue"},m4={key:0,class:"milestone-empty-col"},w4={key:3,class:"assignee-info"},B4={class:"avatar"},y4={class:"assignee-name"},b4=10,C4=i.defineComponent({__name:"TaskRow",props:{task:{},level:{},rowIndex:{},isHovered:{type:Boolean},hoveredTaskId:{},onHover:{},columns:{},declarativeColumns:{},renderMode:{default:"default"},getColumnWidthStyle:{},disableChildrenRender:{type:Boolean},showTaskIcon:{type:Boolean},enableDrag:{type:Boolean},dragStart:{},dragOver:{},taskListRowClassName:{},taskListRowStyle:{type:[Boolean,null,String,Object,Array,Function]}},emits:["toggle","dblclick","contextmenu","start-timer","stop-timer","add-predecessor","add-successor","delete"],setup(A,{emit:t}){const e=A,r=t,{t:n}=ea(),a=i.computed(()=>{var Q;return((Q=n.value)==null?void 0:Q.overtime)??""}),o=i.computed(()=>{var Q;return((Q=n.value)==null?void 0:Q.overdue)??""}),s=i.computed(()=>{var Q;return((Q=n.value)==null?void 0:Q.days)??""}),l=i.useSlots(),c=i.computed(()=>!!l["custom-task-content"]),u=i.inject("gantt-column-slots",{}),h=Q=>{const De=`column-${Q}`;return!!u[De]},p=(Q,De)=>{const pe=`column-${Q}`,ge=u[pe];return ge?ge(De):null},f=i.computed(()=>e.renderMode==="declarative"&&e.declarativeColumns?e.declarativeColumns:e.columns),v=Q=>Q===0,w=Q=>({justifyContent:Q.align==="center"?"center":Q.align==="right"?"flex-end":"flex-start",textAlign:Q.align||"left"}),b=(Q,De)=>{if(v(De)){const pe=Q.prop?e.task[Q.prop]:e.task.name;return Q.defaultSlot?i.h("div",{class:"task-name-content"},[i.h("span",{class:["task-name-text",{"parent-task":j.value}],title:pe},[Q.defaultSlot({row:e.task,$index:De})])]):i.h("div",{class:"task-name-content"},[e.showTaskIcon!==!1?i.h("span",{class:"task-icon"},k.value?i.h("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,class:"milestone-group-icon"},i.h("polygon",{points:"12,2 22,12 12,22 2,12"})):E.value||F.value?i.h("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2},i.h("path",{d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-5l-2-2H5a2 2 0 00-2 2z"})):i.h("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2},[i.h("path",{d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"}),i.h("polyline",{points:"14,2 14,8 20,8"}),i.h("line",{x1:16,y1:13,x2:8,y2:13}),i.h("line",{x1:16,y1:17,x2:8,y2:17}),i.h("polyline",{points:"10,9 9,9 8,9"})])):null,i.h("span",{class:["task-name-text",{"parent-task":j.value}],title:pe},pe||"-")])}if(Q.defaultSlot)return Q.defaultSlot({row:e.task,$index:De});if(Q.prop){const pe=e.task[Q.prop];return pe??"-"}return"-"},B=i.computed(()=>`${b4+e.level*20}px`),F=i.computed(()=>!!(e.task.children&&e.task.children.length>0)),E=i.computed(()=>e.task.type==="story"),k=i.computed(()=>e.task.type==="milestone-group"),P=i.computed(()=>e.task.type==="milestone"),j=i.computed(()=>E.value||F.value||k.value),M=i.computed(()=>e.taskListRowClassName?typeof e.taskListRowClassName=="function"?e.taskListRowClassName(e.task,e.rowIndex??0):e.taskListRowClassName:""),O=i.computed(()=>e.taskListRowStyle?typeof e.taskListRowStyle=="function"?e.taskListRowStyle(e.task,e.rowIndex??0):e.taskListRowStyle:{});function L(){r("toggle",e.task)}function R(){(E.value||F.value)&&!k.value&&r("toggle",e.task)}const S=Q=>{Q.stopPropagation(),r("dblclick",e.task)},T=()=>{Z.value||e.onHover&&e.onHover(e.task.id)},G=()=>{Z.value||e.onHover&&e.onHover(null)};function N(){const Q=e.task.progress||0,De=new Date,pe=e.task.endDate?new Date(e.task.endDate):null;return pe&&De>pe&&Q<100?"progress-danger":Q>=100?"progress-success":Q>0?"progress-warning":""}function oe(){return e.task.actualHours&&e.task.estimatedHours&&e.task.actualHours>e.task.estimatedHours}function le(){const Q=new Date,De=e.task.endDate?new Date(e.task.endDate):null,pe=e.task.progress||0;if(De&&Q>De&&pe<100){const ge=new Date(Q.getFullYear(),Q.getMonth(),Q.getDate()),Ee=new Date(De.getFullYear(),De.getMonth(),De.getDate());return Math.floor((ge.getTime()-Ee.getTime())/(1e3*60*60*24))}return 0}const Z=i.ref(!1),ee=()=>{Z.value=!0},X=()=>{Z.value=!1},re=i.ref(0),se=i.ref(null),x=i.computed(()=>{const Q=Math.floor(re.value/1e3),De=Math.floor(Q/3600),pe=Math.floor(Q%3600/60),ge=Q%60;return`${String(De).padStart(2,"0")}:${String(pe).padStart(2,"0")}:${String(ge).padStart(2,"0")}`}),I=()=>{if(e.task.isTimerRunning&&e.task.timerStartTime){const Q=e.task.timerElapsedTime||0;re.value=Date.now()-e.task.timerStartTime+Q}else e.task.timerElapsedTime?re.value=e.task.timerElapsedTime:re.value=0};i.watch(()=>[e.task.isTimerRunning,e.task.timerStartTime,e.task.timerElapsedTime],()=>{se.value&&(clearInterval(se.value),se.value=null),e.task.isTimerRunning?(I(),se.value=window.setInterval(I,1e3)):I()},{immediate:!0});const W=i.ref(!1),z=i.ref({x:0,y:0}),Ae=i.computed(()=>e.task);function he(Q){if(window.dispatchEvent(new CustomEvent("close-all-taskbar-menus")),e.task.type!=="task"&&e.task.type!=="story"){Q.preventDefault(),W.value=!1;return}Q.preventDefault(),W.value=!0,z.value={x:Q.clientX,y:Q.clientY}}function fe(){W.value=!1}const ce=(Q,De)=>{r("delete",Q,De),fe()},Fe=i.computed(()=>N()),Pe=i.computed(()=>({isRowContent:!0,task:e.task,level:e.level,indent:B.value,isHovered:e.isHovered??!1,hoveredTaskId:e.hoveredTaskId??null,isParent:j.value,hasChildren:F.value,collapsed:!!e.task.collapsed,formattedTimer:x.value,timerRunning:!!e.task.isTimerRunning,timerElapsed:re.value,isOvertime:oe(),overdueDays:le(),overtimeText:a.value,overdueText:o.value,daysText:s.value,progressClass:Fe.value})),Ze=i.ref(null),tt=Q=>{if(!e.enableDrag)return;const De=Q.target;De.tagName==="BUTTON"||De.tagName==="INPUT"||De.tagName==="SELECT"||De.tagName==="TEXTAREA"||De.closest(".collapse-btn")||De.closest(".task-context-menu")||Ze.value&&e.dragStart&&e.dragStart(e.task,Ze.value,Q)},lt=Q=>{if(!e.enableDrag||!Ze.value||!e.dragOver)return;const{taskId:De,event:pe}=Q.detail;De===e.task.id&&e.dragOver(e.task,Ze.value,pe)};return i.onMounted(()=>{window.addEventListener("splitter-drag-start",ee),window.addEventListener("splitter-drag-end",X),window.addEventListener("close-all-taskbar-menus",fe),window.addEventListener("task-row-drag-over",lt)}),i.onUnmounted(()=>{window.removeEventListener("splitter-drag-start",ee),window.removeEventListener("splitter-drag-end",X),window.removeEventListener("close-all-taskbar-menus",fe),window.removeEventListener("task-row-drag-over",lt),se.value&&clearInterval(se.value)}),(Q,De)=>{const pe=i.resolveComponent("TaskRow",!0);return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",{ref_key:"taskRowRef",ref:Ze,class:i.normalizeClass(["task-row",{"task-row-hovered":Q.isHovered,"parent-task":j.value,"milestone-group-row":k.value,"task-type-story":E.value,"task-type-task":e.task.type==="task","task-type-milestone":P.value,[M.value]:M.value}]),"data-task-id":e.task.id,style:i.normalizeStyle(O.value),onClick:R,onDblclick:S,onMousedown:tt,onMouseenter:T,onMouseleave:G,onContextmenu:he},[Q.renderMode==="declarative"&&Q.declarativeColumns?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(f.value,(ge,Ee)=>(i.openBlock(),i.createElementBlock("div",{key:Ee,class:i.normalizeClass(["col",[ge.cssClass,{"col-name":v(Ee)}]]),style:i.normalizeStyle([Q.getColumnWidthStyle?Q.getColumnWidthStyle(ge):{},w(ge)])},[v(Ee)?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle({paddingLeft:B.value}),class:"first-col-wrapper"},[(E.value||F.value)&&!k.value?(i.openBlock(),i.createElementBlock("span",{key:0,class:"collapse-btn",onClick:i.withModifiers(L,["stop"])},[(i.openBlock(),i.createElementBlock("svg",WE,[e.task.collapsed?(i.openBlock(),i.createElementBlock("polyline",GE)):(i.openBlock(),i.createElementBlock("polyline",YE))]))])):i.createCommentVNode("",!0),k.value?(i.openBlock(),i.createElementBlock("span",zE)):i.createCommentVNode("",!0),!j.value&&!k.value&&Q.showTaskIcon===!1?(i.openBlock(),i.createElementBlock("span",$E)):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(()=>b(ge,Ee))))],4)):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(()=>b(ge,Ee)),{key:1}))],6))),128)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",{class:"col col-name",style:i.normalizeStyle({paddingLeft:B.value})},[(E.value||F.value)&&!k.value?(i.openBlock(),i.createElementBlock("span",{key:0,class:"collapse-btn",onClick:i.withModifiers(L,["stop"])},[(i.openBlock(),i.createElementBlock("svg",XE,[e.task.collapsed?(i.openBlock(),i.createElementBlock("polyline",JE)):(i.openBlock(),i.createElementBlock("polyline",ZE))]))])):i.createCommentVNode("",!0),k.value?(i.openBlock(),i.createElementBlock("span",e4)):i.createCommentVNode("",!0),!j.value&&!k.value&&Q.showTaskIcon===!1?(i.openBlock(),i.createElementBlock("span",t4)):i.createCommentVNode("",!0),h("name")?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(()=>p("name",{task:e.task,column:{key:"name"},value:e.task.name,isParentTask:j.value,hasChildren:F.value,isStoryTask:E.value,isMilestoneGroup:k.value,isMilestoneTask:P.value,showTaskIcon:e.showTaskIcon,formattedTimer:x.value,isOvertime:oe(),overdueDays:le(),overtimeText:a.value,overdueText:o.value,daysText:s.value})),{key:3})):c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:4},[Q.showTaskIcon!==!1?(i.openBlock(),i.createElementBlock("span",r4,[k.value?(i.openBlock(),i.createElementBlock("svg",A4,De[10]||(De[10]=[i.createElementVNode("polygon",{points:"12,2 22,12 12,22 2,12"},null,-1)]))):E.value||F.value?(i.openBlock(),i.createElementBlock("svg",n4,De[11]||(De[11]=[i.createElementVNode("path",{d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-5l-2-2H5a2 2 0 00-2 2z"},null,-1)]))):(i.openBlock(),i.createElementBlock("svg",a4,De[12]||(De[12]=[i.createStaticVNode('<path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z" data-v-2bc6791b></path><polyline points="14,2 14,8 20,8" data-v-2bc6791b></polyline><line x1="16" y1="13" x2="8" y2="13" data-v-2bc6791b></line><line x1="16" y1="17" x2="8" y2="17" data-v-2bc6791b></line><polyline points="10,9 9,9 8,9" data-v-2bc6791b></polyline>',5)])))])):i.createCommentVNode("",!0),i.createElementVNode("span",{class:i.normalizeClass(["task-name-text",{"parent-task":j.value}]),title:e.task.name},[i.renderSlot(Q.$slots,"custom-task-content",i.mergeProps(Pe.value,{type:"task-row"}),void 0,!0),e.task.isTimerRunning||e.task.timerElapsedTime?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["timer-badge",{"timer-active":e.task.isTimerRunning}])},[e.task.isTimerRunning?(i.openBlock(),i.createElementBlock("span",s4)):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(x.value),1)],2)):i.createCommentVNode("",!0),oe()?(i.openBlock(),i.createElementBlock("span",o4,i.toDisplayString(a.value),1)):i.createCommentVNode("",!0),le()>0?(i.openBlock(),i.createElementBlock("span",l4,i.toDisplayString(o.value)+i.toDisplayString(le()>0?le()+s.value:""),1)):i.createCommentVNode("",!0)],10,i4)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:5},[Q.showTaskIcon!==!1?(i.openBlock(),i.createElementBlock("span",c4,[k.value?(i.openBlock(),i.createElementBlock("svg",u4,De[13]||(De[13]=[i.createElementVNode("polygon",{points:"12,2 22,12 12,22 2,12"},null,-1)]))):E.value||F.value?(i.openBlock(),i.createElementBlock("svg",f4,De[14]||(De[14]=[i.createElementVNode("path",{d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-5l-2-2H5a2 2 0 00-2 2z"},null,-1)]))):(i.openBlock(),i.createElementBlock("svg",d4,De[15]||(De[15]=[i.createStaticVNode('<path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z" data-v-2bc6791b></path><polyline points="14,2 14,8 20,8" data-v-2bc6791b></polyline><line x1="16" y1="13" x2="8" y2="13" data-v-2bc6791b></line><line x1="16" y1="17" x2="8" y2="17" data-v-2bc6791b></line><polyline points="10,9 9,9 8,9" data-v-2bc6791b></polyline>',5)])))])):i.createCommentVNode("",!0),i.createElementVNode("span",{class:i.normalizeClass(["task-name-text",{"parent-task":j.value}]),title:e.task.name},[i.createTextVNode(i.toDisplayString(e.task.name)+" ",1),e.task.isTimerRunning||e.task.timerElapsedTime?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["timer-badge",{"timer-active":e.task.isTimerRunning}])},[e.task.isTimerRunning?(i.openBlock(),i.createElementBlock("span",g4)):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(x.value),1)],2)):i.createCommentVNode("",!0),oe()?(i.openBlock(),i.createElementBlock("span",p4,i.toDisplayString(a.value),1)):i.createCommentVNode("",!0),le()>0?(i.openBlock(),i.createElementBlock("span",v4,i.toDisplayString(o.value)+i.toDisplayString(le()>0?le()+s.value:""),1)):i.createCommentVNode("",!0)],10,h4)],64))],4),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Q.columns,ge=>(i.openBlock(),i.createElementBlock("div",{key:ge.key,class:i.normalizeClass(["col",ge.cssClass||`col-${ge.key}`]),style:i.normalizeStyle(Q.getColumnWidthStyle?Q.getColumnWidthStyle(ge):void 0)},[k.value?(i.openBlock(),i.createElementBlock("div",m4)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[h(ge.key)?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(()=>p(ge.key,{task:e.task,column:ge,value:e.task[ge.key]})),{key:0})):ge.formatter?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(ge.formatter(e.task,ge)),1)],64)):ge.key==="predecessor"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(i.toDisplayString(i.unref(pg)(e.task.predecessor)),1)],64)):ge.key==="assignee"?(i.openBlock(),i.createElementBlock("div",w4,[i.createElementVNode("div",B4,i.toDisplayString(e.task.assignee?e.task.assignee.charAt(0):"-"),1),i.createElementVNode("span",y4,i.toDisplayString(e.task.assignee||"-"),1)])):ge.key==="startDate"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:4},[i.createTextVNode(i.toDisplayString(e.task.startDate||"-"),1)],64)):ge.key==="endDate"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:5},[i.createTextVNode(i.toDisplayString(e.task.endDate||"-"),1)],64)):ge.key==="estimatedHours"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:6},[i.createTextVNode(i.toDisplayString(e.task.estimatedHours||"-"),1)],64)):ge.key==="actualHours"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:7},[i.createTextVNode(i.toDisplayString(e.task.actualHours||"-"),1)],64)):ge.key==="progress"?(i.openBlock(),i.createElementBlock("span",{key:8,class:i.normalizeClass(["progress-value",Fe.value])},i.toDisplayString(e.task.progress!=null?e.task.progress+"%":"-"),3)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:9},[i.createTextVNode(i.toDisplayString(e.task[ge.key]||"-"),1)],64))],64))],6))),128))],64))],46,jE),!e.disableChildrenRender&&F.value&&!e.task.collapsed&&!k.value?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(e.task.children,ge=>(i.openBlock(),i.createBlock(pe,{key:ge.id,task:ge,level:e.level+1,"is-hovered":e.hoveredTaskId===ge.id,"hovered-task-id":e.hoveredTaskId,"on-hover":e.onHover,columns:e.columns,"declarative-columns":e.declarativeColumns,"render-mode":e.renderMode,"get-column-width-style":e.getColumnWidthStyle,"disable-children-render":e.disableChildrenRender,"show-task-icon":e.showTaskIcon,"enable-drag":e.enableDrag,"drag-start":e.dragStart,"drag-over":e.dragOver,onToggle:De[0]||(De[0]=Ee=>r("toggle",Ee)),onDblclick:De[1]||(De[1]=Ee=>r("dblclick",Ee)),onStartTimer:De[2]||(De[2]=Ee=>r("start-timer",Ee)),onStopTimer:De[3]||(De[3]=Ee=>r("stop-timer",Ee)),onAddPredecessor:De[4]||(De[4]=Ee=>r("add-predecessor",Ee)),onAddSuccessor:De[5]||(De[5]=Ee=>r("add-successor",Ee)),onDelete:ce},i.createSlots({_:2},[c.value?{name:"custom-task-content",fn:i.withCtx(Ee=>[i.renderSlot(Q.$slots,"custom-task-content",i.mergeProps({ref_for:!0},Ee),void 0,!0)]),key:"0"}:void 0]),1032,["task","level","is-hovered","hovered-task-id","on-hover","columns","declarative-columns","render-mode","get-column-width-style","disable-children-render","show-task-icon","enable-drag","drag-start","drag-over"]))),128)):i.createCommentVNode("",!0),i.createVNode(Ay,{visible:W.value,task:Ae.value,position:z.value,onClose:fe,onStartTimer:De[6]||(De[6]=ge=>Q.$emit("start-timer",e.task)),onStopTimer:De[7]||(De[7]=ge=>Q.$emit("stop-timer",e.task)),onAddPredecessor:De[8]||(De[8]=ge=>Q.$emit("add-predecessor",e.task)),onAddSuccessor:De[9]||(De[9]=ge=>Q.$emit("add-successor",e.task)),onDelete:ce},null,8,["visible","task","position"])])}}}),ny=sn(C4,[["__scopeId","data-v-2bc6791b"]]),E4=320,Kv=280,F4=1160;function Nu(A,t,e){if(A==null)return e;if(typeof A=="number")return A;if(typeof A=="string"){const r=A.trim();if(r.endsWith("%")){const a=parseFloat(r);if(!isNaN(a))return Math.round(t*a/100)}const n=parseFloat(r);if(!isNaN(n))return n}return e}const _u=[{type:"name",key:"taskName",label:"任务名称",cssClass:"col-name",visible:!0},{type:"predecessor",key:"predecessor",label:"前置任务",cssClass:"col-pre",visible:!0},{type:"assignee",key:"assignee",label:"负责人",cssClass:"col-assignee",visible:!0},{type:"startDate",key:"startDate",label:"开始日期",cssClass:"col-date",visible:!0},{type:"endDate",key:"endDate",label:"结束日期",cssClass:"col-date",visible:!0},{type:"estimatedHours",key:"estimatedHours",label:"预估工时",cssClass:"col-hours",visible:!0},{type:"actualHours",key:"actualHours",label:"实际工时",cssClass:"col-hours",visible:!0},{type:"progress",key:"progress",label:"进度",cssClass:"col-progress",visible:!0}];function k4(A){const t=A.dragThreshold??5,e=i.ref({isDragging:!1,isPreparing:!1,draggedTask:null,draggedElement:null,ghostElement:null,dropTargetTask:null,dropPosition:null,startX:0,startY:0}),r=(p,f,v)=>{A.enabled&&(p.type==="milestone-group"||p.type==="milestone"||(v.preventDefault(),v.stopPropagation(),e.value.isPreparing=!0,e.value.draggedTask=p,e.value.draggedElement=f,e.value.startX=v.clientX,e.value.startY=v.clientY))},n=p=>{if(!e.value.isPreparing||e.value.isDragging)return;const f=e.value.draggedTask,v=e.value.draggedElement;e.value.isDragging=!0,e.value.isPreparing=!1;const w=v.cloneNode(!0);w.style.position="fixed",w.style.left="-9999px",w.style.top="-9999px",w.style.width=`${v.offsetWidth}px`,w.style.height=`${v.offsetHeight}px`,w.style.opacity="0.6",w.style.pointerEvents="none",w.style.zIndex="999999",w.style.boxShadow="0 8px 24px rgba(0, 0, 0, 0.3)",w.classList.add("task-row-dragging"),(document.querySelector(".gantt-fullscreen")||document.body).appendChild(w),e.value.ghostElement=w,v.style.opacity="0.4",document.body.style.userSelect="none",document.body.style.webkitUserSelect="none",document.body.style.cursor="move",window.dispatchEvent(new CustomEvent("task-row-drag-start",{detail:{task:f}})),A.onDragStart&&A.onDragStart(f),a(p)},a=p=>{if(e.value.ghostElement){const f=e.value.ghostElement;f.style.left=`${p.clientX+10}px`,f.style.top=`${p.clientY-25}px`}},o=(p,f,v)=>{if(!e.value.isDragging||!e.value.draggedTask)return;if(p.id===e.value.draggedTask.id){s();return}if(h(e.value.draggedTask,p)){s();return}v.preventDefault(),v.stopPropagation();const b=p.children&&p.children.length>0?"child":"after";e.value.dropTargetTask=p,e.value.dropPosition=b,document.querySelectorAll(".task-row-drop-target").forEach(B=>{B.classList.remove("task-row-drop-target","drop-after","drop-child")}),f.classList.add("task-row-drop-target"),b==="after"?f.classList.add("drop-after"):f.classList.add("drop-child"),A.onDragOver&&A.onDragOver(p,b)},s=()=>{e.value.dropTargetTask=null,e.value.dropPosition=null,document.querySelectorAll(".task-row-drop-target").forEach(p=>{p.classList.remove("task-row-drop-target","drop-after","drop-child")})},l=()=>{if(e.value.isPreparing&&!e.value.isDragging){e.value.isPreparing=!1,e.value.draggedTask=null,e.value.draggedElement=null;return}if(!e.value.isDragging)return;const p=e.value.draggedTask,f=e.value.dropTargetTask,v=e.value.dropPosition;e.value.draggedElement&&(e.value.draggedElement.style.opacity=""),e.value.ghostElement&&e.value.ghostElement.parentElement&&e.value.ghostElement.parentElement.removeChild(e.value.ghostElement),s(),document.body.style.userSelect="",document.body.style.webkitUserSelect="",document.body.style.cursor="",window.dispatchEvent(new CustomEvent("task-row-drag-end")),p&&f&&v&&A.onDrop&&A.onDrop(p,f,v),e.value={isDragging:!1,isPreparing:!1,draggedTask:null,draggedElement:null,ghostElement:null,dropTargetTask:null,dropPosition:null,startX:0,startY:0}},c=p=>{if(e.value.isPreparing&&!e.value.isDragging){const f=Math.abs(p.clientX-e.value.startX),v=Math.abs(p.clientY-e.value.startY);Math.sqrt(f*f+v*v)>t&&n(p);return}if(e.value.isDragging){a(p);const f=e.value.ghostElement;f&&(f.style.display="none");const v=document.elementFromPoint(p.clientX,p.clientY);if(f&&(f.style.display=""),v){const w=v.closest(".task-row");if(w&&w.dataset.taskId){const b=Number(w.dataset.taskId);window.dispatchEvent(new CustomEvent("task-row-drag-over",{detail:{taskId:b,event:p}}))}}}},u=()=>{(e.value.isDragging||e.value.isPreparing)&&l()},h=(p,f)=>{if(!p.children)return!1;for(const v of p.children)if(v.id===f.id||h(v,f))return!0;return!1};return i.onMounted(()=>{document.addEventListener("mousemove",c),document.addEventListener("mouseup",u)}),i.onUnmounted(()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",u),e.value.ghostElement&&e.value.ghostElement.parentElement&&e.value.ghostElement.parentElement.removeChild(e.value.ghostElement)}),{dragState:e,startDrag:r,handleDragOver:o,endDrag:l}}function x4(A){let t=!1;if(typeof A.type=="object"){const o=A.type;t=o.name==="TaskListColumn"||o.__name==="TaskListColumn"||o.__file&&o.__file.includes("TaskListColumn")}if(!t)return null;const e=A.props||{},r=A.children,n=r==null?void 0:r.header,a=r==null?void 0:r.default;return{prop:e.prop,label:e.label,width:e.width,align:e.align||"left",cssClass:e.cssClass,headerSlot:n,defaultSlot:a}}function S4(A){var n;const t=(n=A.default)==null?void 0:n.call(A);if(!t||!Array.isArray(t))return[];const e=[],r=a=>{for(const o of a){if(!o)continue;if(typeof o.type=="symbol"){o.children&&Array.isArray(o.children)&&r(o.children);continue}const s=x4(o);s&&e.push(s),o.children&&Array.isArray(o.children)&&r(o.children)}};return r(t),e}function T4(A,t,e){const r=i.computed(()=>(typeof A=="string"?A:A.value)!=="declarative"?[]:S4(t)),n=i.computed(()=>(typeof A=="string"?A:A.value)==="declarative"?r.value:e||[]);return{declarativeColumns:r,finalColumns:n,getColumnWidthStyle:(s,l)=>{if(!s.width)return{};let c;if(typeof s.width=="string"&&s.width.includes("%"))if(l&&l>0){const u=parseFloat(s.width)/100;c=`${Math.floor(l*u)}px`}else return{};else typeof s.width=="number"?c=`${s.width}px`:typeof s.width=="string"?/\d+(px|rem|em|%)/.test(s.width)?c=s.width:c=`${s.width}px`:c=String(s.width);return{flex:`0 0 ${c}`,minWidth:c,maxWidth:c}},getColumnAlignStyle:s=>!s||s==="left"?{}:{justifyContent:s==="center"?"center":"flex-end",textAlign:s}}}const U4={class:"task-list-header"},D4={class:"col col-name"},Bo=51,qv=5,Q4=i.defineComponent({__name:"TaskList",props:{tasks:{},useDefaultDrawer:{type:Boolean},taskListConfig:{},taskListColumnRenderMode:{default:"default"},enableTaskRowMove:{type:Boolean},taskListRowClassName:{},taskListRowStyle:{type:[Boolean,null,String,Object,Array,Function]}},emits:["task-collapse-change","start-timer","stop-timer","add-predecessor","add-successor","delete","task-row-moved"],setup(A,{emit:t}){var Ee;const e=A,r=t,n=i.useSlots(),a=i.computed(()=>!!n["custom-task-content"]),o=i.inject("gantt-column-slots",{}),{t:s}=ea(),{declarativeColumns:l,getColumnWidthStyle:c}=T4(i.computed(()=>e.taskListColumnRenderMode||"default"),n,((Ee=e.taskListConfig)==null?void 0:Ee.columns)||_u),u=i.computed(()=>{var Qe;return e.taskListColumnRenderMode==="declarative"?l.value:(((Qe=e.taskListConfig)==null?void 0:Qe.columns)||_u).filter(Oe=>Oe.visible!==!1)}),h=i.ref(null),p=i.ref(null),f=i.ref(0);let v=null,w=null;const b=i.ref(0),B=i.ref(0),F=xe=>{if(e.taskListColumnRenderMode==="declarative")return c(xe,f.value);if(!xe.width)return{};let Qe;if(typeof xe.width=="string"&&xe.width.includes("%")){const Oe=f.value||0;if(Oe>0){const Ve=parseFloat(xe.width)/100;Qe=`${Math.floor(Oe*Ve)}px`}else return{}}else Qe=`${xe.width}px`;return{flex:`0 0 ${Qe}`,minWidth:Qe,maxWidth:Qe}},E=i.computed(()=>{var Qe;return e.taskListColumnRenderMode==="declarative"?[]:(((Qe=e.taskListConfig)==null?void 0:Qe.columns)||_u).filter(Oe=>Oe.visible!==!1)}),k=i.computed(()=>e.tasks||[]),P=i.ref(null),j=i.ref(!1),M=()=>{j.value=!0},O=()=>{if(j.value=!1,h.value){const xe=h.value.offsetWidth;Math.abs(xe-f.value)>1&&(f.value=xe)}},L=xe=>{j.value||(P.value=xe,window.dispatchEvent(new CustomEvent("task-list-hover",{detail:xe})))},R=xe=>{P.value=xe.detail},S=xe=>{xe.type==="milestone"||xe.type==="milestone-group"||window.dispatchEvent(new CustomEvent("task-row-double-click",{detail:xe}))},T=xe=>{if(!xe.children||xe.children.length===0)return{progress:xe.progress||0,startDate:xe.startDate||"",endDate:xe.endDate||""};const Qe=[],Oe=Bt=>{Bt.forEach(pt=>{Qe.push(pt),pt.children&&pt.children.length>0&&Oe(pt.children)})};Oe(xe.children);const Ve=Qe.reduce((Bt,pt)=>Bt+(pt.progress||0),0),Re=Qe.length>0?Math.round(Ve/Qe.length):0,$e=Qe.filter(Bt=>Bt.startDate&&Bt.endDate);if($e.length===0)return{progress:Re,startDate:xe.startDate||"",endDate:xe.endDate||""};const at=$e.map(Bt=>new Date(Bt.startDate)),gt=$e.map(Bt=>new Date(Bt.endDate)),mt=new Date(Math.min(...at.map(Bt=>Bt.getTime()))),ht=new Date(Math.max(...gt.map(Bt=>Bt.getTime())));return{progress:Re,startDate:mt.toISOString().split("T")[0],endDate:ht.toISOString().split("T")[0]}},G=()=>{if(!e.tasks)return;const xe=Qe=>{Qe.forEach(Oe=>{if(Oe.children&&Oe.children.length>0){xe(Oe.children);const Ve=T(Oe);Oe.progress=Ve.progress,Oe.startDate=Ve.startDate,Oe.endDate=Ve.endDate}})};xe(e.tasks)},N=xe=>{const Qe=[],Oe=Ve=>{Ve.forEach(Re=>{Qe.push(Re),Re.children&&Re.children.length>0&&Oe(Re.children)})};return Oe(xe),Qe},oe=(xe,Qe=0)=>{const Oe=[];for(const Ve of xe)Oe.push({task:Ve,level:Qe}),!(Ve.type==="milestone-group")&&Ve.children&&Ve.children.length>0&&!Ve.collapsed&&Oe.push(...oe(Ve.children,Qe+1));return Oe},le=i.computed(()=>oe(k.value)),Z=i.computed(()=>{const xe=b.value,Qe=B.value||600,Oe=Math.floor(xe/Bo)-qv,Ve=Math.ceil((xe+Qe)/Bo)+qv,Re=le.value.length,$e=Math.min(Math.max(0,Oe),Re),at=Math.min(Re,Math.max($e+1,Ve));return{startIndex:$e,endIndex:at}}),ee=i.computed(()=>{const{startIndex:xe,endIndex:Qe}=Z.value;return le.value.slice(xe,Qe).map((Ve,Re)=>({...Ve,rowIndex:xe+Re}))}),X=i.computed(()=>le.value.length*Bo),re=i.computed(()=>Z.value.startIndex*Bo),se=i.computed(()=>{const xe=ee.value.length*Bo;return Math.max(0,X.value-re.value-xe)});function x(xe){xe.collapsed=!xe.collapsed,r("task-collapse-change",xe)}const I=xe=>{if(!e.tasks)return;const Qe=Oe=>{for(const Ve of Oe){if(Ve.id===xe.id)return Object.assign(Ve,xe),xe.children,!0;if(Ve.children&&Qe(Ve.children))return!0}return!1};Qe(e.tasks),G()},W=xe=>{const Qe=xe.detail;I(Qe)},z=xe=>{const Qe=xe.detail;e.tasks&&e.tasks.push(Qe),G()},Ae=()=>{const xe=N(k.value);window.dispatchEvent(new CustomEvent("task-list-updated",{detail:xe}))},he=xe=>{const{milestoneId:Qe,icon:Oe}=xe.detail,Ve=Re=>{for(const $e of Re){if($e.type==="milestone-group"&&$e.children){const at=$e.children.find(gt=>gt.id===Qe);if(at)return at.icon=Oe,!0}if($e.children&&Ve($e.children))return!0}return!1};Ve(k.value)},fe=xe=>{const Qe=xe.target;if(!Qe)return;const Oe=Qe.scrollTop;b.value=Oe,window.dispatchEvent(new CustomEvent("task-list-vertical-scroll",{detail:{scrollTop:Oe}}))},ce=xe=>{const{scrollTop:Qe}=xe.detail,Oe=p.value;b.value=Qe,Oe&&Math.abs(Oe.scrollTop-Qe)>1&&(Oe.scrollTop=Qe)},Fe=xe=>{try{window.dispatchEvent(new CustomEvent("context-menu",{detail:xe}))}catch(Qe){console.error("TaskList - Failed to dispatch context-menu event",Qe)}},Pe=xe=>{r("start-timer",xe)},Ze=xe=>{r("stop-timer",xe)},tt=xe=>{r("add-predecessor",xe)},lt=xe=>{r("add-successor",xe)},Q=(xe,Qe)=>{r("delete",xe,Qe)},De=xe=>{const{draggedTask:Qe,targetTask:Oe,position:Ve}=xe;e.tasks&&r("task-row-moved",{draggedTask:Qe,targetTask:Oe,position:Ve,oldParent:null,newParent:null})},{startDrag:pe,handleDragOver:ge}=k4({enabled:e.enableTaskRowMove??!1,onDrop:(xe,Qe,Oe)=>{De({draggedTask:xe,targetTask:Qe,position:Oe})}});return i.onMounted(async()=>{h.value&&(v=new ResizeObserver(xe=>{if(!j.value)for(const Qe of xe)f.value=Qe.contentRect.width}),v.observe(h.value)),p.value&&(B.value=p.value.clientHeight,b.value=p.value.scrollTop,w=new ResizeObserver(xe=>{for(const Qe of xe)B.value=Qe.contentRect.height}),w.observe(p.value)),window.addEventListener("task-updated",W),window.addEventListener("task-added",z),window.addEventListener("request-task-list",Ae),window.addEventListener("timeline-task-hover",R),window.addEventListener("timeline-vertical-scroll",ce),window.addEventListener("milestone-icon-changed",he),window.addEventListener("splitter-drag-start",M),window.addEventListener("splitter-drag-end",O),G()}),i.onUnmounted(()=>{v&&(v.disconnect(),v=null),w&&(w.disconnect(),w=null),window.removeEventListener("task-updated",W),window.removeEventListener("task-added",z),window.removeEventListener("request-task-list",Ae),window.removeEventListener("timeline-task-hover",R),window.removeEventListener("timeline-vertical-scroll",ce),window.removeEventListener("milestone-icon-changed",he),window.removeEventListener("splitter-drag-start",M),window.removeEventListener("splitter-drag-end",O)}),(xe,Qe)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"taskListRef",ref:h,class:"task-list"},[i.createElementVNode("div",U4,[xe.taskListColumnRenderMode==="declarative"?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(u.value,(Oe,Ve)=>(i.openBlock(),i.createElementBlock("div",{key:Ve,class:i.normalizeClass(["col",Oe.cssClass]),style:i.normalizeStyle({...F(Oe),justifyContent:Oe.align==="center"?"center":Oe.align==="right"?"flex-end":"flex-start",textAlign:Oe.align||"left"})},[Oe.headerSlot?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(Oe.headerSlot),{key:0})):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(Oe.label),1)],64))],6))),128)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",D4,[i.unref(o)["header-name"]?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(o)["header-name"]),{key:0})):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(i.unref(s).taskName||"任务名称"),1)],64))]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(E.value,Oe=>(i.openBlock(),i.createElementBlock("div",{key:Oe.key,class:i.normalizeClass(["col",Oe.cssClass||`col-${Oe.key}`]),style:i.normalizeStyle(F(Oe))},[i.unref(o)[`header-${Oe.key}`]?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(o)[`header-${Oe.key}`]),{key:0})):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(i.unref(s)[Oe.key]||Oe.label),1)],64))],6))),128))],64))]),i.createElementVNode("div",{ref_key:"taskListBodyRef",ref:p,class:"task-list-body",onScroll:fe},[i.createElementVNode("div",{class:"task-list-body-spacer",style:i.normalizeStyle({height:`${re.value}px`})},null,4),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(ee.value,({task:Oe,level:Ve,rowIndex:Re})=>{var $e;return i.openBlock(),i.createBlock(ny,{key:Oe.id,task:Oe,level:Ve,"row-index":Re,"is-hovered":P.value===Oe.id,"hovered-task-id":P.value,"on-hover":L,columns:xe.taskListColumnRenderMode==="declarative"?[]:E.value,"declarative-columns":xe.taskListColumnRenderMode==="declarative"?u.value:void 0,"render-mode":xe.taskListColumnRenderMode,"get-column-width-style":F,"disable-children-render":!0,"show-task-icon":($e=e.taskListConfig)==null?void 0:$e.showTaskIcon,"enable-drag":e.enableTaskRowMove,"drag-start":i.unref(pe),"drag-over":i.unref(ge),"task-list-row-class-name":e.taskListRowClassName,"task-list-row-style":e.taskListRowStyle,onToggle:x,onDblclick:S,onContextmenu:Fe,onStartTimer:Pe,onStopTimer:Ze,onAddPredecessor:tt,onAddSuccessor:lt,onDelete:Q},i.createSlots({_:2},[a.value?{name:"custom-task-content",fn:i.withCtx(at=>[i.renderSlot(xe.$slots,"custom-task-content",i.mergeProps({ref_for:!0},at),void 0,!0)]),key:"0"}:void 0]),1032,["task","level","row-index","is-hovered","hovered-task-id","columns","declarative-columns","render-mode","show-task-icon","enable-drag","drag-start","drag-over","task-list-row-class-name","task-list-row-style"])}),128)),i.createElementVNode("div",{class:"task-list-body-spacer",style:i.normalizeStyle({height:`${se.value}px`})},null,4)],544)],512))}}),ay=sn(Q4,[["__scopeId","data-v-ea3ee073"]]),qe={HOUR:"hour",DAY:"day",WEEK:"week",MONTH:"month",QUARTER:"quarter",YEAR:"year"},L4={hour:{scale:qe.HOUR,cellWidth:40,headerLevels:2,formatters:{primary:"yyyy年MM月dd日",secondary:"HH:mm"}},day:{scale:qe.DAY,cellWidth:30,headerLevels:2,formatters:{primary:"yyyy年MM月",secondary:"dd"}},week:{scale:qe.WEEK,cellWidth:120,headerLevels:2,formatters:{primary:"yyyy年MM月",secondary:"W周"}},month:{scale:qe.MONTH,cellWidth:180,headerLevels:2,formatters:{primary:"yyyy年",secondary:"MM月"}},quarter:{scale:qe.QUARTER,cellWidth:60,headerLevels:2,formatters:{primary:"yyyy年",secondary:"Q季度"}},year:{scale:qe.YEAR,cellWidth:180,headerLevels:2,formatters:{primary:"yyyy年",secondary:"上半年|下半年"}}},I4={key:0,class:"anchor-tooltip"},N4=i.defineComponent({__name:"LinkAnchor",props:{type:{},taskId:{},visible:{type:Boolean,default:!1},isDragSource:{type:Boolean,default:!1},isDragTarget:{type:Boolean,default:!1},isValidTarget:{type:Boolean,default:!0},enabled:{type:Boolean,default:!0},globalDragging:{type:Boolean,default:!1}},emits:["drag-start","drag-move","drag-end"],setup(A,{emit:t}){const e=A,r=t,n=i.ref(!1),a=i.computed(()=>e.visible||e.globalDragging||e.isDragSource||e.isDragTarget||n.value);let o=null,s=null,l=!1;function c(f){e.enabled&&(f.stopPropagation(),f.preventDefault(),l=!0,r("drag-start",{taskId:e.taskId,type:e.type,x:f.clientX,y:f.clientY}),o=v=>{l&&r("drag-move",{x:v.clientX,y:v.clientY})},s=()=>{l&&(r("drag-end",{taskId:e.taskId,type:e.type}),p())},document.addEventListener("mousemove",o),document.addEventListener("mouseup",s))}function u(){e.enabled&&(n.value=!0)}function h(){e.enabled&&(n.value=!1)}function p(){l=!1,o&&(document.removeEventListener("mousemove",o),o=null),s&&(document.removeEventListener("mouseup",s),s=null)}return i.onUnmounted(()=>{p()}),(f,v)=>f.enabled&&a.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["link-anchor",{"anchor-predecessor":f.type==="predecessor","anchor-successor":f.type==="successor","drag-source":f.isDragSource,"drag-target":f.isDragTarget,"valid-target":f.isDragTarget&&f.isValidTarget,"invalid-target":f.isDragTarget&&!f.isValidTarget,visible:a.value}]),onMousedown:c,onMouseenter:u,onMouseleave:h},[!f.isDragSource&&!f.isDragTarget&&!f.globalDragging?(i.openBlock(),i.createElementBlock("div",I4,i.toDisplayString(f.type==="predecessor"?"添加前置任务":"添加后置任务"),1)):i.createCommentVNode("",!0)],34)):i.createCommentVNode("",!0)}}),jv=sn(N4,[["__scopeId","data-v-fa084d7b"]]),_4={showAvatar:!0,showTitle:!0,showProgress:!0,dragThreshold:5,resizeHandleWidth:5,enableDragDelay:!1,dragDelayTime:150},M4=["data-task-id"],O4={key:0,class:"parent-label"},R4=["src","alt"],H4={key:1,class:"avatar-text"},P4={key:2,class:"avatar-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V4={key:1,class:"task-name"},K4={class:"tooltip-title"},q4={class:"tooltip-content"},j4={class:"tooltip-row"},W4={class:"tooltip-label"},G4={class:"tooltip-value"},Y4={class:"tooltip-row"},z4={class:"tooltip-label"},$4={class:"tooltip-value"},X4={class:"tooltip-row"},J4={class:"tooltip-label"},Z4={class:"tooltip-value"},eF={class:"tooltip-row"},tF={class:"tooltip-label"},rF={class:"tooltip-value"},AF={class:"tooltip-row"},nF={class:"tooltip-label"},aF={class:"tooltip-value"},iF={class:"drag-tooltip-content"},sF={class:"tooltip-row"},oF={class:"tooltip-label"},lF={class:"tooltip-value"},cF={class:"tooltip-row"},uF={class:"tooltip-label"},fF={class:"tooltip-value"},dF=1e3,hF=100,gF=250,pF=i.defineComponent({__name:"TaskBar",props:{task:{},rowHeight:{},dayWidth:{},startDate:{},isParent:{type:Boolean},onClick:{type:Function},scrollLeft:{},containerWidth:{},hideBubbles:{type:Boolean},timelineData:{},currentTimeScale:{},taskBarConfig:{},allowDragAndResize:{type:Boolean},isHighlighted:{type:Boolean},isPrimaryHighlight:{type:Boolean},isInHighlightMode:{type:Boolean},dragLinkMode:{},isLinkDragSource:{type:Boolean},isValidLinkTarget:{type:Boolean},isInvalidLinkTarget:{type:Boolean},allTasks:{}},emits:["update:task","bar-mounted","click","dblclick","drag-end","resize-end","scroll-to-position","start-timer","stop-timer","add-predecessor","add-successor","delete","delete-link","context-menu","long-press","link-drag-start","link-drag-move","link-drag-end"],setup(A,{emit:t}){const e=A,r=t,n=i.useSlots(),{getTranslation:a}=ea(),o=q=>a(q),s=i.computed(()=>!!n["custom-task-content"]),l=i.computed(()=>({..._4,...e.taskBarConfig})),c=q=>{if(!q)return null;if(q instanceof Date)return q;if(typeof q=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(q)){const[Ce,Te,ze]=q.split("-").map(Number);return new Date(Ce,Te-1,ze)}if(typeof q=="string"&&/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/.test(q)){const[Ce,Te]=q.split(" "),[ze,Ie,Xe]=Ce.split("-").map(Number),[Ye,st]=Te.split(":").map(Number);return new Date(ze,Ie-1,Xe,Ye,st)}const me=new Date(q);return isNaN(me.getTime())?null:me},u=()=>{const q=new Date;return new Date(q.getFullYear(),q.getMonth(),q.getDate())},h=i.ref(u());let p=null;i.onMounted(()=>{p=window.setInterval(()=>{h.value=u()},6e4)}),i.onUnmounted(()=>{p!==null&&(clearInterval(p),p=null)});const f=q=>{const me=q.getFullYear(),Ce=String(q.getMonth()+1).padStart(2,"0"),Te=String(q.getDate()).padStart(2,"0");if(e.currentTimeScale===qe.HOUR){const ze=String(q.getHours()).padStart(2,"0"),Ie=String(q.getMinutes()).padStart(2,"0");return`${me}-${Ce}-${Te} ${ze}:${Ie}`}return`${me}-${Ce}-${Te}`},v=(q,me)=>{const Ce=new Date(q);return Ce.setDate(Ce.getDate()+me),Ce},w=(q,me)=>{const Ce=new Date(q);return Ce.setMinutes(Ce.getMinutes()+me),Ce},b=(q,me)=>Math.round((me.getTime()-q.getTime())/(1e3*60)),B=i.computed(()=>e.task.isEditable===!1?!0:e.currentTimeScale===qe.YEAR),F=i.ref(!1),E=i.ref(!1),k=i.ref(!1),P=i.ref(!1),j=i.ref(0),M=i.ref(0),O=i.ref(0),L=i.ref(0),R=i.ref(0),S=i.ref(0),T=i.ref(null),G=i.ref(!1),N=i.ref(!1),oe=i.computed(()=>l.value.dragThreshold??5),le=i.ref(!1),Z=i.ref(null),ee=i.ref(null),X=i.ref(!1),re=i.ref(0),se=i.ref(null),x=i.ref(null),I=i.ref(null),W=i.ref(null),z=i.ref(0),Ae=i.computed(()=>{var qt,tr;if(x.value&&e.currentTimeScale===qe.QUARTER)return{left:`${x.value.left??0}px`,width:`${x.value.width??100}px`,height:`${e.rowHeight-10}px`,top:"4px"};const q=((qt=se.value)==null?void 0:qt.startDate)||e.task.startDate,me=((tr=se.value)==null?void 0:tr.endDate)||e.task.endDate,Ce=c(q),Te=c(me),ze=ce.value;if(!Ce&&!Te)return{left:"0px",width:"0px",height:`${e.rowHeight-10}px`,top:"4px"};const Ie=Ce||Te,Xe=Te||Ce,Ye=ze;if(!Ie||!Xe||!Ye)return{left:"0px",width:"0px",height:`${e.rowHeight-10}px`,top:"4px"};let st=0,vt=0;if(e.currentTimeScale===qe.HOUR){const nr=new Date(Ye);nr.setHours(0,0,0,0);let Kt=Ie,Gt=Xe;const Rt=q||e.task.startDate,pr=me||e.task.endDate;typeof Rt=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(Rt.trim())&&(Kt=new Date(Ie),Kt.setHours(0,0,0,0)),typeof pr=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(pr.trim())&&(Gt=new Date(Xe),Gt.setDate(Gt.getDate()+1),Gt.setHours(0,0,0,0));const dr=b(nr,Kt),yr=b(nr,Gt),$t=40/60;st=Math.max(0,dr*$t),vt=Math.max(4,(yr-dr)*$t)}else{const nr=new Date(Ie.getFullYear(),Ie.getMonth(),Ie.getDate()),Kt=new Date(Xe.getFullYear(),Xe.getMonth(),Xe.getDate()),Gt=new Date(Ye.getFullYear(),Ye.getMonth(),Ye.getDate());if(e.timelineData&&e.currentTimeScale&&(e.currentTimeScale===qe.WEEK||e.currentTimeScale===qe.MONTH||e.currentTimeScale===qe.QUARTER||e.currentTimeScale===qe.YEAR)){const Rt=Er(nr,e.timelineData,e.currentTimeScale),pr=new Date(Kt);pr.setDate(pr.getDate()+1);let dr=Er(pr,e.timelineData,e.currentTimeScale);if(dr===Rt){let yr=2;e.currentTimeScale===qe.WEEK?yr=60/7:e.currentTimeScale===qe.QUARTER?yr=60/90:e.currentTimeScale===qe.YEAR&&(yr=180/182),dr=Er(Kt,e.timelineData,e.currentTimeScale)+yr}st=Rt,vt=Math.max(dr-Rt,4)}else if(e.timelineData&&e.currentTimeScale===qe.DAY){const Rt=Er(nr,e.timelineData,e.currentTimeScale),pr=new Date(Kt);pr.setDate(pr.getDate()+1);let dr=Er(pr,e.timelineData,e.currentTimeScale);dr===Rt&&(dr=Er(Kt,e.timelineData,e.currentTimeScale)+30),st=Rt,vt=Math.max(dr-Rt,4)}else{const Rt=Math.floor((nr.getTime()-Gt.getTime())/864e5),pr=Kt.getTime()-nr.getTime(),dr=Math.round(pr/(1e3*60*60*24)),yr=dr===0?1:dr+1;st=Rt*e.dayWidth,vt=yr*e.dayWidth}}return{left:`${st}px`,width:`${vt}px`,height:`${e.rowHeight-10}px`,top:"4px"}}),he=i.ref({left:0,top:0,width:0,height:0,timestamp:0}),fe=i.computed(()=>c(e.task.endDate||"")),ce=i.computed(()=>c(e.startDate)),Fe=i.computed(()=>{var Ce,Te;const q=((Ce=se.value)==null?void 0:Ce.startDate)||e.task.startDate,me=((Te=se.value)==null?void 0:Te.endDate)||e.task.endDate;return!!(q||me)}),Pe=i.computed(()=>{if(e.isParent)return{type:"parent",color:"#409eff",bgColor:"#409eff",borderColor:"#409eff"};const q=h.value,me=fe.value,Ce=e.task.progress||0;return Ce>=100?{type:"completed",color:"#909399",bgColor:"#f4f4f5",borderColor:"#d3d4d6"}:me&&me<q&&Ce<100?{type:"delayed",color:"#f56c6c",bgColor:"#fef0f0",borderColor:"#fbc4c4"}:me&&me>=q&&Ce>0?{type:"in-progress",color:"#e6a23c",bgColor:"#fdf6ec",borderColor:"#f5dab1"}:{type:"not-started",color:"#409eff",bgColor:"#ecf5ff",borderColor:"#b3d8ff"}}),Ze=i.computed(()=>({type:"task-bar",task:e.task,status:Pe.value,statusType:Pe.value.type,isParent:e.isParent??!1,progress:e.task.progress||0,currentTimeScale:e.currentTimeScale,rowHeight:e.rowHeight,dayWidth:e.dayWidth})),tt=i.computed(()=>(e.task.progress||0)>=100),lt=i.computed(()=>e.isInHighlightMode&&!e.isHighlighted&&!e.isPrimaryHighlight),Q=i.computed(()=>{const q=e.task.progress||0,me=parseInt(Ae.value.width);return`${q/100*me}px`}),De=i.computed(()=>e.dayWidth<=9),pe=i.computed(()=>parseFloat(Ae.value.width||"0")<80),ge=i.computed(()=>De.value&&pe.value),Ee=(q,me)=>{if(e.isHighlighted||e.isPrimaryHighlight||e.allowDragAndResize===!1||tt.value||e.isParent||B.value||(q.preventDefault(),q.stopPropagation(),se.value=null,le.value=!1,X.value=!1,Z.value=me,G.value=!1,T.value&&(clearTimeout(T.value),T.value=null),me==="drag"&&(T.value=window.setTimeout(()=>{!le.value&&!F.value&&!E.value&&!k.value&&(G.value=!0,r("long-press",e.task.id)),T.value=null},dF)),l.value.enableDragDelay&&l.value.dragDelayTime?ee.value=window.setTimeout(()=>{X.value=!0,ee.value=null},l.value.dragDelayTime):X.value=!0,!document.querySelector(".timeline")||!I.value))return;const Te=I.value.getBoundingClientRect();re.value=q.clientX-Te.left,j.value=q.clientX,M.value=parseInt(Ae.value.left),O.value=parseInt(Ae.value.width),(me==="resize-left"||me==="resize-right")&&(L.value=q.clientX,R.value=parseInt(Ae.value.width),S.value=parseInt(Ae.value.left)),window.addEventListener("timeline-auto-scroll",xe),document.addEventListener("mousemove",at),document.addEventListener("mouseup",gt)},xe=q=>{const{scrollDelta:me}=q.detail;F.value?j.value-=me:(E.value||k.value)&&(L.value-=me)};let Qe=!1;function Oe(){Qe||(Qe=!0,requestAnimationFrame(()=>{if(Qe=!1,!I.value)return;const q=Date.now();if(q-he.value.timestamp<hF){r("bar-mounted",{id:e.task.id,left:he.value.left,top:he.value.top,width:he.value.width,height:he.value.height});return}const me=I.value.getBoundingClientRect(),Ce={left:me.left,top:me.top,width:me.width,height:me.height};he.value={...Ce,timestamp:q},r("bar-mounted",{id:e.task.id,...Ce})}))}const Ve=i.ref(!1),Re=i.ref({x:0,y:0}),$e=i.ref({startDate:"",endDate:""}),at=q=>{if(!(e.isHighlighted||e.isPrimaryHighlight)&&!(l.value.enableDragDelay&&!X.value)){if(!le.value){if(Math.abs(q.clientX-j.value)<oe.value)return;le.value=!0,Z.value==="drag"?F.value=!0:Z.value==="resize-left"?E.value=!0:Z.value==="resize-right"&&(k.value=!0)}if(le.value){if(window.dispatchEvent(new CustomEvent("drag-boundary-check",{detail:{mouseX:q.clientX,isDragging:F.value||E.value||k.value}})),(F.value||E.value||k.value)&&(Ve.value=!0,Re.value={x:q.clientX+15,y:q.clientY-60}),F.value){const me=q.clientX-j.value;if(e.currentTimeScale===qe.HOUR){const Ce=.6666666666666666,Te=Ce*15,ze=Math.max(0,M.value+me),Ie=Math.round(ze/Te)*Te,Xe=Math.round(Ie/Ce),Ye=new Date(e.startDate);Ye.setHours(0,0,0,0);const st=w(Ye,Xe),vt=c(e.task.startDate)||e.startDate,qt=c(e.task.endDate)||e.startDate;let tr;if(e.task.startDate&&!e.task.startDate.includes(" ")){const Kt=qt.getTime()-vt.getTime();tr=Math.max(1,Math.round(Kt/(1e3*60*60*24))+1)*24*60}else tr=b(vt,qt);const nr=w(st,tr);se.value={startDate:f(st),endDate:f(nr)},$e.value={startDate:f(st),endDate:f(nr)}}else if(e.currentTimeScale===qe.QUARTER){const Ce=Math.max(0,M.value+me);x.value={left:Ce,width:O.value};const Ie=60/90,Xe=Math.round(me/Ie),Ye=c(e.task.startDate)||e.startDate,st=c(e.task.endDate)||e.startDate,vt=new Date(Ye);vt.setDate(vt.getDate()+Xe);const qt=st.getTime()-Ye.getTime(),tr=Math.ceil(qt/(1e3*60*60*24)),nr=new Date(vt);nr.setDate(nr.getDate()+Math.max(0,tr)),se.value={startDate:f(vt),endDate:f(nr)},$e.value={startDate:f(vt),endDate:f(nr)}}else{const Ce=Math.max(0,M.value+me);if((e.currentTimeScale===qe.DAY||e.currentTimeScale===qe.MONTH||e.currentTimeScale===qe.QUARTER||e.currentTimeScale===qe.YEAR)&&e.timelineData){const Te=gA(Ce,e.timelineData,e.currentTimeScale);if(Te){const ze=c(e.task.startDate)||e.startDate,Xe=(c(e.task.endDate)||e.startDate).getTime()-ze.getTime(),Ye=Math.ceil(Xe/(1e3*60*60*24)),st=new Date(Te);st.setDate(st.getDate()+Math.max(0,Ye)),se.value={startDate:f(Te),endDate:f(st)},$e.value={startDate:f(Te),endDate:f(st)}}}else{const Te=v(e.startDate,Ce/e.dayWidth),ze=O.value/e.dayWidth,Ie=v(Te,ze-1);se.value={startDate:f(Te),endDate:f(Ie)},$e.value={startDate:f(Te),endDate:f(Ie)}}}}else if(E.value){const me=q.clientX-L.value;if(e.currentTimeScale===qe.HOUR){const Ce=.6666666666666666,Te=Ce*15,ze=Math.max(0,S.value+me),Ie=Math.round(ze/Te)*Te,Xe=Math.round(Ie/Ce),Ye=new Date(e.startDate);Ye.setHours(0,0,0,0);const st=w(Ye,Xe);se.value={startDate:f(st),endDate:e.task.endDate},$e.value={startDate:f(st),endDate:e.task.endDate||""}}else if(e.currentTimeScale===qe.QUARTER){const Ce=Math.max(0,S.value+me),Te=Math.max(10,R.value-me);x.value={left:Ce,width:Te};const Xe=60/90,Ye=Math.round(me/Xe),st=c(e.task.startDate)||e.startDate,vt=new Date(st);vt.setDate(vt.getDate()+Ye),se.value={startDate:f(vt),endDate:e.task.endDate},$e.value={startDate:f(vt),endDate:e.task.endDate||""}}else{const Ce=Math.max(0,S.value+me);if((e.currentTimeScale===qe.DAY||e.currentTimeScale===qe.MONTH||e.currentTimeScale===qe.QUARTER||e.currentTimeScale===qe.YEAR)&&e.timelineData){const Te=gA(Ce,e.timelineData,e.currentTimeScale);Te&&(se.value={startDate:f(Te),endDate:e.task.endDate},$e.value={startDate:f(Te),endDate:e.task.endDate||""})}else{const Te=v(e.startDate,Ce/e.dayWidth);se.value={startDate:f(Te),endDate:e.task.endDate},$e.value={startDate:f(Te),endDate:e.task.endDate||""}}}}else if(k.value){const me=q.clientX-L.value;if(e.currentTimeScale===qe.HOUR){const Ce=.6666666666666666,Te=Ce*15,ze=Math.max(Te,R.value+me),Ie=Math.round(ze/Te)*Te,Xe=Math.round(Ie/Ce),Ye=c(e.task.startDate)||e.startDate,st=w(Ye,Xe);se.value={startDate:e.task.startDate,endDate:f(st)},$e.value={startDate:e.task.startDate||"",endDate:f(st)}}else if(e.currentTimeScale===qe.QUARTER){const Ce=Math.max(10,R.value+me);x.value={left:S.value,width:Ce};const Ie=60/90,Xe=Math.round(me/Ie),Ye=c(e.task.endDate)||e.startDate,st=new Date(Ye);st.setDate(st.getDate()+Xe),se.value={startDate:e.task.startDate,endDate:f(st)},$e.value={startDate:e.task.startDate||"",endDate:f(st)}}else{const Ce=Math.max(e.dayWidth,R.value+me);if((e.currentTimeScale===qe.DAY||e.currentTimeScale===qe.MONTH||e.currentTimeScale===qe.QUARTER||e.currentTimeScale===qe.YEAR)&&e.timelineData){const Te=S.value+Ce,ze=gA(Te,e.timelineData,e.currentTimeScale);ze&&(se.value={startDate:e.task.startDate,endDate:f(ze)},$e.value={startDate:e.task.startDate||"",endDate:f(ze)})}else{const Te=Ce/e.dayWidth,ze=v(e.startDate,S.value/e.dayWidth+Te-1);se.value={startDate:e.task.startDate,endDate:f(ze)},$e.value={startDate:e.task.startDate||"",endDate:f(ze)}}}}}}},gt=()=>{if(ee.value!==null&&(window.clearTimeout(ee.value),ee.value=null),T.value!==null&&(clearTimeout(T.value),T.value=null),Ve.value=!1,x.value=null,window.dispatchEvent(new CustomEvent("drag-boundary-check",{detail:{mouseX:0,isDragging:!1}})),le.value&&se.value){const q={...e.task,...se.value};F.value?r("drag-end",q):(E.value||k.value)&&r("resize-end",q),r("update:task",q),se.value=null,i.nextTick(()=>{Oe()})}window.removeEventListener("timeline-auto-scroll",xe),(F.value||E.value||k.value)&&(P.value=!0,setTimeout(()=>{P.value=!1},200)),F.value=!1,E.value=!1,k.value=!1,le.value=!1,X.value=!1,Z.value=null,document.removeEventListener("mousemove",at),document.removeEventListener("mouseup",gt)};let mt=null;i.onMounted(()=>{i.nextTick(()=>{Oe(),W.value&&(mt=new ResizeObserver(Ce=>{for(const Te of Ce)z.value=Te.contentRect.width}),mt.observe(W.value))});const q=()=>{i.nextTick(()=>{Oe()})},me=()=>{i.nextTick(()=>{setTimeout(()=>{Oe()},10)})};window.addEventListener("timeline-scale-updated",q),window.addEventListener("timeline-force-recalculate",me),window.addEventListener("close-all-taskbar-menus",Rr),i.onUnmounted(()=>{mt&&(mt.disconnect(),mt=null),window.removeEventListener("timeline-scale-updated",q),window.removeEventListener("timeline-force-recalculate",me),window.removeEventListener("close-all-taskbar-menus",Rr),T.value!==null&&(clearTimeout(T.value),T.value=null)})}),i.watch(()=>[e.task.startDate,e.task.endDate],()=>{i.nextTick(()=>{Oe()})},{deep:!0}),i.watch(()=>[e.isHighlighted,e.isPrimaryHighlight],([q,me])=>{(q||me)&&(F.value=!1,E.value=!1,k.value=!1,le.value=!1,X.value=!1,Z.value=null,Ve.value=!1,document.removeEventListener("mousemove",at),document.removeEventListener("mouseup",gt),window.removeEventListener("timeline-auto-scroll",xe),T.value&&(clearTimeout(T.value),T.value=null),ee.value&&(clearTimeout(ee.value),ee.value=null),window.dispatchEvent(new CustomEvent("taskbar-highlighted",{detail:{taskId:e.task.id}})))});let ht=null;const Bt=q=>{if(!(F.value||E.value||k.value||P.value)){if(G.value){G.value=!1;return}ht===null&&(ht=window.setTimeout(()=>{ht=null,e.onClick&&typeof e.onClick=="function"?e.onClick(e.task,q):r("click",e.task,q)},gF))}},pt=q=>{q.stopPropagation(),q.preventDefault(),ht!==null&&(clearTimeout(ht),ht=null),F.value=!1,E.value=!1,k.value=!1,se.value=null,document.removeEventListener("mousemove",at),document.removeEventListener("mouseup",gt),r("dblclick",e.task,q)},zt=i.computed(()=>{const q=e.scrollLeft||0,me=e.containerWidth||0;if(!q&&!me)return{nameLeft:"",namePosition:"",nameTop:"",progressLeft:"",progressPosition:"",progressTop:"",avatarLeft:"",avatarPosition:""};const Ce=parseInt(Ae.value.left),Te=parseInt(Ae.value.width),ze=Ce+Te,Ie=Ce+Te/2,Xe=q,Ye=q+me;let st="",vt="",qt="",tr="",nr="",Kt="",Gt="",Rt="";const pr=Math.max(z.value,40),dr=35,yr=22,$t=Cr.value,RA=$t+3,cn=Ce+RA,Ln=Ce+RA+yr,bn=cn<Xe&&ze>Xe||Ie<Xe&&ze>Xe,Qr=Math.max(pr,dr),ur=Ln+Qr+15>Ye&&Ce<Ye;let Kr=0;if(bn)Gt=`${Xe-Ce+$t+3}px`,Rt="absolute",Kr=yr+8;else if(ur){const mA=Math.max(pr,dr);Gt=`${Ye-Ce-mA-$t-3-yr-15}px`,Rt="absolute",Kr=-37}const Lr=Ie-pr/2,$r=Ie+pr/2,XA=l.value.showAvatar;let ta=!1;if(XA){const mA=Lr,dn=yr+15;ta=mA<Xe+dn&&ze>Xe}else ta=Lr<Xe&&ze>Xe&&Ie<Xe;const Vn=$r>Ye&&Ce<Ye&&Ie>Ye;if(ta){const mA=Xe-Ce,dn=bn?Kr:0;st=`${mA+$t+3+dn}px`,vt="absolute",qt="2px"}else Vn&&(st=`${Ye-Ce-pr-$t-10}px`,vt="absolute",qt="2px");const un=Ie-dr/2,ra=Ie+dr/2;let kA=!1;if(XA){const mA=un,dn=yr+15;kA=mA<Xe+dn&&ze>Xe}else kA=un<Xe&&ze>Xe&&Ie<Xe;const fn=ra>Ye&&Ce<Ye&&Ie>Ye;if(kA){const mA=Xe-Ce,dn=bn?Kr:0;tr=`${mA+$t+3+dn}px`,nr="absolute",Kt="18px"}else fn&&(tr=`${Ye-Ce-dr-$t-3}px`,nr="absolute",Kt="18px");return{nameLeft:st,namePosition:vt,nameTop:qt,progressLeft:tr,progressPosition:nr,progressTop:Kt,avatarLeft:Gt,avatarPosition:Rt}}),_t=i.computed(()=>{const q=e.scrollLeft||0,me=e.containerWidth||0;if(!me||me<=0)return{show:!1,left:"0px",side:"left",color:"#409eff",animationType:"none"};if(St.value||He.value||e.hideBubbles)return{show:!1,left:"0px",side:"left",color:Pe.value.color,animationType:"none"};const Ce=parseInt(Ae.value.left),Te=parseInt(Ae.value.width),ze=Ce+Te,Ie=q,Xe=q+me,Ye=ze<=Ie,st=Ce>=Xe;return Ye?{show:!0,left:`${Ie-Ce-4}px`,side:"left",color:Pe.value.color,animationType:"morphToSemiCircle"}:st?{show:!0,left:`${Xe-Ce-8}px`,side:"right",color:Pe.value.color,animationType:"morphToSemiCircle"}:{show:!1,left:"0px",side:"left",color:Pe.value.color,animationType:"none"}}),Ut=i.ref(!1),Lt=i.ref({x:0,y:0}),Xt=i.ref(!1),Et=i.ref(null),rr=i.ref(!1),St=i.ref(!0),ye=i.ref(!1),He=i.ref(!1),_e=q=>{q.stopPropagation(),q.preventDefault();const me=e.scrollLeft||0,Ce=e.containerWidth||0;if(!me&&!Ce)return;const Te=parseInt(Ae.value.left),ze=parseInt(Ae.value.width),Xe=Te+ze/2-Ce/2;ye.value=!0,He.value=!0,Ut.value=!1,r("scroll-to-position",Xe)};i.watch(()=>[e.scrollLeft,e.containerWidth],(q,me)=>{const[Ce,Te]=q,[ze,Ie]=me||[0,0],Xe=Ce||0,Ye=Te||0,st=ze||0,vt=Ie||0;if(Math.abs(Ye-vt)>1&&vt>0){rr.value=!0,i.nextTick(()=>{}),St.value&&setTimeout(()=>{St.value=!1},300),setTimeout(()=>{rr.value=!1},500);return}St.value&&Xe>=0&&Ye>0&&setTimeout(()=>{St.value=!1},1e3),Xe!==st&&!rr.value&&(Xt.value=!0,Et.value&&clearTimeout(Et.value),Et.value=setTimeout(()=>{Xt.value=!1,ye.value&&(ye.value=!1,setTimeout(()=>{He.value=!1},300))},200))},{immediate:!0}),i.watch(()=>e.hideBubbles,(q,me)=>{me&&!q&&i.nextTick(()=>{})}),i.watch(()=>_t.value.show,()=>{});const je=()=>{rr.value=!0,i.nextTick(()=>{}),setTimeout(()=>{rr.value=!1},300)};i.onMounted(()=>{window.addEventListener("resize",je),window.addEventListener("zoom",je)}),i.onUnmounted(()=>{document.removeEventListener("mousemove",at),document.removeEventListener("mouseup",gt),window.removeEventListener("resize",je),window.removeEventListener("zoom",je)});const wt=q=>{q.stopPropagation(),Ut.value=!0;const Ce=_t.value.side==="right"?-180:15;Lt.value={x:q.clientX+Ce,y:q.clientY-10}},Qt=q=>{q.stopPropagation(),Ut.value=!1},Tt=q=>{q.stopPropagation(),Ut.value=!1},gr=q=>{if(!q)return o("dateNotSet");const me=c(q);if(!me)return o("dateNotSet");const Ce=me.getFullYear(),Te=String(me.getMonth()+1).padStart(2,"0"),ze=String(me.getDate()).padStart(2,"0");return`${Ce}-${Te}-${ze}`},Or=i.computed(()=>{const q=c(e.task.startDate),me=c(e.task.endDate);let Ce=0;if(q&&me){const Ie=Math.abs(me.getTime()-q.getTime());Ce=Math.ceil(Ie/(1e3*60*60*24))*8}const Te=e.task.progress||0,ze=Math.round(Ce*Te/100);return{total:Ce,used:ze}}),Ft=i.computed(()=>!0),hA=()=>{const q=zt.value,me={};return q.nameLeft&&(me.left=q.nameLeft),q.namePosition&&(me.position=q.namePosition),q.nameTop&&(me.top=q.nameTop),me},lA=()=>{const q=zt.value,me={};return q.progressLeft&&(me.left=q.progressLeft),q.progressPosition&&(me.position=q.progressPosition),q.progressTop&&(me.top=q.progressTop),me},cA=()=>{const q=zt.value,me={};return q.avatarLeft&&(me.left=q.avatarLeft),q.avatarPosition&&(me.position=q.avatarPosition),me},xr=i.computed(()=>parseInt(Ae.value.width)-10<22),fr=i.computed(()=>({width:`${Math.min(l.value.resizeHandleWidth??5,15)}px`})),Cr=i.computed(()=>Math.min(l.value.resizeHandleWidth??5,15)),Er=(q,me,Ce)=>{var ze;let Te=0;for(const Ie of me)if(Ce===qe.DAY){const Xe=Ie.days||[];for(let Ye=0;Ye<Xe.length;Ye++){const st=Xe[Ye],vt=new Date(st.date);if(vt.getFullYear()===q.getFullYear()&&vt.getMonth()===q.getMonth()&&vt.getDate()===q.getDate())return Te+Ye*30}Te+=Xe.length*30}else if(Ce===qe.QUARTER){const Xe=Ie.quarters||[];for(const Ye of Xe){const st=new Date(Ye.startDate),vt=new Date(Ye.endDate);if(q>=st&&q<=vt){const nr=60/Math.ceil((vt.getTime()-st.getTime())/864e5),Kt=Math.ceil((q.getTime()-st.getTime())/(1e3*60*60*24));return Te+Kt*nr}Te+=60}}else if(Ce===qe.WEEK){const Xe=Ie.weeks||[];for(const Ye of Xe){const st=new Date(Ye.weekStart),vt=new Date(Ye.weekEnd);if(q>=st&&q<=vt){const tr=Ye.subDays||[],nr=60/7;for(let Gt=0;Gt<tr.length;Gt++){const Rt=tr[Gt],pr=new Date(Rt.date);if(pr.getFullYear()===q.getFullYear()&&pr.getMonth()===q.getMonth()&&pr.getDate()===q.getDate())return Te+Gt*nr}const Kt=q.getDay();return Te+Kt*nr}Te+=60}}else if(Ce===qe.MONTH){const Xe=new Date(Ie.startDate),Ye=new Date(Ie.endDate);if(q>=Xe&&q<=Ye){const qt=60/(((ze=Ie.monthData)==null?void 0:ze.dayCount)||30),tr=q.getDate();return Te+(tr-1)*qt}Te+=60}else if(Ce===qe.YEAR){const Xe=Ie.halfYears||[];for(const Ye of Xe){const st=new Date(Ye.startDate),vt=new Date(Ye.endDate);if(q>=st&&q<=vt){const nr=180/Math.ceil((vt.getTime()-st.getTime())/864e5),Kt=Math.ceil((q.getTime()-st.getTime())/(1e3*60*60*24));return Te+Kt*nr}Te+=180}}return Ce===qe.WEEK?(console.warn("[Gantt Debug] 周视图定位失败,任务日期未找到 week 匹配,返回 -1",{targetDate:q}),-1):Te},gA=(q,me,Ce)=>{var ze;if(!me)return null;let Te=0;if(Ce===qe.DAY)for(const Ie of me){const Xe=Ie.days||[],Ye=Xe.length*30;if(q>=Te&&q<Te+Ye){const st=q-Te,vt=Math.floor(st/30);if(vt>=0&&vt<Xe.length)return new Date(Xe[vt].date)}Te+=Ye}else if(Ce===qe.MONTH)for(const Ie of me){if(q>=Te&&q<Te+60){const Ye=q-Te,st=((ze=Ie.monthData)==null?void 0:ze.dayCount)||30,vt=60/st,qt=Math.floor(Ye/vt),tr=Math.min(qt+1,st);return new Date(Ie.year,Ie.month-1,tr)}Te+=60}else if(Ce===qe.QUARTER)for(const Ie of me){const Xe=Ie.quarters||[];for(const Ye of Xe){const st=new Date(Ye.startDate),vt=new Date(Ye.endDate),qt=60;if(q>=Te&&q<Te+qt){const tr=q-Te,nr=Math.ceil((vt.getTime()-st.getTime())/(1e3*60*60*24)),Kt=qt/nr,Gt=Math.floor(tr/Kt),Rt=new Date(st);return Rt.setDate(Rt.getDate()+Gt),Rt}Te+=qt}}else if(Ce===qe.YEAR)for(const Ie of me){const Xe=Ie.halfYears||[];for(const Ye of Xe){const st=new Date(Ye.startDate),vt=new Date(Ye.endDate),qt=180;if(q>=Te&&q<Te+qt){const tr=q-Te,nr=Math.ceil((vt.getTime()-st.getTime())/(1e3*60*60*24)),Kt=qt/nr,Gt=Math.floor(tr/Kt),Rt=new Date(st);return Rt.setDate(Rt.getDate()+Gt),Rt}Te+=qt}}return null},uA=i.ref(!1),Br=i.ref({x:0,y:0}),tA=i.computed(()=>e.task);function pA(q){if(e.isHighlighted||e.isPrimaryHighlight){q.preventDefault();return}if(window.dispatchEvent(new CustomEvent("close-all-taskbar-menus")),e.task.type!=="task"&&e.task.type!=="story"){q.preventDefault(),uA.value=!1;return}q.preventDefault(),uA.value=!0,Br.value={x:q.clientX,y:q.clientY}}function Rr(){uA.value=!1}const vA=(q,me)=>{r("delete",q,me),Rr()},ln=q=>{r("delete-link",q),Rr()},Ct=q=>{r("link-drag-start",q)},Be=q=>{r("link-drag-move",q)},$=q=>{r("link-drag-end",q)},de=q=>{const me={clientX:q.x,clientY:q.y};Ct({task:e.task,type:q.type,mouseEvent:me})},Ke=q=>{Be({mouseX:q.x,mouseY:q.y})},rt=q=>{$({task:e.task,type:q.type})};return i.onMounted(()=>{window.addEventListener("close-all-taskbar-menus",Rr)}),i.onUnmounted(()=>{window.removeEventListener("close-all-taskbar-menus",Rr),ht!==null&&(clearTimeout(ht),ht=null)}),(q,me)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[Fe.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"barRef",ref:I,class:i.normalizeClass(["task-bar",{dragging:F.value,resizing:E.value||k.value,completed:tt.value,"parent-task":q.isParent,"week-view":De.value,"short-task-bar":pe.value,"overflow-effect":ge.value,highlighted:q.isHighlighted,"primary-highlight":q.isPrimaryHighlight,dimmed:lt.value}]),"data-task-id":q.task.id,style:i.normalizeStyle({...Ae.value,backgroundColor:Pe.value.bgColor,borderColor:Pe.value.borderColor,color:Pe.value.color,cursor:tt.value||q.isParent?"default":"move","--row-height":`${q.rowHeight}px`,"--handle-width":`${Cr.value}px`}),onClick:Bt,onContextmenu:pA,onDblclick:pt,onMouseenter:me[7]||(me[7]=Ce=>N.value=!0),onMouseleave:me[8]||(me[8]=Ce=>N.value=!1)},[q.isParent?(i.openBlock(),i.createElementBlock("div",O4,[s.value?i.renderSlot(q.$slots,"custom-task-content",i.normalizeProps(i.mergeProps({key:0},Ze.value)),void 0,!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(q.task.name)+" ("+i.toDisplayString(q.task.progress||0)+"%) ",1)],64))])):i.createCommentVNode("",!0),!q.isParent&&q.task.progress&&q.task.progress>0?(i.openBlock(),i.createElementBlock("div",{key:1,class:"progress-bar",style:i.normalizeStyle({width:Q.value,backgroundColor:Pe.value.color})},null,4)):i.createCommentVNode("",!0),!tt.value&&!q.isParent&&!B.value&&e.allowDragAndResize!==!1&&!q.isHighlighted&&!q.isPrimaryHighlight?(i.openBlock(),i.createElementBlock("div",{key:2,class:"resize-handle resize-handle-left",style:i.normalizeStyle(fr.value),onMousedown:me[0]||(me[0]=Ce=>Ee(Ce,"resize-left"))},null,36)):i.createCommentVNode("",!0),q.isParent?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:3,class:"task-bar-content",style:i.normalizeStyle({cursor:B.value||e.allowDragAndResize===!1||q.isHighlighted||q.isPrimaryHighlight?"grab":"move"}),onMousedown:me[1]||(me[1]=Ce=>{q.isHighlighted||q.isPrimaryHighlight||B.value||e.allowDragAndResize===!1||Ee(Ce,"drag")})},[l.value.showAvatar?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["task-avatar",{"avatar-outside":xr.value,"avatar-default":!q.task.avatar}]),style:i.normalizeStyle(cA())},[q.task.avatar?(i.openBlock(),i.createElementBlock("img",{key:0,src:q.task.avatar,alt:q.task.assignee||"avatar"},null,8,R4)):q.task.assigneeName?(i.openBlock(),i.createElementBlock("span",H4,i.toDisplayString(q.task.assigneeName.charAt(0).toUpperCase()),1)):(i.openBlock(),i.createElementBlock("svg",P4,me[9]||(me[9]=[i.createElementVNode("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",fill:"currentColor"},null,-1)])))],6)):i.createCommentVNode("",!0),l.value.showTitle?(i.openBlock(),i.createElementBlock("div",{key:1,ref_key:"taskBarNameRef",ref:W,style:i.normalizeStyle(hA())},[s.value?i.renderSlot(q.$slots,"custom-task-content",i.normalizeProps(i.mergeProps({key:0},Ze.value)),void 0,!0):(i.openBlock(),i.createElementBlock("div",V4,i.toDisplayString(q.task.name),1))],4)):i.createCommentVNode("",!0),l.value.showProgress&&Ft.value?(i.openBlock(),i.createElementBlock("div",{key:2,class:"task-progress",style:i.normalizeStyle(lA())},i.toDisplayString(q.task.progress||0)+"% ",5)):i.createCommentVNode("",!0)],36)),!tt.value&&!q.isParent&&!B.value&&e.allowDragAndResize!==!1&&!q.isHighlighted&&!q.isPrimaryHighlight?(i.openBlock(),i.createElementBlock("div",{key:4,class:"resize-handle resize-handle-right",style:i.normalizeStyle(fr.value),onMousedown:me[2]||(me[2]=Ce=>Ee(Ce,"resize-right"))},null,36)):i.createCommentVNode("",!0),!q.isParent&&!q.isInHighlightMode?(i.openBlock(),i.createBlock(jv,{key:5,type:"predecessor","task-id":q.task.id,visible:N.value,"is-drag-source":q.isLinkDragSource&&q.dragLinkMode==="predecessor","is-drag-target":q.isValidLinkTarget||q.isInvalidLinkTarget,"is-valid-target":q.isValidLinkTarget,"global-dragging":!!q.dragLinkMode,onDragStart:de,onDragMove:Ke,onDragEnd:rt},null,8,["task-id","visible","is-drag-source","is-drag-target","is-valid-target","global-dragging"])):i.createCommentVNode("",!0),!q.isParent&&!q.isInHighlightMode?(i.openBlock(),i.createBlock(jv,{key:6,type:"successor","task-id":q.task.id,visible:N.value,"is-drag-source":q.isLinkDragSource&&q.dragLinkMode==="successor","is-drag-target":q.isValidLinkTarget||q.isInvalidLinkTarget,"is-valid-target":q.isValidLinkTarget,"global-dragging":!!q.dragLinkMode,onDragStart:de,onDragMove:Ke,onDragEnd:rt},null,8,["task-id","visible","is-drag-source","is-drag-target","is-valid-target","global-dragging"])):i.createCommentVNode("",!0),_t.value.show&&!q.isParent?(i.openBlock(),i.createElementBlock("div",{key:7,class:i.normalizeClass(["bubble-indicator",[`bubble-${_t.value.side}`,`bubble-animation-${_t.value.animationType}`]]),style:i.normalizeStyle({left:_t.value.left,backgroundColor:_t.value.color,borderColor:_t.value.color}),onMouseenter:i.withModifiers(wt,["stop"]),onMouseleave:i.withModifiers(Qt,["stop"]),onMousedown:i.withModifiers(Tt,["stop"]),onClick:i.withModifiers(_e,["stop"])},null,38)):i.createCommentVNode("",!0),i.createVNode(Ay,{visible:uA.value,task:tA.value,position:Br.value,"all-tasks":q.allTasks,onClose:Rr,onStartTimer:me[3]||(me[3]=Ce=>q.$emit("start-timer",e.task)),onStopTimer:me[4]||(me[4]=Ce=>q.$emit("stop-timer",e.task)),onAddPredecessor:me[5]||(me[5]=Ce=>q.$emit("add-predecessor",e.task)),onAddSuccessor:me[6]||(me[6]=Ce=>q.$emit("add-successor",e.task)),onDelete:vA,onDeleteLink:ln},null,8,["visible","task","position","all-tasks"])],46,M4)):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[Ut.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"task-tooltip",style:i.normalizeStyle({left:`${Lt.value.x}px`,top:`${Lt.value.y}px`})},[me[10]||(me[10]=i.createElementVNode("div",{class:"tooltip-arrow"},null,-1)),i.createElementVNode("div",K4,i.toDisplayString(q.task.name),1),i.createElementVNode("div",q4,[i.createElementVNode("div",j4,[i.createElementVNode("span",W4,i.toDisplayString(o("startDate"))+":",1),i.createElementVNode("span",G4,i.toDisplayString(gr(q.task.startDate)),1)]),i.createElementVNode("div",Y4,[i.createElementVNode("span",z4,i.toDisplayString(o("endDate"))+":",1),i.createElementVNode("span",$4,i.toDisplayString(gr(q.task.endDate)),1)]),i.createElementVNode("div",X4,[i.createElementVNode("span",J4,i.toDisplayString(o("estimatedHours"))+":",1),i.createElementVNode("span",Z4,i.toDisplayString(Or.value.total)+"h",1)]),i.createElementVNode("div",eF,[i.createElementVNode("span",tF,i.toDisplayString(o("actualHours"))+":",1),i.createElementVNode("span",rF,i.toDisplayString(Or.value.used)+"h",1)]),i.createElementVNode("div",AF,[i.createElementVNode("span",nF,i.toDisplayString(o("progress"))+":",1),i.createElementVNode("span",aF,i.toDisplayString(q.task.progress||0)+"%",1)])])],4)):i.createCommentVNode("",!0)])),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[Ve.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"drag-tooltip",style:i.normalizeStyle({left:`${Re.value.x}px`,top:`${Re.value.y}px`})},[i.createElementVNode("div",iF,[i.createElementVNode("div",sF,[i.createElementVNode("span",oF,i.toDisplayString(o("startDate"))+":",1),i.createElementVNode("span",lF,i.toDisplayString(gr($e.value.startDate)),1)]),i.createElementVNode("div",cF,[i.createElementVNode("span",uF,i.toDisplayString(o("endDate"))+":",1),i.createElementVNode("span",fF,i.toDisplayString(gr($e.value.endDate)),1)])])],4)):i.createCommentVNode("",!0)]))],64))}}),iy=sn(pF,[["__scopeId","data-v-d1be80c8"]]),vF=["title"],mF={key:0,transform:"rotate(45 16 16)"},wF=["fill","stroke"],BF={key:1},yF={key:2,transform:"rotate(45 16 16)"},bF=["fill","stroke"],CF={key:1,class:"milestone-label milestone-label-right"},EF={class:"tooltip-content"},FF=i.defineComponent({__name:"MilestonePoint",props:{date:{},milestone:{},name:{},rowHeight:{},dayWidth:{},startDate:{},timelineStart:{},timelineEnd:{},scrollLeft:{},containerWidth:{},milestoneId:{},otherMilestones:{},currentTimeScale:{},timelineData:{},periodWidth:{},isInHighlightMode:{type:Boolean},allowDragAndResize:{type:Boolean}},emits:["milestone-double-click","update:milestone","drag-end"],setup(A,{emit:t}){const e=A,r=t,{getTranslation:n}=ea(),a=Z=>n(Z),o=i.ref(!1),s=i.ref(0),l=i.ref(0),c=i.ref(null),u=Z=>{if(Z.preventDefault(),Z.stopPropagation(),!(O.value.isSticky||O.value.isPushedOut||!O.value.showIcon))if(o.value=!1,c.value=null,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",B),e.milestone)r("milestone-double-click",e.milestone);else{const ee={name:e.name||"里程碑",startDate:e.date,type:"milestone"};r("milestone-double-click",ee)}},h=(Z,ee)=>{const X=new Date(Z);return X.setDate(X.getDate()+ee),X},p=Z=>{const ee=Z.getFullYear(),X=String(Z.getMonth()+1).padStart(2,"0"),re=String(Z.getDate()).padStart(2,"0");return`${ee}-${X}-${re}`},f=(Z,ee,X)=>{var se;if(!ee)return null;let re=0;if(X===qe.DAY)for(const x of ee){const I=x.days||[],W=I.length*30;if(Z>=re&&Z<re+W){const z=Z-re,Ae=Math.floor(z/30);if(Ae>=0&&Ae<I.length)return new Date(I[Ae].date)}re+=W}else if(X===qe.MONTH)for(const x of ee){if(Z>=re&&Z<re+60){const W=Z-re,z=((se=x.monthData)==null?void 0:se.dayCount)||30,Ae=60/z,he=Math.floor(W/Ae),fe=Math.min(he+1,z);return new Date(x.year,x.month-1,fe)}re+=60}else if(X===qe.QUARTER)for(const x of ee){const I=x.quarters||[];for(const W of I){const z=new Date(W.startDate),Ae=new Date(W.endDate),he=60;if(Z>=re&&Z<re+he){const fe=Z-re,ce=Math.ceil((Ae.getTime()-z.getTime())/(1e3*60*60*24)),Fe=he/ce,Pe=Math.floor(fe/Fe),Ze=new Date(z);return Ze.setDate(Ze.getDate()+Pe),Ze}re+=he}}return null},v=Z=>{e.allowDragAndResize===!1||e.currentTimeScale===qe.YEAR||O.value.isSticky||O.value.isPushedOut||!O.value.showIcon||(Z.preventDefault(),Z.stopPropagation(),!document.querySelector(".timeline"))||(s.value=Z.clientX,l.value=parseInt(k.value.left),c.value=null,window.addEventListener("timeline-auto-scroll",w),document.addEventListener("mousemove",b),document.addEventListener("mouseup",B))},w=Z=>{const{scrollDelta:ee}=Z.detail;o.value&&(s.value-=ee)},b=Z=>{window.dispatchEvent(new CustomEvent("drag-boundary-check",{detail:{mouseX:Z.clientX,isDragging:o.value}}));const ee=Z.clientX-s.value;if(Math.abs(ee)>3){o.value=!0;const X=Math.max(0,l.value+ee);let re;if(e.currentTimeScale===qe.MONTH||e.currentTimeScale===qe.QUARTER||e.currentTimeScale===qe.DAY)if(e.timelineData&&e.currentTimeScale){const se=f(X,e.timelineData,e.currentTimeScale);se?re=se:re=h(e.startDate,X/e.dayWidth)}else re=h(e.startDate,X/e.dayWidth);else re=h(e.startDate,X/e.dayWidth);c.value={startDate:p(re)}}},B=()=>{if(window.dispatchEvent(new CustomEvent("drag-boundary-check",{detail:{mouseX:0,isDragging:!1}})),o.value&&c.value&&e.milestone){const Z={...e.milestone,...c.value};r("update:milestone",Z),r("drag-end",Z)}window.removeEventListener("timeline-auto-scroll",w),o.value=!1,c.value=null,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",B)},F=Z=>{if(Z.preventDefault(),Z.stopPropagation(),o.value||O.value.isPushedOut||!O.value.showIcon||O.value.isFullyVisible)return;const ee=e.containerWidth||0,X=parseInt(k.value.left)+12;if(ee>0){const re=Math.max(0,X-ee/2);window.dispatchEvent(new CustomEvent("milestone-click-locate",{detail:{scrollLeft:re,smooth:!0}}))}},E=i.computed(()=>e.isInHighlightMode===!0),k=i.computed(()=>{var se;const Z=((se=c.value)==null?void 0:se.startDate)||e.date,ee=xE(Z);if(!e.startDate||!ee||isNaN(ee.getTime()))return{left:"0px",top:"0px",width:"auto",height:"auto"};let X=0,re=24;return e.currentTimeScale===qe.YEAR||e.currentTimeScale===qe.QUARTER?re=Math.min(e.rowHeight,24):e.currentTimeScale===qe.MONTH?re=Math.min(e.rowHeight,20):e.currentTimeScale===qe.WEEK?re=Math.min(e.rowHeight,Math.max(e.dayWidth*.8,16),24):re=Math.min(e.rowHeight,e.dayWidth*1.2,24),e.currentTimeScale===qe.HOUR?X=oe(ee,e.startDate)-re/2:e.timelineData&&e.currentTimeScale&&(e.currentTimeScale===qe.WEEK||e.currentTimeScale===qe.MONTH||e.currentTimeScale===qe.DAY||e.currentTimeScale===qe.QUARTER||e.currentTimeScale===qe.YEAR)?X=le(ee,e.timelineData,e.currentTimeScale)-re/2:X=Math.floor((ee.getTime()-e.startDate.getTime())/864e5)*e.dayWidth+e.dayWidth/2-re/2,{left:`${X}px`,top:`${(e.rowHeight-re)/2}px`,width:"auto",height:"auto"}}),P=i.computed(()=>"var(--gantt-danger, #f56c6c)"),j=i.computed(()=>"var(--gantt-danger-light, #fab6b6)"),M=i.computed(()=>{var Z;return((Z=e.milestone)==null?void 0:Z.icon)||"diamond"}),O=i.computed(()=>{const Z=e.scrollLeft||0,ee=e.containerWidth||0;if(!ee||ee<=0)return{showIcon:!0,showLabel:!0,isSticky:!1,stickyPosition:"none",iconLeft:"0px",isPushedOut:!1,clipPath:"none",isFullyVisible:!0};const X=parseInt(k.value.left)+12,re=Z,se=Z+ee,x=24,I=X-x/2,W=X+x/2,z=e.milestoneId,Ae=I>=re&&W<=se,he=e.otherMilestones||[];if(W<=re+x/2){const fe=he.filter(ce=>ce.id!==z&&ce.stickyPosition==="left"&&ce.isSticky);if(fe.length>0){const ce=parseInt(k.value.left)+12;if(fe.some(Pe=>Pe.originalLeft>ce))return{showIcon:!1,showLabel:!1,isSticky:!1,stickyPosition:"none",iconLeft:"0px",isPushedOut:!0,clipPath:"none",isFullyVisible:!1}}return{showIcon:!0,showLabel:!1,isSticky:!0,stickyPosition:"left",iconLeft:`${re-parseInt(k.value.left)-x/2}px`,isPushedOut:!1,clipPath:"polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%)",isFullyVisible:!1}}if(I>=se-x/2){const fe=he.filter(ce=>ce.id!==z&&ce.stickyPosition==="right"&&ce.isSticky);if(fe.length>0){const ce=parseInt(k.value.left)+12;if(fe.some(Pe=>Pe.originalLeft<ce))return{showIcon:!1,showLabel:!1,isSticky:!1,stickyPosition:"none",iconLeft:"0px",isPushedOut:!0,clipPath:"none",isFullyVisible:!1}}return{showIcon:!0,showLabel:!1,isSticky:!0,stickyPosition:"right",iconLeft:`${se-parseInt(k.value.left)-x/2}px`,isPushedOut:!1,clipPath:"polygon(0% 0%, 50% 0%, 50% 100%, 0% 100%)",isFullyVisible:!1}}return{showIcon:!0,showLabel:!0,isSticky:!1,stickyPosition:"none",iconLeft:"0px",isPushedOut:!1,clipPath:"none",isFullyVisible:Ae}}),L=i.ref(!1),R=i.ref({x:0,y:0}),S=Z=>{var ee;if(O.value.isSticky&&O.value.showIcon&&!O.value.isPushedOut){L.value=!0;const X=!e.milestone||((ee=e.milestone)==null?void 0:ee.icon)==="diamond"?-300:-270,re=O.value.stickyPosition==="left"?10:X;R.value={x:Z.clientX+re,y:Z.clientY-10}}},T=()=>{L.value=!1},G=Z=>{if(!Z)return a("dateNotSet");try{const ee=new Date(Z);if(isNaN(ee.getTime()))return a("dateNotSet");const X=ee.getFullYear(),re=String(ee.getMonth()+1).padStart(2,"0"),se=String(ee.getDate()).padStart(2,"0");return`${X}-${re}-${se}`}catch{return a("dateNotSet")}},N=i.computed(()=>{var X,re;const Z=e.name||((X=e.milestone)==null?void 0:X.name)||a("milestone"),ee=G(e.date||((re=e.milestone)==null?void 0:re.startDate)||"");return`${a("milestone")}:${Z} - ${a("targetDate")}:${ee}`});i.onUnmounted(()=>{o.value=!1,c.value=null,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",B)});const oe=(Z,ee)=>{const X=new Date(Z.getFullYear(),Z.getMonth(),Z.getDate()),re=new Date(ee.getFullYear(),ee.getMonth(),ee.getDate()),se=X.getTime()-re.getTime(),W=Math.floor(se/(1e3*60*60*24))*960,Ae=Z.getHours()*40,fe=Z.getMinutes()/60*40;return W+Ae+fe},le=(Z,ee,X)=>{var se;let re=0;for(const x of ee)if(X===qe.DAY){const I="days"in x&&x.days?x.days:[];for(let W=0;W<I.length;W++){const z=I[W],Ae=new Date(z.date);if(Ae.getFullYear()===Z.getFullYear()&&Ae.getMonth()===Z.getMonth()&&Ae.getDate()===Z.getDate())return re+W*30+15}re+=I.length*30}else if(X===qe.QUARTER){const I="quarters"in x&&x.quarters?x.quarters:[];for(const W of I){const z=new Date(W.startDate),Ae=new Date(W.endDate);if(Z>=z&&Z<=Ae){const ce=60/Math.ceil((Ae.getTime()-z.getTime())/864e5),Fe=Math.ceil((Z.getTime()-z.getTime())/(1e3*60*60*24));return re+Fe*ce+ce/2}re+=60}}else if(X===qe.YEAR){const I="halfYears"in x&&x.halfYears?x.halfYears:[];for(const W of I){const z=new Date(W.startDate),Ae=new Date(W.endDate);if(Z>=z&&Z<=Ae){const ce=180/Math.ceil((Ae.getTime()-z.getTime())/864e5),Fe=Math.ceil((Z.getTime()-z.getTime())/(1e3*60*60*24));return re+Fe*ce+ce/2}re+=180}}else if(X===qe.WEEK){const I="weeks"in x&&x.weeks?x.weeks:[];for(const W of I){const z=new Date(W.weekStart),Ae=new Date(W.weekEnd);if(Z>=z&&Z<=Ae){const fe=W.subDays||[],ce=60/7;for(let Ze=0;Ze<fe.length;Ze++){const tt=fe[Ze],lt=new Date(tt.date);if(lt.getFullYear()===Z.getFullYear()&&lt.getMonth()===Z.getMonth()&&lt.getDate()===Z.getDate())return re+Ze*ce+ce/2}const Fe=Z.getDay(),Pe=Fe===0?6:Fe-1;return re+Pe*ce+ce/2}re+=60}}else if(X===qe.MONTH){if(!("startDate"in x)||!("endDate"in x))continue;const I=new Date(x.startDate),W=new Date(x.endDate);if(Z>=I&&Z<=W){const he=60/("monthData"in x&&((se=x.monthData)==null?void 0:se.dayCount)||30),fe=Z.getDate();return re+(fe-1)*he+he/2}re+=60}return re};return(Z,ee)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{class:i.normalizeClass(["milestone",{dragging:o.value,"milestone-sticky":O.value.isSticky,"milestone-sticky-left":O.value.stickyPosition==="left","milestone-sticky-right":O.value.stickyPosition==="right","milestone-pushed-out":O.value.isPushedOut,dimmed:E.value}]),style:i.normalizeStyle(k.value),title:O.value.isSticky?"":e.name||"里程碑",onClick:i.withModifiers(F,["stop"])},[O.value.showIcon?(i.openBlock(),i.createElementBlock("svg",{key:0,width:24,height:24,viewBox:"0 0 24 24",style:i.normalizeStyle([{position:O.value.isSticky?"relative":"static",left:O.value.isSticky?O.value.iconLeft:"0px",clipPath:O.value.clipPath,zIndex:O.value.isSticky?200:120},{cursor:"pointer"}]),onMouseenter:S,onMouseleave:T,onClick:i.withModifiers(F,["stop"]),onDblclick:i.withModifiers(u,["stop"]),onMousedown:i.withModifiers(v,["stop"])},[M.value==="diamond"?(i.openBlock(),i.createElementBlock("g",mF,[i.createElementVNode("rect",{x:"4",y:"8",width:"15",height:"15",rx:"6",ry:"6",fill:P.value,stroke:j.value,"stroke-width":"2"},null,8,wF)])):M.value==="rocket"?(i.openBlock(),i.createElementBlock("g",BF,ee[0]||(ee[0]=[i.createElementVNode("foreignObject",{x:"0",y:"0",width:"24",height:"24"},[i.createElementVNode("div",{class:"rocket-emoji"},"🚀")],-1)]))):(i.openBlock(),i.createElementBlock("g",yF,[i.createElementVNode("rect",{x:"4",y:"8",width:"15",height:"15",rx:"6",ry:"6",fill:P.value,stroke:j.value,"stroke-width":"2"},null,8,bF)]))],36)):i.createCommentVNode("",!0),e.name&&O.value.showLabel?(i.openBlock(),i.createElementBlock("span",CF,i.toDisplayString(e.name),1)):i.createCommentVNode("",!0)],14,vF),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[L.value&&O.value.isSticky?(i.openBlock(),i.createElementBlock("div",{key:0,class:"milestone-tooltip",style:i.normalizeStyle({left:`${R.value.x}px`,top:`${R.value.y}px`})},[i.createElementVNode("div",EF,i.toDisplayString(N.value),1)],4)):i.createCommentVNode("",!0)]))],64))}}),vg=sn(FF,[["__scopeId","data-v-0427278d"]]);class sy{constructor(){kr(this,"cachedCtx",null);kr(this,"cachedWidth",0);kr(this,"cachedHeight",0);kr(this,"isUniApp",!1);this.isUniApp=typeof window<"u"&&!!window.uni}get isUniAppEnvironment(){return this.isUniApp}getContext(t){const{canvas:e,canvasId:r,width:n,height:a,contextOptions:o}=t;if(!this.cachedCtx||this.cachedWidth!==n||this.cachedHeight!==a){let s=null;if(this.isUniApp&&window.uni)s=window.uni.createCanvasContext(r);else{if(!e)return null;const l=window.devicePixelRatio||1;if(s=e.getContext("2d",o||{alpha:!0}),!s)return null;const c=n*l,u=a*l;e.width=c,e.height=u,s.scale(l,l)}if(!s)return null;this.cachedCtx=s,this.cachedWidth=n,this.cachedHeight=a}return this.cachedCtx}clear(t,e){this.cachedCtx&&this.cachedCtx.clearRect(0,0,t,e)}draw(){var t;this.isUniApp&&((t=this.cachedCtx)!=null&&t.draw)&&this.cachedCtx.draw()}reset(){this.cachedCtx=null,this.cachedWidth=0,this.cachedHeight=0}}const kF=i.defineComponent({__name:"GanttLinks",props:{tasks:{},taskBarPositions:{},width:{},height:{},offsetLeft:{default:0},offsetTop:{default:0},highlightedTaskId:{},highlightedTaskIds:{},hoveredTaskId:{},verticalLines:{default:()=>[]},showVerticalLines:{type:Boolean,default:!0}},setup(A,{expose:t}){const e=A,r=i.ref(null),n=new sy;let a=null,o=!1,s=null;const l=i.ref(document.documentElement.getAttribute("data-theme")==="dark"),c=()=>{l.value=document.documentElement.getAttribute("data-theme")==="dark",p()},u=()=>{const f=n.getContext({canvas:r.value,canvasId:"gantt-link-canvas",width:e.width,height:e.height,contextOptions:{alpha:!0}});if(!f){console.error("❌ Canvas context 获取失败,可能是尺寸超限");return}const v=e.width,w=e.height;if(f.clearRect(0,0,v,w),e.showVerticalLines&&e.verticalLines&&e.verticalLines.length>0){f.save();const R=l.value?"#66b1ff":"#409eff";f.strokeStyle=R,f.lineWidth=1,f.beginPath();for(const S of e.verticalLines){const T=S.left-e.offsetLeft;T>=0&&T<=v&&(f.moveTo(T,0),f.lineTo(T,w))}f.stroke(),f.restore()}const b=new Set;for(const R of e.tasks)b.add(R.id);const B=e.highlightedTaskId!==null,F=e.offsetLeft,E=e.offsetLeft+v,k=e.offsetTop,P=e.offsetTop+w,j=[],M=[],O=[],L=[];for(const R of e.tasks){if(!R.predecessor||!e.taskBarPositions[R.id])continue;const S=ca(R.predecessor);for(const T of S){const G=e.taskBarPositions[T],N=e.taskBarPositions[R.id];if(!G||!N||!b.has(T))continue;const oe=e.highlightedTaskId===T,le=e.highlightedTaskId===R.id,Z=e.highlightedTaskIds.has(T),ee=e.highlightedTaskIds.has(R.id),X=Z&&ee,re=e.hoveredTaskId===T,se=e.hoveredTaskId===R.id,x=re||se,I=oe?-8:Z?-5:0,W=le?-8:ee?-5:0,z=G.left+G.width,Ae=G.top+G.height/2+I,he=N.left,fe=N.top+N.height/2+W,ce=Math.min(z,he),Fe=Math.max(z,he),Pe=Math.min(Ae,fe),Ze=Math.max(Ae,fe);if(Fe<F||ce>E||Ze<k||Pe>P)continue;const tt=z-e.offsetLeft,lt=Ae-e.offsetTop,Q=he-e.offsetLeft,De=fe-e.offsetTop,pe=Q-tt,ge=De-lt,Ee=Math.sqrt(pe*pe+ge*ge),xe=G.width,Qe=G.height,Oe=Math.abs(pe)/(Ee+1),Ve=20;let Re=Qe/2+Ve;Oe<.3?Re=Math.max(Qe/2+25,45):Oe<.6?Re=Qe/2+Ve:Re=xe/3+10;let $e=0;if(Math.abs(ge)>0){const Lt=Qe/2+12,Xt=Math.abs(ge)-Qe,Et=Math.min(Xt*.5,100);$e=Math.max(Lt,Et)}else $e=0;const gt=Oe<.3?.4:.8,mt=tt+Re,ht=lt+(ge>0?$e:-$e)*gt,Bt=Q-Re,pt=De-(ge>0?$e:-$e)*gt,zt=Math.atan2(De-pt,Q-Bt),_t={x1:tt,y1:lt,x2:Q,y2:De,c1x:mt,c1y:ht,c2x:Bt,c2y:pt,arrowAngle:zt};X?j.push(_t):x?M.push(_t):B?L.push(_t):O.push(_t)}}if(f.setLineDash([6,4]),j.length>0){f.strokeStyle="#409eff",f.fillStyle="#409eff",f.lineWidth=4,f.globalAlpha=1,f.beginPath();for(const R of j)f.moveTo(R.x1,R.y1),f.bezierCurveTo(R.c1x,R.c1y,R.c2x,R.c2y,R.x2,R.y2);f.stroke();for(const R of j)h(f,R.x2,R.y2,R.arrowAngle)}if(M.length>0){f.strokeStyle="#67c23a",f.fillStyle="#67c23a",f.lineWidth=3,f.globalAlpha=1,f.beginPath();for(const R of M)f.moveTo(R.x1,R.y1),f.bezierCurveTo(R.c1x,R.c1y,R.c2x,R.c2y,R.x2,R.y2);f.stroke();for(const R of M)h(f,R.x2,R.y2,R.arrowAngle)}if(O.length>0){f.strokeStyle="#c0c4cc",f.fillStyle="#c0c4cc",f.lineWidth=2,f.globalAlpha=1,f.beginPath();for(const R of O)f.moveTo(R.x1,R.y1),f.bezierCurveTo(R.c1x,R.c1y,R.c2x,R.c2y,R.x2,R.y2);f.stroke();for(const R of O)h(f,R.x2,R.y2,R.arrowAngle)}if(L.length>0){f.strokeStyle="#c0c4cc",f.fillStyle="#c0c4cc",f.lineWidth=2,f.globalAlpha=.2,f.beginPath();for(const R of L)f.moveTo(R.x1,R.y1),f.bezierCurveTo(R.c1x,R.c1y,R.c2x,R.c2y,R.x2,R.y2);f.stroke();for(const R of L)h(f,R.x2,R.y2,R.arrowAngle);f.globalAlpha=1}n.draw()},h=(f,v,w,b)=>{f.beginPath(),f.moveTo(v,w),f.lineTo(v-8*Math.cos(b)-4*Math.sin(b),w-8*Math.sin(b)+4*Math.cos(b)),f.lineTo(v-8*Math.cos(b)+4*Math.sin(b),w-8*Math.sin(b)-4*Math.cos(b)),f.closePath(),f.fill()},p=()=>{o||(o=!0,a!==null&&cancelAnimationFrame(a),a=requestAnimationFrame(()=>{o=!1,a=null,u()}))};return i.watch([()=>e.taskBarPositions,()=>e.tasks,()=>e.highlightedTaskId,()=>e.highlightedTaskIds,()=>e.hoveredTaskId,()=>e.width,()=>e.height,()=>e.verticalLines,()=>e.showVerticalLines,()=>e.offsetLeft,()=>e.offsetTop],()=>{p()},{deep:!1}),i.onMounted(()=>{s=new MutationObserver(f=>{for(const v of f)if(v.attributeName==="data-theme"){c();break}}),s.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),i.nextTick(()=>{u()})}),i.onUnmounted(()=>{s&&(s.disconnect(),s=null),a!==null&&(cancelAnimationFrame(a),a=null)}),t({redraw:u}),(f,v)=>(i.openBlock(),i.createElementBlock("canvas",{ref_key:"canvasRef",ref:r,"canvas-id":"gantt-link-canvas",class:"gantt-links-canvas",type:"2d",hidpi:!0,style:i.normalizeStyle({position:"absolute",left:`${f.offsetLeft}px`,top:`${f.offsetTop}px`,width:`${f.width}px`,height:`${f.height}px`,zIndex:f.highlightedTaskId!==null?1001:25,pointerEvents:"none"})},null,4))}}),xF=sn(kF,[["__scopeId","data-v-3f872d3f"]]),SF=i.defineComponent({__name:"LinkDragGuide",props:{active:{type:Boolean},width:{},height:{},offsetLeft:{default:0},offsetTop:{default:0}},setup(A,{expose:t}){const e=A,r=i.ref(null),n=new sy,a=()=>n.getContext({canvas:r.value,canvasId:"link-drag-guide-canvas",width:e.width,height:e.height,contextOptions:{alpha:!0,willReadFrequently:!1}}),o=(l,c,u,h,p=!0,f="")=>{const v=a();if(!v){console.error("[LinkDragGuide] initCanvas returned null");return}const w=e.width,b=e.height;v.clearRect(0,0,w,b);const B=l-e.offsetLeft,F=c-e.offsetTop,E=u-e.offsetLeft,k=h-e.offsetTop,P=100;if(!((B>=-P||E>=-P)&&(B<=w+P||E<=w+P)&&(F>=-P||k>=-P)&&(F<=b+P||k<=b+P)))return;v.save();const M=p?"#67c23a":"#f56c6c";v.strokeStyle=M,v.lineWidth=3,v.globalAlpha=.8,v.beginPath(),v.moveTo(B,F),v.lineTo(E,k),v.stroke();const O=Math.atan2(k-F,E-B),L=8,R=4;if(v.fillStyle=M,v.globalAlpha=1,v.beginPath(),v.moveTo(E,k),v.lineTo(E-L*Math.cos(O)-R*Math.sin(O),k-L*Math.sin(O)+R*Math.cos(O)),v.lineTo(E-L*Math.cos(O)+R*Math.sin(O),k-L*Math.sin(O)-R*Math.cos(O)),v.closePath(),v.fill(),!p&&f){const S=(B+E)/2,T=(F+k)/2-10;v.font="12px Arial, sans-serif";const N=v.measureText(f).width,oe=8;v.fillStyle="rgba(0, 0, 0, 0.75)",v.fillRect(S-N/2-oe,T-12,N+oe*2,24),v.fillStyle="#ffffff",v.textAlign="center",v.textBaseline="middle",v.fillText(f,S,T)}v.restore(),n.draw()},s=()=>{n.clear(e.width,e.height)};return i.watch([()=>e.width,()=>e.height],()=>{n.reset()}),i.watch(()=>e.active,l=>{l||n.reset()}),i.onUnmounted(()=>{n.reset()}),t({draw:o,clear:s}),(l,c)=>l.active?(i.openBlock(),i.createElementBlock("canvas",{key:0,ref_key:"canvasRef",ref:r,"canvas-id":"link-drag-guide-canvas",class:"link-drag-guide-canvas",type:"2d",hidpi:!0,style:i.normalizeStyle({position:"absolute",left:`${l.offsetLeft}px`,top:`${l.offsetTop}px`,width:`${l.width}px`,height:`${l.height}px`,zIndex:1002,pointerEvents:"none"})},null,4)):i.createCommentVNode("",!0)}}),TF=sn(SF,[["__scopeId","data-v-06dab396"]]);performance.now();const UF={class:"timeline-header"},DF={class:"timeline-header-row year-row"},QF={class:"year-label"},LF={class:"timeline-header-row half-years-row"},IF={class:"half-year-label"},NF={class:"timeline-header-row year-row"},_F={class:"year-label"},MF={class:"timeline-header-row months-row"},OF={class:"month-label"},RF={class:"timeline-header-row year-row"},HF={class:"year-label"},PF={class:"timeline-header-row quarters-row"},VF={class:"quarter-label"},KF={class:"timeline-header-row date-row"},qF={class:"date-label"},jF={class:"timeline-header-row hours-row"},WF={class:"hour-label"},GF={class:"timeline-header-row year-month-row"},YF={class:"year-month-label"},zF={class:"flag-content"},$F={class:"timeline-header-row days-row"},XF={class:"week-label"},JF={class:"day-label"},ZF=["onMouseenter"],ek=200,tk=8,rk=4,Mu=40,Wv=10,Gv=51,Yv=5,Ul=5e3,Ak=5e3,zv=50,$v=5,nk=i.defineComponent({__name:"Timeline",props:{tasks:{default:()=>[]},milestones:{default:()=>[]},startDate:{},endDate:{},useDefaultDrawer:{type:Boolean,default:!0},useDefaultMilestoneDialog:{type:Boolean,default:!0},onTaskDelete:{type:Function,default:void 0},onTaskUpdate:{type:Function,default:void 0},onMilestoneDelete:{type:Function,default:void 0},onMilestoneUpdate:{type:Function,default:void 0},onMilestoneSave:{type:Function,default:void 0},workingHours:{default:()=>({morning:{start:8,end:11},afternoon:{start:13,end:17}})},taskBarConfig:{default:void 0},allowDragAndResize:{type:Boolean,default:!0}},emits:["timeline-scale-changed","click-task","edit-task","milestone-double-click","start-timer","stop-timer","add-predecessor","add-successor","predecessor-added","successor-added","delete","link-deleted"],setup(A,{expose:t,emit:e}){const r=A,n=e,{formatYearMonth:a,formatMonth:o,getTranslation:s}=ea(),l=H=>s(H),c=(()=>{const H=new Date,te=new Date(H.getFullYear(),H.getMonth()-6,1),K=new Date(H.getFullYear(),H.getMonth()+6+1,0);return{startDate:te,endDate:K}})(),u=()=>c,h=i.computed(()=>r.startDate?new Date(r.startDate):u().startDate),p=i.computed(()=>r.endDate?new Date(r.endDate):u().endDate),f=i.ref({startDate:h.value,endDate:p.value,zoomLevel:1}),v=i.ref(qe.DAY);i.watch([h,p],([H,te])=>{(r.startDate||r.endDate)&&(Rt||(f.value.startDate=H,f.value.endDate=te))});const w=[],b=i.computed(()=>r.tasks??w),B=i.ref(null),F=i.ref(null),E=i.computed(()=>v.value===qe.HOUR?960:v.value===qe.WEEK?60/7:v.value===qe.MONTH?2:v.value===qe.QUARTER?60/90:v.value===qe.YEAR?360/365:30);let k=null;const P=()=>{k=null},j=()=>{if(!b.value||b.value.length===0)return null;const H=[],te=we=>{if(we.startDate&&H.push(new Date(we.startDate)),we.endDate&&H.push(new Date(we.endDate)),we.children&&we.children.length>0)for(const Ue of we.children)te(Ue)};for(const we of b.value)te(we);if(H.length===0)return null;let K=1/0,ue=-1/0;for(const we of H){const Ue=we.getTime();isNaN(Ue)||(Ue<K&&(K=Ue),Ue>ue&&(ue=Ue))}return K===1/0||ue===-1/0?null:{minDate:new Date(K),maxDate:new Date(ue)}},M=()=>k||(k=j(),k),O=()=>{const H=M(),te=je.value||1200,K=40;if(!H){const kt=new Date;kt.setHours(0,0,0,0);const bt=new Date(kt);bt.setDate(bt.getDate()-1);const ut=new Date(kt);return ut.setDate(ut.getDate()+1),ut.setHours(23,59,59,999),{startDate:bt,endDate:ut}}const{minDate:ue,maxDate:we}=H,Ue=new Date(ue);Ue.setHours(0,0,0,0),Ue.setDate(Ue.getDate()-1);const Ge=new Date(we);Ge.setHours(23,59,59,999),Ge.setDate(Ge.getDate()+1);const We=Math.ceil((Ge.getTime()-Ue.getTime())/(1e3*60*60));if(We*K<te){const kt=Math.ceil(te/K),bt=Math.ceil((kt-We)/2),ut=Math.ceil(bt/24);Ue.setDate(Ue.getDate()-ut),Ge.setDate(Ge.getDate()+ut)}return{startDate:Ue,endDate:Ge}},L=()=>{const H=M(),te=je.value||1200,K=30;if(!H){const kt=new Date,bt=Math.max(Math.ceil(te/K),60),ut=new Date(kt);ut.setDate(ut.getDate()-Math.floor(bt/2));const Mt=new Date(kt);return Mt.setDate(Mt.getDate()+Math.ceil(bt/2)),{startDate:ut,endDate:Mt}}const{minDate:ue,maxDate:we}=H;let Ue=new Date(ue);Ue.setDate(Ue.getDate()-30);let Ge=new Date(we);Ge.setDate(Ge.getDate()+30);const We=Math.ceil((Ge.getTime()-Ue.getTime())/(1e3*60*60*24));if(We*K<te){const kt=Math.ceil(te/K),bt=Math.ceil((kt-We)/2),ut=new Date(Ue);ut.setDate(ut.getDate()-bt),Ue=ut;const Mt=new Date(Ge);Mt.setDate(Mt.getDate()+bt),Ge=Mt}return{startDate:Ue,endDate:Ge}},R=()=>{const H=M(),te=je.value||1200,K=60;if(!H){const qr=new Date,Ir=Math.max(Math.ceil(te/K),20),Ur=new Date(qr);Ur.setDate(Ur.getDate()-Math.floor(Ir/2)*7);const jr=new Date(qr);return jr.setDate(jr.getDate()+Math.ceil(Ir/2)*7),{startDate:Ur,endDate:jr}}const{minDate:ue,maxDate:we}=H;function Ue(qr){const Ir=new Date(qr),Ur=Ir.getDay()||7;return Ir.setDate(Ir.getDate()-(Ur-1)),Ir}function Ge(qr,Ir){let Ur=1;for(;Ur<=31;){const jr=new Date(qr,Ir,Ur);if(jr.getMonth()!==Ir)break;const en=Ue(jr);if(en.getMonth()===Ir)return en;Ur++}return new Date(qr,Ir,1)}function We(qr,Ir){const Ur=new Date(qr,Ir+1,0).getDate();for(let jr=Ur;jr>=1;jr--){const en=new Date(qr,Ir,jr),GA=Ue(en);if(GA.getMonth()===Ir)return GA}return new Date(qr,Ir,1)}function ft(qr,Ir){const Ur=[],jr=Ge(qr,Ir),en=We(qr,Ir),GA=new Date(jr);for(;GA<=en;)Ur.push(new Date(GA)),GA.setDate(GA.getDate()+7);return Ur}const kt=Ue(ue),bt=kt.getFullYear(),ut=kt.getMonth(),Mt=ut===0?11:ut-1,Sr=ut===0?bt-1:bt,Tr=ft(Sr,Mt),jA=Ue(we),aA=jA.getFullYear(),fA=jA.getMonth(),wA=fA===11?0:fA+1,Hr=fA===11?aA+1:aA,Cn=ft(Hr,wA);let Xr=[];Xr.push(...Tr);let qn=bt,WA=ut;for(;qn<aA||qn===aA&&WA<=fA;){const qr=ft(qn,WA);Xr.push(...qr),WA++,WA>11&&(WA=0,qn++)}Xr.push(...Cn);let na=Xr.length*K;for(;na<te;){const qr=Xr[0],Ir=qr.getFullYear(),Ur=qr.getMonth(),jr=Ur===0?11:Ur-1,en=Ur===0?Ir-1:Ir;if(Xr=[...ft(en,jr),...Xr],na=Xr.length*K,na>=te)break;const Ba=Xr[Xr.length-1],yi=Ba.getFullYear(),Ra=Ba.getMonth(),dA=Ra===11?0:Ra+1,Qs=Ra===11?yi+1:yi,aa=ft(Qs,dA);Xr=[...Xr,...aa],na=Xr.length*K}const Xi=new Date(Xr[0]),Xa=new Date(Xr[Xr.length-1]);return Xa.setDate(Xa.getDate()+6),{startDate:Xi,endDate:Xa}},S=()=>{const H=M();if(!H){const bt=new Date,ut=new Date(bt.getFullYear()-1,0,1),Mt=new Date(bt.getFullYear()+1,11,31);return{startDate:ut,endDate:Mt}}const{minDate:te,maxDate:K}=H,ue=je.value||1200;let we=new Date(te.getFullYear()-1,0,1),Ue=new Date(K.getFullYear()+1,11,31);const We=(Ue.getFullYear()-we.getFullYear())*12+(Ue.getMonth()-we.getMonth()),ft=60;if(We*ft<ue){const bt=Math.ceil(ue/ft),ut=Math.ceil((bt-We)/2),Mt=new Date(we);Mt.setMonth(Mt.getMonth()-ut),we=new Date(Mt.getFullYear(),Mt.getMonth(),1);const Sr=new Date(Ue);Sr.setMonth(Sr.getMonth()+ut),Ue=new Date(Sr.getFullYear(),Sr.getMonth()+1,0)}return{startDate:we,endDate:Ue}},T=()=>{const H=M();if(!H){const We=new Date,ft=je.value||1200;let kt=3;v.value===qe.QUARTER?kt=Math.max(Math.ceil(ft/240)+1,5):v.value===qe.YEAR&&(kt=Math.max(Math.ceil(ft/360)+1,5));const bt=We.getFullYear()-Math.floor(kt/2),ut=bt+kt-1,Mt=new Date(bt,0,1),Sr=new Date(ut,11,31);return{startDate:Mt,endDate:Sr}}const{minDate:te,maxDate:K}=H,ue=je.value||1200;let we=new Date(te.getFullYear()-1,0,1),Ue=new Date(K.getFullYear()+1,11,31);const Ge=Ue.getFullYear()-we.getFullYear()+1;if(v.value===qe.QUARTER){if(Ge*240<ue){const bt=Math.ceil(ue/240),ut=Math.ceil((bt-Ge)/2);we=new Date(we.getFullYear()-ut,0,1),Ue=new Date(Ue.getFullYear()+ut,11,31)}}else if(v.value===qe.YEAR&&Ge*360<ue){const kt=Math.ceil(ue/360),bt=Math.ceil((kt-Ge)/2);we=new Date(we.getFullYear()-bt,0,1),Ue=new Date(Ue.getFullYear()+bt,11,31)}return{startDate:we,endDate:Ue}},G=i.ref(null),N=i.ref(null),oe=i.ref(new Set),le=i.computed(()=>N.value!==null),Z=()=>{N.value=null,oe.value.clear()},ee=H=>{N.value=H,oe.value.clear(),oe.value.add(H);const te=b.value.find(K=>K.id===H);if(te){if(te.predecessor){const K=ca(te.predecessor);for(const ue of K)oe.value.add(ue)}for(const K of b.value)K.predecessor&&ca(K.predecessor).includes(H)&&oe.value.add(K.id)}},X=i.ref(null),re=i.shallowRef(null),se=i.shallowRef(null),x=i.ref(!1),I=i.ref(""),W=i.ref(null);let z=!1,Ae="";const he=new Map,fe=H=>{X.value=H.type,re.value=H.task,Qe(H.mouseEvent.clientX,H.mouseEvent.clientY),se.value=null,x.value=!1,I.value="",at=null,z=!1,Ae="",pt(),document.addEventListener("mousemove",Q),document.addEventListener("mouseup",De)};let ce=null,Fe=0,Pe=0,Ze=0,tt=0;const lt=()=>{ce=null,Qe(Fe,Pe),gt(Fe,Pe),$r.value&&re.value&&$r.value.draw(Ut(),Lt(),Ze,tt,z,Ae)},Q=H=>{X.value&&(Fe=H.clientX,Pe=H.clientY,ce===null&&(ce=requestAnimationFrame(lt)))},De=()=>{X.value&&(ce!==null&&(cancelAnimationFrame(ce),ce=null),re.value&&Ve({task:re.value,type:X.value}))};let pe=null,ge=0,Ee=!1;const xe=(H,te)=>{if(!Lr.value){Ze=H,tt=te;return}const K=Date.now();(!pe||Ee||K-ge>ek)&&(pe=Lr.value.getBoundingClientRect(),ge=K,Ee=!1),Ze=H-pe.left,tt=te-pe.top},Qe=(H,te)=>{xe(H,te)},Oe=H=>{Fe=H.mouseX,Pe=H.mouseY,ce===null&&(ce=requestAnimationFrame(lt))},Ve=H=>{var te;pe=null,document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",De),zt(),(te=$r.value)==null||te.clear(),se.value&&x.value&&Bt(H.task,se.value,H.type),X.value=null,re.value=null,se.value=null,x.value=!1},Re=(H,te)=>{pe||(pe=Lr.value.getBoundingClientRect(),ge=Date.now());const K=H-pe.left,ue=te-pe.top,we=(tk+rk)/2,Ue=we+10;for(const Ge in ur.value){const We=ur.value[Ge],ft=Number(Ge);if(ue<We.top-Ue||ue>We.top+We.height+Ue)continue;const kt=We.top+We.height/2,bt=We.left;if(K>=bt-we&&K<=bt+we&&ue>=kt-we&&ue<=kt+we)return{taskId:ft,anchorType:"left"};const ut=We.left+We.width;if(K>=ut-we&&K<=ut+we&&ue>=kt-we&&ue<=kt+we)return{taskId:ft,anchorType:"right"}}return null},$e=(H,te)=>{const K=(at==null?void 0:at.id)??null,ue=(H==null?void 0:H.id)??null;if(K!==ue)if(at=H,H&&re.value){const we=mt(re.value,H,X.value,te);z=we.valid,Ae=we.error||"",x.value=we.valid,se.value=H}else z=!1,Ae="",x.value=!1,se.value=null};let at=null;const gt=(H,te)=>{if(!re.value||!Lr.value)return;const K=Re(H,te),ue=K!==null&&he.get(K.taskId)||null,we=K==null?void 0:K.anchorType;$e(ue,we)},mt=(H,te,K,ue)=>{if(ue){if(K==="predecessor"&&ue!=="right")return{valid:!1,error:"前置任务应连接到右侧触点"};if(K==="successor"&&ue!=="left")return{valid:!1,error:"后置任务应连接到左侧触点"}}if(H.id===te.id)return{valid:!1,error:"不能连接到自己"};if(te.isParent||te.type==="milestone")return{valid:!1,error:"不能连接到父级任务或里程碑"};if(K==="predecessor"){if(ht(te.id,H.id))return{valid:!1,error:"会产生循环依赖"}}else if(ht(H.id,te.id))return{valid:!1,error:"会产生循环依赖"};if(K==="predecessor"){if(H.predecessor&&ca(H.predecessor).includes(te.id))return{valid:!1,error:"关系已存在"}}else if(te.predecessor&&ca(te.predecessor).includes(H.id))return{valid:!1,error:"关系已存在"};return{valid:!0}},ht=(H,te)=>{const K=new Set,ue=[H];for(;ue.length>0;){const we=ue.shift();if(we===te)return!0;if(K.has(we))continue;K.add(we);const Ue=b.value.find(Ge=>Ge.id===we);if(Ue&&Ue.predecessor){const Ge=ca(Ue.predecessor);ue.push(...Ge)}}return!1},Bt=(H,te,K)=>{if(console.log("----> hello:",{mode:K,sourceTask:H,targetTask:te}),K==="predecessor"){const ue=H.predecessor?ca(H.predecessor):[];ue.includes(te.id)||(ue.push(te.id),H.predecessor=ue,Ln(H),n("predecessor-added",{targetTask:H,newTask:te}))}else{const ue=te.predecessor?ca(te.predecessor):[];ue.includes(H.id)||(ue.push(H.id),te.predecessor=ue,Ln(te),n("successor-added",{targetTask:te,newTask:H}))}},pt=()=>{W.value=window.setInterval(()=>{if(!B.value||!Lr.value)return;const H=B.value,te=In.value;if(!te)return;const K=H.getBoundingClientRect(),ue=80,we=15,Ue=Fe,Ge=Pe;let We=!1;if(Ue<K.left+ue&&H.scrollLeft>0)H.scrollLeft-=we,We=!0;else if(Ue>K.right-ue){const ft=H.scrollWidth-H.clientWidth;H.scrollLeft<ft&&(H.scrollLeft+=we,We=!0)}if(Ge<K.top+ue&&te.scrollTop>0)te.scrollTop-=we,We=!0;else if(Ge>K.bottom-ue){const ft=te.scrollHeight-te.clientHeight;te.scrollTop<ft&&(te.scrollTop+=we,We=!0)}We&&(Ee=!0,gt(Ue,Ge),$r.value&&re.value&&$r.value.draw(Ut(),Lt(),Ze,tt,z,Ae))},30)},zt=()=>{W.value!==null&&(clearInterval(W.value),W.value=null)},_t=()=>{var H;zt(),pe=null,ce!==null&&(cancelAnimationFrame(ce),ce=null),(H=$r.value)==null||H.clear(),document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",De),X.value=null,re.value=null,se.value=null,x.value=!1},Ut=()=>{if(!re.value)return 0;const H=ur.value[re.value.id];return H?X.value==="predecessor"?H.left:H.left+H.width:0},Lt=()=>{if(!re.value)return 0;const H=ur.value[re.value.id];return H?H.top+H.height/2:0},Xt=i.ref(!1),Et=i.ref(!1),rr=i.ref(!1),St=i.ref(0),ye=i.ref(!1);let He=null;const _e=i.ref(0),je=i.ref(0),wt=i.ref(!0),Qt=i.ref(!0);let Tt=null;const gr=i.ref(0),Or=new Map,Ft=i.ref(!0),hA=i.computed(()=>{if(v.value!==qe.HOUR)return{startHour:0,endHour:0};const H=_e.value,te=je.value;if(Ft.value&&H===0)return{startHour:0,endHour:168};if(Ft.value){const we=new Date,Ue=f.value.startDate,Ge=Math.floor((we.getTime()-Ue.getTime())/(1e3*60*60));return{startHour:Math.max(0,Ge-168),endHour:Ge+168}}const K=Math.floor(H/Mu)-Wv,ue=Math.ceil((H+te)/Mu)+Wv;return{startHour:Math.max(0,K),endHour:Math.max(K+1,ue)}}),lA=i.computed(()=>{const H=gr.value,te=Br.value||600,K=Math.floor(H/Gv)-Yv,ue=Math.ceil((H+te)/Gv)+Yv;return{startIndex:Math.max(0,K),endIndex:Math.min(b.value.length,Math.max(K+1,ue))}}),cA=i.computed(()=>{const{startIndex:H,endIndex:te}=lA.value;return b.value.slice(H,te).map((K,ue)=>({task:K,originalIndex:H+ue}))}),xr=(H,te)=>{let K=null;return((...ue)=>{const we=()=>{K=null,H(...ue)};K&&clearTimeout(K),K=window.setTimeout(we,te)})},fr=xr(()=>{Rr()},200),Cr=xr(()=>{fn()},200),Er=()=>{const H=v.value,te=f.value.startDate.getTime(),K=f.value.endDate.getTime(),ue=`${H}-${te}-${K}`;if(!Or.has(ue)){let we;H===qe.HOUR?we=Ye():H===qe.WEEK?we=st():H===qe.MONTH?we=It():H===qe.QUARTER?we=Ht():H===qe.YEAR?we=Ar():we=Ie(),Or.set(ue,we)}return Or.get(ue)},gA=i.computed(()=>{const H=Er();if(v.value===qe.HOUR&&Array.isArray(H)){const{startHour:te,endHour:K}=hA.value,ue=[],we=new Date(f.value.startDate);we.setHours(0,0,0,0);const Ue=we.getTime(),Ge=1e3*60*60*24;for(const We of H){const ft=new Date(We.year,We.month-1,We.day);ft.setHours(0,0,0,0);const bt=Math.floor((ft.getTime()-Ue)/Ge)*24,ut=Math.max(0,te-bt),Mt=Math.min(We.hours.length,K-bt);ut<Mt&&ue.push({...We,hours:We.hours.slice(ut,Mt),hourOffset:bt+ut,visibleHourStart:ut,_debug:{totalHourOffset:bt,dayStartHour:ut,dayEndHour:Mt,visibleRange:{startHour:te,endHour:K}}})}return ue}return H}),uA=i.computed(()=>{var ue,we;const H=Er();if(!Array.isArray(H))return 0;const te=v.value;if(te===qe.HOUR){let Ue=0;for(const Ge of H)Ue+=Ge.hours.length;return Ue*Mu}if(te===qe.QUARTER){let Ue=0;for(const Ge of H)Ue+=Ge.quarters.length;return Ue*60}if(te===qe.WEEK){let Ue=0;for(const Ge of H)Ue+=((ue=Ge.weeks)==null?void 0:ue.length)||0;return Ue*60}if(te===qe.MONTH)return H.length*60;if(te===qe.YEAR)return H.length*360;let K=0;for(const Ue of H)K+=((we=Ue.days)==null?void 0:we.length)||0;return K*30}),Br=i.ref(0);let tA=null;const pA=i.ref(new Map),Rr=()=>{const H=new Map,te=f.value.startDate.getTime(),K=_e.value,ue=K+je.value;for(const we of b.value)if(we.type==="milestone-group"&&we.children)for(const Ue of we.children){const Ge=new Date(Ue.startDate||"");if(!isNaN(Ge.getTime())){const ft=Math.floor((Ge.getTime()-te)/864e5)*30+15-12,kt=ft-12,bt=ft+12;let ut=!1,Mt="none";bt<=K+12?(ut=!0,Mt="left"):kt>=ue-12&&(ut=!0,Mt="right"),H.set(Ue.id,{left:ft,originalLeft:ft,isSticky:ut,stickyPosition:Mt})}}else if(we.type==="milestone"){const Ue=new Date(we.startDate||"");if(!isNaN(Ue.getTime())){const Ge=(Ue.getTime()-te)/864e5,ft=Math.floor(Ge)*30+15-12,kt=ft-12,bt=ft+12;let ut=!1,Mt="none";bt<=K+12?(ut=!0,Mt="left"):kt>=ue-12&&(ut=!0,Mt="right"),H.set(we.id,{left:ft,originalLeft:ft,isSticky:ut,stickyPosition:Mt})}}pA.value=H},vA=H=>{const te=[];return pA.value.forEach((K,ue)=>{ue!==H&&te.push({id:ue,left:K.left,originalLeft:K.originalLeft,isSticky:K.isSticky,stickyPosition:K.stickyPosition,priority:K.originalLeft})}),te},ln=()=>{Xt.value=!0},Ct=()=>{if(Xt.value=!1,B.value){const H=B.value.clientWidth;Math.abs(H-je.value)>1&&(je.value=H)}wt.value=!0,setTimeout(()=>{wt.value=!1},300)},Be=()=>{wt.value=!0,ur.value={},Kr.value++,Tt&&clearTimeout(Tt),Tt=setTimeout(()=>{wt.value=!1,Tt=null,fn()},300)},$=H=>{Xt.value||JA.value||(G.value=H,window.dispatchEvent(new CustomEvent("timeline-task-hover",{detail:H})))},de=i.computed(()=>{const K=b.value.length*51;return Math.max(K,400,Br.value)}),Ke=H=>{JA.value||(G.value=H.detail)},rt=H=>{const te=H.detail;bn(te)},q=()=>{Gt.value=Te()},me=H=>{le.value||n("milestone-double-click",H)},Ce=H=>{r.onMilestoneSave&&typeof r.onMilestoneSave=="function"&&r.onMilestoneSave(H),window.dispatchEvent(new CustomEvent("milestone-data-updated",{detail:{milestone:H}}))},Te=()=>Er(),ze=()=>{Or.clear()},Ie=()=>{const H=[],te=new Date(f.value.startDate);for(;te<=f.value.endDate;){const K=te.getFullYear(),ue=te.getMonth()+1,we=[],Ue=new Date(K,ue,0).getDate();for(let Ge=1;Ge<=Ue;Ge++){const We=new Date(K,ue-1,Ge),ft=We.getDay(),kt=ft===0||ft===6;we.push({day:Ge,date:We,label:String(Ge).padStart(2,"0"),isToday:Kt(We),isWeekend:kt})}H.push({year:K,month:ue,yearMonthLabel:a(K,ue),startDate:new Date(te),endDate:new Date(K,ue,0),days:we}),te.setMonth(te.getMonth()+1)}return H},Xe=(H,te)=>{if(te===0||te===6)return!1;const K=r.workingHours;if(!K)return!1;if(K.morning){const{start:ue,end:we}=K.morning;if(H>=ue&&H<=we)return!0}if(K.afternoon){const{start:ue,end:we}=K.afternoon;if(H>=ue&&H<=we)return!0}return!1},Ye=()=>{const H=[],te=new Date(f.value.startDate);for(;te<=f.value.endDate;){const K=te.getFullYear(),ue=te.getMonth()+1,we=te.getDate(),Ue=[],Ge=te.getDay();for(let We=0;We<24;We++){const ft=new Date(K,ue-1,we,We);Ue.push({hour:We,label:`${String(We).padStart(2,"0")}:00`,shortLabel:String(We).padStart(2,"0"),date:ft,isToday:Kt(ft)&&We===new Date().getHours(),isWorkingHour:Xe(We,Ge),isWeekend:Ge===0||Ge===6})}H.push({year:K,month:ue,day:we,date:new Date(te),dateLabel:`${K}/${String(ue).padStart(2,"0")}/${String(we).padStart(2,"0")}`,isToday:Kt(te),hours:Ue}),te.setDate(te.getDate()+1)}return H},st=()=>{const H=[],te=new Date(f.value.startDate),K=new Date(f.value.endDate),ue=new Date(te),we=ue.getDay()||7;ue.setDate(ue.getDate()-(we-1));const Ue=new Date(ue);for(;Ue<=K;){const ft=new Date(Ue);ft.setDate(ft.getDate()+6),H.push({weekStart:new Date(Ue),weekEnd:new Date(ft),label:`${Ue.getDate()}`,isToday:qt(Ue,ft),subDays:vt(Ue),belongsToYear:Ue.getFullYear(),belongsToMonth:Ue.getMonth()+1}),Ue.setDate(Ue.getDate()+7)}const Ge=new Map;for(const ft of H){const kt=ft,bt=kt.belongsToYear,ut=kt.belongsToMonth,Mt=`${bt}-${ut}`;Ge.has(Mt)||Ge.set(Mt,{year:bt,month:ut,yearMonthLabel:a(bt,ut),startDate:new Date(bt,ut-1,1),endDate:new Date(bt,ut,0),weeks:[],isWeekView:!0}),Ge.get(Mt).weeks.push(ft)}return Array.from(Ge.values()).sort((ft,kt)=>ft.year!==kt.year?ft.year-kt.year:ft.month-kt.month)},vt=H=>{const te=[];for(let K=0;K<7;K++){const ue=new Date(H);ue.setDate(ue.getDate()+K),te.push({date:new Date(ue),dayOfWeek:ue.getDay()})}return te},qt=(H,te)=>{const K=new Date;return K.setHours(0,0,0,0),K>=H&&K<=te},tr=(H,te)=>{let K=0;for(let ue=0;ue<H;ue++){const we=Gt.value[ue];we&&we.isWeekView&&we.weeks?K+=we.weeks.length*60:we&&we.days&&(K+=we.days.length*30)}return K+=te*60,K},nr=H=>{if(v.value=H,Ft.value=!0,ze(),H===qe.HOUR){const te=O();Rt=!0,f.value={...f.value,startDate:te.startDate,endDate:te.endDate},Rt=!1}else if(H===qe.DAY){const te=L();Rt=!0,f.value={...f.value,startDate:te.startDate,endDate:te.endDate},Rt=!1}if(H===qe.WEEK){const te=R();Rt=!0,f.value={...f.value,startDate:te.startDate,endDate:te.endDate},Rt=!1}if(H===qe.MONTH){const te=S();Rt=!0,f.value={...f.value,startDate:te.startDate,endDate:te.endDate},Rt=!1}if(H===qe.QUARTER){const te=T();Rt=!0,f.value={...f.value,startDate:te.startDate,endDate:te.endDate},Rt=!1}if(H===qe.YEAR){const te=T();Rt=!0,f.value={...f.value,startDate:te.startDate,endDate:te.endDate},Rt=!1}Gt.value=Te(),i.nextTick(()=>{n("timeline-scale-changed",H),window.dispatchEvent(new CustomEvent("timeline-scale-updated")),setTimeout(()=>{window.dispatchEvent(new CustomEvent("timeline-force-recalculate")),setTimeout(()=>{dr()},100)},50)})},Kt=H=>{const te=new Date;return H.getDate()===te.getDate()&&H.getMonth()===te.getMonth()&&H.getFullYear()===te.getFullYear()},Gt=i.shallowRef(Te());let Rt=!1;i.watch(()=>[f.value.startDate,f.value.endDate],()=>{Rt||(ze(),Gt.value=Te())});let pr=!1;i.watch(()=>[Gt.value,f.value.startDate,f.value.endDate],()=>{pr||i.nextTick(()=>{dr(),pr=!0})});const dr=(H=0)=>{wt.value=!0,Qt.value=!0;const te=new Date,K=f.value.startDate,ue=new Date(te.getFullYear(),te.getMonth(),te.getDate());let we;if(v.value===qe.YEAR||v.value===qe.QUARTER){const ut=T();we=new Date(ut.startDate.getFullYear(),ut.startDate.getMonth(),ut.startDate.getDate())}else if(v.value===qe.MONTH){const ut=S();we=new Date(ut.startDate.getFullYear(),ut.startDate.getMonth(),ut.startDate.getDate())}else we=new Date(K.getFullYear(),K.getMonth(),K.getDate());const Ue=ue.getTime()-we.getTime(),Ge=Math.floor(Ue/(1e3*60*60*24));let We;if(v.value===qe.HOUR){const ut=te.getHours(),Mt=te.getMinutes(),Sr=Ge*E.value,Tr=ut*40,jA=Mt/60*40;We=Sr+Tr+jA}else if(v.value===qe.QUARTER){const ut=ue.getFullYear(),Mt=we.getFullYear(),Sr=240,Tr=60;We=(ut-Mt)*Sr;const aA=ue.getMonth()+1;let fA=1;aA>=1&&aA<=3||(aA>=4&&aA<=6?fA=2:aA>=7&&aA<=9?fA=3:fA=4),We+=(fA-1)*Tr;let wA,Hr;fA===1?(wA=new Date(ut,0,1),Hr=new Date(ut,2,31)):fA===2?(wA=new Date(ut,3,1),Hr=new Date(ut,5,30)):fA===3?(wA=new Date(ut,6,1),Hr=new Date(ut,8,30)):(wA=new Date(ut,9,1),Hr=new Date(ut,11,31));const Cn=Math.floor((ue.getTime()-wA.getTime())/(1e3*60*60*24)),Xr=Math.floor((Hr.getTime()-wA.getTime())/(1e3*60*60*24))+1,qn=Cn/Xr*Tr;We+=qn}else if(v.value===qe.MONTH){const ut=ue.getFullYear(),Mt=ue.getMonth()+1,Sr=we.getFullYear(),Tr=we.getMonth()+1,jA=(ut-Sr)*12+(Mt-Tr),aA=60;We=jA*aA;const fA=ue.getDate(),wA=new Date(ut,Mt,0).getDate(),Hr=fA/wA*aA;We+=Hr}else if(v.value===qe.YEAR){const ut=Gt.value;let Mt=0;const Sr=180;let Tr=!1;for(const jA of ut){const aA=jA.halfYears||[];for(const fA of aA){const wA=new Date(fA.startDate),Hr=new Date(fA.endDate);if(wA.setHours(0,0,0,0),Hr.setHours(0,0,0,0),ue<wA){Tr=!0;break}if(ue>=wA&&ue<=Hr){const Cn=Hr.getTime()-wA.getTime(),qn=(ue.getTime()-wA.getTime())/Cn;Mt+=qn*Sr,Tr=!0;break}Mt+=Sr}if(Tr)break}We=Mt}else We=Ge*E.value;const ft=B.value;if(!ft){H<10&&setTimeout(()=>dr(H+1),60);return}const kt=ft.clientWidth;if(kt===0&&H<10){setTimeout(()=>dr(H+1),60);return}const bt=We-kt/2+15;typeof ft.scrollTo=="function"?ft.scrollTo({left:Math.max(0,bt),behavior:"smooth"}):ft.scrollLeft=Math.max(0,bt),setTimeout(()=>{Qt.value=!1,v.value===qe.HOUR&&(Ft.value=!1),setTimeout(()=>{wt.value=!1},300)},1500)},yr=i.computed(()=>{if(v.value!==qe.YEAR)return-1;const H=new Date;H.setHours(0,0,0,0);const te=Gt.value;if(!te||te.length===0)return-1;let K=0;const ue=180;for(const we of te){const Ue=we.halfYears||[];for(const Ge of Ue){const We=new Date(Ge.startDate),ft=new Date(Ge.endDate);if(We.setHours(0,0,0,0),ft.setHours(0,0,0,0),H<We)return K;if(H>=We&&H<=ft){const kt=ft.getTime()-We.getTime(),ut=(H.getTime()-We.getTime())/kt;return K+ut*ue}K+=ue}}return K}),$t=i.computed(()=>{if(v.value!==qe.YEAR)return!1;const H=new Date,te=new Date(H.getFullYear(),H.getMonth(),H.getDate()),K=T(),ue=K.startDate,we=K.endDate;return te>=ue&&te<=we}),RA=()=>{if(b.value.length===0){cn();return}const H=[];for(const bt of b.value)bt.startDate&&H.push(new Date(bt.startDate));if(H.length===0){cn();return}let te=1/0;for(const bt of H){const ut=bt.getTime();ut<te&&(te=ut)}const K=new Date(te),ue=K.getFullYear(),we=K.getMonth(),Ue=K.getDate();let Ge=0;for(let bt=0;bt<we;bt++)Ge+=new Date(ue,bt+1,0).getDate();Ge+=Ue;const We=F.value,ft=We==null?void 0:We.clientWidth,kt=(Ge-1)*30-(ft?ft/2:200);B.value&&(B.value.scrollLeft=Math.max(0,kt))},cn=()=>{const H=new Date,te=f.value.startDate,K=new Date(H.getFullYear(),H.getMonth(),H.getDate()),ue=new Date(te.getFullYear(),te.getMonth(),te.getDate()),we=K.getTime()-ue.getTime(),Ue=Math.floor(we/(1e3*60*60*24));if(Ue<0||K>f.value.endDate)return;const Ge=Ue*30,We=B.value;if(!We)return;const ft=We.clientWidth,kt=Ge-ft/2+15;We.scrollTo({left:Math.max(0,kt),behavior:"smooth"}),setTimeout(()=>{const bt=document.querySelectorAll(".day-column.today");for(const ut of bt)ut.classList.add("today-highlight"),setTimeout(()=>{ut.classList.remove("today-highlight")},2e3)},500)},Ln=H=>{window.dispatchEvent(new CustomEvent("task-updated",{detail:H}))},bn=H=>{le.value||n("edit-task",H)},Qr=(H,te)=>{le.value||n("click-task",H,te)},ur=i.shallowRef({}),Kr=i.ref(0),Lr=i.ref(null),$r=i.ref(null),XA=i.ref(0),ta=i.ref(0),Vn=i.ref(0),un=i.ref(0),ra=i.ref(0),kA=i.ref(0);function fn(){if(Lr.value){const H=Lr.value.offsetWidth,te=de.value,K=_e.value,ue=gr.value;Vn.value=Ul;const we=Ul/3;let Ue=Math.max(0,K-we);if(H<=Ul)Ue=0;else{const kt=H-Ul;Ue=Math.min(Ue,kt)}ra.value=Ue;const Ge=Math.min(te,Ak);un.value=Ge,XA.value=Vn.value,ta.value=Ge;const We=Ge/3;let ft=Math.max(0,ue-We);if(te<=Ge)ft=0;else{const kt=te-Ge;ft=Math.min(ft,kt)}kA.value=ft}}function mA(H){if(!Lr.value)return;const te=Lr.value.getBoundingClientRect();ur.value={...ur.value,[H.id]:{left:H.left-te.left,top:H.top-te.top,width:H.width,height:H.height}},setTimeout(()=>{fn()},200)}const dn=H=>{window.dispatchEvent(new CustomEvent("taskbar-drag-end",{detail:H}))},Cs=H=>{window.dispatchEvent(new CustomEvent("taskbar-resize-end",{detail:H}))},Zt=H=>{window.dispatchEvent(new CustomEvent("context-menu",{detail:H}))},so=H=>{if(or.value){wt.value=!0;const te=or.value.scrollWidth-or.value.clientWidth,K=Math.max(0,Math.min(H,te));or.value.scrollTo({left:K,behavior:"smooth"}),setTimeout(()=>{wt.value=!1},1e3)}},Es=H=>{window.dispatchEvent(new CustomEvent("milestone-drag-end",{detail:H}))};i.onMounted(()=>{i.nextTick(()=>{setTimeout(()=>{dr()},60)}),window.addEventListener("task-row-double-click",rt),window.addEventListener("task-list-hover",Ke),window.addEventListener("task-list-vertical-scroll",Fs),window.addEventListener("locale-changed",q),window.addEventListener("splitter-drag-start",ln),window.addEventListener("splitter-drag-end",Ct),window.addEventListener("timeline-container-resized",Be),window.addEventListener("milestone-click-locate",it),window.addEventListener("drag-boundary-check",Bi),window.addEventListener("taskbar-highlighted",$i),i.nextTick(()=>{const H=document.querySelector(".timeline-body"),te=document.querySelector(".timeline"),K=document.querySelector(".gantt-panel-right");if(In.value=H,B.value=te,F.value=K,H&&(Br.value=H.clientHeight,tA=new ResizeObserver(ue=>{for(const we of ue)Br.value=we.contentRect.height}),tA.observe(H)),te){_e.value=te.scrollLeft,je.value=te.clientWidth;const ue=new ResizeObserver(we=>{for(const Ue of we){const Ge=Ue.contentRect.width;Math.abs(Ge-je.value)>1&&(je.value=Ge,wt.value=!0,Tt&&clearTimeout(Tt),Tt=setTimeout(()=>{wt.value=!1,Tt=null},300))}});ue.observe(te),tA||(tA=ue)}}),setTimeout(()=>{dr(),fn()},200),window.addEventListener("resize",fn)});const Fs=H=>{const{scrollTop:te}=H.detail;gr.value=te,Cr(),In.value&&Math.abs(In.value.scrollTop-te)>1&&(In.value.scrollTop=te)},va=H=>{const te=H.target;if(!te)return;const K=te.scrollTop;gr.value=K,Ee=!0,Cr(),!JA.value&&K>=0&&window.dispatchEvent(new CustomEvent("timeline-vertical-scroll",{detail:{scrollTop:K}}))};i.watch(()=>b.value.length,()=>{i.nextTick(()=>{fn()})},{immediate:!0}),i.watch(b,H=>{he.clear();const te=K=>{he.set(K.id,K),K.children&&K.children.length>0&&K.children.forEach(te)};H.forEach(te)},{immediate:!0});const JA=i.ref(!1),zi=i.ref(0),ks=i.ref(0),_a=i.ref(0),pi=i.ref(0),or=i.ref(null),In=i.ref(null);let ZA=null;const vi=i.ref(!1);let Ma=null;const $i=()=>{const H=te=>{var K;te.buttons===1&&(JA.value=!0,zi.value=te.pageX,_a.value=((K=or.value)==null?void 0:K.scrollLeft)||0,or.value&&(or.value.style.cursor="grabbing",or.value.style.userSelect="none"),document.addEventListener("mousemove",Nn),document.addEventListener("mouseup",Oa)),document.removeEventListener("mousemove",H)};document.addEventListener("mousemove",H),setTimeout(()=>{document.removeEventListener("mousemove",H)},5e3)},xs=H=>{var we,Ue;const te=H.target,K=te.closest(".timeline-header"),ue=te.closest(".timeline-body");if(!(!K&&!ue)){if(ue){const Ge=te.closest(".task-bar");if(Ge){const We=Ge.classList.contains("highlighted"),ft=Ge.classList.contains("primary-highlight");if(!We&&!ft)return}else if([".milestone","button","input","select","textarea",".custom-task-content",".progress-bar",".task-name",".task-controls"].some(kt=>te.closest(kt)))return}JA.value=!0,zi.value=H.pageX,ks.value=H.pageY,_a.value=((we=or.value)==null?void 0:we.scrollLeft)||0,!In.value&&or.value&&(In.value=or.value.querySelector(".timeline-body")),pi.value=((Ue=In.value)==null?void 0:Ue.scrollTop)||0,or.value&&(or.value.style.cursor="grabbing",or.value.style.userSelect="none"),H.preventDefault(),document.addEventListener("mousemove",Nn),document.addEventListener("mouseup",Oa)}},Nn=H=>{!JA.value||!or.value||(H.preventDefault(),ZA!==null&&cancelAnimationFrame(ZA),ZA=requestAnimationFrame(()=>{if(!or.value)return;const te=H.pageX,K=H.pageY,ue=(te-zi.value)*1.5,we=(K-ks.value)*1.5;if(or.value.scrollLeft=_a.value-ue,In.value){const Ue=pi.value-we;In.value.scrollTop=Ue;const Ge=document.querySelector(".task-list-body");Ge&&(Ge.scrollTop=Ue)}ZA=null}))},Oa=()=>{JA.value=!1,ZA!==null&&(cancelAnimationFrame(ZA),ZA=null),or.value&&(or.value.style.cursor="grab",or.value.style.userSelect="auto"),G.value=null,document.removeEventListener("mousemove",Nn),document.removeEventListener("mouseup",Oa)},mi=H=>{var Ge;const te=H.target;if(!te)return;const K=te.scrollLeft;if(_e.value=K,Ee=!0,je.value===0&&(je.value=te.clientWidth),Ft.value&&K>0&&(Ft.value=!1),Cr(),v.value===qe.HOUR){ye.value=!0,He&&clearTimeout(He),He=setTimeout(()=>{ye.value=!1},200);return}const ue=te.scrollWidth,we=te.clientWidth,Ue=ue-we;St.value=Ue>0?K/Ue:0,Et.value=K>20,rr.value=K<Ue-20,ye.value=!0,(Ge=te.classList)==null||Ge.add("scrolling"),fr(),He&&clearTimeout(He),He=setTimeout(()=>{var We;ye.value=!1,(We=te.classList)==null||We.remove("scrolling")},500)},wi=H=>{if(vi.value||!or.value)return;vi.value=!0;const te=()=>{if(!or.value||!vi.value)return;const K=or.value.scrollLeft,ue=or.value.scrollWidth-or.value.clientWidth;let we;if(H==="left"?we=Math.max(0,K-$v):we=Math.min(ue,K+$v),we===K){Aa();return}or.value.scrollLeft=we,window.dispatchEvent(new CustomEvent("timeline-auto-scroll",{detail:{scrollDelta:we-K}})),Ma=window.setTimeout(te,16)};te()},Aa=()=>{vi.value=!1,Ma&&(clearTimeout(Ma),Ma=null)},Bi=H=>{const{mouseX:te,isDragging:K}=H.detail;if(!K||!or.value){Aa();return}const ue=or.value.getBoundingClientRect(),we=te-ue.left;we<=zv&&or.value.scrollLeft>0?wi("left"):we>=ue.width-zv&&or.value.scrollLeft<or.value.scrollWidth-or.value.clientWidth?wi("right"):Aa()};i.onUnmounted(()=>{Aa(),_t(),window.removeEventListener("task-row-double-click",rt),window.removeEventListener("task-list-hover",Ke),window.removeEventListener("task-list-vertical-scroll",Fs),window.removeEventListener("locale-changed",q),window.removeEventListener("splitter-drag-start",ln),window.removeEventListener("splitter-drag-end",Ct),window.removeEventListener("timeline-container-resized",Be),window.removeEventListener("milestone-click-locate",it),window.removeEventListener("drag-boundary-check",Bi),tA&&(tA.disconnect(),tA=null),window.removeEventListener("resize",fn),document.removeEventListener("mousemove",Nn),document.removeEventListener("mouseup",Oa)});const Ss=(H,te)=>{n("delete",H,te)},Ts=H=>{const te=b.value.find(Ue=>Ue.id===H.targetTaskId);if(!te||!te.predecessor)return;const ue=ca(te.predecessor).filter(Ue=>Ue!==H.sourceTaskId),we={...te,predecessor:ue.length>0?ue:void 0};n("link-deleted",{sourceTaskId:H.sourceTaskId,targetTaskId:H.targetTaskId,updatedTask:we}),Ln(we),ze()},ma=i.computed(()=>{if(v.value!==qe.MONTH)return{};const H={},te=Gt.value;for(const K of te){const we=K.year;H[we]||(H[we]=[]),H[we].push(K)}return H}),wa=i.computed(()=>{if(v.value!==qe.WEEK)return[];const H=[],te=Gt.value;for(let K=0;K<te.length;K++){const ue=te[K];if(!(!ue.isWeekView||!ue.weeks))for(let we=0;we<ue.weeks.length;we++){const Ge=ue.weeks[we].subDays||[];for(let We=0;We<Ge.length;We++){const ft=Ge[We];ft.date&&ft.date.getDate()===1&&H.push({left:tr(K,we)+We*(60/7),date:ft.date.getDate()})}}}return H}),Us=i.computed(()=>{if(v.value!==qe.WEEK)return[];const H=[],te=Gt.value;for(let K=0;K<te.length;K++){const ue=te[K];if(!(!ue.isWeekView||!ue.weeks))for(let we=0;we<ue.weeks.length;we++){const Ge=ue.weeks[we].subDays||[];for(let We=0;We<Ge.length;We++){const ft=Ge[We];ft.date&&ft.date.getDate()===1&&H.push({left:tr(K,we)+We*(60/7)})}}}return H}),Kn=i.computed(()=>{if(v.value!==qe.YEAR)return[];try{const H=Ar();return Array.isArray(H)?H:[]}catch{return[]}});t({scrollToTasks:RA,scrollToToday:cn,scrollToTodayCenter:dr,timelineConfig:f,updateTimeScale:nr,highlightedTaskId:N,clearHighlight:Z});const Ds=H=>{n("start-timer",H)},m=H=>{n("stop-timer",H)},U=H=>{const te=H.startDate||H.endDate||"";return{...H,type:"milestone",startDate:te,endDate:H.startDate||H.endDate}};i.watch(()=>b.value.length,()=>{P(),Rr()},{immediate:!0});let ne=null;const ve=(H=50)=>{ne&&clearTimeout(ne),ne=setTimeout(()=>{Se(),ne=null},H)},Se=()=>{let H=null;v.value===qe.HOUR?H=O():v.value===qe.DAY?H=L():v.value===qe.WEEK?H=R():v.value===qe.MONTH?H=S():(v.value===qe.QUARTER||v.value===qe.YEAR)&&(H=T()),H&&(ze(),Rt=!0,f.value.startDate=H.startDate,f.value.endDate=H.endDate,Rt=!1,Gt.value=Te())};i.watch(()=>{var H;return(H=b.value)==null?void 0:H.length},(H,te)=>{H!==te&&P(),te===0&&H>0&&ve(50)}),i.watch(je,(H,te)=>{Xt.value||(!te||te===0||Math.abs(H-te)>50)&&H>0&&ve(100)},{immediate:!0});let et=null;i.watch([Gt,je],()=>{Xt.value||(et&&clearTimeout(et),et=setTimeout(()=>{ur.value={},Kr.value++,i.nextTick(()=>{setTimeout(()=>{fn()},200)}),et=null},100))}),i.watch(()=>b.value,H=>{P();const te=new Set;for(const ue of H)te.add(ue.id);const K={};for(const ue in ur.value){const we=parseInt(ue);te.has(we)&&(K[we]=ur.value[we])}ur.value=K},{deep:!0});const it=H=>{const{scrollLeft:te,smooth:K}=H.detail,ue=document.querySelector(".timeline"),we=document.querySelector(".timeline-body");let Ue=null;if(ue&&ue.scrollWidth>ue.clientWidth?Ue=ue:we&&we.scrollWidth>we.clientWidth&&(Ue=we),Ue){const Ge=Ue.scrollWidth-Ue.clientWidth,We=Math.min(Math.max(0,te),Ge);K?Ue.scrollTo({left:We,behavior:"smooth"}):Ue.scrollLeft=We}},It=()=>{let H,te;if(v.value===qe.MONTH){const Ge=S();H=Ge.startDate,te=Ge.endDate}else H=new Date(f.value.startDate),te=new Date(f.value.endDate);const K={},ue=new Date(H);for(ue.setDate(1);ue<=te;){const Ge=ue.getFullYear(),We=ue.getMonth()+1,kt=new Date(Ge,We,0).getDate(),bt=new Date,ut=Ge===bt.getFullYear()&&We===bt.getMonth()+1;K[Ge]||(K[Ge]={year:Ge,yearLabel:`${Ge}年`,months:[]}),K[Ge].months.push({year:Ge,month:We,monthLabel:o(We),startDate:new Date(Ge,We-1,1),endDate:new Date(Ge,We,0),isToday:ut,dayCount:kt}),ue.setMonth(ue.getMonth()+1)}const we=[];let Ue=0;for(const Ge of Object.values(K))for(const We of Ge.months){const ft=[];for(let Mt=1;Mt<=We.dayCount;Mt++){const Sr=new Date(We.year,We.month-1,Mt);ft.push({day:Mt,date:new Date(Sr),dayOfWeek:Sr.getDay(),isToday:Kt(Sr),isWeekend:Sr.getDay()===0||Sr.getDay()===6})}const kt=60,bt=Ue,ut=Ue+kt;we.push({year:We.year,month:We.month,yearMonthLabel:a(We.year,We.month),startDate:We.startDate,endDate:We.endDate,isMonthView:!0,monthData:{monthLabel:We.monthLabel,isToday:We.isToday,dayCount:We.dayCount},subDays:ft,days:ft.map(Mt=>({day:Mt.day,date:Mt.date,label:String(Mt.day).padStart(2,"0"),isToday:Mt.isToday,isWeekend:Mt.isWeekend})),_debugInfo:{monthStartPosition:bt,monthEndPosition:ut,monthWidth:kt}}),Ue+=kt}return we},Ht=()=>{const H=f.value.startDate,te=f.value.endDate,K=[],ue=H.getFullYear(),we=te.getFullYear();for(let Ue=ue;Ue<=we;Ue++){const Ge=[];for(let We=1;We<=4;We++){const ft=(We-1)*3,kt=new Date(Ue,ft,1),bt=ft+2,ut=new Date(Ue,bt+1,0);Ge.push({quarter:We,label:`Q${We}`,fullLabel:`${Ue}年第${We}季度`,startDate:kt,endDate:ut,isToday:Jt(kt,ut),year:Ue})}K.push({year:Ue,yearLabel:String(Ue),startDate:new Date(Ue,0,1),endDate:new Date(Ue,11,31),quarters:Ge})}return K},Jt=(H,te)=>{const K=new Date;return K.setHours(0,0,0,0),K>=H&&K<=te},Ar=()=>{const H=f.value.startDate,te=f.value.endDate,K=[],ue=H.getFullYear(),we=te.getFullYear();for(let Ue=ue;Ue<=we;Ue++){const Ge=[{label:l("halfYearFirst"),startDate:new Date(Ue,0,1),endDate:new Date(Ue,6,0),width:180},{label:l("halfYearSecond"),startDate:new Date(Ue,6,1),endDate:new Date(Ue,11,31),width:180}];K.push({year:Ue,startDate:new Date(Ue,0,1),endDate:new Date(Ue,11,31),halfYears:Ge,width:360})}return K},mr=H=>{n("add-predecessor",H)},rA=H=>{n("add-successor",H)};return(H,te)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"timelineContainer",ref:or,class:"timeline",onMousedown:xs,onScroll:mi},[i.createElementVNode("div",UF,[v.value===i.unref(qe).YEAR&&Kn.value&&Kn.value.length>0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",DF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Kn.value,K=>(i.openBlock(),i.createElementBlock("div",{key:`year-${K.year}`,class:"timeline-year",style:{width:"360px"}},[i.createElementVNode("div",QF,i.toDisplayString(K.year),1)]))),128))]),i.createElementVNode("div",LF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Kn.value,K=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:`halfyear-${K.year}`},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.halfYears||[],ue=>(i.openBlock(),i.createElementBlock("div",{key:`halfyear-${K.year}-${ue.label}`,class:"timeline-half-year-item",style:{width:"180px"}},[i.createElementVNode("div",IF,i.toDisplayString(ue.label),1)]))),128))],64))),128))])],64)):v.value===i.unref(qe).MONTH?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",NF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(ma.value,(K,ue)=>(i.openBlock(),i.createElementBlock("div",{key:`year-${ue}`,class:"timeline-year",style:{width:"720px"}},[i.createElementVNode("div",_F,i.toDisplayString(ue),1)]))),128))]),i.createElementVNode("div",MF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Gt.value,K=>{var ue,we;return i.openBlock(),i.createElementBlock("div",{key:`month-${K.year}-${K.month}`,class:i.normalizeClass(["timeline-month-item",{today:(ue=K.monthData)==null?void 0:ue.isToday}]),style:{width:"59px"}},[i.createElementVNode("div",OF,i.toDisplayString((we=K.monthData)==null?void 0:we.monthLabel),1)],2)}),128))])],64)):v.value===i.unref(qe).QUARTER?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createElementVNode("div",RF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Gt.value,K=>(i.openBlock(),i.createElementBlock("div",{key:`year-${K.year}`,class:"timeline-year",style:{width:"240px"}},[i.createElementVNode("div",HF,i.toDisplayString(K.yearLabel),1)]))),128))]),i.createElementVNode("div",PF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Gt.value,K=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:`quarters-${K.year}`},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.quarters,ue=>(i.openBlock(),i.createElementBlock("div",{key:`quarter-${K.year}-${ue.quarter}`,class:i.normalizeClass(["timeline-quarter-item",{today:ue.isToday}]),style:{width:"60px"}},[i.createElementVNode("div",VF,i.toDisplayString(ue.label),1)],2))),128))],64))),128))])],64)):v.value===i.unref(qe).HOUR?(i.openBlock(),i.createElementBlock("div",{key:3,class:"hour-header-container",style:i.normalizeStyle({width:`${uA.value}px`})},[i.createElementVNode("div",KF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(gA.value,K=>(i.openBlock(),i.createElementBlock("div",{key:`date-${K.year}-${K.month}-${K.day}`,class:"timeline-day-item",style:i.normalizeStyle({position:"absolute",width:`${K.hours.length*40}px`,left:`${(K.hourOffset||0)*40}px`})},[i.createElementVNode("div",qF,i.toDisplayString(K.dateLabel),1)],4))),128))]),i.createElementVNode("div",jF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(gA.value,K=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:`hours-${K.year}-${K.month}-${K.day}`},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.hours,(ue,we)=>(i.openBlock(),i.createElementBlock("div",{key:`hour-${K.year}-${K.month}-${K.day}-${ue.hour}`,class:i.normalizeClass(["timeline-hour-item",{today:ue.isToday,"non-working-hour":!ue.isWorkingHour}]),style:i.normalizeStyle({position:"absolute",width:"40px",left:`${(K.hourOffset+we)*40}px`})},[i.createElementVNode("div",WF,i.toDisplayString(ue.shortLabel),1)],6))),128))],64))),128))])],4)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:4},[i.createElementVNode("div",GF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Gt.value,K=>(i.openBlock(),i.createElementBlock("div",{key:`year-month-${K.year}-${K.month}`,class:"timeline-month",style:i.normalizeStyle({width:K.isWeekView?`${(K.weeks||[]).length*60}px`:`${(K.days||[]).length*30}px`})},[i.createElementVNode("div",YF,i.toDisplayString(K.yearMonthLabel),1)],4))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(wa.value,(K,ue)=>(i.openBlock(),i.createElementBlock("div",{key:`flag-${ue}`,class:"month-first-flag",style:i.normalizeStyle({left:`${K.left}px`,transform:"translateX(-50%)"})},[te[1]||(te[1]=i.createElementVNode("div",{class:"flag-pole"},null,-1)),i.createElementVNode("div",zF,i.toDisplayString(K.date),1)],4))),128))]),i.createElementVNode("div",$F,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Gt.value,K=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:`timeline-${K.year}-${K.month}`},[K.isWeekView&&K.weeks?(i.openBlock(),i.createElementBlock("div",{key:0,class:"timeline-month-weeks",style:i.normalizeStyle({width:`${(K.weeks||[]).length*60}px`})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.weeks||[],ue=>(i.openBlock(),i.createElementBlock("div",{key:`week-${K.year}-${K.month}-${ue.label}`,class:i.normalizeClass(["timeline-week",{today:ue.isToday}])},[i.createElementVNode("div",XF,i.toDisplayString(ue.label),1),te[2]||(te[2]=i.createElementVNode("div",{class:"week-sub-days"},null,-1))],2))),128))],4)):(i.openBlock(),i.createElementBlock("div",{key:1,class:"timeline-month-days",style:i.normalizeStyle({width:`${K.days.length*30}px`})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.days,ue=>(i.openBlock(),i.createElementBlock("div",{key:`day-${K.year}-${K.month}-${ue.day}`,class:i.normalizeClass(["timeline-day",{today:ue.isToday,weekend:ue.isWeekend&&!ue.isToday}])},[i.createElementVNode("div",JF,i.toDisplayString(ue.label),1)],2))),128))],4))],64))),128))])],64))]),i.createElementVNode("div",{class:"timeline-body",onScroll:va},[i.createElementVNode("div",{ref_key:"bodyContentRef",ref:Lr,class:"timeline-body-content"},[i.createVNode(xF,{tasks:b.value,"task-bar-positions":ur.value,width:Vn.value,height:un.value,"offset-left":ra.value,"offset-top":kA.value,"highlighted-task-id":N.value,"highlighted-task-ids":oe.value,"hovered-task-id":G.value,"vertical-lines":Us.value,"show-vertical-lines":v.value===i.unref(qe).WEEK},null,8,["tasks","task-bar-positions","width","height","offset-left","offset-top","highlighted-task-id","highlighted-task-ids","hovered-task-id","vertical-lines","show-vertical-lines"]),i.createVNode(TF,{ref_key:"linkDragGuideRef",ref:$r,active:!!X.value&&!!re.value,width:Vn.value,height:un.value,"offset-left":ra.value,"offset-top":kA.value},null,8,["active","width","height","offset-left","offset-top"]),$t.value&&yr.value>=0?(i.openBlock(),i.createElementBlock("div",{key:0,class:"today-line-year-view",style:i.normalizeStyle({left:`${yr.value}px`,height:`${de.value}px`})},null,4)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"day-columns",style:i.normalizeStyle({height:`${de.value}px`})},[v.value===i.unref(qe).HOUR?(i.openBlock(),i.createElementBlock("div",{key:0,class:"hour-columns-container",style:i.normalizeStyle({width:`${uA.value}px`,height:`${de.value}px`,position:"relative"})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(gA.value,K=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:`day-col-${K.year}-${K.month}-${K.day}`},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.hours,(ue,we)=>(i.openBlock(),i.createElementBlock("div",{key:`hour-col-${K.year}-${K.month}-${K.day}-${ue.hour}`,class:i.normalizeClass(["hour-column",{today:ue.isToday,weekend:ue.isWeekend,"working-hour":ue.isWorkingHour,"rest-hour":!ue.isWorkingHour&&!ue.isWeekend}]),style:i.normalizeStyle({position:"absolute",width:"40px",height:`${de.value}px`,left:`${(K.hourOffset+we)*40}px`})},te[3]||(te[3]=[i.createElementVNode("div",{class:"quarter-hour-lines"},[i.createElementVNode("div",{class:"quarter-line",style:{left:"10px"}}),i.createElementVNode("div",{class:"quarter-line",style:{left:"20px"}}),i.createElementVNode("div",{class:"quarter-line",style:{left:"30px"}})],-1)]),6))),128))],64))),128))],4)):i.createCommentVNode("",!0),v.value===i.unref(qe).YEAR?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(Kn.value,K=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:`year-col-${K.year}`},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.halfYears||[],ue=>(i.openBlock(),i.createElementBlock("div",{key:`halfyear-col-${K.year}-${ue.label}`,class:"half-year-column",style:i.normalizeStyle({width:"180px",height:`${de.value}px`})},null,4))),128))],64))),128)):i.createCommentVNode("",!0),v.value===i.unref(qe).QUARTER?(i.openBlock(),i.createElementBlock("div",{key:2,class:"quarter-columns-container",style:i.normalizeStyle({width:`${uA.value}px`,height:`${de.value}px`,position:"relative"})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Gt.value,(K,ue)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:`quarter-col-${K.year}`},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.quarters,(we,Ue)=>(i.openBlock(),i.createElementBlock("div",{key:`quarter-col-${K.year}-${we.quarter}`,class:i.normalizeClass(["quarter-column",{today:we.isToday}]),style:i.normalizeStyle({position:"absolute",width:"60px",height:`${de.value}px`,left:`${ue*240+Ue*60}px`})},null,6))),128))],64))),128))],4)):v.value!==i.unref(qe).HOUR&&v.value!==i.unref(qe).YEAR&&v.value!==i.unref(qe).QUARTER?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:3},i.renderList(Gt.value,K=>{var ue;return i.openBlock(),i.createElementBlock(i.Fragment,{key:`day-col-${K.year}-${K.month}`},[K.isMonthView?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["month-column",{today:(ue=K.monthData)==null?void 0:ue.isToday}]),style:i.normalizeStyle({width:"59px",height:`${de.value}px`})},null,6)):K.isWeekView&&K.weeks?(i.openBlock(),i.createElementBlock("div",{key:1,class:"month-week-columns",style:i.normalizeStyle({width:`${(K.weeks||[]).length*60}px`,height:`${de.value}px`})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.weeks||[],we=>(i.openBlock(),i.createElementBlock("div",{key:`week-col-${K.year}-${K.month}-${we.label}`,class:i.normalizeClass(["week-column",{today:we.isToday}]),style:i.normalizeStyle({height:`${de.value}px`,width:"60px"})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(we.subDays||[],(Ue,Ge)=>(i.openBlock(),i.createElementBlock("div",{key:`subday-col-${Ge}`,class:i.normalizeClass(["sub-day-column",{weekend:Ue.dayOfWeek===0||Ue.dayOfWeek===6,today:Kt(Ue.date)}]),style:i.normalizeStyle({height:`${de.value}px`,width:`${E.value}px`})},null,6))),128))],6))),128))],4)):(i.openBlock(),i.createElementBlock("div",{key:2,class:"month-day-columns",style:i.normalizeStyle({width:`${(K.days||[]).length*30}px`,height:`${de.value}px`})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.days||[],we=>(i.openBlock(),i.createElementBlock("div",{key:`day-col-${K.year}-${K.month}-${we.day}`,class:i.normalizeClass(["day-column",{weekend:we.isWeekend,today:we.isToday}]),style:i.normalizeStyle({height:`${de.value}px`})},null,6))),128))],4))],64)}),128)):i.createCommentVNode("",!0)],4),i.createElementVNode("div",{class:"task-bar-container",style:i.normalizeStyle({height:`${de.value}px`})},[i.createElementVNode("div",{class:"task-rows",style:i.normalizeStyle({height:`${de.value}px`})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(cA.value,({task:K,originalIndex:ue})=>{var we,Ue,Ge;return i.openBlock(),i.createElementBlock("div",{key:K.id,class:i.normalizeClass(["task-row",{"task-row-hovered":G.value===K.id}]),style:i.normalizeStyle({top:`${ue*51}px`}),onMouseenter:We=>$(K.id),onMouseleave:te[0]||(te[0]=We=>$(null))},[K.type==="milestone-group"&&K.children?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(K.children,We=>(i.openBlock(),i.createBlock(vg,{key:We.id,date:We.startDate||"","row-height":50,"day-width":E.value,"start-date":v.value===i.unref(qe).YEAR||v.value===i.unref(qe).QUARTER?T().startDate:v.value===i.unref(qe).MONTH?S().startDate:f.value.startDate,"timeline-start":f.value.startDate,"timeline-end":f.value.endDate,"period-width":E.value,name:We.name,milestone:U(We),"scroll-left":_e.value,"container-width":je.value,"milestone-id":We.id,"other-milestones":vA(We.id),"timeline-data":Gt.value,"current-time-scale":v.value,"allow-drag-and-resize":r.allowDragAndResize&&!le.value,"is-in-highlight-mode":le.value,onMilestoneDoubleClick:me,"onUpdate:milestone":Ce,onDragEnd:Es},null,8,["date","day-width","start-date","timeline-start","timeline-end","period-width","name","milestone","scroll-left","container-width","milestone-id","other-milestones","timeline-data","current-time-scale","allow-drag-and-resize","is-in-highlight-mode"]))),128)):K.type==="milestone"?(i.openBlock(),i.createBlock(vg,{key:K.id,date:K.startDate||"","row-height":50,"day-width":E.value,"start-date":v.value===i.unref(qe).YEAR||v.value===i.unref(qe).QUARTER?T().startDate:v.value===i.unref(qe).MONTH?S().startDate:f.value.startDate,"timeline-start":f.value.startDate,"timeline-end":f.value.endDate,"period-width":E.value,name:K.name,milestone:U(K),"scroll-left":_e.value,"container-width":je.value,"milestone-id":K.id,"other-milestones":vA(K.id),"timeline-data":Gt.value,"current-time-scale":v.value,"allow-drag-and-resize":r.allowDragAndResize&&!le.value,"is-in-highlight-mode":le.value,onMilestoneDoubleClick:me,"onUpdate:milestone":Ce,onDragEnd:Es},null,8,["date","day-width","start-date","timeline-start","timeline-end","period-width","name","milestone","scroll-left","container-width","milestone-id","other-milestones","timeline-data","current-time-scale","allow-drag-and-resize","is-in-highlight-mode"])):K.type!=="milestone-group"&&K.type!=="milestone"?(i.openBlock(),i.createBlock(iy,{key:`taskbar-${K.id}-${Kr.value}`,task:K,"row-height":50,"day-width":E.value,"start-date":v.value===i.unref(qe).YEAR?T().startDate:v.value===i.unref(qe).MONTH?S().startDate:f.value.startDate,"is-parent":K.isParent,"scroll-left":_e.value,"container-width":je.value,"hide-bubbles":wt.value,"timeline-data":v.value===i.unref(qe).HOUR?gA.value:Gt.value,"current-time-scale":v.value,"task-bar-config":r.taskBarConfig,"allow-drag-and-resize":r.allowDragAndResize&&!le.value,"is-highlighted":oe.value.has(K.id),"is-primary-highlight":N.value===K.id,"is-in-highlight-mode":le.value,"drag-link-mode":X.value,"is-link-drag-source":((we=re.value)==null?void 0:we.id)===K.id,"is-valid-link-target":((Ue=se.value)==null?void 0:Ue.id)===K.id&&x.value===!0,"is-invalid-link-target":((Ge=se.value)==null?void 0:Ge.id)===K.id&&x.value===!1,"all-tasks":b.value,"onUpdate:task":Ln,onBarMounted:mA,onClick:We=>Qr(K,We),onDblclick:We=>bn(K),onDragEnd:dn,onResizeEnd:Cs,onScrollToPosition:so,onContextMenu:Zt,onStartTimer:Ds,onStopTimer:m,onAddPredecessor:mr,onAddSuccessor:rA,onDelete:Ss,onDeleteLink:Ts,onLongPress:ee,onLinkDragStart:fe,onLinkDragMove:Oe,onLinkDragEnd:Ve},i.createSlots({_:2},[H.$slots["custom-task-content"]?{name:"custom-task-content",fn:i.withCtx(We=>[i.renderSlot(H.$slots,"custom-task-content",i.mergeProps({ref_for:!0},We),void 0,!0)]),key:"0"}:void 0]),1032,["task","day-width","start-date","is-parent","scroll-left","container-width","hide-bubbles","timeline-data","current-time-scale","task-bar-config","allow-drag-and-resize","is-highlighted","is-primary-highlight","is-in-highlight-mode","drag-link-mode","is-link-drag-source","is-valid-link-target","is-invalid-link-target","all-tasks","onClick","onDblclick"])):i.createCommentVNode("",!0)],46,ZF)}),128))],4)],4)],512)],32)],544))}}),oy=sn(nk,[["__scopeId","data-v-7a809cc7"]]),ak={class:"gantt-toolbar"},ik={class:"toolbar-left"},sk={key:0,class:"gantt-btn-group gantt-add-btn-group"},ok=["title"],lk=["title"],ck={key:1,class:"gantt-btn-group gantt-expand-collapse-btn-group"},uk=["title"],fk=["title"],dk={key:2,class:"gantt-btn-group"},hk=["title"],gk=["title"],pk={class:"toolbar-right"},vk={key:0,class:"segmented-control time-scale-segmented"},mk={class:"segmented-track"},wk=["title","onClick"],Bk={key:1,class:"language-dropdown"},yk=["title"],bk={class:"lang-text"},Ck={key:0,class:"language-menu"},Ek=["onClick"],Fk={class:"option-text"},kk={key:0,class:"check-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},xk=["title"],Sk=["title"],Tk={key:0,class:"gantt-btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Uk={key:1,class:"gantt-btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Dk={class:"icon-fallback"},Qk=["title"],Lk={key:0,class:"gantt-btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Ik={key:1,class:"gantt-btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Nk={class:"icon-fallback"},_k={key:0,class:"confirm-dialog"},Mk={class:"dialog-content"},Ok={class:"dialog-message"},Rk={class:"dialog-actions"},Ou="gantt-theme",Hk="gantt-locale",Pk=i.defineComponent({__name:"GanttToolbar",props:{config:{default:()=>({})},onAddTask:{type:Function,default:void 0},onAddMilestone:{type:Function,default:void 0},onTodayLocate:{type:Function,default:void 0},onExportCsv:{type:Function,default:void 0},onExportPdf:{type:Function,default:void 0},onLanguageChange:{type:Function,default:void 0},onThemeChange:{type:Function,default:void 0},onFullscreenChange:{type:Function,default:void 0},onTimeScaleChange:{type:Function,default:void 0},onExpandAll:{type:Function,default:void 0},onCollapseAll:{type:Function,default:void 0},onSettingsConfirm:{type:Function,default:void 0}},emits:["add-task","add-milestone","today-locate","export-csv","export-pdf","language-change","theme-change","fullscreen-change","time-scale-change","expand-all","collapse-all"],setup(A,{emit:t}){const e=A,r=t,n={zh:"zh-CN",en:"en-US"},a=()=>{if(typeof window<"u"){const fe=localStorage.getItem(Ou);return fe!==null?fe==="dark":window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}return!1},{locale:o,setLocale:s,getTranslation:l}=ea(),c=i.ref("zh"),u=i.ref(a()),h=i.ref(!1),p=i.ref(!1),f=i.ref(qe.DAY),v=fe=>l(fe),w=i.computed(()=>v("language")),b=i.ref(!1),B=i.ref(null),F=i.ref(null),E=()=>{e.onAddTask&&typeof e.onAddTask=="function"?e.onAddTask():r("add-task")},k=()=>{e.onAddMilestone&&typeof e.onAddMilestone=="function"?e.onAddMilestone():r("add-milestone")},P=()=>{e.onTodayLocate&&typeof e.onTodayLocate=="function"?e.onTodayLocate():r("today-locate")},j=()=>{e.onExportCsv&&typeof e.onExportCsv=="function"?e.onExportCsv():r("export-csv")},M=()=>{e.onExportPdf&&typeof e.onExportPdf=="function"?e.onExportPdf():r("export-pdf")},O=()=>{e.onExpandAll&&typeof e.onExpandAll=="function"?e.onExpandAll():r("expand-all")},L=()=>{e.onCollapseAll&&typeof e.onCollapseAll=="function"?e.onCollapseAll():r("collapse-all")},R=()=>{p.value=!p.value},S=fe=>{c.value=fe,p.value=!1;const ce=n[c.value];s(ce),e.onLanguageChange&&typeof e.onLanguageChange=="function"?e.onLanguageChange(ce):r("language-change",ce),F.value=ce,B.value="language",b.value=!0},T=async()=>{if(!B.value||F.value===null){le();return}if(e.onSettingsConfirm&&typeof e.onSettingsConfirm=="function")try{if(!await e.onSettingsConfirm(B.value,F.value)){le();return}}catch{le();return}B.value==="theme"?G():B.value==="language"&&N(),le()},G=()=>{typeof window<"u"&&typeof F.value=="boolean"&&localStorage.setItem(Ou,F.value?"dark":"light")},N=()=>{typeof window<"u"&&typeof F.value=="string"&&localStorage.setItem(Hk,F.value)},oe=()=>{le()},le=()=>{b.value=!1,B.value=null,F.value=null},Z=()=>{const fe=!u.value;u.value=fe,document.documentElement.setAttribute("data-theme",fe?"dark":"light"),e.onThemeChange&&typeof e.onThemeChange=="function"?e.onThemeChange(fe):r("theme-change",fe),F.value=fe,B.value="theme",b.value=!0},ee=()=>{h.value=!h.value,window.dispatchEvent(new CustomEvent("fullscreen-toggle",{detail:h.value})),e.onFullscreenChange&&typeof e.onFullscreenChange=="function"?e.onFullscreenChange(h.value):r("fullscreen-change",h.value)},X={hour:{value:qe.HOUR,label:()=>v("timeScaleHour")},day:{value:qe.DAY,label:()=>v("timeScaleDay")},week:{value:qe.WEEK,label:()=>v("timeScaleWeek")},month:{value:qe.MONTH,label:()=>v("timeScaleMonth")},quarter:{value:qe.QUARTER,label:()=>v("timeScaleQuarter")},year:{value:qe.YEAR,label:()=>v("timeScaleYear")}},re=["hour","day","week","month","year"],se=i.computed(()=>{var Fe;const ce=(((Fe=e.config)==null?void 0:Fe.timeScaleDimensions)??re).filter(Pe=>Pe in X);return ce.length>0?ce:[...re]}),x=i.computed(()=>{var Fe;const fe=se.value,ce=(Fe=e.config)==null?void 0:Fe.defaultTimeScale;return ce&&fe.includes(ce)?ce:fe.includes("day")?"day":fe[0]??"day"}),I=fe=>{f.value=fe,e.onTimeScaleChange&&typeof e.onTimeScaleChange=="function"?e.onTimeScaleChange(fe):r("time-scale-change",fe)};let W=!1;i.watch(()=>x.value,fe=>{const ce=X[fe].value;(f.value!==ce||!W)&&(W=!0,I(ce))},{immediate:!0});const z=i.computed(()=>se.value.find(ce=>X[ce].value===f.value)??x.value),Ae=()=>{const fe=se.value.findIndex(Ze=>Ze===z.value),ce=se.value.length;if(ce===0||fe<0)return{transform:"translateX(0%)",width:`${100/ce||25}%`};const Fe=100/ce;return{transform:`translateX(${fe*100}%)`,width:`${Fe}%`}},he=fe=>{!fe.target.closest(".language-dropdown")&&p.value&&(p.value=!1)};return i.onMounted(()=>{const fe=o.value;c.value=fe==="zh-CN"?"zh":"en",document.documentElement.setAttribute("data-theme",u.value?"dark":"light"),document.addEventListener("click",he),window.matchMedia&&typeof window<"u"&&!localStorage.getItem(Ou)&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",ce=>{u.value=ce.matches,document.documentElement.setAttribute("data-theme",ce.matches?"dark":"light")})}),i.onUnmounted(()=>{document.removeEventListener("click",he)}),(fe,ce)=>(i.openBlock(),i.createElementBlock("div",ak,[i.createElementVNode("div",ik,[fe.config.showAddTask!==!1||fe.config.showAddMilestone!==!1?(i.openBlock(),i.createElementBlock("div",sk,[fe.config.showAddTask!==!1?(i.openBlock(),i.createElementBlock("button",{key:0,class:"gantt-btn-group-item",title:v("addTask"),onClick:E},[ce[0]||(ce[0]=i.createElementVNode("svg",{class:"gantt-btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[i.createElementVNode("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),i.createElementVNode("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)),i.createTextVNode(" "+i.toDisplayString(v("addTask")),1)],8,ok)):i.createCommentVNode("",!0),fe.config.showAddMilestone!==!1?(i.openBlock(),i.createElementBlock("button",{key:1,class:"gantt-btn-group-item",title:v("addMilestone"),onClick:k},[ce[1]||(ce[1]=i.createStaticVNode('<svg class="gantt-btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-ed3a47c3><g transform="rotate(45 12 12)" data-v-ed3a47c3><rect x="4" y="4" width="16" height="16" rx="4" ry="4" fill="none" stroke="currentColor" data-v-ed3a47c3></rect></g><line x1="12" y1="8" x2="12" y2="16" data-v-ed3a47c3></line><line x1="8" y1="12" x2="16" y2="12" data-v-ed3a47c3></line></svg>',1)),i.createTextVNode(" "+i.toDisplayString(v("addMilestone")),1)],8,lk)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),fe.config.showExpandCollapse!==!1?(i.openBlock(),i.createElementBlock("div",ck,[i.createElementVNode("button",{class:"gantt-btn-group-item",title:v("expandAll"),onClick:O},[ce[2]||(ce[2]=i.createElementVNode("svg",{class:"gantt-btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[i.createElementVNode("polyline",{points:"6 9 12 15 18 9"})],-1)),i.createTextVNode(" "+i.toDisplayString(v("expandAll")),1)],8,uk),i.createElementVNode("button",{class:"gantt-btn-group-item",title:v("collapseAll"),onClick:L},[ce[3]||(ce[3]=i.createElementVNode("svg",{class:"gantt-btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[i.createElementVNode("polyline",{points:"18 15 12 9 6 15"})],-1)),i.createTextVNode(" "+i.toDisplayString(v("collapseAll")),1)],8,fk)])):i.createCommentVNode("",!0),fe.config.showExportCsv!==!1||fe.config.showExportPdf!==!1?(i.openBlock(),i.createElementBlock("div",dk,[fe.config.showExportCsv!==!1?(i.openBlock(),i.createElementBlock("button",{key:0,class:"gantt-btn-group-item",title:v("exportCsv"),onClick:j},[ce[4]||(ce[4]=i.createStaticVNode('<svg class="gantt-btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-ed3a47c3><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z" data-v-ed3a47c3></path><polyline points="14,2 14,8 20,8" data-v-ed3a47c3></polyline><line x1="16" y1="13" x2="8" y2="13" data-v-ed3a47c3></line><line x1="16" y1="17" x2="8" y2="17" data-v-ed3a47c3></line><polyline points="10,9 9,9 8,9" data-v-ed3a47c3></polyline></svg>',1)),i.createTextVNode(" "+i.toDisplayString(v("exportCsv")),1)],8,hk)):i.createCommentVNode("",!0),fe.config.showExportPdf!==!1?(i.openBlock(),i.createElementBlock("button",{key:1,class:"gantt-btn-group-item",title:v("exportPdf"),onClick:M},[ce[5]||(ce[5]=i.createStaticVNode('<svg class="gantt-btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-ed3a47c3><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z" data-v-ed3a47c3></path><polyline points="14,2 14,8 20,8" data-v-ed3a47c3></polyline><line x1="16" y1="13" x2="8" y2="13" data-v-ed3a47c3></line><line x1="16" y1="17" x2="8" y2="17" data-v-ed3a47c3></line><line x1="12" y1="13" x2="12" y2="17" data-v-ed3a47c3></line></svg>',1)),i.createTextVNode(" "+i.toDisplayString(v("exportPdf")),1)],8,gk)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)]),i.createElementVNode("div",pk,[fe.config.showTimeScale!==!1?(i.openBlock(),i.createElementBlock("div",vk,[i.createElementVNode("div",mk,[i.createElementVNode("div",{class:"segmented-thumb",style:i.normalizeStyle(Ae())},null,4)]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(se.value,Fe=>(i.openBlock(),i.createElementBlock("button",{key:Fe,class:i.normalizeClass(["segmented-item",{active:z.value===Fe}]),title:v("timeScaleTooltip"),onClick:Pe=>I(X[Fe].value)},i.toDisplayString(X[Fe].label()),11,wk))),128))])):i.createCommentVNode("",!0),fe.config.showLanguage!==!1?(i.openBlock(),i.createElementBlock("div",Bk,[i.createElementVNode("button",{class:"toolbar-lang-btn",title:v("languageTooltip"),onClick:R},[ce[6]||(ce[6]=i.createElementVNode("svg",{class:"gantt-btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[i.createElementVNode("circle",{cx:"12",cy:"12",r:"10"}),i.createElementVNode("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),i.createElementVNode("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})],-1)),i.createElementVNode("span",bk,i.toDisplayString(w.value),1),ce[7]||(ce[7]=i.createElementVNode("svg",{class:"dropdown-arrow",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[i.createElementVNode("polyline",{points:"6,9 12,15 18,9"})],-1))],8,yk),p.value?(i.openBlock(),i.createElementBlock("div",Ck,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(["zh","en"],Fe=>i.createElementVNode("div",{key:Fe,class:i.normalizeClass(["language-option",{active:c.value===Fe}]),onClick:Pe=>S(Fe)},[i.createElementVNode("span",Fk,i.toDisplayString(Fe==="zh"?"中文":"English"),1),c.value===Fe?(i.openBlock(),i.createElementBlock("svg",kk,ce[8]||(ce[8]=[i.createElementVNode("polyline",{points:"20,6 9,17 4,12"},null,-1)]))):i.createCommentVNode("",!0)],10,Ek)),64))])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),fe.config.showTodayLocate!==!1?(i.openBlock(),i.createElementBlock("button",{key:2,class:"toolbar-icon-btn today-locate-btn",title:v("todayLocateTooltip"),onClick:P},ce[9]||(ce[9]=[i.createStaticVNode('<svg class="gantt-btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-ed3a47c3><rect x="3" y="4" width="18" height="18" rx="2" ry="2" data-v-ed3a47c3></rect><line x1="16" y1="2" x2="16" y2="6" data-v-ed3a47c3></line><line x1="8" y1="2" x2="8" y2="6" data-v-ed3a47c3></line><line x1="3" y1="10" x2="21" y2="10" data-v-ed3a47c3></line><circle cx="12" cy="16" r="1" data-v-ed3a47c3></circle></svg>',1)]),8,xk)):i.createCommentVNode("",!0),fe.config.showTheme!==!1?(i.openBlock(),i.createElementBlock("button",{key:3,class:"toolbar-icon-btn",title:v(u.value?"lightMode":"darkMode"),onClick:Z},[u.value?(i.openBlock(),i.createElementBlock("svg",Tk,ce[10]||(ce[10]=[i.createStaticVNode('<circle cx="12" cy="12" r="5" data-v-ed3a47c3></circle><line x1="12" y1="1" x2="12" y2="3" data-v-ed3a47c3></line><line x1="12" y1="21" x2="12" y2="23" data-v-ed3a47c3></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64" data-v-ed3a47c3></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78" data-v-ed3a47c3></line><line x1="1" y1="12" x2="3" y2="12" data-v-ed3a47c3></line><line x1="21" y1="12" x2="23" y2="12" data-v-ed3a47c3></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36" data-v-ed3a47c3></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22" data-v-ed3a47c3></line>',9)]))):(i.openBlock(),i.createElementBlock("svg",Uk,ce[11]||(ce[11]=[i.createElementVNode("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"},null,-1)]))),i.createElementVNode("span",Dk,i.toDisplayString(u.value?"☀️":"🌙"),1)],8,Sk)):i.createCommentVNode("",!0),fe.config.showFullscreen!==!1?(i.openBlock(),i.createElementBlock("button",{key:4,class:"toolbar-icon-btn",title:v(h.value?"exitFullscreen":"fullscreen"),onClick:ee},[h.value?(i.openBlock(),i.createElementBlock("svg",Lk,ce[12]||(ce[12]=[i.createElementVNode("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"},null,-1)]))):(i.openBlock(),i.createElementBlock("svg",Ik,ce[13]||(ce[13]=[i.createElementVNode("path",{d:"M8 3H5a2 2 0 00-2 2v3m18 0V5a2 2 0 00-2-2h-3m0 18h3a2 2 0 002-2v-3M3 16v3a2 2 0 002 2h3"},null,-1)]))),i.createElementVNode("span",Nk,i.toDisplayString(h.value?"⇲":"⇱"),1)],8,Qk)):i.createCommentVNode("",!0)]),b.value?(i.openBlock(),i.createElementBlock("div",_k,[i.createElementVNode("div",Mk,[i.createElementVNode("p",Ok,i.toDisplayString(v("confirmDialogMessage")),1),i.createElementVNode("div",Rk,[i.createElementVNode("button",{class:"gantt-btn gantt-btn-default",onClick:oe},i.toDisplayString(v("cancel")),1),i.createElementVNode("button",{class:"gantt-btn gantt-btn-primary",onClick:T},i.toDisplayString(v("confirm")),1)])])])):i.createCommentVNode("",!0)]))}}),Vk=sn(Pk,[["__scopeId","data-v-ed3a47c3"]]),Kk={success:"#67c23a",warning:"#e6a23c",error:"#f56c6c",info:"#909399"};let ns=null;function qk(){return ns||(ns=document.createElement("div"),ns.className="message-container",ns.style.cssText=`
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 12px;
      pointer-events: none;
    `,document.body.appendChild(ns)),ns}const Dl=new Map,Xv=1e3;function pp(){return{showMessage:(t,e="success",r)=>{const n=Date.now(),a=`${e}:${t}`,o=Dl.get(a);if(!(r!=null&&r.allowDuplicate)&&o&&n-o<Xv)return;Dl.set(a,n);for(const[v,w]of Dl.entries())n-w>Xv*2&&Dl.delete(v);const s=document.createElement("div");s.className=`message ${e}`,s.textContent=t,s.style.cssText=`
      min-width: 180px;
      max-width: 360px;
      margin: 0;
      padding: 12px 20px 12px 20px;
      border-radius: 4px;
      color: white;
      font-size: 14px;
      background: ${Kk[e]};
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
      pointer-events: auto;
      opacity: 0;
      display: flex;
      align-items: center;
      gap: 12px;
      transform: translateY(-20px);
      transition: opacity 0.25s, transform 0.25s;
      position: relative;
    `;let l=!1;const c=(r==null?void 0:r.closable)??!1;if(c){const v=document.createElement("button");v.innerHTML='<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>',v.style.cssText=`
        background: transparent;
        border: none;
        color: white;
        cursor: pointer;
        margin-left: 8px;
        padding: 0;
        display: flex;
        align-items: center;
        opacity: 0.7;
        transition: opacity 0.2s;
      `,v.onmouseenter=()=>v.style.opacity="1",v.onmouseleave=()=>v.style.opacity="0.7",v.onclick=()=>f(),s.appendChild(v)}const u=qk();u.appendChild(s),setTimeout(()=>{s.style.opacity="0.98",s.style.transform="translateY(0)"},10);const h=(r==null?void 0:r.duration)??(c?0:3e3);let p;!c&&h>0&&(p=window.setTimeout(()=>f(),h));function f(){l||(l=!0,s.style.opacity="0",s.style.transform="translateY(-20px)",p&&clearTimeout(p),setTimeout(()=>{s.parentNode&&(u.removeChild(s),u.childElementCount===0&&(u.remove(),ns=null))},250))}}}}const jk={class:"el-input__wrapper"},Wk={class:"el-input__inner"},Gk=["value","placeholder","disabled"],Yk={class:"el-input__suffix"},zk={class:"el-input__suffix-inner"},$k={key:1,class:"el-input__icon"},Xk={class:"el-time-picker-header"},Jk={class:"el-time-picker-title"},Zk={class:"el-time-picker-content"},ex={class:"el-time-column"},tx={class:"el-time-column-header"},rx=["onClick"],Ax={class:"el-time-column"},nx={class:"el-time-column-header"},ax=["onClick"],ix={class:"el-time-picker-footer"},sx={key:0,class:"el-year-picker"},ox={class:"el-year-picker__header"},lx={class:"el-year-picker__header-label"},cx={class:"el-year-picker__content"},ux=["onClick"],fx={key:1,class:"el-month-picker"},dx={class:"el-month-picker__header"},hx={class:"el-month-picker__content"},gx=["onClick"],px={key:2,class:"el-date-picker__content-wrapper"},vx={class:"el-date-picker__header"},mx={class:"el-date-picker__header-label"},wx={class:"el-date-picker__content"},Bx={class:"el-date-table__header"},yx={class:"el-date-table__body"},bx=["onClick"],Cx={class:"el-date-table__cell-inner"},Ex={key:0,class:"el-time-picker-input"},Fx={class:"el-time-picker-label",for:"time-input"},kx=["value","placeholder"],xx={key:1,class:"el-date-picker-footer"},Sx=i.defineComponent({__name:"DatePicker",props:{modelValue:{default:""},type:{default:"date"},placeholder:{default:"请选择日期"},startPlaceholder:{default:"开始日期"},endPlaceholder:{default:"结束日期"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},size:{default:"default"},format:{default:"YYYY-MM-DD"},valueFormat:{default:"YYYY-MM-DD"},rangeSeparator:{default:"至"}},emits:["update:modelValue","change","focus","blur"],setup(A,{emit:t}){const e=A,r=t,{t:n}=ea(),a=i.ref(!1),o=i.ref(!1),s=i.ref(!1),l=i.ref(!1),c=i.ref(!1),u=i.ref(!1),h=i.ref(),p=i.ref(),f=i.ref(),v=i.ref(),w=i.ref(),b=i.ref(),B=i.ref(null),F=i.ref(0),E=i.ref(""),k=i.ref("12:00"),P=i.ref(""),j=i.ref(""),M=i.ref(new Date().getFullYear()),O=i.ref(new Date().getMonth()),L=i.ref(Math.floor(new Date().getFullYear()/10)*10),R=i.ref(""),S=i.ref(""),T=i.ref(""),G=i.ref("start"),N=i.ref("12:00"),oe=i.ref(12),le=i.ref(0),Z=(ye,He)=>{if(!ye)return"";const _e=new Date(ye);if(isNaN(_e.getTime()))return"";const je=e.format.includes("-")?"-":"/",wt=`${_e.getFullYear()}${je}${String(_e.getMonth()+1).padStart(2,"0")}${je}${String(_e.getDate()).padStart(2,"0")}`;return e.type==="datetime"&&He?`${wt} ${He}`:wt},ee=i.computed(()=>{if(e.type==="daterange"){const ye=S.value?Z(S.value,N.value):"",He=T.value?Z(T.value,N.value):"";return ye&&He?`${ye} ${e.rangeSeparator} ${He}`:ye||He||""}return R.value?Z(R.value,N.value):""}),X=ye=>{if(!ye)return{dateStr:"",timeStr:"12:00"};const He=ye.trim().split(" ");if(He.length>=2){const je=He[0],wt=He[1],Qt=je.split("/");return Qt.length===3?{dateStr:`${Qt[0]}-${Qt[1].padStart(2,"0")}-${Qt[2].padStart(2,"0")}`,timeStr:wt}:{dateStr:je,timeStr:wt}}const _e=He[0];if(_e.includes("/")){const je=_e.split("/");if(je.length===3)return{dateStr:`${je[0]}-${je[1].padStart(2,"0")}-${je[2].padStart(2,"0")}`,timeStr:"12:00"}}return{dateStr:_e,timeStr:"12:00"}};i.watch(()=>e.modelValue,ye=>{if(e.type==="daterange")if(Array.isArray(ye)&&ye.length===2){const He=X(ye[0]||""),_e=X(ye[1]||"");S.value=He.dateStr,T.value=_e.dateStr,He.timeStr!=="12:00"&&(N.value=He.timeStr)}else S.value="",T.value="",N.value="12:00";else{const He=X(ye||"");R.value=He.dateStr,N.value=He.timeStr}},{immediate:!0});const re=()=>{e.type==="daterange"?(S.value="",T.value="",r("update:modelValue",["",""]),r("change",["",""])):(R.value="",r("update:modelValue",""),r("change","")),s.value=!1},se=()=>{if(!e.disabled&&(s.value=!s.value,s.value)){e.type==="daterange"?(P.value=S.value,j.value=T.value):(E.value=R.value,k.value=N.value),tt.x=window.scrollX,tt.y=window.scrollY,F.value++;let ye;if(e.type==="daterange"){const He=S.value||T.value;ye=He?new Date(He):new Date}else ye=R.value?new Date(R.value):new Date;isNaN(ye.getTime())?(ye=new Date,M.value=ye.getFullYear(),O.value=ye.getMonth()):(M.value=ye.getFullYear(),O.value=ye.getMonth())}},x=()=>{e.type==="datetime"&&s.value?(R.value=E.value,N.value=k.value):e.type==="daterange"&&s.value&&(S.value=P.value,T.value=j.value),s.value=!1,l.value=!1,c.value=!1,u.value=!1,a.value=!1,B.value&&(clearTimeout(B.value),B.value=null)},I=ye=>{if(ye&&(ye.preventDefault(),ye.stopPropagation()),u.value)return;B.value&&(clearTimeout(B.value),B.value=null),u.value=!0;const[He,_e]=N.value.split(":").map(Number);oe.value=He,le.value=_e,i.nextTick(()=>{W()})},W=()=>{if(w.value){const ye=w.value.querySelectorAll(".el-time-item"),He=oe.value;if(ye[He]){const wt=Math.max(0,He*28-80+14);w.value.scrollTop=wt}}if(b.value){const ye=b.value.querySelectorAll(".el-time-item"),_e=[0,15,30,45].indexOf(le.value);if(_e>=0&&ye[_e]){const Qt=Math.max(0,_e*28-80+14);b.value.scrollTop=Qt}}},z=()=>{u.value=!1},Ae=()=>{N.value=`${String(oe.value).padStart(2,"0")}:${String(le.value).padStart(2,"0")}`,z()},he=i.computed(()=>Array.from({length:24},(ye,He)=>He)),fe=i.computed(()=>[0,15,30,45]),ce=ye=>{oe.value=ye},Fe=ye=>{le.value=ye},Pe=()=>{if(e.type==="daterange"){if(S.value&&T.value){const ye=wt=>{const Qt=new Date(wt),Tt=e.valueFormat.includes("-")?"-":"/",gr=`${Qt.getFullYear()}${Tt}${String(Qt.getMonth()+1).padStart(2,"0")}${Tt}${String(Qt.getDate()).padStart(2,"0")}`;return N.value?`${gr} ${N.value}`:gr},He=ye(S.value),_e=ye(T.value),je=[He,_e];r("update:modelValue",je),r("change",je),P.value=S.value,j.value=T.value}}else if(R.value){const ye=new Date(R.value),He=e.valueFormat.includes("-")?"-":"/",_e=`${ye.getFullYear()}${He}${String(ye.getMonth()+1).padStart(2,"0")}${He}${String(ye.getDate()).padStart(2,"0")}`,je=N.value?`${_e} ${N.value}`:_e;r("update:modelValue",je),r("change",je),E.value=R.value,k.value=N.value}setTimeout(()=>{x()},150)},Ze=ye=>{var Qt,Tt,gr;const He=ye.target,_e=(Qt=h.value)==null?void 0:Qt.contains(He),je=(Tt=p.value)==null?void 0:Tt.contains(He),wt=(gr=f.value)==null?void 0:gr.contains(He);!_e&&!je&&!wt?x():!wt&&u.value&&!je&&z()},tt={x:0,y:0},lt=()=>{if(s.value){const ye=window.scrollX,He=window.scrollY,_e=Math.abs(ye-tt.x),je=Math.abs(He-tt.y);_e<50&&je<50?F.value++:x(),tt.x=ye,tt.y=He}},Q=()=>{s.value&&F.value++},De=i.computed(()=>{const ye=new Date(M.value,O.value,1),He=new Date(ye);He.setDate(He.getDate()-ye.getDay());const _e=[];for(let je=0;je<42;je++){const wt=new Date(He);wt.setDate(He.getDate()+je);const Qt=`${wt.getFullYear()}-${String(wt.getMonth()+1).padStart(2,"0")}-${String(wt.getDate()).padStart(2,"0")}`,Tt=wt.getMonth()===O.value,gr=Qt===new Date().toISOString().split("T")[0],Or=e.type==="daterange"?Qt===S.value||Qt===T.value:Qt===R.value,Ft=e.type==="daterange"&&S.value&&T.value?Qt>=S.value&&Qt<=T.value:!1;_e.push({date:wt,dateStr:Qt,day:wt.getDate(),isCurrentMonth:Tt,isToday:gr,isSelected:Or,isInRange:Ft})}return _e}),pe=ye=>{if(e.type==="daterange")G.value==="start"||!S.value||S.value&&T.value?(S.value=ye,T.value="",G.value="end"):(ye<S.value?(T.value=S.value,S.value=ye):T.value=ye,G.value="start");else if(R.value=ye,e.type==="date"){const He=new Date(ye),_e=e.valueFormat.includes("-")?"-":"/",je=`${He.getFullYear()}${_e}${String(He.getMonth()+1).padStart(2,"0")}${_e}${String(He.getDate()).padStart(2,"0")}`;r("update:modelValue",je),r("change",je),E.value=R.value,setTimeout(()=>{x()},150)}},ge=ye=>{ye&&(ye.preventDefault(),ye.stopPropagation()),B.value&&(clearTimeout(B.value),B.value=null),O.value===0?(O.value=11,M.value--):O.value--},Ee=ye=>{ye&&(ye.preventDefault(),ye.stopPropagation()),B.value&&(clearTimeout(B.value),B.value=null),O.value===11?(O.value=0,M.value++):O.value++},xe=ye=>{ye&&(ye.preventDefault(),ye.stopPropagation()),B.value&&(clearTimeout(B.value),B.value=null),M.value--},Qe=ye=>{ye&&(ye.preventDefault(),ye.stopPropagation()),B.value&&(clearTimeout(B.value),B.value=null),M.value++},Oe=ye=>{ye&&(ye.preventDefault(),ye.stopPropagation()),B.value&&(clearTimeout(B.value),B.value=null),l.value=!0,c.value=!1,L.value=Math.floor(M.value/10)*10},Ve=ye=>{ye&&(ye.preventDefault(),ye.stopPropagation()),B.value&&(clearTimeout(B.value),B.value=null),c.value=!0,l.value=!1},Re=(ye,He)=>{He&&(He.preventDefault(),He.stopPropagation()),B.value&&(clearTimeout(B.value),B.value=null),M.value=ye,l.value=!1,c.value=!0},$e=(ye,He)=>{He&&(He.preventDefault(),He.stopPropagation()),B.value&&(clearTimeout(B.value),B.value=null),O.value=ye,c.value=!1},at=ye=>{ye&&(ye.preventDefault(),ye.stopPropagation()),B.value&&(clearTimeout(B.value),B.value=null),L.value-=10},gt=ye=>{ye&&(ye.preventDefault(),ye.stopPropagation()),B.value&&(clearTimeout(B.value),B.value=null),L.value+=10},mt=i.computed(()=>{const ye=[];for(let He=0;He<10;He++)ye.push(L.value+He);return ye});i.onMounted(()=>{document.addEventListener("click",Ze),window.addEventListener("scroll",lt,!0),window.addEventListener("resize",Q),tt.x=window.scrollX,tt.y=window.scrollY}),i.onUnmounted(()=>{document.removeEventListener("click",Ze),window.removeEventListener("scroll",lt,!0),window.removeEventListener("resize",Q),B.value&&(clearTimeout(B.value),B.value=null)});const ht=ye=>{B.value&&(clearTimeout(B.value),B.value=null),a.value=!0,r("focus",ye)},Bt=ye=>{B.value=setTimeout(()=>{a.value=!1,x(),r("blur",ye)},150)},pt=()=>{B.value&&(clearTimeout(B.value),B.value=null)},zt=()=>{u.value||(B.value=setTimeout(()=>{x()},150))},_t=()=>{B.value=setTimeout(()=>{z()},150)},Ut=()=>{o.value=!0},Lt=()=>{o.value=!1},Xt=i.computed(()=>["el-date-picker",`el-date-picker--${e.size}`,{"is-disabled":e.disabled,"is-focused":a.value,"is-range":e.type==="daterange"}]),Et=i.computed(()=>!e.clearable||e.disabled?!1:e.type==="daterange"?(S.value||T.value)&&o.value:R.value&&o.value),rr=i.computed(()=>{if(!h.value||!s.value)return{};const ye=h.value.getBoundingClientRect(),He=280,_e=300,je=4,wt=window.innerWidth,Qt=window.innerHeight,Tt={position:"fixed",zIndex:"10000"},gr=Qt-ye.bottom,Or=ye.top;gr>=_e+je||gr>=Or?Tt.top=`${ye.bottom+je}px`:Tt.top=`${ye.top-_e-je}px`;const Ft=wt-ye.left,hA=ye.right;if(Ft>=He)Tt.left=`${ye.left}px`;else if(hA>=He)Tt.left=`${ye.right-He}px`;else{const xr=ye.left+(ye.width-He)/2,fr=je,Cr=wt-He-je;Tt.left=`${Math.max(fr,Math.min(xr,Cr))}px`}const lA=parseFloat(Tt.top),cA=parseFloat(Tt.left);return lA<je?Tt.top=`${je}px`:lA+_e>Qt-je&&(Tt.top=`${Qt-_e-je}px`),cA<je?Tt.left=`${je}px`:cA+He>wt-je&&(Tt.left=`${wt-He-je}px`),Tt}),St=i.computed(()=>{if(!v.value||!u.value)return{};const ye=v.value.getBoundingClientRect(),He=180,_e=300,je=4,wt=window.innerWidth,Qt=window.innerHeight,Tt={position:"fixed",zIndex:"10002"};wt-ye.left>=He?Tt.left=`${ye.left}px`:Tt.left=`${Math.max(je,wt-He-je)}px`,ye.top>=_e+je?Tt.top=`${ye.top-_e-je}px`:Tt.top=`${ye.bottom+je}px`;const Ft=parseFloat(Tt.top);return Ft<je?Tt.top=`${je}px`:Ft+_e>Qt-je&&(Tt.top=`${Qt-_e-je}px`),Tt});return(ye,He)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(Xt.value),onMouseenter:Ut,onMouseleave:Lt},[i.createElementVNode("div",{ref_key:"inputRef",ref:h,class:"el-input",onClick:se},[i.createElementVNode("div",jk,[i.createElementVNode("div",Wk,[i.createElementVNode("input",{value:ee.value,type:"text",class:"el-input__inner-input",placeholder:ye.type==="daterange"?`${ye.startPlaceholder} ${ye.rangeSeparator} ${ye.endPlaceholder}`:ye.placeholder,disabled:ye.disabled,readonly:"",onFocus:ht,onBlur:Bt},null,40,Gk)]),i.createElementVNode("div",Yk,[i.createElementVNode("div",zk,[Et.value?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"el-input__clear",onClick:i.withModifiers(re,["stop"])},He[12]||(He[12]=[i.createElementVNode("svg",{class:"el-icon",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})],-1)]))):(i.openBlock(),i.createElementBlock("span",$k,He[13]||(He[13]=[i.createElementVNode("svg",{class:"el-icon",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M128 384v512h768V384H128zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32z"}),i.createElementVNode("path",{fill:"currentColor",d:"M288 128a32 32 0 0 1 64 0v192a32 32 0 0 1-64 0V128zm384 0a32 32 0 0 1 64 0v192a32 32 0 0 1-64 0V128z"}),i.createElementVNode("path",{fill:"currentColor",d:"M96 320h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"})],-1)])))])])])],512),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createVNode(i.Transition,{name:"picker-fade"},{default:i.withCtx(()=>[u.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"timePickerRef",ref:f,class:"el-time-picker-panel",style:i.normalizeStyle(St.value),tabindex:"-1",onClick:He[4]||(He[4]=i.withModifiers(()=>{},["stop"])),onMousedown:He[5]||(He[5]=i.withModifiers(()=>{},["prevent"])),onFocus:pt,onBlur:_t},[i.createElementVNode("div",Xk,[i.createElementVNode("span",Jk,i.toDisplayString(i.unref(n).selectTime),1)]),i.createElementVNode("div",Zk,[i.createElementVNode("div",ex,[i.createElementVNode("div",tx,i.toDisplayString(i.unref(n).hour),1),i.createElementVNode("div",{ref_key:"hourListRef",ref:w,class:"el-time-column-list"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(he.value,_e=>(i.openBlock(),i.createElementBlock("div",{key:_e,class:i.normalizeClass(["el-time-item",{"is-active":_e===oe.value}]),onClick:i.withModifiers(je=>ce(_e),["stop"]),onMousedown:He[0]||(He[0]=i.withModifiers(()=>{},["prevent"]))},i.toDisplayString(String(_e).padStart(2,"0")),43,rx))),128))],512)]),i.createElementVNode("div",Ax,[i.createElementVNode("div",nx,i.toDisplayString(i.unref(n).minute),1),i.createElementVNode("div",{ref_key:"minuteListRef",ref:b,class:"el-time-column-list"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(fe.value,_e=>(i.openBlock(),i.createElementBlock("div",{key:_e,class:i.normalizeClass(["el-time-item",{"is-active":_e===le.value}]),onClick:i.withModifiers(je=>Fe(_e),["stop"]),onMousedown:He[1]||(He[1]=i.withModifiers(()=>{},["prevent"]))},i.toDisplayString(String(_e).padStart(2,"0")),43,ax))),128))],512)])]),i.createElementVNode("div",ix,[i.createElementVNode("button",{class:"el-time-picker-btn el-time-picker-btn--cancel",onClick:i.withModifiers(z,["stop"]),onMousedown:He[2]||(He[2]=i.withModifiers(()=>{},["prevent"]))},i.toDisplayString(i.unref(n).cancel),33),i.createElementVNode("button",{class:"el-time-picker-btn el-time-picker-btn--confirm",onClick:i.withModifiers(Ae,["stop"]),onMousedown:He[3]||(He[3]=i.withModifiers(()=>{},["prevent"]))},i.toDisplayString(i.unref(n).confirm),33)])],36)):i.createCommentVNode("",!0)]),_:1})])),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createVNode(i.Transition,{name:"picker-fade"},{default:i.withCtx(()=>[s.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:p,class:"el-picker-panel",style:i.normalizeStyle(rr.value),tabindex:"-1",onFocus:pt,onBlur:zt},[l.value?(i.openBlock(),i.createElementBlock("div",sx,[i.createElementVNode("div",ox,[i.createElementVNode("button",{type:"button",class:"el-picker-panel__icon-btn",onClick:at}," << "),i.createElementVNode("span",lx,i.toDisplayString(L.value)+" - "+i.toDisplayString(L.value+9),1),i.createElementVNode("button",{type:"button",class:"el-picker-panel__icon-btn",onClick:gt}," >> ")]),i.createElementVNode("div",cx,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(mt.value,_e=>(i.openBlock(),i.createElementBlock("div",{key:_e,class:i.normalizeClass(["el-year-picker__item",{"is-current":_e===M.value}]),onClick:je=>Re(_e,je)},i.toDisplayString(_e),11,ux))),128))])])):c.value?(i.openBlock(),i.createElementBlock("div",fx,[i.createElementVNode("div",dx,[i.createElementVNode("button",{type:"button",class:"el-picker-panel__icon-btn",onClick:xe}," << "),i.createElementVNode("span",{class:"el-month-picker__header-label",onClick:He[6]||(He[6]=_e=>Oe(_e))},i.toDisplayString(M.value),1),i.createElementVNode("button",{type:"button",class:"el-picker-panel__icon-btn",onClick:Qe}," >> ")]),i.createElementVNode("div",hx,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(n).monthNames,(_e,je)=>(i.openBlock(),i.createElementBlock("div",{key:je,class:i.normalizeClass(["el-month-picker__item",{"is-current":je===O.value}]),onClick:wt=>$e(je,wt)},i.toDisplayString(_e),11,gx))),128))])])):(i.openBlock(),i.createElementBlock("div",px,[i.createElementVNode("div",vx,[i.createElementVNode("button",{type:"button",class:"el-picker-panel__icon-btn",onClick:xe}," << "),i.createElementVNode("button",{type:"button",class:"el-picker-panel__icon-btn",onClick:ge}," < "),i.createElementVNode("span",mx,[i.createElementVNode("span",{class:"el-date-picker__header-year",onClick:He[7]||(He[7]=_e=>Oe(_e))},i.toDisplayString(M.value),1),i.createElementVNode("span",{class:"el-date-picker__header-month",onClick:He[8]||(He[8]=_e=>Ve(_e))},i.toDisplayString(i.unref(n).monthNames[O.value]),1)]),i.createElementVNode("button",{type:"button",class:"el-picker-panel__icon-btn",onClick:Ee}," > "),i.createElementVNode("button",{type:"button",class:"el-picker-panel__icon-btn",onClick:Qe}," >> ")]),i.createElementVNode("div",wx,[i.createElementVNode("div",Bx,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(n).weekDays,_e=>(i.openBlock(),i.createElementBlock("div",{key:_e,class:"el-date-table__header-cell"},i.toDisplayString(_e),1))),128))]),i.createElementVNode("div",yx,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(De.value,_e=>(i.openBlock(),i.createElementBlock("div",{key:`${_e.date.getTime()}`,class:i.normalizeClass(["el-date-table__cell",{"is-other-month":!_e.isCurrentMonth,"is-today":_e.isToday,"is-selected":_e.isSelected,"is-in-range":_e.isInRange,"is-range-start":ye.type==="daterange"&&_e.dateStr===S.value,"is-range-end":ye.type==="daterange"&&_e.dateStr===T.value}]),onClick:je=>pe(_e.dateStr)},[i.createElementVNode("div",Cx,i.toDisplayString(_e.day),1)],10,bx))),128))])]),ye.type==="datetime"?(i.openBlock(),i.createElementBlock("div",Ex,[i.createElementVNode("label",Fx,i.toDisplayString(i.unref(n).time)+":",1),i.createElementVNode("input",{id:"time-input",ref_key:"timeInputRef",ref:v,type:"text",class:"el-time-input",value:N.value,placeholder:i.unref(n).selectTime,readonly:"",onClick:He[9]||(He[9]=_e=>I(_e)),onMousedown:He[10]||(He[10]=i.withModifiers(()=>{},["prevent"]))},null,40,kx)])):i.createCommentVNode("",!0),ye.type==="datetime"?(i.openBlock(),i.createElementBlock("div",xx,[i.createElementVNode("button",{class:"el-date-picker-btn el-date-picker-btn--confirm",onClick:i.withModifiers(Pe,["stop"]),onMousedown:He[11]||(He[11]=i.withModifiers(()=>{},["prevent"]))},i.toDisplayString(i.unref(n).confirm),33)])):i.createCommentVNode("",!0)]))],36)):i.createCommentVNode("",!0)]),_:1})]))],34))}}),mg=sn(Sx,[["__scopeId","data-v-7516f998"]]),Tx={class:"multi-select-predecessor"},Ux={class:"form-label",for:"predecessor-select"},Dx={class:"predecessor-selector"},Qx={key:0,class:"selected-tags"},Lx=["onClick"],Ix={class:"select-wrapper"},Nx={value:""},_x=["value"],Mx=i.defineComponent({__name:"MultiSelectPredecessor",props:{modelValue:{default:()=>[]},tasks:{},currentTaskId:{default:void 0},label:{default:"前置任务"},placeholder:{default:"请选择前置任务"}},emits:["update:modelValue"],setup(A,{emit:t}){const e=A,r=t,n=i.ref(""),a=i.computed(()=>e.modelValue||[]),o=i.computed(()=>a.value.map(u=>e.tasks.find(h=>h.id===u)).filter(u=>u)),s=i.computed(()=>e.tasks.filter(u=>u.type==="task"&&u.id!==e.currentTaskId&&!a.value.includes(u.id))),l=()=>{if(n.value){const u=Number(n.value);if(!a.value.includes(u)){const h=[...a.value,u];r("update:modelValue",h)}n.value=""}},c=u=>{const h=a.value.filter(p=>p!==u);r("update:modelValue",h)};return i.watch(()=>e.modelValue,()=>{n.value=""},{immediate:!0}),(u,h)=>(i.openBlock(),i.createElementBlock("div",Tx,[i.createElementVNode("label",Ux,i.toDisplayString(u.label),1),i.createElementVNode("div",Dx,[o.value.length>0?(i.openBlock(),i.createElementBlock("div",Qx,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,p=>(i.openBlock(),i.createElementBlock("span",{key:p.id,class:"predecessor-tag"},[i.createTextVNode(i.toDisplayString(p.name)+" ("+i.toDisplayString(p.id)+") ",1),i.createElementVNode("button",{type:"button",class:"remove-tag-btn",onClick:f=>c(p.id)}," × ",8,Lx)]))),128))])):i.createCommentVNode("",!0),i.createElementVNode("div",Ix,[i.withDirectives(i.createElementVNode("select",{id:"predecessor-select","onUpdate:modelValue":h[0]||(h[0]=p=>n.value=p),class:"form-select",onChange:l},[i.createElementVNode("option",Nx,i.toDisplayString(u.placeholder),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,p=>(i.openBlock(),i.createElementBlock("option",{key:p.id,value:p.id},i.toDisplayString(p.name)+" (ID: "+i.toDisplayString(p.id)+") ",9,_x))),128))],544),[[i.vModelSelect,n.value]])])])]))}}),Ox=sn(Mx,[["__scopeId","data-v-3bddb4ad"]]),Rx={class:"drawer-header",style:{display:"flex","align-items":"center","justify-content":"flex-start",gap:"8px"}},Hx={class:"drawer-title",style:{margin:"0"}},Px={key:0,class:"drawer-timer",style:{display:"flex","align-items":"center",gap:"6px","margin-left":"8px"}},Vx={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",style:{display:"block",margin:"0 auto"}},Kx={key:0,class:"timer-dot",style:{background:"#67c23a",width:"7px",height:"7px","border-radius":"50%","margin-right":"5px",animation:"pulse 1s infinite"}},qx={class:"close-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",style:{"vertical-align":"middle"}},jx={class:"drawer-body"},Wx={class:"form-group"},Gx={class:"form-label",for:"task-name"},Yx=["placeholder"],zx={key:0,class:"error-text"},$x={class:"form-group"},Xx={class:"form-label",for:"task-type"},Jx={value:"story"},Zx={value:"task"},eS={value:"bug"},tS={key:0,class:"error-text"},rS={class:"form-group"},AS={class:"form-label",for:"task-assignee"},nS={value:""},aS=["value"],iS={class:"form-group"},sS={class:"form-label",for:"task-parent"},oS={value:void 0},lS=["value"],cS={class:"form-row"},uS={class:"form-group"},fS={class:"form-label",for:"task-start-date"},dS={key:0,class:"error-text"},hS={class:"form-group"},gS={class:"form-label",for:"task-end-date"},pS={key:0,class:"error-text"},vS={class:"form-row"},mS={class:"form-group"},wS={class:"form-label",for:"task-estimated-hours"},BS={class:"form-group"},yS={class:"form-label",for:"task-actual-hours"},bS={class:"form-group"},CS={class:"form-label",for:"task-progress"},ES={class:"progress-container"},FS={class:"progress-input-group"},kS={class:"form-group"},xS={class:"form-label",for:"task-description"},SS=["placeholder"],TS={class:"drawer-footer"},US={class:"footer-left"},DS=["disabled"],QS={key:0,class:"loading-spinner"},LS={class:"footer-right"},IS=["disabled"],NS={key:0,class:"loading-spinner"},_S=i.defineComponent({__name:"TaskDrawer",props:{visible:{type:Boolean,default:!1},task:{default:null},isEdit:{type:Boolean,default:!1},onDelete:{type:Function,default:void 0},assigneeOptions:{default:()=>[{value:"zhangsan",label:"张三"},{value:"lisi",label:"李四"},{value:"wangwu",label:"王五"},{value:"zhaoliu",label:"赵六"},{value:"qianqi",label:"钱七"}]}},emits:["update:visible","submit","close","delete","start-timer","stop-timer"],setup(A,{emit:t}){const e=A,r=t,{t:n}=ea(),{showMessage:a}=pp(),o=i.ref(!1),s=i.ref(e.visible),l=i.ref(!1),c=i.ref(0),u=i.ref(null),h=i.computed(()=>{var pe;return(pe=e.task)==null?void 0:pe.isTimerRunning}),p=i.computed(()=>{var pe;return(pe=e.task)==null?void 0:pe.timerStartTime}),f=i.computed(()=>{var pe;return((pe=e.task)==null?void 0:pe.timerElapsedTime)||0}),v=i.computed(()=>{const pe=Math.floor(c.value/1e3),ge=Math.floor(pe/3600),Ee=Math.floor(pe%3600/60),xe=pe%60;return`${String(ge).padStart(2,"0")}:${String(Ee).padStart(2,"0")}:${String(xe).padStart(2,"0")}`}),w=()=>{h.value&&p.value?c.value=Date.now()-p.value+f.value:c.value=f.value};i.watch(()=>{var pe,ge,Ee;return[(pe=e.task)==null?void 0:pe.isTimerRunning,(ge=e.task)==null?void 0:ge.timerStartTime,(Ee=e.task)==null?void 0:Ee.timerElapsedTime]},()=>{w()});const b=i.ref(!1);i.watch(()=>{var pe;return(pe=e.task)==null?void 0:pe.isTimerRunning},pe=>{b.value=!!pe,!pe&&u.value&&(clearInterval(u.value),u.value=null)},{immediate:!0}),i.watch([b,p,f],()=>{u.value&&(clearInterval(u.value),u.value=null),b.value&&p.value?(w(),u.value=window.setInterval(w,1e3)):w()},{immediate:!0}),i.onUnmounted(()=>{u.value&&clearInterval(u.value)});const B=i.computed(()=>{var pe;return((pe=e.task)==null?void 0:pe.type)==="story"?"yes-no-cancel":"confirm-cancel"}),F=i.computed(()=>{var pe,ge,Ee;return((pe=e.task)==null?void 0:pe.type)==="story"?n.value.confirmDeleteStory.replace("{name}",((ge=e.task)==null?void 0:ge.name)||""):n.value.confirmDeleteTask.replace("{name}",((Ee=e.task)==null?void 0:Ee.name)||"")}),E=i.reactive({id:0,name:"",type:"task",assignee:"",startDate:"",endDate:"",predecessor:[],estimatedHours:0,actualHours:0,progress:0,description:"",parentId:void 0,isTimerRunning:!1,timerStartTime:void 0,timerEndTime:void 0,timerElapsedTime:0,children:void 0}),k=i.ref([]),P=i.computed(()=>k.value.filter(pe=>{var ge;return pe.id!==((ge=e.task)==null?void 0:ge.id)&&(pe.type==="story"||pe.type==="task")}).map(pe=>({...pe,displayName:`${pe.name} (${j(pe.type||"task")})`}))),j=pe=>{var ge;return((ge=n.value.taskTypeMap)==null?void 0:ge[pe])||pe},M=i.computed(()=>({"--progress-percent":`${E.progress||0}%`})),O=i.ref("0"),L=pe=>{const ge=pe.target;let Ee=ge.value;Ee=Ee.replace(/[^\d]/g,""),ge.value=Ee,O.value=Ee},R=()=>{const pe=O.value;let ge=parseInt(pe)||0;ge<0||isNaN(ge)?ge=0:ge>100&&(ge=100),E.progress=ge,O.value=ge.toString()},S=pe=>{const ge=pe.target;let Ee=parseFloat(ge.value);isNaN(Ee)||Ee<0?Ee=0:Ee>99999&&(Ee=99999),E.estimatedHours=Math.round(Ee*100)/100},T=pe=>{const ge=pe.target;let Ee=parseFloat(ge.value);isNaN(Ee)||Ee<0?Ee=0:Ee>99999&&(Ee=99999),E.actualHours=Math.round(Ee*100)/100},G=pe=>{const ge=pe.target;setTimeout(()=>{ge.select()},0)},N=pe=>{const ge=pe.key,Ee=["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","Control","Meta","Alt","Shift"],xe=/^\d$/.test(ge),Qe=Ee.includes(ge);pe.ctrlKey||pe.metaKey||!xe&&!Qe&&pe.preventDefault()},oe=(pe,ge)=>{if(!pe)return"";if(typeof pe=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(pe.trim())){if(ge==="start")return`${pe} 00:00`;if(ge==="end"){const Ee=new Date(pe);Ee.setDate(Ee.getDate()+1);const xe=Ee.getFullYear(),Qe=String(Ee.getMonth()+1).padStart(2,"0"),Oe=String(Ee.getDate()).padStart(2,"0");return`${xe}-${Qe}-${Oe} 00:00`}}return pe},le=i.reactive({name:"",type:"",startDate:"",endDate:""});i.watch(()=>e.visible,pe=>{if(s.value=pe,pe){if(e.task&&e.isEdit){Z();const ge={...e.task};ge.startDate=oe(ge.startDate,"start"),ge.endDate=oe(ge.endDate,"end"),i.nextTick(()=>{Object.assign(E,ge)})}else e.task&&!e.isEdit?(Z(),E.parentId=e.task.parentId??void 0,E.predecessor=e.task.predecessor??[]):Z();window.dispatchEvent(new CustomEvent("request-task-list"))}}),i.watch(s,pe=>{r("update:visible",pe)}),i.watch(()=>e.task,pe=>{pe&&!e.isEdit&&(E.parentId=pe.parentId??void 0)},{immediate:!0});const Z=()=>{Object.assign(E,{name:"",type:"task",assignee:"",startDate:"",endDate:"",predecessor:[],estimatedHours:0,actualHours:0,progress:0,description:"",parentId:void 0,isTimerRunning:!1,timerStartTime:void 0,timerEndTime:void 0,timerElapsedTime:0,children:void 0}),Object.keys(le).forEach(pe=>{le[pe]=""})},ee=()=>{var ge;let pe=!0;return Object.keys(le).forEach(Ee=>{le[Ee]=""}),(ge=E.name)!=null&&ge.trim()?E.name.length>50&&(le.name=n.value.taskNameTooLong,pe=!1):(le.name=n.value.taskNameRequired,pe=!1),E.type||(le.type=n.value.taskTypeRequired,pe=!1),E.startDate||(le.startDate=n.value.startDateRequired,pe=!1),E.endDate?E.startDate&&new Date(E.endDate)<new Date(E.startDate)&&(le.endDate=n.value.endDateInvalid,pe=!1):(le.endDate=n.value.endDateRequired,pe=!1),pe},X=()=>{s.value=!1,r("close")},re=()=>{X()},se=async()=>{if(ee())try{o.value=!0;const pe={...E,id:e.isEdit&&e.task?e.task.id:Date.now()};r("submit",pe),X()}catch{}finally{o.value=!1}},x=()=>{l.value=!0},I=pe=>{let ge="";pe&&typeof pe=="object"&&"message"in pe&&typeof pe.message=="string"?ge=pe.message:ge=String(pe),a(ge,"error",{closable:!0})},W=()=>{if(l.value=!1,e.task&&e.isEdit)try{o.value=!0,r("delete",e.task),X()}catch(pe){I(pe)}finally{o.value=!1}},z=()=>{l.value=!1},Ae=()=>{if(l.value=!1,e.task&&e.isEdit)try{o.value=!0,r("delete",e.task,!0),X()}catch(pe){I(pe)}finally{o.value=!1}},he=()=>{if(l.value=!1,e.task&&e.isEdit)try{o.value=!0,r("delete",e.task,!1),X()}catch(pe){I(pe)}finally{o.value=!1}},fe=pe=>{k.value=pe.detail||[]};i.onMounted(()=>{window.addEventListener("task-list-updated",fe),window.dispatchEvent(new CustomEvent("request-task-list"))}),i.onUnmounted(()=>{window.removeEventListener("task-list-updated",fe)}),i.watch(()=>E.progress,pe=>{O.value=(pe||0).toString()},{immediate:!0}),i.watch(()=>e.visible,pe=>{pe&&e.task&&e.task.type!=="story"&&(c.value=e.task.timerElapsedTime||0,e.task.isTimerRunning||u.value&&(clearInterval(u.value),u.value=null))},{immediate:!0});const ce=pe=>{const ge=Date.now();e.task&&typeof e.task=="object"&&(Object.assign(e.task,{timerStartTime:ge,isTimerRunning:!0,timerElapsedTime:0,timerStartDesc:pe||""}),r("start-timer",e.task)),c.value=0,b.value=!0,w(),u.value&&(clearInterval(u.value),u.value=null),window.dispatchEvent(new CustomEvent("start-timer",{detail:e.task}))},Fe=()=>{e.task&&typeof e.task=="object"&&r("stop-timer",e.task),b.value=!1,u.value&&(clearInterval(u.value),u.value=null),w(),window.dispatchEvent(new CustomEvent("stop-timer",{detail:e.task}))},Pe=i.ref(!1),Ze=i.ref("");function tt(){var pe;Ze.value=((pe=e.task)==null?void 0:pe.name)||"",Pe.value=!0}function lt(){Pe.value=!1}function Q(pe){Pe.value=!1,ce(pe)}const De=pe=>{var xe;const ge=pe.target.value,Ee=(xe=e.assigneeOptions)==null?void 0:xe.find(Qe=>Qe.value===ge);Ee&&(E.assigneeName=Ee.label)};return(pe,ge)=>{var Ee,xe,Qe,Oe;return i.openBlock(),i.createElementBlock(i.Fragment,null,[s.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"drawer-overlay",onClick:re},[i.createElementVNode("div",{class:"drawer-container",onClick:ge[12]||(ge[12]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",Rx,[i.createElementVNode("h3",Hx,i.toDisplayString(pe.isEdit?i.unref(n).editTask:i.unref(n).newTask),1),((Ee=e.task)==null?void 0:Ee.type)!=="story"&&pe.isEdit?(i.openBlock(),i.createElementBlock("div",Px,[b.value?(i.openBlock(),i.createElementBlock("button",{key:1,class:"timer-btn stop minimal",title:"停止计时",style:{width:"24px",height:"24px",background:"#f44336",border:"none",padding:"0",margin:"0","box-shadow":"none",cursor:"pointer","border-radius":"50%",display:"flex","align-items":"center","justify-content":"center",transition:"background 0.2s"},onClick:i.withModifiers(Fe,["stop"])},ge[14]||(ge[14]=[i.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[i.createElementVNode("circle",{cx:"12",cy:"12",r:"11",stroke:"#f44336","stroke-width":"2",fill:"#f44336"}),i.createElementVNode("rect",{x:"7",y:"7",width:"10",height:"10",fill:"#fff",rx:"1.5"})],-1)]))):(i.openBlock(),i.createElementBlock("button",{key:0,class:"timer-btn start minimal",title:"开始计时",style:{width:"24px",height:"24px",background:"#4caf50",border:"none",padding:"0",margin:"0","box-shadow":"none",cursor:"pointer","border-radius":"50%",display:"flex","align-items":"center","justify-content":"center",transition:"background 0.2s"},onClick:i.withModifiers(tt,["stop"])},[(i.openBlock(),i.createElementBlock("svg",Vx,ge[13]||(ge[13]=[i.createElementVNode("circle",{cx:"12",cy:"12",r:"11",stroke:"#4caf50","stroke-width":"2",fill:"#4caf50"},null,-1),i.createElementVNode("polygon",{points:"9,7 18,12 9,17",fill:"#fff"},null,-1)])))])),b.value?(i.openBlock(),i.createElementBlock("span",{key:2,class:i.normalizeClass(["timer-badge",{"timer-active":b.value}]),style:{"margin-left":"8px","font-size":"13px","font-weight":"700",padding:"2px 10px","border-radius":"10px",background:"#fffbe6",color:"#e6a23c","box-shadow":"0 0 0 1px #ffe58f",display:"inline-flex","align-items":"center","min-width":"80px","justify-content":"center"}},[b.value?(i.openBlock(),i.createElementBlock("span",Kx)):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(v.value),1)],2)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),ge[16]||(ge[16]=i.createElementVNode("div",{style:{flex:"1"}},null,-1)),i.createElementVNode("button",{class:"drawer-close-btn",type:"button",onClick:X},[(i.openBlock(),i.createElementBlock("svg",qx,ge[15]||(ge[15]=[i.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),i.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)])))])]),i.createElementVNode("div",jx,[i.createElementVNode("form",{class:"task-form",onSubmit:i.withModifiers(se,["prevent"])},[i.createElementVNode("div",Wx,[i.createElementVNode("label",Gx,[i.createTextVNode(i.toDisplayString(i.unref(n).taskName)+" ",1),ge[17]||(ge[17]=i.createElementVNode("span",{class:"required"},"*",-1))]),i.withDirectives(i.createElementVNode("input",{id:"task-name","onUpdate:modelValue":ge[0]||(ge[0]=Ve=>E.name=Ve),type:"text",class:i.normalizeClass(["form-input",{error:le.name}]),placeholder:i.unref(n).taskNamePlaceholder},null,10,Yx),[[i.vModelText,E.name]]),le.name?(i.openBlock(),i.createElementBlock("span",zx,i.toDisplayString(le.name),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",$x,[i.createElementVNode("label",Xx,[i.createTextVNode(i.toDisplayString(i.unref(n).taskType)+" ",1),ge[18]||(ge[18]=i.createElementVNode("span",{class:"required"},"*",-1))]),i.withDirectives(i.createElementVNode("select",{id:"task-type","onUpdate:modelValue":ge[1]||(ge[1]=Ve=>E.type=Ve),class:i.normalizeClass(["form-select",{error:le.type}])},[i.createElementVNode("option",Jx,i.toDisplayString(i.unref(n).taskTypeMap.story),1),i.createElementVNode("option",Zx,i.toDisplayString(i.unref(n).taskTypeMap.task),1),i.createElementVNode("option",eS,i.toDisplayString(i.unref(n).taskTypeMap.bug),1)],2),[[i.vModelSelect,E.type]]),le.type?(i.openBlock(),i.createElementBlock("span",tS,i.toDisplayString(le.type),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",rS,[i.createElementVNode("label",AS,i.toDisplayString(i.unref(n).assignee),1),i.withDirectives(i.createElementVNode("select",{id:"task-assignee","onUpdate:modelValue":ge[2]||(ge[2]=Ve=>E.assignee=Ve),class:"form-select",onChange:De},[i.createElementVNode("option",nS,i.toDisplayString(i.unref(n).selectAssignee),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.assigneeOptions,Ve=>(i.openBlock(),i.createElementBlock("option",{key:Ve.key??Ve.value,value:Ve.value},i.toDisplayString(Ve.label),9,aS))),128))],544),[[i.vModelSelect,E.assignee]])]),i.createElementVNode("div",iS,[i.createElementVNode("label",sS,i.toDisplayString(i.unref(n).parentTask),1),i.withDirectives(i.createElementVNode("select",{id:"task-parent","onUpdate:modelValue":ge[3]||(ge[3]=Ve=>E.parentId=Ve),class:"form-select"},[i.createElementVNode("option",oS,i.toDisplayString(i.unref(n).noParentTask),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(P.value,Ve=>(i.openBlock(),i.createElementBlock("option",{key:Ve.id,value:Ve.id},i.toDisplayString(Ve.displayName),9,lS))),128))],512),[[i.vModelSelect,E.parentId]])]),i.createElementVNode("div",cS,[i.createElementVNode("div",uS,[i.createElementVNode("label",fS,[i.createTextVNode(i.toDisplayString(i.unref(n).startDate)+" ",1),ge[19]||(ge[19]=i.createElementVNode("span",{class:"required"},"*",-1))]),i.createVNode(mg,{id:"task-start-date",modelValue:E.startDate,"onUpdate:modelValue":ge[4]||(ge[4]=Ve=>E.startDate=Ve),type:"datetime","value-format":"YYYY-MM-DD HH:mm",placeholder:i.unref(n).startDateRequired,class:i.normalizeClass({error:le.startDate})},null,8,["modelValue","placeholder","class"]),le.startDate?(i.openBlock(),i.createElementBlock("span",dS,i.toDisplayString(le.startDate),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",hS,[i.createElementVNode("label",gS,[i.createTextVNode(i.toDisplayString(i.unref(n).endDate)+" ",1),ge[20]||(ge[20]=i.createElementVNode("span",{class:"required"},"*",-1))]),i.createVNode(mg,{id:"task-end-date",modelValue:E.endDate,"onUpdate:modelValue":ge[5]||(ge[5]=Ve=>E.endDate=Ve),type:"datetime","value-format":"YYYY-MM-DD HH:mm",placeholder:i.unref(n).endDateRequired,class:i.normalizeClass({error:le.endDate})},null,8,["modelValue","placeholder","class"]),le.endDate?(i.openBlock(),i.createElementBlock("span",pS,i.toDisplayString(le.endDate),1)):i.createCommentVNode("",!0)])]),i.createVNode(Ox,{modelValue:E.predecessor,"onUpdate:modelValue":ge[6]||(ge[6]=Ve=>E.predecessor=Ve),tasks:k.value,"current-task-id":(xe=e.task)==null?void 0:xe.id,label:i.unref(n).predecessor,placeholder:i.unref(n).predecessorPlaceholder},null,8,["modelValue","tasks","current-task-id","label","placeholder"]),i.createElementVNode("div",vS,[i.createElementVNode("div",mS,[i.createElementVNode("label",wS,i.toDisplayString(i.unref(n).estimatedHours),1),i.withDirectives(i.createElementVNode("input",{id:"task-estimated-hours","onUpdate:modelValue":ge[7]||(ge[7]=Ve=>E.estimatedHours=Ve),type:"number",class:"form-input",placeholder:"0.00",min:"0",max:"99999",step:"0.01",onInput:S},null,544),[[i.vModelText,E.estimatedHours]])]),i.createElementVNode("div",BS,[i.createElementVNode("label",yS,i.toDisplayString(i.unref(n).actualHours),1),i.withDirectives(i.createElementVNode("input",{id:"task-actual-hours","onUpdate:modelValue":ge[8]||(ge[8]=Ve=>E.actualHours=Ve),type:"number",class:"form-input",placeholder:"0.00",min:"0",max:"99999",step:"0.01",onInput:T},null,544),[[i.vModelText,E.actualHours]])])]),i.createElementVNode("div",bS,[i.createElementVNode("label",CS,i.toDisplayString(i.unref(n).progress),1),i.createElementVNode("div",ES,[i.withDirectives(i.createElementVNode("input",{id:"task-progress","onUpdate:modelValue":ge[9]||(ge[9]=Ve=>E.progress=Ve),type:"range",class:"progress-slider",style:i.normalizeStyle(M.value),min:"0",max:"100",step:"5"},null,4),[[i.vModelText,E.progress,void 0,{number:!0}]]),i.createElementVNode("div",FS,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":ge[10]||(ge[10]=Ve=>O.value=Ve),type:"text",class:"progress-input",placeholder:"0",maxlength:"3",onBlur:R,onKeyup:i.withKeys(R,["enter"]),onInput:L,onFocus:G,onKeydown:N},null,544),[[i.vModelText,O.value]]),ge[21]||(ge[21]=i.createElementVNode("span",{class:"progress-unit"},"%",-1))])])]),i.createElementVNode("div",kS,[i.createElementVNode("label",xS,i.toDisplayString(i.unref(n).description),1),i.withDirectives(i.createElementVNode("textarea",{id:"task-description","onUpdate:modelValue":ge[11]||(ge[11]=Ve=>E.description=Ve),class:"form-textarea",placeholder:i.unref(n).descriptionPlaceholder,rows:"3"},null,8,SS),[[i.vModelText,E.description]])])],32)]),i.createElementVNode("div",TS,[i.createElementVNode("div",US,[pe.isEdit&&pe.task?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"gantt-btn gantt-btn-danger",disabled:o.value,onClick:x},[o.value?(i.openBlock(),i.createElementBlock("span",QS)):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(i.unref(n).delete),1)],8,DS)):i.createCommentVNode("",!0),i.createVNode(gp,{visible:l.value,title:i.unref(n).delete,type:B.value,message:F.value,"confirm-text":i.unref(n).confirm,"cancel-text":i.unref(n).cancel,"yes-text":i.unref(n).storyDeleteYes,"no-text":i.unref(n).storyDeleteNo,onConfirm:W,onYes:Ae,onNo:he,onCancel:z},null,8,["visible","title","type","message","confirm-text","cancel-text","yes-text","no-text"])]),i.createElementVNode("div",LS,[i.createElementVNode("button",{type:"button",class:"gantt-btn gantt-btn-default",onClick:X},i.toDisplayString(i.unref(n).cancel),1),i.createElementVNode("button",{type:"button",class:"gantt-btn gantt-btn-primary",disabled:o.value,onClick:se},[o.value?(i.openBlock(),i.createElementBlock("span",NS)):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(pe.isEdit?i.unref(n).update:i.unref(n).create),1)],8,IS)])])])])):i.createCommentVNode("",!0),Pe.value?(i.openBlock(),i.createBlock(ry,{key:1,visible:Pe.value,title:"确认开始计时",message:`即将为任务${(Qe=e.task)==null?void 0:Qe.name}计时,若有特殊说明请完善下面的描述`,"default-desc":((Oe=e.task)==null?void 0:Oe.name)||"",onConfirm:Q,onCancel:lt},null,8,["visible","message","default-desc"])):i.createCommentVNode("",!0)],64)}}}),ly=sn(_S,[["__scopeId","data-v-5d6778b8"]]),MS={class:"milestone-dialog-header"},OS={class:"milestone-dialog-title"},RS=["title"],HS={class:"milestone-dialog-content"},PS={class:"milestone-form-row"},VS={class:"milestone-form-item milestone-form-item-full"},KS={class:"milestone-form-label required",for:"milestone-name"},qS=["placeholder"],jS={key:0,class:"milestone-form-error"},WS={class:"milestone-form-row"},GS={class:"milestone-form-item"},YS={class:"milestone-form-label required",for:"milestone-date"},zS={key:0,class:"milestone-form-error"},$S={class:"milestone-form-item"},XS={class:"milestone-form-label",for:"milestone-icon"},JS=["aria-expanded"],ZS={class:"selected-icon"},e3={key:0,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},t3={key:1,class:"rocket-emoji-mini"},r3={key:0,class:"milestone-icon-options"},A3={class:"milestone-form-row"},n3={class:"milestone-form-item milestone-form-item-full"},a3={class:"milestone-form-label",for:"milestone-description"},i3={class:"textarea-wrapper"},s3=["placeholder"],o3={class:"textarea-footer"},l3={class:"char-count"},c3={class:"milestone-dialog-footer"},u3={class:"milestone-dialog-footer-left"},f3={class:"milestone-dialog-footer-right"},d3=["disabled"],h3=i.defineComponent({__name:"MilestoneDialog",props:{visible:{type:Boolean},milestone:{}},emits:["update:visible","close","save","delete"],setup(A,{emit:t}){const e=A,r=t,n=i.reactive({id:void 0,name:"",startDate:"",assignee:"",type:"milestone",icon:"diamond",description:""}),a=i.reactive({name:"",startDate:""}),o=i.ref(!1),s=i.ref(!1),l=i.ref(null),c=()=>{const j=l.value;j&&(j.style.height="auto",j.style.height=`${Math.min(j.scrollHeight,120)}px`)};i.watch(()=>e.milestone,j=>{j?Object.assign(n,{id:j.id,name:j.name||"",startDate:j.startDate||"",assignee:j.assignee||"",type:j.type||"milestone",icon:j.icon||"diamond",description:j.description||""}):Object.assign(n,{id:void 0,name:"",startDate:"",assignee:"",type:"milestone",icon:"diamond",description:""}),a.name="",a.startDate=""},{immediate:!0}),i.watch(()=>e.visible,j=>{j&&!e.milestone&&(Object.assign(n,{id:void 0,name:"",startDate:"",assignee:"",type:"milestone",icon:"diamond",description:""}),a.name="",a.startDate="")});const u=()=>{a.name="",a.startDate="";let j=!0;return n.name.trim()||(a.name=P("milestoneNameRequired"),j=!1),n.startDate||(a.startDate=P("milestoneDateRequired"),j=!1),j},h=i.computed(()=>n.name.trim()&&n.startDate),p=j=>{n.icon=j,o.value=!1},f=()=>{if(u()){const j={...n,endDate:n.startDate,id:n.id};r("save",j),F()}},v=()=>{n.id&&(s.value=!0)},w=()=>{n.id&&(r("delete",n.id),s.value=!1,F())},b=()=>{s.value=!1},B=i.computed(()=>e.milestone&&e.milestone.id),F=()=>{o.value=!1,r("update:visible",!1),r("close")},E=()=>{F()},{t:k}=ea(),P=j=>k.value[j]||j;return(j,M)=>{var O;return j.visible?(i.openBlock(),i.createElementBlock("div",{key:0,class:"milestone-dialog-overlay",onClick:E},[i.createElementVNode("div",{class:"milestone-dialog",onClick:M[6]||(M[6]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",MS,[i.createElementVNode("h3",OS,[M[7]||(M[7]=i.createElementVNode("svg",{class:"milestone-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[i.createElementVNode("g",{transform:"rotate(45 12 12)"},[i.createElementVNode("rect",{x:"4",y:"4",width:"16",height:"16",rx:"4",ry:"4",fill:"currentColor",opacity:"0.1"}),i.createElementVNode("rect",{x:"4",y:"4",width:"16",height:"16",rx:"4",ry:"4",stroke:"currentColor",fill:"none"})])],-1)),i.createTextVNode(" "+i.toDisplayString(B.value?i.unref(k).editMilestone:i.unref(k).newMilestone),1)]),i.createElementVNode("button",{class:"milestone-dialog-close",title:P("close"),onClick:F},"×",8,RS)]),i.createElementVNode("div",HS,[i.createElementVNode("form",{class:"milestone-form",onSubmit:i.withModifiers(f,["prevent"])},[i.createElementVNode("div",PS,[i.createElementVNode("div",VS,[i.createElementVNode("label",KS,i.toDisplayString(P("milestoneName")),1),i.withDirectives(i.createElementVNode("input",{id:"milestone-name","onUpdate:modelValue":M[0]||(M[0]=L=>n.name=L),type:"text",class:i.normalizeClass(["milestone-form-input",{error:a.name}]),placeholder:P("enterMilestoneName"),required:""},null,10,qS),[[i.vModelText,n.name]]),a.name?(i.openBlock(),i.createElementBlock("span",jS,i.toDisplayString(a.name),1)):i.createCommentVNode("",!0)])]),i.createElementVNode("div",WS,[i.createElementVNode("div",GS,[i.createElementVNode("label",YS,i.toDisplayString(P("milestoneDate")),1),i.createVNode(mg,{id:"milestone-date",modelValue:n.startDate,"onUpdate:modelValue":M[1]||(M[1]=L=>n.startDate=L),type:"date","value-format":"YYYY-MM-DD",placeholder:"请选择里程碑日期",class:i.normalizeClass({error:a.startDate})},null,8,["modelValue","class"]),a.startDate?(i.openBlock(),i.createElementBlock("span",zS,i.toDisplayString(a.startDate),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",$S,[i.createElementVNode("label",XS,i.toDisplayString(P("milestoneIcon")),1),i.createElementVNode("div",{class:i.normalizeClass(["milestone-icon-dropdown",{active:o.value}])},[i.createElementVNode("button",{id:"milestone-icon",type:"button",class:"milestone-icon-trigger","aria-expanded":o.value,"aria-haspopup":"listbox",onClick:M[2]||(M[2]=L=>o.value=!o.value)},[i.createElementVNode("div",ZS,[n.icon==="diamond"?(i.openBlock(),i.createElementBlock("svg",e3,M[8]||(M[8]=[i.createElementVNode("g",{transform:"rotate(45 12 12)"},[i.createElementVNode("rect",{x:"6",y:"6",width:"12",height:"12",rx:"3",ry:"3",fill:"currentColor"})],-1)]))):n.icon==="rocket"?(i.openBlock(),i.createElementBlock("div",t3,"🚀")):i.createCommentVNode("",!0),i.createElementVNode("span",null,i.toDisplayString(P(n.icon||"diamond")),1)]),M[9]||(M[9]=i.createElementVNode("svg",{class:"dropdown-arrow",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[i.createElementVNode("polyline",{points:"6,9 12,15 18,9"})],-1))],8,JS),o.value?(i.openBlock(),i.createElementBlock("div",r3,[i.createElementVNode("div",{class:i.normalizeClass(["icon-option",{selected:n.icon==="diamond"}]),onClick:M[3]||(M[3]=L=>p("diamond"))},[M[10]||(M[10]=i.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[i.createElementVNode("g",{transform:"rotate(45 12 12)"},[i.createElementVNode("rect",{x:"6",y:"6",width:"12",height:"12",rx:"3",ry:"3",fill:"currentColor"})])],-1)),i.createElementVNode("span",null,i.toDisplayString(P("diamond")),1)],2),i.createElementVNode("div",{class:i.normalizeClass(["icon-option",{selected:n.icon==="rocket"}]),onClick:M[4]||(M[4]=L=>p("rocket"))},[M[11]||(M[11]=i.createElementVNode("div",{class:"rocket-emoji-option"},"🚀",-1)),i.createElementVNode("span",null,i.toDisplayString(P("rocket")),1)],2)])):i.createCommentVNode("",!0)],2)])]),i.createElementVNode("div",A3,[i.createElementVNode("div",n3,[i.createElementVNode("label",a3,i.toDisplayString(P("description")),1),i.createElementVNode("div",i3,[i.withDirectives(i.createElementVNode("textarea",{id:"milestone-description",ref_key:"descriptionTextarea",ref:l,"onUpdate:modelValue":M[5]||(M[5]=L=>n.description=L),class:"milestone-form-textarea",placeholder:P("enterDescription"),rows:"4",maxlength:"500",onInput:c},null,40,s3),[[i.vModelText,n.description]]),i.createElementVNode("div",o3,[i.createElementVNode("span",l3,i.toDisplayString(((O=n.description)==null?void 0:O.length)||0)+"/500",1)])])])])],32)]),i.createElementVNode("div",c3,[i.createElementVNode("div",u3,[B.value?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"gantt-btn gantt-btn-danger",onClick:v},i.toDisplayString(i.unref(k).delete),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",f3,[i.createElementVNode("button",{type:"button",class:"gantt-btn gantt-btn-default",onClick:F},i.toDisplayString(i.unref(k).cancel),1),i.createElementVNode("button",{type:"button",class:"gantt-btn gantt-btn-primary",disabled:!h.value,onClick:f},i.toDisplayString(i.unref(k).confirm),9,d3)])])]),i.createVNode(gp,{visible:s.value,title:i.unref(k).delete,message:i.unref(k).confirmDelete,"confirm-text":i.unref(k).confirm,"cancel-text":i.unref(k).cancel,onConfirm:w,onCancel:b},null,8,["visible","title","message","confirm-text","cancel-text"])])):i.createCommentVNode("",!0)}}}),cy=sn(h3,[["__scopeId","data-v-da9a3d65"]]);function wg(A,t,e=null){for(const r of A){if(r.id===t)return e;if(r.children&&r.children.length>0){const n=wg(r.children,t,r);if(n!==null)return n}}return null}function uy(A,t){for(let e=0;e<A.length;e++){if(A[e].id===t)return A.splice(e,1)[0];if(A[e].children&&A[e].children.length>0){const r=uy(A[e].children,t);if(r)return r}}return null}function fy(A,t,e,r){for(let n=0;n<A.length;n++){if(A[n].id===t)return r==="after"||A[n].type==="milestone-group"?(e.parentId=A[n].parentId,A.splice(n+1,0,e)):(e.parentId=t,A[n].children||(A[n].children=[]),A[n].children.unshift(e)),!0;if(A[n].children&&A[n].children.length>0&&fy(A[n].children,t,e,r))return!0}return!1}function g3(A,t,e,r){const n=wg(A,t),a=uy(A,t);if(!a)return null;if(!fy(A,e,a,r))return n&&n.children?n.children.push(a):A.push(a),null;const s=wg(A,t);return{movedTask:a,oldParent:n,newParent:s}}function Dr(A){"@babel/helpers - typeof";return Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(A)}var Ta=Uint8Array,Zn=Uint16Array,vp=Int32Array,mp=new Ta([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]),wp=new Ta([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]),Jv=new Ta([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),dy=function(A,t){for(var e=new Zn(31),r=0;r<31;++r)e[r]=t+=1<<A[r-1];for(var n=new vp(e[30]),r=1;r<30;++r)for(var a=e[r];a<e[r+1];++a)n[a]=a-e[r]<<5|r;return{b:e,r:n}},hy=dy(mp,2),p3=hy.b,Bg=hy.r;p3[28]=258,Bg[258]=28;var v3=dy(wp,0),Zv=v3.r,yg=new Zn(32768);for(var nA=0;nA<32768;++nA){var Qi=(nA&43690)>>1|(nA&21845)<<1;Qi=(Qi&52428)>>2|(Qi&13107)<<2,Qi=(Qi&61680)>>4|(Qi&3855)<<4,yg[nA]=((Qi&65280)>>8|(Qi&255)<<8)>>1}var Po=(function(A,t,e){for(var r=A.length,n=0,a=new Zn(t);n<r;++n)A[n]&&++a[A[n]-1];var o=new Zn(t);for(n=1;n<t;++n)o[n]=o[n-1]+a[n-1]<<1;var s;if(e){s=new Zn(1<<t);var l=15-t;for(n=0;n<r;++n)if(A[n])for(var c=n<<4|A[n],u=t-A[n],h=o[A[n]-1]++<<u,p=h|(1<<u)-1;h<=p;++h)s[yg[h]>>l]=c}else for(s=new Zn(r),n=0;n<r;++n)A[n]&&(s[n]=yg[o[A[n]-1]++]>>15-A[n]);return s}),gs=new Ta(288);for(var nA=0;nA<144;++nA)gs[nA]=8;for(var nA=144;nA<256;++nA)gs[nA]=9;for(var nA=256;nA<280;++nA)gs[nA]=7;for(var nA=280;nA<288;++nA)gs[nA]=8;var Uc=new Ta(32);for(var nA=0;nA<32;++nA)Uc[nA]=5;var m3=Po(gs,9,0),w3=Po(Uc,5,0),gy=function(A){return(A+7)/8|0},B3=function(A,t,e){return(e==null||e>A.length)&&(e=A.length),new Ta(A.subarray(t,e))},ri=function(A,t,e){e<<=t&7;var r=t/8|0;A[r]|=e,A[r+1]|=e>>8},yo=function(A,t,e){e<<=t&7;var r=t/8|0;A[r]|=e,A[r+1]|=e>>8,A[r+2]|=e>>16},Ru=function(A,t){for(var e=[],r=0;r<A.length;++r)A[r]&&e.push({s:r,f:A[r]});var n=e.length,a=e.slice();if(!n)return{t:vy,l:0};if(n==1){var o=new Ta(e[0].s+1);return o[e[0].s]=1,{t:o,l:1}}e.sort(function(P,j){return P.f-j.f}),e.push({s:-1,f:25001});var s=e[0],l=e[1],c=0,u=1,h=2;for(e[0]={s:-1,f:s.f+l.f,l:s,r:l};u!=n-1;)s=e[e[c].f<e[h].f?c++:h++],l=e[c!=u&&e[c].f<e[h].f?c++:h++],e[u++]={s:-1,f:s.f+l.f,l:s,r:l};for(var p=a[0].s,r=1;r<n;++r)a[r].s>p&&(p=a[r].s);var f=new Zn(p+1),v=bg(e[u-1],f,0);if(v>t){var r=0,w=0,b=v-t,B=1<<b;for(a.sort(function(j,M){return f[M.s]-f[j.s]||j.f-M.f});r<n;++r){var F=a[r].s;if(f[F]>t)w+=B-(1<<v-f[F]),f[F]=t;else break}for(w>>=b;w>0;){var E=a[r].s;f[E]<t?w-=1<<t-f[E]++-1:++r}for(;r>=0&&w;--r){var k=a[r].s;f[k]==t&&(--f[k],++w)}v=t}return{t:new Ta(f),l:v}},bg=function(A,t,e){return A.s==-1?Math.max(bg(A.l,t,e+1),bg(A.r,t,e+1)):t[A.s]=e},e0=function(A){for(var t=A.length;t&&!A[--t];);for(var e=new Zn(++t),r=0,n=A[0],a=1,o=function(l){e[r++]=l},s=1;s<=t;++s)if(A[s]==n&&s!=t)++a;else{if(!n&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(n),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(n);a=1,n=A[s]}return{c:e.subarray(0,r),n:t}},bo=function(A,t){for(var e=0,r=0;r<t.length;++r)e+=A[r]*t[r];return e},py=function(A,t,e){var r=e.length,n=gy(t+2);A[n]=r&255,A[n+1]=r>>8,A[n+2]=A[n]^255,A[n+3]=A[n+1]^255;for(var a=0;a<r;++a)A[n+a+4]=e[a];return(n+4+r)*8},t0=function(A,t,e,r,n,a,o,s,l,c,u){ri(t,u++,e),++n[256];for(var h=Ru(n,15),p=h.t,f=h.l,v=Ru(a,15),w=v.t,b=v.l,B=e0(p),F=B.c,E=B.n,k=e0(w),P=k.c,j=k.n,M=new Zn(19),O=0;O<F.length;++O)++M[F[O]&31];for(var O=0;O<P.length;++O)++M[P[O]&31];for(var L=Ru(M,7),R=L.t,S=L.l,T=19;T>4&&!R[Jv[T-1]];--T);var G=c+5<<3,N=bo(n,gs)+bo(a,Uc)+o,oe=bo(n,p)+bo(a,w)+o+14+3*T+bo(M,R)+2*M[16]+3*M[17]+7*M[18];if(l>=0&&G<=N&&G<=oe)return py(t,u,A.subarray(l,l+c));var le,Z,ee,X;if(ri(t,u,1+(oe<N)),u+=2,oe<N){le=Po(p,f,0),Z=p,ee=Po(w,b,0),X=w;var re=Po(R,S,0);ri(t,u,E-257),ri(t,u+5,j-1),ri(t,u+10,T-4),u+=14;for(var O=0;O<T;++O)ri(t,u+3*O,R[Jv[O]]);u+=3*T;for(var se=[F,P],x=0;x<2;++x)for(var I=se[x],O=0;O<I.length;++O){var W=I[O]&31;ri(t,u,re[W]),u+=R[W],W>15&&(ri(t,u,I[O]>>5&127),u+=I[O]>>12)}}else le=m3,Z=gs,ee=w3,X=Uc;for(var O=0;O<s;++O){var z=r[O];if(z>255){var W=z>>18&31;yo(t,u,le[W+257]),u+=Z[W+257],W>7&&(ri(t,u,z>>23&31),u+=mp[W]);var Ae=z&31;yo(t,u,ee[Ae]),u+=X[Ae],Ae>3&&(yo(t,u,z>>5&8191),u+=wp[Ae])}else yo(t,u,le[z]),u+=Z[z]}return yo(t,u,le[256]),u+Z[256]},y3=new vp([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),vy=new Ta(0),b3=function(A,t,e,r,n,a){var o=a.z||A.length,s=new Ta(r+o+5*(1+Math.ceil(o/7e3))+n),l=s.subarray(r,s.length-n),c=a.l,u=(a.r||0)&7;if(t){u&&(l[0]=a.r>>3);for(var h=y3[t-1],p=h>>13,f=h&8191,v=(1<<e)-1,w=a.p||new Zn(32768),b=a.h||new Zn(v+1),B=Math.ceil(e/3),F=2*B,E=function(lt){return(A[lt]^A[lt+1]<<B^A[lt+2]<<F)&v},k=new vp(25e3),P=new Zn(288),j=new Zn(32),M=0,O=0,L=a.i||0,R=0,S=a.w||0,T=0;L+2<o;++L){var G=E(L),N=L&32767,oe=b[G];if(w[N]=oe,b[G]=N,S<=L){var le=o-L;if((M>7e3||R>24576)&&(le>423||!c)){u=t0(A,l,0,k,P,j,O,R,T,L-T,u),R=M=O=0,T=L;for(var Z=0;Z<286;++Z)P[Z]=0;for(var Z=0;Z<30;++Z)j[Z]=0}var ee=2,X=0,re=f,se=N-oe&32767;if(le>2&&G==E(L-se))for(var x=Math.min(p,le)-1,I=Math.min(32767,L),W=Math.min(258,le);se<=I&&--re&&N!=oe;){if(A[L+ee]==A[L+ee-se]){for(var z=0;z<W&&A[L+z]==A[L+z-se];++z);if(z>ee){if(ee=z,X=se,z>x)break;for(var Ae=Math.min(se,z-2),he=0,Z=0;Z<Ae;++Z){var fe=L-se+Z&32767,ce=w[fe],Fe=fe-ce&32767;Fe>he&&(he=Fe,oe=fe)}}}N=oe,oe=w[N],se+=N-oe&32767}if(X){k[R++]=268435456|Bg[ee]<<18|Zv[X];var Pe=Bg[ee]&31,Ze=Zv[X]&31;O+=mp[Pe]+wp[Ze],++P[257+Pe],++j[Ze],S=L+ee,++M}else k[R++]=A[L],++P[A[L]]}}for(L=Math.max(L,S);L<o;++L)k[R++]=A[L],++P[A[L]];u=t0(A,l,c,k,P,j,O,R,T,L-T,u),c||(a.r=u&7|l[u/8|0]<<3,u-=7,a.h=b,a.p=w,a.i=L,a.w=S)}else{for(var L=a.w||0;L<o+c;L+=65535){var tt=L+65535;tt>=o&&(l[u/8|0]=c,tt=o),u=py(l,u+1,A.subarray(L,tt))}a.i=o}return B3(s,0,r+gy(u)+n)},my=function(){var A=1,t=0;return{p:function(e){for(var r=A,n=t,a=e.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)n+=r+=e[o];r=(r&65535)+15*(r>>16),n=(n&65535)+15*(n>>16)}A=r,t=n},d:function(){return A%=65521,t%=65521,(A&255)<<24|(A&65280)<<8|(t&255)<<8|t>>8}}},C3=function(A,t,e,r,n){if(!n&&(n={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),o=new Ta(a.length+A.length);o.set(a),o.set(A,a.length),A=o,n.w=a.length}return b3(A,t.level==null?6:t.level,t.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(A.length)))*1.5):20:12+t.mem,e,r,n)},wy=function(A,t,e){for(;e;++t)A[t]=e,e>>>=8},E3=function(A,t){var e=t.level,r=e==0?0:e<6?1:e==9?3:2;if(A[0]=120,A[1]=r<<6|(t.dictionary&&32),A[1]|=31-(A[0]<<8|A[1])%31,t.dictionary){var n=my();n.p(t.dictionary),wy(A,2,n.d())}};function Cg(A,t){t||(t={});var e=my();e.p(A);var r=C3(A,t,t.dictionary?6:2,4);return E3(r,t),wy(r,r.length-4,e.d()),r}var F3=typeof TextDecoder<"u"&&new TextDecoder,k3=0;try{F3.decode(vy,{stream:!0}),k3=1}catch{}function x3(A){if(Array.isArray(A))return A}function S3(A,t){var e=A==null?null:typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(e!=null){var r,n,a,o,s=[],l=!0,c=!1;try{if(a=(e=e.call(A)).next,t!==0)for(;!(l=(r=a.call(e)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,n=u}finally{try{if(!l&&e.return!=null&&(o=e.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function r0(A,t){(t==null||t>A.length)&&(t=A.length);for(var e=0,r=Array(t);e<t;e++)r[e]=A[e];return r}function T3(A,t){if(A){if(typeof A=="string")return r0(A,t);var e={}.toString.call(A).slice(8,-1);return e==="Object"&&A.constructor&&(e=A.constructor.name),e==="Map"||e==="Set"?Array.from(A):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r0(A,t):void 0}}function U3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A0(A,t){return x3(A)||S3(A,t)||T3(A,t)||U3()}function n0(A,t="utf8"){return new TextDecoder(t).decode(A)}const D3=new TextEncoder;function Q3(A){return D3.encode(A)}const L3=1024*8,I3=(()=>{const A=new Uint8Array(4),t=new Uint32Array(A.buffer);return!((t[0]=1)&A[0])})(),Hu={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 Bp{constructor(t=L3,e={}){kr(this,"buffer");kr(this,"byteLength");kr(this,"byteOffset");kr(this,"length");kr(this,"offset");kr(this,"lastWrittenByte");kr(this,"littleEndian");kr(this,"_data");kr(this,"_mark");kr(this,"_marks");let r=!1;typeof t=="number"?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const n=e.offset?e.offset>>>0:0,a=t.byteLength-n;let o=n;(ArrayBuffer.isView(t)||t instanceof Bp)&&(t.byteLength!==t.buffer.byteLength&&(o=t.byteOffset+n),t=t.buffer),r?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=t,this.length=a,this.byteLength=a,this.byteOffset=o,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,o,a),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,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 t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const r=(this.offset+t)*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(t=1){return this.readArray(t,"uint8")}readArray(t,e){const r=Hu[e].BYTES_PER_ELEMENT*t,n=this.byteOffset+this.offset,a=this.buffer.slice(n,n+r);if(this.littleEndian===I3&&e!=="uint8"&&e!=="int8"){const s=new Uint8Array(this.buffer.slice(n,n+r));s.reverse();const l=new Hu[e](s.buffer);return this.offset+=r,l.reverse(),l}const o=new Hu[e](a);return this.offset+=r,o}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let e="";for(let r=0;r<t;r++)e+=this.readChar();return e}readUtf8(t=1){return n0(this.readBytes(t))}decodeText(t=1,e="utf8"){return n0(this.readBytes(t),e)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let e=0;e<t.length;e++)this._data.setUint8(this.offset++,t[e]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let e=0;e<t.length;e++)this.writeUint8(t.charCodeAt(e));return this}writeUtf8(t){return this.writeBytes(Q3(t))}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 ro(A){let t=A.length;for(;--t>=0;)A[t]=0}const N3=3,_3=258,By=29,M3=256,O3=M3+1+By,yy=30,R3=512,H3=new Array((O3+2)*2);ro(H3);const P3=new Array(yy*2);ro(P3);const V3=new Array(R3);ro(V3);const K3=new Array(_3-N3+1);ro(K3);const q3=new Array(By);ro(q3);const j3=new Array(yy);ro(j3);const W3=(A,t,e,r)=>{let n=A&65535|0,a=A>>>16&65535|0,o=0;for(;e!==0;){o=e>2e3?2e3:e,e-=o;do n=n+t[r++]|0,a=a+n|0;while(--o);n%=65521,a%=65521}return n|a<<16|0};var Eg=W3;const G3=()=>{let A,t=[];for(var e=0;e<256;e++){A=e;for(var r=0;r<8;r++)A=A&1?3988292384^A>>>1:A>>>1;t[e]=A}return t},Y3=new Uint32Array(G3()),z3=(A,t,e,r)=>{const n=Y3,a=r+e;A^=-1;for(let o=r;o<a;o++)A=A>>>8^n[(A^t[o])&255];return A^-1};var Va=z3,Fg={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"},by={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 $3=(A,t)=>Object.prototype.hasOwnProperty.call(A,t);var X3=function(A){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const e=t.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const r in e)$3(e,r)&&(A[r]=e[r])}}return A},J3=A=>{let t=0;for(let r=0,n=A.length;r<n;r++)t+=A[r].length;const e=new Uint8Array(t);for(let r=0,n=0,a=A.length;r<a;r++){let o=A[r];e.set(o,n),n+=o.length}return e},Cy={assign:X3,flattenChunks:J3};let Ey=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Ey=!1}const Yo=new Uint8Array(256);for(let A=0;A<256;A++)Yo[A]=A>=252?6:A>=248?5:A>=240?4:A>=224?3:A>=192?2:1;Yo[254]=Yo[254]=1;var Z3=A=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(A);let t,e,r,n,a,o=A.length,s=0;for(n=0;n<o;n++)e=A.charCodeAt(n),(e&64512)===55296&&n+1<o&&(r=A.charCodeAt(n+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),n++)),s+=e<128?1:e<2048?2:e<65536?3:4;for(t=new Uint8Array(s),a=0,n=0;a<s;n++)e=A.charCodeAt(n),(e&64512)===55296&&n+1<o&&(r=A.charCodeAt(n+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),n++)),e<128?t[a++]=e:e<2048?(t[a++]=192|e>>>6,t[a++]=128|e&63):e<65536?(t[a++]=224|e>>>12,t[a++]=128|e>>>6&63,t[a++]=128|e&63):(t[a++]=240|e>>>18,t[a++]=128|e>>>12&63,t[a++]=128|e>>>6&63,t[a++]=128|e&63);return t};const eT=(A,t)=>{if(t<65534&&A.subarray&&Ey)return String.fromCharCode.apply(null,A.length===t?A:A.subarray(0,t));let e="";for(let r=0;r<t;r++)e+=String.fromCharCode(A[r]);return e};var tT=(A,t)=>{const e=t||A.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(A.subarray(0,t));let r,n;const a=new Array(e*2);for(n=0,r=0;r<e;){let o=A[r++];if(o<128){a[n++]=o;continue}let s=Yo[o];if(s>4){a[n++]=65533,r+=s-1;continue}for(o&=s===2?31:s===3?15:7;s>1&&r<e;)o=o<<6|A[r++]&63,s--;if(s>1){a[n++]=65533;continue}o<65536?a[n++]=o:(o-=65536,a[n++]=55296|o>>10&1023,a[n++]=56320|o&1023)}return eT(a,n)},rT=(A,t)=>{t=t||A.length,t>A.length&&(t=A.length);let e=t-1;for(;e>=0&&(A[e]&192)===128;)e--;return e<0||e===0?t:e+Yo[A[e]]>t?e:t},kg={string2buf:Z3,buf2string:tT,utf8border:rT};function AT(){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 nT=AT;const Ql=16209,aT=16191;var iT=function(t,e){let r,n,a,o,s,l,c,u,h,p,f,v,w,b,B,F,E,k,P,j,M,O,L,R;const S=t.state;r=t.next_in,L=t.input,n=r+(t.avail_in-5),a=t.next_out,R=t.output,o=a-(e-t.avail_out),s=a+(t.avail_out-257),l=S.dmax,c=S.wsize,u=S.whave,h=S.wnext,p=S.window,f=S.hold,v=S.bits,w=S.lencode,b=S.distcode,B=(1<<S.lenbits)-1,F=(1<<S.distbits)-1;e:do{v<15&&(f+=L[r++]<<v,v+=8,f+=L[r++]<<v,v+=8),E=w[f&B];t:for(;;){if(k=E>>>24,f>>>=k,v-=k,k=E>>>16&255,k===0)R[a++]=E&65535;else if(k&16){P=E&65535,k&=15,k&&(v<k&&(f+=L[r++]<<v,v+=8),P+=f&(1<<k)-1,f>>>=k,v-=k),v<15&&(f+=L[r++]<<v,v+=8,f+=L[r++]<<v,v+=8),E=b[f&F];r:for(;;){if(k=E>>>24,f>>>=k,v-=k,k=E>>>16&255,k&16){if(j=E&65535,k&=15,v<k&&(f+=L[r++]<<v,v+=8,v<k&&(f+=L[r++]<<v,v+=8)),j+=f&(1<<k)-1,j>l){t.msg="invalid distance too far back",S.mode=Ql;break e}if(f>>>=k,v-=k,k=a-o,j>k){if(k=j-k,k>u&&S.sane){t.msg="invalid distance too far back",S.mode=Ql;break e}if(M=0,O=p,h===0){if(M+=c-k,k<P){P-=k;do R[a++]=p[M++];while(--k);M=a-j,O=R}}else if(h<k){if(M+=c+h-k,k-=h,k<P){P-=k;do R[a++]=p[M++];while(--k);if(M=0,h<P){k=h,P-=k;do R[a++]=p[M++];while(--k);M=a-j,O=R}}}else if(M+=h-k,k<P){P-=k;do R[a++]=p[M++];while(--k);M=a-j,O=R}for(;P>2;)R[a++]=O[M++],R[a++]=O[M++],R[a++]=O[M++],P-=3;P&&(R[a++]=O[M++],P>1&&(R[a++]=O[M++]))}else{M=a-j;do R[a++]=R[M++],R[a++]=R[M++],R[a++]=R[M++],P-=3;while(P>2);P&&(R[a++]=R[M++],P>1&&(R[a++]=R[M++]))}}else if((k&64)===0){E=b[(E&65535)+(f&(1<<k)-1)];continue r}else{t.msg="invalid distance code",S.mode=Ql;break e}break}}else if((k&64)===0){E=w[(E&65535)+(f&(1<<k)-1)];continue t}else if(k&32){S.mode=aT;break e}else{t.msg="invalid literal/length code",S.mode=Ql;break e}break}}while(r<n&&a<s);P=v>>3,r-=P,v-=P<<3,f&=(1<<v)-1,t.next_in=r,t.next_out=a,t.avail_in=r<n?5+(n-r):5-(r-n),t.avail_out=a<s?257+(s-a):257-(a-s),S.hold=f,S.bits=v};const Ns=15,a0=852,i0=592,s0=0,Pu=1,o0=2,sT=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]),oT=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]),lT=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]),cT=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]),uT=(A,t,e,r,n,a,o,s)=>{const l=s.bits;let c=0,u=0,h=0,p=0,f=0,v=0,w=0,b=0,B=0,F=0,E,k,P,j,M,O=null,L;const R=new Uint16Array(Ns+1),S=new Uint16Array(Ns+1);let T=null,G,N,oe;for(c=0;c<=Ns;c++)R[c]=0;for(u=0;u<r;u++)R[t[e+u]]++;for(f=l,p=Ns;p>=1&&R[p]===0;p--);if(f>p&&(f=p),p===0)return n[a++]=1<<24|64<<16|0,n[a++]=1<<24|64<<16|0,s.bits=1,0;for(h=1;h<p&&R[h]===0;h++);for(f<h&&(f=h),b=1,c=1;c<=Ns;c++)if(b<<=1,b-=R[c],b<0)return-1;if(b>0&&(A===s0||p!==1))return-1;for(S[1]=0,c=1;c<Ns;c++)S[c+1]=S[c]+R[c];for(u=0;u<r;u++)t[e+u]!==0&&(o[S[t[e+u]]++]=u);if(A===s0?(O=T=o,L=20):A===Pu?(O=sT,T=oT,L=257):(O=lT,T=cT,L=0),F=0,u=0,c=h,M=a,v=f,w=0,P=-1,B=1<<f,j=B-1,A===Pu&&B>a0||A===o0&&B>i0)return 1;for(;;){G=c-w,o[u]+1<L?(N=0,oe=o[u]):o[u]>=L?(N=T[o[u]-L],oe=O[o[u]-L]):(N=96,oe=0),E=1<<c-w,k=1<<v,h=k;do k-=E,n[M+(F>>w)+k]=G<<24|N<<16|oe|0;while(k!==0);for(E=1<<c-1;F&E;)E>>=1;if(E!==0?(F&=E-1,F+=E):F=0,u++,--R[c]===0){if(c===p)break;c=t[e+o[u]]}if(c>f&&(F&j)!==P){for(w===0&&(w=f),M+=h,v=c-w,b=1<<v;v+w<p&&(b-=R[v+w],!(b<=0));)v++,b<<=1;if(B+=1<<v,A===Pu&&B>a0||A===o0&&B>i0)return 1;P=F&j,n[P]=f<<24|v<<16|M-a|0}}return F!==0&&(n[M+F]=c-w<<24|64<<16|0),s.bits=f,0};var Vo=uT;const fT=0,Fy=1,ky=2,{Z_FINISH:l0,Z_BLOCK:dT,Z_TREES:Ll,Z_OK:ps,Z_STREAM_END:hT,Z_NEED_DICT:gT,Z_STREAM_ERROR:ha,Z_DATA_ERROR:xy,Z_MEM_ERROR:Sy,Z_BUF_ERROR:pT,Z_DEFLATED:c0}=by,jc=16180,u0=16181,f0=16182,d0=16183,h0=16184,g0=16185,p0=16186,v0=16187,m0=16188,w0=16189,Dc=16190,Ai=16191,Vu=16192,B0=16193,Ku=16194,y0=16195,b0=16196,C0=16197,E0=16198,Il=16199,Nl=16200,F0=16201,k0=16202,x0=16203,S0=16204,T0=16205,qu=16206,U0=16207,D0=16208,iA=16209,Ty=16210,Uy=16211,vT=852,mT=592,wT=15,BT=wT,Q0=A=>(A>>>24&255)+(A>>>8&65280)+((A&65280)<<8)+((A&255)<<24);function yT(){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 vs=A=>{if(!A)return 1;const t=A.state;return!t||t.strm!==A||t.mode<jc||t.mode>Uy?1:0},Dy=A=>{if(vs(A))return ha;const t=A.state;return A.total_in=A.total_out=t.total=0,A.msg="",t.wrap&&(A.adler=t.wrap&1),t.mode=jc,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(vT),t.distcode=t.distdyn=new Int32Array(mT),t.sane=1,t.back=-1,ps},Qy=A=>{if(vs(A))return ha;const t=A.state;return t.wsize=0,t.whave=0,t.wnext=0,Dy(A)},Ly=(A,t)=>{let e;if(vs(A))return ha;const r=A.state;return t<0?(e=0,t=-t):(e=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?ha:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=e,r.wbits=t,Qy(A))},Iy=(A,t)=>{if(!A)return ha;const e=new yT;A.state=e,e.strm=A,e.window=null,e.mode=jc;const r=Ly(A,t);return r!==ps&&(A.state=null),r},bT=A=>Iy(A,BT);let L0=!0,ju,Wu;const CT=A=>{if(L0){ju=new Int32Array(512),Wu=new Int32Array(32);let t=0;for(;t<144;)A.lens[t++]=8;for(;t<256;)A.lens[t++]=9;for(;t<280;)A.lens[t++]=7;for(;t<288;)A.lens[t++]=8;for(Vo(Fy,A.lens,0,288,ju,0,A.work,{bits:9}),t=0;t<32;)A.lens[t++]=5;Vo(ky,A.lens,0,32,Wu,0,A.work,{bits:5}),L0=!1}A.lencode=ju,A.lenbits=9,A.distcode=Wu,A.distbits=5},Ny=(A,t,e,r)=>{let n;const a=A.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(e-a.wsize,e),0),a.wnext=0,a.whave=a.wsize):(n=a.wsize-a.wnext,n>r&&(n=r),a.window.set(t.subarray(e-r,e-r+n),a.wnext),r-=n,r?(a.window.set(t.subarray(e-r,e),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=n,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=n))),0},ET=(A,t)=>{let e,r,n,a,o,s,l,c,u,h,p,f,v,w,b=0,B,F,E,k,P,j,M,O;const L=new Uint8Array(4);let R,S;const T=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(vs(A)||!A.output||!A.input&&A.avail_in!==0)return ha;e=A.state,e.mode===Ai&&(e.mode=Vu),o=A.next_out,n=A.output,l=A.avail_out,a=A.next_in,r=A.input,s=A.avail_in,c=e.hold,u=e.bits,h=s,p=l,O=ps;e:for(;;)switch(e.mode){case jc:if(e.wrap===0){e.mode=Vu;break}for(;u<16;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if(e.wrap&2&&c===35615){e.wbits===0&&(e.wbits=15),e.check=0,L[0]=c&255,L[1]=c>>>8&255,e.check=Va(e.check,L,2,0),c=0,u=0,e.mode=u0;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((c&255)<<8)+(c>>8))%31){A.msg="incorrect header check",e.mode=iA;break}if((c&15)!==c0){A.msg="unknown compression method",e.mode=iA;break}if(c>>>=4,u-=4,M=(c&15)+8,e.wbits===0&&(e.wbits=M),M>15||M>e.wbits){A.msg="invalid window size",e.mode=iA;break}e.dmax=1<<e.wbits,e.flags=0,A.adler=e.check=1,e.mode=c&512?w0:Ai,c=0,u=0;break;case u0:for(;u<16;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if(e.flags=c,(e.flags&255)!==c0){A.msg="unknown compression method",e.mode=iA;break}if(e.flags&57344){A.msg="unknown header flags set",e.mode=iA;break}e.head&&(e.head.text=c>>8&1),e.flags&512&&e.wrap&4&&(L[0]=c&255,L[1]=c>>>8&255,e.check=Va(e.check,L,2,0)),c=0,u=0,e.mode=f0;case f0:for(;u<32;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}e.head&&(e.head.time=c),e.flags&512&&e.wrap&4&&(L[0]=c&255,L[1]=c>>>8&255,L[2]=c>>>16&255,L[3]=c>>>24&255,e.check=Va(e.check,L,4,0)),c=0,u=0,e.mode=d0;case d0:for(;u<16;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}e.head&&(e.head.xflags=c&255,e.head.os=c>>8),e.flags&512&&e.wrap&4&&(L[0]=c&255,L[1]=c>>>8&255,e.check=Va(e.check,L,2,0)),c=0,u=0,e.mode=h0;case h0:if(e.flags&1024){for(;u<16;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}e.length=c,e.head&&(e.head.extra_len=c),e.flags&512&&e.wrap&4&&(L[0]=c&255,L[1]=c>>>8&255,e.check=Va(e.check,L,2,0)),c=0,u=0}else e.head&&(e.head.extra=null);e.mode=g0;case g0:if(e.flags&1024&&(f=e.length,f>s&&(f=s),f&&(e.head&&(M=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(r.subarray(a,a+f),M)),e.flags&512&&e.wrap&4&&(e.check=Va(e.check,r,f,a)),s-=f,a+=f,e.length-=f),e.length))break e;e.length=0,e.mode=p0;case p0:if(e.flags&2048){if(s===0)break e;f=0;do M=r[a+f++],e.head&&M&&e.length<65536&&(e.head.name+=String.fromCharCode(M));while(M&&f<s);if(e.flags&512&&e.wrap&4&&(e.check=Va(e.check,r,f,a)),s-=f,a+=f,M)break e}else e.head&&(e.head.name=null);e.length=0,e.mode=v0;case v0:if(e.flags&4096){if(s===0)break e;f=0;do M=r[a+f++],e.head&&M&&e.length<65536&&(e.head.comment+=String.fromCharCode(M));while(M&&f<s);if(e.flags&512&&e.wrap&4&&(e.check=Va(e.check,r,f,a)),s-=f,a+=f,M)break e}else e.head&&(e.head.comment=null);e.mode=m0;case m0:if(e.flags&512){for(;u<16;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if(e.wrap&4&&c!==(e.check&65535)){A.msg="header crc mismatch",e.mode=iA;break}c=0,u=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),A.adler=e.check=0,e.mode=Ai;break;case w0:for(;u<32;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}A.adler=e.check=Q0(c),c=0,u=0,e.mode=Dc;case Dc:if(e.havedict===0)return A.next_out=o,A.avail_out=l,A.next_in=a,A.avail_in=s,e.hold=c,e.bits=u,gT;A.adler=e.check=1,e.mode=Ai;case Ai:if(t===dT||t===Ll)break e;case Vu:if(e.last){c>>>=u&7,u-=u&7,e.mode=qu;break}for(;u<3;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}switch(e.last=c&1,c>>>=1,u-=1,c&3){case 0:e.mode=B0;break;case 1:if(CT(e),e.mode=Il,t===Ll){c>>>=2,u-=2;break e}break;case 2:e.mode=b0;break;case 3:A.msg="invalid block type",e.mode=iA}c>>>=2,u-=2;break;case B0:for(c>>>=u&7,u-=u&7;u<32;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if((c&65535)!==(c>>>16^65535)){A.msg="invalid stored block lengths",e.mode=iA;break}if(e.length=c&65535,c=0,u=0,e.mode=Ku,t===Ll)break e;case Ku:e.mode=y0;case y0:if(f=e.length,f){if(f>s&&(f=s),f>l&&(f=l),f===0)break e;n.set(r.subarray(a,a+f),o),s-=f,a+=f,l-=f,o+=f,e.length-=f;break}e.mode=Ai;break;case b0:for(;u<14;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if(e.nlen=(c&31)+257,c>>>=5,u-=5,e.ndist=(c&31)+1,c>>>=5,u-=5,e.ncode=(c&15)+4,c>>>=4,u-=4,e.nlen>286||e.ndist>30){A.msg="too many length or distance symbols",e.mode=iA;break}e.have=0,e.mode=C0;case C0:for(;e.have<e.ncode;){for(;u<3;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}e.lens[T[e.have++]]=c&7,c>>>=3,u-=3}for(;e.have<19;)e.lens[T[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,R={bits:e.lenbits},O=Vo(fT,e.lens,0,19,e.lencode,0,e.work,R),e.lenbits=R.bits,O){A.msg="invalid code lengths set",e.mode=iA;break}e.have=0,e.mode=E0;case E0:for(;e.have<e.nlen+e.ndist;){for(;b=e.lencode[c&(1<<e.lenbits)-1],B=b>>>24,F=b>>>16&255,E=b&65535,!(B<=u);){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if(E<16)c>>>=B,u-=B,e.lens[e.have++]=E;else{if(E===16){for(S=B+2;u<S;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if(c>>>=B,u-=B,e.have===0){A.msg="invalid bit length repeat",e.mode=iA;break}M=e.lens[e.have-1],f=3+(c&3),c>>>=2,u-=2}else if(E===17){for(S=B+3;u<S;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}c>>>=B,u-=B,M=0,f=3+(c&7),c>>>=3,u-=3}else{for(S=B+7;u<S;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}c>>>=B,u-=B,M=0,f=11+(c&127),c>>>=7,u-=7}if(e.have+f>e.nlen+e.ndist){A.msg="invalid bit length repeat",e.mode=iA;break}for(;f--;)e.lens[e.have++]=M}}if(e.mode===iA)break;if(e.lens[256]===0){A.msg="invalid code -- missing end-of-block",e.mode=iA;break}if(e.lenbits=9,R={bits:e.lenbits},O=Vo(Fy,e.lens,0,e.nlen,e.lencode,0,e.work,R),e.lenbits=R.bits,O){A.msg="invalid literal/lengths set",e.mode=iA;break}if(e.distbits=6,e.distcode=e.distdyn,R={bits:e.distbits},O=Vo(ky,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,R),e.distbits=R.bits,O){A.msg="invalid distances set",e.mode=iA;break}if(e.mode=Il,t===Ll)break e;case Il:e.mode=Nl;case Nl:if(s>=6&&l>=258){A.next_out=o,A.avail_out=l,A.next_in=a,A.avail_in=s,e.hold=c,e.bits=u,iT(A,p),o=A.next_out,n=A.output,l=A.avail_out,a=A.next_in,r=A.input,s=A.avail_in,c=e.hold,u=e.bits,e.mode===Ai&&(e.back=-1);break}for(e.back=0;b=e.lencode[c&(1<<e.lenbits)-1],B=b>>>24,F=b>>>16&255,E=b&65535,!(B<=u);){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if(F&&(F&240)===0){for(k=B,P=F,j=E;b=e.lencode[j+((c&(1<<k+P)-1)>>k)],B=b>>>24,F=b>>>16&255,E=b&65535,!(k+B<=u);){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}c>>>=k,u-=k,e.back+=k}if(c>>>=B,u-=B,e.back+=B,e.length=E,F===0){e.mode=T0;break}if(F&32){e.back=-1,e.mode=Ai;break}if(F&64){A.msg="invalid literal/length code",e.mode=iA;break}e.extra=F&15,e.mode=F0;case F0:if(e.extra){for(S=e.extra;u<S;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}e.length+=c&(1<<e.extra)-1,c>>>=e.extra,u-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=k0;case k0:for(;b=e.distcode[c&(1<<e.distbits)-1],B=b>>>24,F=b>>>16&255,E=b&65535,!(B<=u);){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if((F&240)===0){for(k=B,P=F,j=E;b=e.distcode[j+((c&(1<<k+P)-1)>>k)],B=b>>>24,F=b>>>16&255,E=b&65535,!(k+B<=u);){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}c>>>=k,u-=k,e.back+=k}if(c>>>=B,u-=B,e.back+=B,F&64){A.msg="invalid distance code",e.mode=iA;break}e.offset=E,e.extra=F&15,e.mode=x0;case x0:if(e.extra){for(S=e.extra;u<S;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}e.offset+=c&(1<<e.extra)-1,c>>>=e.extra,u-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){A.msg="invalid distance too far back",e.mode=iA;break}e.mode=S0;case S0:if(l===0)break e;if(f=p-l,e.offset>f){if(f=e.offset-f,f>e.whave&&e.sane){A.msg="invalid distance too far back",e.mode=iA;break}f>e.wnext?(f-=e.wnext,v=e.wsize-f):v=e.wnext-f,f>e.length&&(f=e.length),w=e.window}else w=n,v=o-e.offset,f=e.length;f>l&&(f=l),l-=f,e.length-=f;do n[o++]=w[v++];while(--f);e.length===0&&(e.mode=Nl);break;case T0:if(l===0)break e;n[o++]=e.length,l--,e.mode=Nl;break;case qu:if(e.wrap){for(;u<32;){if(s===0)break e;s--,c|=r[a++]<<u,u+=8}if(p-=l,A.total_out+=p,e.total+=p,e.wrap&4&&p&&(A.adler=e.check=e.flags?Va(e.check,n,p,o-p):Eg(e.check,n,p,o-p)),p=l,e.wrap&4&&(e.flags?c:Q0(c))!==e.check){A.msg="incorrect data check",e.mode=iA;break}c=0,u=0}e.mode=U0;case U0:if(e.wrap&&e.flags){for(;u<32;){if(s===0)break e;s--,c+=r[a++]<<u,u+=8}if(e.wrap&4&&c!==(e.total&4294967295)){A.msg="incorrect length check",e.mode=iA;break}c=0,u=0}e.mode=D0;case D0:O=hT;break e;case iA:O=xy;break e;case Ty:return Sy;case Uy:default:return ha}return A.next_out=o,A.avail_out=l,A.next_in=a,A.avail_in=s,e.hold=c,e.bits=u,(e.wsize||p!==A.avail_out&&e.mode<iA&&(e.mode<qu||t!==l0))&&Ny(A,A.output,A.next_out,p-A.avail_out),h-=A.avail_in,p-=A.avail_out,A.total_in+=h,A.total_out+=p,e.total+=p,e.wrap&4&&p&&(A.adler=e.check=e.flags?Va(e.check,n,p,A.next_out-p):Eg(e.check,n,p,A.next_out-p)),A.data_type=e.bits+(e.last?64:0)+(e.mode===Ai?128:0)+(e.mode===Il||e.mode===Ku?256:0),(h===0&&p===0||t===l0)&&O===ps&&(O=pT),O},FT=A=>{if(vs(A))return ha;let t=A.state;return t.window&&(t.window=null),A.state=null,ps},kT=(A,t)=>{if(vs(A))return ha;const e=A.state;return(e.wrap&2)===0?ha:(e.head=t,t.done=!1,ps)},xT=(A,t)=>{const e=t.length;let r,n,a;return vs(A)||(r=A.state,r.wrap!==0&&r.mode!==Dc)?ha:r.mode===Dc&&(n=1,n=Eg(n,t,e,0),n!==r.check)?xy:(a=Ny(A,t,e,e),a?(r.mode=Ty,Sy):(r.havedict=1,ps))};var ST=Qy,TT=Ly,UT=Dy,DT=bT,QT=Iy,LT=ET,IT=FT,NT=kT,_T=xT,MT="pako inflate (from Nodeca project)",li={inflateReset:ST,inflateReset2:TT,inflateResetKeep:UT,inflateInit:DT,inflateInit2:QT,inflate:LT,inflateEnd:IT,inflateGetHeader:NT,inflateSetDictionary:_T,inflateInfo:MT};function OT(){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 RT=OT;const _y=Object.prototype.toString,{Z_NO_FLUSH:HT,Z_FINISH:PT,Z_OK:zo,Z_STREAM_END:Gu,Z_NEED_DICT:Yu,Z_STREAM_ERROR:VT,Z_DATA_ERROR:I0,Z_MEM_ERROR:KT}=by;function Zo(A){this.options=Cy.assign({chunkSize:1024*64,windowBits:15,to:""},A||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(A&&A.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new nT,this.strm.avail_out=0;let e=li.inflateInit2(this.strm,t.windowBits);if(e!==zo)throw new Error(Fg[e]);if(this.header=new RT,li.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=kg.string2buf(t.dictionary):_y.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(e=li.inflateSetDictionary(this.strm,t.dictionary),e!==zo)))throw new Error(Fg[e])}Zo.prototype.push=function(A,t){const e=this.strm,r=this.options.chunkSize,n=this.options.dictionary;let a,o,s;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?PT:HT,_y.call(A)==="[object ArrayBuffer]"?e.input=new Uint8Array(A):e.input=A,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),a=li.inflate(e,o),a===Yu&&n&&(a=li.inflateSetDictionary(e,n),a===zo?a=li.inflate(e,o):a===I0&&(a=Yu));e.avail_in>0&&a===Gu&&e.state.wrap>0&&A[e.next_in]!==0;)li.inflateReset(e),a=li.inflate(e,o);switch(a){case VT:case I0:case Yu:case KT:return this.onEnd(a),this.ended=!0,!1}if(s=e.avail_out,e.next_out&&(e.avail_out===0||a===Gu))if(this.options.to==="string"){let l=kg.utf8border(e.output,e.next_out),c=e.next_out-l,u=kg.buf2string(e.output,l);e.next_out=c,e.avail_out=r-c,c&&e.output.set(e.output.subarray(l,l+c),0),this.onData(u)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(a===zo&&s===0)){if(a===Gu)return a=li.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};Zo.prototype.onData=function(A){this.chunks.push(A)};Zo.prototype.onEnd=function(A){A===zo&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Cy.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};function qT(A,t){const e=new Zo(t);if(e.push(A),e.err)throw e.msg||Fg[e.err];return e.result}var jT=Zo,WT=qT,GT={Inflate:jT,inflate:WT};const{Inflate:YT,inflate:zT}=GT;var N0=YT,$T=zT;const My=[];for(let A=0;A<256;A++){let t=A;for(let e=0;e<8;e++)t&1?t=3988292384^t>>>1:t=t>>>1;My[A]=t}const _0=4294967295;function XT(A,t,e){let r=A;for(let n=0;n<e;n++)r=My[(r^t[n])&255]^r>>>8;return r}function JT(A,t){return(XT(_0,A,t)^_0)>>>0}function M0(A,t,e){const r=A.readUint32(),n=JT(new Uint8Array(A.buffer,A.byteOffset+A.offset-t-4,t),t);if(n!==r)throw new Error(`CRC mismatch for chunk ${e}. Expected ${r}, found ${n}`)}function Oy(A,t,e){for(let r=0;r<e;r++)t[r]=A[r]}function Ry(A,t,e,r){let n=0;for(;n<r;n++)t[n]=A[n];for(;n<e;n++)t[n]=A[n]+t[n-r]&255}function Hy(A,t,e,r){let n=0;if(e.length===0)for(;n<r;n++)t[n]=A[n];else for(;n<r;n++)t[n]=A[n]+e[n]&255}function Py(A,t,e,r,n){let a=0;if(e.length===0){for(;a<n;a++)t[a]=A[a];for(;a<r;a++)t[a]=A[a]+(t[a-n]>>1)&255}else{for(;a<n;a++)t[a]=A[a]+(e[a]>>1)&255;for(;a<r;a++)t[a]=A[a]+(t[a-n]+e[a]>>1)&255}}function Vy(A,t,e,r,n){let a=0;if(e.length===0){for(;a<n;a++)t[a]=A[a];for(;a<r;a++)t[a]=A[a]+t[a-n]&255}else{for(;a<n;a++)t[a]=A[a]+e[a]&255;for(;a<r;a++)t[a]=A[a]+ZT(t[a-n],e[a],e[a-n])&255}}function ZT(A,t,e){const r=A+t-e,n=Math.abs(r-A),a=Math.abs(r-t),o=Math.abs(r-e);return n<=a&&n<=o?A:a<=o?t:e}function eU(A,t,e,r,n,a){switch(A){case 0:Oy(t,e,n);break;case 1:Ry(t,e,n,a);break;case 2:Hy(t,e,r,n);break;case 3:Py(t,e,r,n,a);break;case 4:Vy(t,e,r,n,a);break;default:throw new Error(`Unsupported filter: ${A}`)}}const tU=new Uint16Array([255]),rU=new Uint8Array(tU.buffer),AU=rU[0]===255;function nU(A){const{data:t,width:e,height:r,channels:n,depth:a}=A,o=[{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}],s=Math.ceil(a/8)*n,l=new Uint8Array(r*e*s);let c=0;for(let u=0;u<7;u++){const h=o[u],p=Math.ceil((e-h.x)/h.xStep),f=Math.ceil((r-h.y)/h.yStep);if(p<=0||f<=0)continue;const v=p*s,w=new Uint8Array(v);for(let b=0;b<f;b++){const B=t[c++],F=t.subarray(c,c+v);c+=v;const E=new Uint8Array(v);eU(B,F,E,w,v,s),w.set(E);for(let k=0;k<p;k++){const P=h.x+k*h.xStep,j=h.y+b*h.yStep;if(!(P>=e||j>=r))for(let M=0;M<s;M++)l[(j*e+P)*s+M]=E[k*s+M]}}}if(a===16){const u=new Uint16Array(l.buffer);if(AU)for(let h=0;h<u.length;h++)u[h]=aU(u[h]);return u}else return l}function aU(A){return(A&255)<<8|A>>8&255}const iU=new Uint16Array([255]),sU=new Uint8Array(iU.buffer),oU=sU[0]===255,lU=new Uint8Array(0);function O0(A){const{data:t,width:e,height:r,channels:n,depth:a}=A,o=Math.ceil(a/8)*n,s=Math.ceil(a/8*n*e),l=new Uint8Array(r*s);let c=lU,u=0,h,p;for(let f=0;f<r;f++){switch(h=t.subarray(u+1,u+1+s),p=l.subarray(f*s,(f+1)*s),t[u]){case 0:Oy(h,p,s);break;case 1:Ry(h,p,s,o);break;case 2:Hy(h,p,c,s);break;case 3:Py(h,p,c,s,o);break;case 4:Vy(h,p,c,s,o);break;default:throw new Error(`Unsupported filter: ${t[u]}`)}c=p,u+=s+1}if(a===16){const f=new Uint16Array(l.buffer);if(oU)for(let v=0;v<f.length;v++)f[v]=cU(f[v]);return f}else return l}function cU(A){return(A&255)<<8|A>>8&255}const vc=Uint8Array.of(137,80,78,71,13,10,26,10);function R0(A){if(!uU(A.readBytes(vc.length)))throw new Error("wrong PNG signature")}function uU(A){if(A.length<vc.length)return!1;for(let t=0;t<vc.length;t++)if(A[t]!==vc[t])return!1;return!0}const fU="tEXt",dU=0,Ky=new TextDecoder("latin1");function hU(A){if(pU(A),A.length===0||A.length>79)throw new Error("keyword length must be between 1 and 79")}const gU=/^[\u0000-\u00FF]*$/;function pU(A){if(!gU.test(A))throw new Error("invalid latin1 text")}function vU(A,t,e){const r=qy(t);A[r]=mU(t,e-r.length-1)}function qy(A){for(A.mark();A.readByte()!==dU;);const t=A.offset;A.reset();const e=Ky.decode(A.readBytes(t-A.offset-1));return A.skip(1),hU(e),e}function mU(A,t){return Ky.decode(A.readBytes(t))}const Xn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},zu={UNKNOWN:-1,DEFLATE:0},H0={UNKNOWN:-1,ADAPTIVE:0},$u={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},_l={NONE:0,BACKGROUND:1,PREVIOUS:2},Xu={SOURCE:0,OVER:1};class wU extends Bp{constructor(e,r={}){super(e);kr(this,"_checkCrc");kr(this,"_inflator");kr(this,"_png");kr(this,"_apng");kr(this,"_end");kr(this,"_hasPalette");kr(this,"_palette");kr(this,"_hasTransparency");kr(this,"_transparency");kr(this,"_compressionMethod");kr(this,"_filterMethod");kr(this,"_interlaceMethod");kr(this,"_colorType");kr(this,"_isAnimated");kr(this,"_numberOfFrames");kr(this,"_numberOfPlays");kr(this,"_frames");kr(this,"_writingDataChunks");const{checkCrc:n=!1}=r;this._checkCrc=n,this._inflator=new N0,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=zu.UNKNOWN,this._filterMethod=H0.UNKNOWN,this._interlaceMethod=$u.UNKNOWN,this._colorType=Xn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(R0(this);!this._end;){const e=this.readUint32(),r=this.readChars(4);this.decodeChunk(e,r)}return this.decodeImage(),this._png}decodeApng(){for(R0(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 fU:vU(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?M0(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?M0(this,e+4,r):this.skip(4)}decodeIHDR(){const e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=BU(this.readUint8());const r=this.readUint8();this._colorType=r;let n;switch(r){case Xn.GREYSCALE:n=1;break;case Xn.TRUECOLOUR:n=3;break;case Xn.INDEXED_COLOUR:n=1;break;case Xn.GREYSCALE_ALPHA:n=2;break;case Xn.TRUECOLOUR_ALPHA:n=4;break;case Xn.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==zu.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 a=0;a<r;a++)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 Xn.GREYSCALE:case Xn.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 Xn.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 Xn.UNKNOWN:case Xn.GREYSCALE_ALPHA:case Xn.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){const r=qy(this),n=this.readUint8();if(n!==zu.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${n}`);const a=this.readBytes(e-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:$T(a)}}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=O0({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 a=this._apng.frames.at(e-1);this.disposeFrame(n,a,r),this.addFrameDataToCanvas(r,n)}this._apng.frames.push(r)}}return this._apng}disposeFrame(e,r,n){switch(e.disposeOp){case _l.NONE:break;case _l.BACKGROUND:for(let a=0;a<this._png.height;a++)for(let o=0;o<this._png.width;o++){const s=(a*e.width+o)*this._png.channels;for(let l=0;l<this._png.channels;l++)n.data[s+l]=0}break;case _l.PREVIOUS:n.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(e,r){const n=1<<this._png.depth,a=(o,s)=>{const l=((o+r.yOffset)*this._png.width+r.xOffset+s)*this._png.channels,c=(o*r.width+s)*this._png.channels;return{index:l,frameIndex:c}};switch(r.blendOp){case Xu.SOURCE:for(let o=0;o<r.height;o++)for(let s=0;s<r.width;s++){const{index:l,frameIndex:c}=a(o,s);for(let u=0;u<this._png.channels;u++)e.data[l+u]=r.data[c+u]}break;case Xu.OVER:for(let o=0;o<r.height;o++)for(let s=0;s<r.width;s++){const{index:l,frameIndex:c}=a(o,s);for(let u=0;u<this._png.channels;u++){const h=r.data[c+this._png.channels-1]/n,p=u%(this._png.channels-1)===0?1:r.data[c+u],f=Math.floor(h*p+(1-h)*e.data[l+u]);e.data[l+u]+=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!==H0.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===$u.NO_INTERLACE)this._png.data=O0({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===$u.ADAM7)this._png.data=nU({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:_l.NONE,blendOp:Xu.SOURCE,data:e}),this._inflator=new N0,this._writingDataChunks=!1}}function BU(A){if(A!==1&&A!==2&&A!==4&&A!==8&&A!==16)throw new Error(`invalid bit depth: ${A}`);return A}var P0;(function(A){A[A.UNKNOWN=0]="UNKNOWN",A[A.METRE=1]="METRE"})(P0||(P0={}));function yU(A,t){return new wU(A,t).decode()}/** @license
 *
 * jsPDF - PDF Document creation from JavaScript
 * Version 3.0.4 Built on 2025-11-19T12:48:37.232Z
 *                      CommitID 00000000
 *
 * Copyright (c) 2010-2025 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
 *               2015-2025 yWorks GmbH, http://www.yworks.com
 *               2015-2025 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
 *               2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
 *               2010 Aaron Spike, https://github.com/acspike
 *               2012 Willow Systems Corporation, https://github.com/willowsystems
 *               2012 Pablo Hess, https://github.com/pablohess
 *               2012 Florian Jenett, https://github.com/fjenett
 *               2013 Warren Weckesser, https://github.com/warrenweckesser
 *               2013 Youssef Beddad, https://github.com/lifof
 *               2013 Lee Driscoll, https://github.com/lsdriscoll
 *               2013 Stefan Slonevskiy, https://github.com/stefslon
 *               2013 Jeremy Morel, https://github.com/jmorel
 *               2013 Christoph Hartmann, https://github.com/chris-rock
 *               2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
 *               2014 James Makes, https://github.com/dollaruw
 *               2014 Diego Casorran, https://github.com/diegocr
 *               2014 Steven Spungin, https://github.com/Flamenco
 *               2014 Kenneth Glassey, https://github.com/Gavvers
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 * Contributor(s):
 *    siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
 *    kim3er, mfo, alnorth, Flamenco
 */var er=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function Ju(){er.console&&typeof er.console.log=="function"&&er.console.log.apply(er.console,arguments)}var zr={log:Ju,warn:function(A){er.console&&(typeof er.console.warn=="function"?er.console.warn.apply(er.console,arguments):Ju.call(null,arguments))},error:function(A){er.console&&(typeof er.console.error=="function"?er.console.error.apply(er.console,arguments):Ju(A))}};function Zu(A,t,e){var r=new XMLHttpRequest;r.open("GET",A),r.responseType="blob",r.onload=function(){as(r.response,t,e)},r.onerror=function(){zr.error("could not download file")},r.send()}function V0(A){var t=new XMLHttpRequest;t.open("HEAD",A,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Ml(A){try{A.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),A.dispatchEvent(t)}}var as=er.saveAs||((typeof window>"u"?"undefined":Dr(window))!=="object"||window!==er?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(A,t,e){var r=er.URL||er.webkitURL,n=document.createElement("a");t=t||A.name||"download",n.download=t,n.rel="noopener",typeof A=="string"?(n.href=A,n.origin!==location.origin?V0(n.href)?Zu(A,t,e):Ml(n,n.target="_blank"):Ml(n)):(n.href=r.createObjectURL(A),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){Ml(n)},0))}:"msSaveOrOpenBlob"in navigator?function(A,t,e){if(t=t||A.name||"download",typeof A=="string")if(V0(A))Zu(A,t,e);else{var r=document.createElement("a");r.href=A,r.target="_blank",setTimeout(function(){Ml(r)})}else navigator.msSaveOrOpenBlob((function(n,a){return a===void 0?a={autoBom:!1}:Dr(a)!=="object"&&(zr.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.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})(A,e),t)}:function(A,t,e,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof A=="string")return Zu(A,t,e);var n=A.type==="application/octet-stream",a=/constructor/i.test(er.HTMLElement)||er.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||n&&a)&&(typeof FileReader>"u"?"undefined":Dr(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var u=s.result;u=o?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=u:location=u,r=null},s.readAsDataURL(A)}else{var l=er.URL||er.webkitURL,c=l.createObjectURL(A);r?r.location=c:location.href=c,r=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});/**
 * A class to parse color values
 * @author Stoyan Stefanov <sstoo@gmail.com>
 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
 * @license Use it if you like it
 */function jy(A){var t;A=A||"",this.ok=!1,A.charAt(0)=="#"&&(A=A.substr(1,6)),A={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"}[A=(A=A.replace(/ /g,"")).toLowerCase()]||A;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(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],r=0;r<e.length;r++){var n=e[r].re,a=e[r].process,o=n.exec(A);o&&(t=a(o),this.r=t[0],this.g=t[1],this.b=t[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 s=this.r.toString(16),l=this.g.toString(16),c=this.b.toString(16);return s.length==1&&(s="0"+s),l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),"#"+s+l+c}}var mc=er.atob.bind(er),K0=er.btoa.bind(er);/**
 * @license
 * Joseph Myers does not specify a particular license for his work.
 *
 * Author: Joseph Myers
 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
 *
 * Modified by: Owen Leong
 */function ef(A,t){var e=A[0],r=A[1],n=A[2],a=A[3];e=gn(e,r,n,a,t[0],7,-680876936),a=gn(a,e,r,n,t[1],12,-389564586),n=gn(n,a,e,r,t[2],17,606105819),r=gn(r,n,a,e,t[3],22,-1044525330),e=gn(e,r,n,a,t[4],7,-176418897),a=gn(a,e,r,n,t[5],12,1200080426),n=gn(n,a,e,r,t[6],17,-1473231341),r=gn(r,n,a,e,t[7],22,-45705983),e=gn(e,r,n,a,t[8],7,1770035416),a=gn(a,e,r,n,t[9],12,-1958414417),n=gn(n,a,e,r,t[10],17,-42063),r=gn(r,n,a,e,t[11],22,-1990404162),e=gn(e,r,n,a,t[12],7,1804603682),a=gn(a,e,r,n,t[13],12,-40341101),n=gn(n,a,e,r,t[14],17,-1502002290),e=pn(e,r=gn(r,n,a,e,t[15],22,1236535329),n,a,t[1],5,-165796510),a=pn(a,e,r,n,t[6],9,-1069501632),n=pn(n,a,e,r,t[11],14,643717713),r=pn(r,n,a,e,t[0],20,-373897302),e=pn(e,r,n,a,t[5],5,-701558691),a=pn(a,e,r,n,t[10],9,38016083),n=pn(n,a,e,r,t[15],14,-660478335),r=pn(r,n,a,e,t[4],20,-405537848),e=pn(e,r,n,a,t[9],5,568446438),a=pn(a,e,r,n,t[14],9,-1019803690),n=pn(n,a,e,r,t[3],14,-187363961),r=pn(r,n,a,e,t[8],20,1163531501),e=pn(e,r,n,a,t[13],5,-1444681467),a=pn(a,e,r,n,t[2],9,-51403784),n=pn(n,a,e,r,t[7],14,1735328473),e=vn(e,r=pn(r,n,a,e,t[12],20,-1926607734),n,a,t[5],4,-378558),a=vn(a,e,r,n,t[8],11,-2022574463),n=vn(n,a,e,r,t[11],16,1839030562),r=vn(r,n,a,e,t[14],23,-35309556),e=vn(e,r,n,a,t[1],4,-1530992060),a=vn(a,e,r,n,t[4],11,1272893353),n=vn(n,a,e,r,t[7],16,-155497632),r=vn(r,n,a,e,t[10],23,-1094730640),e=vn(e,r,n,a,t[13],4,681279174),a=vn(a,e,r,n,t[0],11,-358537222),n=vn(n,a,e,r,t[3],16,-722521979),r=vn(r,n,a,e,t[6],23,76029189),e=vn(e,r,n,a,t[9],4,-640364487),a=vn(a,e,r,n,t[12],11,-421815835),n=vn(n,a,e,r,t[15],16,530742520),e=mn(e,r=vn(r,n,a,e,t[2],23,-995338651),n,a,t[0],6,-198630844),a=mn(a,e,r,n,t[7],10,1126891415),n=mn(n,a,e,r,t[14],15,-1416354905),r=mn(r,n,a,e,t[5],21,-57434055),e=mn(e,r,n,a,t[12],6,1700485571),a=mn(a,e,r,n,t[3],10,-1894986606),n=mn(n,a,e,r,t[10],15,-1051523),r=mn(r,n,a,e,t[1],21,-2054922799),e=mn(e,r,n,a,t[8],6,1873313359),a=mn(a,e,r,n,t[15],10,-30611744),n=mn(n,a,e,r,t[6],15,-1560198380),r=mn(r,n,a,e,t[13],21,1309151649),e=mn(e,r,n,a,t[4],6,-145523070),a=mn(a,e,r,n,t[11],10,-1120210379),n=mn(n,a,e,r,t[2],15,718787259),r=mn(r,n,a,e,t[9],21,-343485551),A[0]=Oi(e,A[0]),A[1]=Oi(r,A[1]),A[2]=Oi(n,A[2]),A[3]=Oi(a,A[3])}function Wc(A,t,e,r,n,a){return t=Oi(Oi(t,A),Oi(r,a)),Oi(t<<n|t>>>32-n,e)}function gn(A,t,e,r,n,a,o){return Wc(t&e|~t&r,A,t,n,a,o)}function pn(A,t,e,r,n,a,o){return Wc(t&r|e&~r,A,t,n,a,o)}function vn(A,t,e,r,n,a,o){return Wc(t^e^r,A,t,n,a,o)}function mn(A,t,e,r,n,a,o){return Wc(e^(t|~r),A,t,n,a,o)}function Wy(A){var t,e=A.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=A.length;t+=64)ef(r,bU(A.substring(t-64,t)));A=A.substring(t-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<A.length;t++)n[t>>2]|=A.charCodeAt(t)<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),t>55)for(ef(r,n),t=0;t<16;t++)n[t]=0;return n[14]=8*e,ef(r,n),r}function bU(A){var t,e=[];for(t=0;t<64;t+=4)e[t>>2]=A.charCodeAt(t)+(A.charCodeAt(t+1)<<8)+(A.charCodeAt(t+2)<<16)+(A.charCodeAt(t+3)<<24);return e}var q0="0123456789abcdef".split("");function CU(A){for(var t="",e=0;e<4;e++)t+=q0[A>>8*e+4&15]+q0[A>>8*e&15];return t}function EU(A){return String.fromCharCode(255&A,(65280&A)>>8,(16711680&A)>>16,(4278190080&A)>>24)}function xg(A){return Wy(A).map(EU).join("")}var FU=(function(A){for(var t=0;t<A.length;t++)A[t]=CU(A[t]);return A.join("")})(Wy("hello"))!="5d41402abc4b2a76b9719d911017c592";function Oi(A,t){if(FU){var e=(65535&A)+(65535&t);return(A>>16)+(t>>16)+(e>>16)<<16|65535&e}return A+t&4294967295}/**
 * @license
 * FPDF is released under a permissive license: there is no usage restriction.
 * You may embed it freely in your application (commercial or not), with or
 * without modifications.
 *
 * Reference: http://www.fpdf.org/en/script/script37.php
 */function Sg(A,t){var e,r,n,a;if(A!==e){for(var o=(n=A,a=1+(256/A.length|0),new Array(a+1).join(n)),s=[],l=0;l<256;l++)s[l]=l;var c=0;for(l=0;l<256;l++){var u=s[l];c=(c+u+o.charCodeAt(l))%256,s[l]=s[c],s[c]=u}e=A,r=s}else s=r;var h=t.length,p=0,f=0,v="";for(l=0;l<h;l++)f=(f+(u=s[p=(p+1)%256]))%256,s[p]=s[f],s[f]=u,o=s[(s[p]+s[f])%256],v+=String.fromCharCode(t.charCodeAt(l)^o);return v}/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 * Author: Owen Leong (@owenl131)
 * Date: 15 Oct 2020
 * References:
 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
 * http://www.fpdf.org/en/script/script37.php
 */var j0={print:4,modify:8,copy:16,"annot-forms":32};function qs(A,t,e,r){this.v=1,this.r=2;var n=192;A.forEach(function(s){if(j0.perm!==void 0)throw new Error("Invalid permission: "+s);n+=j0[s]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(t+this.padding).substr(0,32),o=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^n)),this.encryptionKey=xg(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Sg(this.encryptionKey,this.padding)}function js(A){if(/[^\u0000-\u00ff]/.test(A))throw new Error("Invalid PDF Name Object: "+A+", Only accept ASCII characters.");for(var t="",e=A.length,r=0;r<e;r++){var n=A.charCodeAt(r);t+=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):A[r]}return t}function W0(A){if(Dr(A)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};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)");t.hasOwnProperty(e)||(t[e]={});var a=Math.random().toString(35);return t[e][a]=[r,!!n],a},this.unsubscribe=function(e){for(var r in t)if(t[r][e])return delete t[r][e],Object.keys(t[r]).length===0&&delete t[r],!0;return!1},this.publish=function(e){if(t.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var a in t[e]){var o=t[e][a];try{o[0].apply(A,r)}catch(s){er.console&&zr.error("jsPDF PubSub Error",s.message,s)}o[1]&&n.push(a)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Qc(A){if(!(this instanceof Qc))return new Qc(A);var t="opacity,stroke-opacity".split(",");for(var e in A)A.hasOwnProperty(e)&&t.indexOf(e)>=0&&(this[e]=A[e]);this.id="",this.objectNumber=-1}function Gy(A,t){this.gState=A,this.matrix=t,this.id="",this.objectNumber=-1}function ss(A,t,e,r,n){if(!(this instanceof ss))return new ss(A,t,e,r,n);this.type=A==="axial"?2:3,this.coords=t,this.colors=e,Gy.call(this,r,n)}function Ys(A,t,e,r,n){if(!(this instanceof Ys))return new Ys(A,t,e,r,n);this.boundingBox=A,this.xStep=t,this.yStep=e,this.stream="",this.cloneIndex=0,Gy.call(this,r,n)}function Wt(A){var t,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],a=arguments[3],o=[],s=1,l=16,c="S",u=null;Dr(A=A||{})==="object"&&(e=A.orientation,r=A.unit||r,n=A.format||n,a=A.compress||A.compressPdf||a,(u=A.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),s=typeof A.userUnit=="number"?Math.abs(A.userUnit):1,A.precision!==void 0&&(t=A.precision),A.floatPrecision!==void 0&&(l=A.floatPrecision),c=A.defaultPathOperation||"S"),o=A.filters||(a===!0?["FlateEncode"]:o),r=r||"mm",e=(""+(e||"P")).toLowerCase();var h=A.putOnlyUsedFonts||!1,p={},f={internal:{},__private__:{}};f.__private__.PubSub=W0;var v="1.3",w=f.__private__.getPdfVersion=function(){return v};f.__private__.setPdfVersion=function(m){v=m};var b={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 b};var B=f.__private__.getPageFormat=function(m){return b[m]};n=n||"a4";var F="compat",E="advanced",k=F;function P(){this.saveGraphicsState(),Q(new Ft(Bt,0,0,-Bt,0,Kn()*Bt).toString()+" cm"),this.setFontSize(this.getFontSize()/Bt),c="n",k=E}function j(){this.restoreGraphicsState(),c="S",k=F}var M=f.__private__.combineFontStyleAndFontWeight=function(m,U){if(m=="bold"&&U=="normal"||m=="bold"&&U==400||m=="normal"&&U=="italic"||m=="bold"&&U=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return U&&(m=U==400||U==="normal"?m==="italic"?"italic":"normal":U!=700&&U!=="bold"||m!=="normal"?(U==700?"bold":U)+""+m:"bold"),m};f.advancedAPI=function(m){var U=k===F;return U&&P.call(this),typeof m!="function"||(m(this),U&&j.call(this)),this},f.compatAPI=function(m){var U=k===E;return U&&j.call(this),typeof m!="function"||(m(this),U&&P.call(this)),this},f.isAdvancedAPI=function(){return k===E};var O,L=function(m){if(k!==E)throw new Error(m+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},R=f.roundToPrecision=f.__private__.roundToPrecision=function(m,U){var ne=t||U;if(isNaN(m)||isNaN(ne))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return m.toFixed(ne).replace(/0+$/,"")};O=f.hpf=f.__private__.hpf=typeof l=="number"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return R(m,l)}:l==="smart"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return R(m,m>-1&&m<1?16:5)}:function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return R(m,16)};var S=f.f2=f.__private__.f2=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f2");return R(m,2)},T=f.__private__.f3=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f3");return R(m,3)},G=f.scale=f.__private__.scale=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.scale");return k===F?m*Bt:k===E?m:void 0},N=function(m){return G((function(U){return k===F?Kn()-U:k===E?U:void 0})(m))};f.__private__.setPrecision=f.setPrecision=function(m){typeof parseInt(m,10)=="number"&&(t=parseInt(m,10))};var oe,le="00000000000000000000000000000000",Z=f.__private__.getFileId=function(){return le},ee=f.__private__.setFileId=function(m){return le=m!==void 0&&/^[a-fA-F0-9]{32}$/.test(m)?m.toUpperCase():le.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&($t=new qs(u.userPermissions,u.userPassword,u.ownerPassword,le)),le};f.setFileId=function(m){return ee(m),this},f.getFileId=function(){return Z()};var X=f.__private__.convertDateToPDFDate=function(m){var U=m.getTimezoneOffset(),ne=U<0?"+":"-",ve=Math.floor(Math.abs(U/60)),Se=Math.abs(U%60),et=[ne,W(ve),"'",W(Se),"'"].join("");return["D:",m.getFullYear(),W(m.getMonth()+1),W(m.getDate()),W(m.getHours()),W(m.getMinutes()),W(m.getSeconds()),et].join("")},re=f.__private__.convertPDFDateToDate=function(m){var U=parseInt(m.substr(2,4),10),ne=parseInt(m.substr(6,2),10)-1,ve=parseInt(m.substr(8,2),10),Se=parseInt(m.substr(10,2),10),et=parseInt(m.substr(12,2),10),it=parseInt(m.substr(14,2),10);return new Date(U,ne,ve,Se,et,it,0)},se=f.__private__.setCreationDate=function(m){var U;if(m===void 0&&(m=new Date),m instanceof Date)U=X(m);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(m))throw new Error("Invalid argument passed to jsPDF.setCreationDate");U=m}return oe=U},x=f.__private__.getCreationDate=function(m){var U=oe;return m==="jsDate"&&(U=re(oe)),U};f.setCreationDate=function(m){return se(m),this},f.getCreationDate=function(m){return x(m)};var I,W=f.__private__.padd2=function(m){return("0"+parseInt(m)).slice(-2)},z=f.__private__.padd2Hex=function(m){return("00"+(m=m.toString())).substr(m.length)},Ae=0,he=[],fe=[],ce=0,Fe=[],Pe=[],Ze=!1,tt=fe;f.__private__.setCustomOutputDestination=function(m){Ze=!0,tt=m};var lt=function(m){Ze||(tt=m)};f.__private__.resetCustomOutputDestination=function(){Ze=!1,tt=fe};var Q=f.__private__.out=function(m){return m=m.toString(),ce+=m.length+1,tt.push(m),tt},De=f.__private__.write=function(m){return Q(arguments.length===1?m.toString():Array.prototype.join.call(arguments," "))},pe=f.__private__.getArrayBuffer=function(m){for(var U=m.length,ne=new ArrayBuffer(U),ve=new Uint8Array(ne);U--;)ve[U]=m.charCodeAt(U);return ne},ge=[["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 ge};var Ee=A.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(m){return Ee=k===E?m/Bt:m,this};var xe,Qe=f.__private__.getFontSize=f.getFontSize=function(){return k===F?Ee:Ee*Bt},Oe=A.R2L||!1;f.__private__.setR2L=f.setR2L=function(m){return Oe=m,this},f.__private__.getR2L=f.getR2L=function(){return Oe};var Ve,Re=f.__private__.setZoomMode=function(m){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(m))xe=m;else if(isNaN(m)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(m)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+m+'" is not recognized.');xe=m}else xe=parseInt(m,10)};f.__private__.getZoomMode=function(){return xe};var $e,at=f.__private__.setPageMode=function(m){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(m)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+m+'" is not recognized.');Ve=m};f.__private__.getPageMode=function(){return Ve};var gt=f.__private__.setLayoutMode=function(m){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(m)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+m+'" is not recognized.');$e=m};f.__private__.getLayoutMode=function(){return $e},f.__private__.setDisplayMode=f.setDisplayMode=function(m,U,ne){return Re(m),gt(U),at(ne),this};var mt={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(m){if(Object.keys(mt).indexOf(m)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return mt[m]},f.__private__.getDocumentProperties=function(){return mt},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(m){for(var U in mt)mt.hasOwnProperty(U)&&m[U]&&(mt[U]=m[U]);return this},f.__private__.setDocumentProperty=function(m,U){if(Object.keys(mt).indexOf(m)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return mt[m]=U};var ht,Bt,pt,zt,_t,Ut={},Lt={},Xt=[],Et={},rr={},St={},ye={},He=null,_e=0,je=[],wt=new W0(f),Qt=A.hotfixes||[],Tt={},gr={},Or=[],Ft=function m(U,ne,ve,Se,et,it){if(!(this instanceof m))return new m(U,ne,ve,Se,et,it);isNaN(U)&&(U=1),isNaN(ne)&&(ne=0),isNaN(ve)&&(ve=0),isNaN(Se)&&(Se=1),isNaN(et)&&(et=0),isNaN(it)&&(it=0),this._matrix=[U,ne,ve,Se,et,it]};Object.defineProperty(Ft.prototype,"sx",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(Ft.prototype,"shy",{get:function(){return this._matrix[1]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(Ft.prototype,"shx",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(Ft.prototype,"sy",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(Ft.prototype,"tx",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(Ft.prototype,"ty",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(Ft.prototype,"a",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(Ft.prototype,"b",{get:function(){return this._matrix[1]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(Ft.prototype,"c",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(Ft.prototype,"d",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(Ft.prototype,"e",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(Ft.prototype,"f",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(Ft.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ft.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ft.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ft.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ft.prototype.join=function(m){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(O).join(m)},Ft.prototype.multiply=function(m){var U=m.sx*this.sx+m.shy*this.shx,ne=m.sx*this.shy+m.shy*this.sy,ve=m.shx*this.sx+m.sy*this.shx,Se=m.shx*this.shy+m.sy*this.sy,et=m.tx*this.sx+m.ty*this.shx+this.tx,it=m.tx*this.shy+m.ty*this.sy+this.ty;return new Ft(U,ne,ve,Se,et,it)},Ft.prototype.decompose=function(){var m=this.sx,U=this.shy,ne=this.shx,ve=this.sy,Se=this.tx,et=this.ty,it=Math.sqrt(m*m+U*U),It=(m/=it)*ne+(U/=it)*ve;ne-=m*It,ve-=U*It;var Ht=Math.sqrt(ne*ne+ve*ve);return It/=Ht,m*(ve/=Ht)<U*(ne/=Ht)&&(m=-m,U=-U,It=-It,it=-it),{scale:new Ft(it,0,0,Ht,0,0),translate:new Ft(1,0,0,1,Se,et),rotate:new Ft(m,U,-U,m,0,0),skew:new Ft(1,0,It,1,0,0)}},Ft.prototype.toString=function(m){return this.join(" ")},Ft.prototype.inversed=function(){var m=this.sx,U=this.shy,ne=this.shx,ve=this.sy,Se=this.tx,et=this.ty,it=1/(m*ve-U*ne),It=ve*it,Ht=-U*it,Jt=-ne*it,Ar=m*it;return new Ft(It,Ht,Jt,Ar,-It*Se-Jt*et,-Ht*Se-Ar*et)},Ft.prototype.applyToPoint=function(m){var U=m.x*this.sx+m.y*this.shx+this.tx,ne=m.x*this.shy+m.y*this.sy+this.ty;return new Nn(U,ne)},Ft.prototype.applyToRectangle=function(m){var U=this.applyToPoint(m),ne=this.applyToPoint(new Nn(m.x+m.w,m.y+m.h));return new Oa(U.x,U.y,ne.x-U.x,ne.y-U.y)},Ft.prototype.clone=function(){var m=this.sx,U=this.shy,ne=this.shx,ve=this.sy,Se=this.tx,et=this.ty;return new Ft(m,U,ne,ve,Se,et)},f.Matrix=Ft;var hA=f.matrixMult=function(m,U){return U.multiply(m)},lA=new Ft(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=lA;var cA=function(m,U){if(!rr[m]){var ne=(U instanceof ss?"Sh":"P")+(Object.keys(Et).length+1).toString(10);U.id=ne,rr[m]=ne,Et[ne]=U,wt.publish("addPattern",U)}};f.ShadingPattern=ss,f.TilingPattern=Ys,f.addShadingPattern=function(m,U){return L("addShadingPattern()"),cA(m,U),this},f.beginTilingPattern=function(m){L("beginTilingPattern()"),wi(m.boundingBox[0],m.boundingBox[1],m.boundingBox[2]-m.boundingBox[0],m.boundingBox[3]-m.boundingBox[1],m.matrix)},f.endTilingPattern=function(m,U){L("endTilingPattern()"),U.stream=Pe[I].join(`
`),cA(m,U),wt.publish("endTilingPattern",U),Or.pop().restore()};var xr,fr=f.__private__.newObject=function(){var m=Cr();return Er(m,!0),m},Cr=f.__private__.newObjectDeferred=function(){return Ae++,he[Ae]=function(){return ce},Ae},Er=function(m,U){return U=typeof U=="boolean"&&U,he[m]=ce,U&&Q(m+" 0 obj"),m},gA=f.__private__.newAdditionalObject=function(){var m={objId:Cr(),content:""};return Fe.push(m),m},uA=Cr(),Br=Cr(),tA=f.__private__.decodeColorString=function(m){var U=m.split(" ");if(U.length!==2||U[1]!=="g"&&U[1]!=="G")U.length!==5||U[4]!=="k"&&U[4]!=="K"||(U=[(1-U[0])*(1-U[3]),(1-U[1])*(1-U[3]),(1-U[2])*(1-U[3]),"r"]);else{var ne=parseFloat(U[0]);U=[ne,ne,ne,"r"]}for(var ve="#",Se=0;Se<3;Se++)ve+=("0"+Math.floor(255*parseFloat(U[Se])).toString(16)).slice(-2);return ve},pA=f.__private__.encodeColorString=function(m){var U;typeof m=="string"&&(m={ch1:m});var ne=m.ch1,ve=m.ch2,Se=m.ch3,et=m.ch4,it=m.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof ne=="string"&&ne.charAt(0)!=="#"){var It=new jy(ne);if(It.ok)ne=It.toHex();else if(!/^\d*\.?\d*$/.test(ne))throw new Error('Invalid color "'+ne+'" passed to jsPDF.encodeColorString.')}if(typeof ne=="string"&&/^#[0-9A-Fa-f]{3}$/.test(ne)&&(ne="#"+ne[1]+ne[1]+ne[2]+ne[2]+ne[3]+ne[3]),typeof ne=="string"&&/^#[0-9A-Fa-f]{6}$/.test(ne)){var Ht=parseInt(ne.substr(1),16);ne=Ht>>16&255,ve=Ht>>8&255,Se=255&Ht}if(ve===void 0||et===void 0&&ne===ve&&ve===Se)U=typeof ne=="string"?ne+" "+it[0]:m.precision===2?S(ne/255)+" "+it[0]:T(ne/255)+" "+it[0];else if(et===void 0||Dr(et)==="object"){if(et&&!isNaN(et.a)&&et.a===0)return["1.","1.","1.",it[1]].join(" ");U=typeof ne=="string"?[ne,ve,Se,it[1]].join(" "):m.precision===2?[S(ne/255),S(ve/255),S(Se/255),it[1]].join(" "):[T(ne/255),T(ve/255),T(Se/255),it[1]].join(" ")}else U=typeof ne=="string"?[ne,ve,Se,et,it[2]].join(" "):m.precision===2?[S(ne),S(ve),S(Se),S(et),it[2]].join(" "):[T(ne),T(ve),T(Se),T(et),it[2]].join(" ");return U},Rr=f.__private__.getFilters=function(){return o},vA=f.__private__.putStream=function(m){var U=(m=m||{}).data||"",ne=m.filters||Rr(),ve=m.alreadyAppliedFilters||[],Se=m.addLength1||!1,et=U.length,it=m.objectId,It=function(K){return K};if(u!==null&&it===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(It=$t.encryptor(it,0));var Ht={};ne===!0&&(ne=["FlateEncode"]);var Jt=m.additionalKeyValues||[],Ar=(Ht=Wt.API.processDataByFilters!==void 0?Wt.API.processDataByFilters(U,ne):{data:U,reverseChain:[]}).reverseChain+(Array.isArray(ve)?ve.join(" "):ve.toString());if(Ht.data.length!==0&&(Jt.push({key:"Length",value:Ht.data.length}),Se===!0&&Jt.push({key:"Length1",value:et})),Ar.length!=0)if(Ar.split("/").length-1==1)Jt.push({key:"Filter",value:Ar});else{Jt.push({key:"Filter",value:"["+Ar+"]"});for(var mr=0;mr<Jt.length;mr+=1)if(Jt[mr].key==="DecodeParms"){for(var rA=[],H=0;H<Ht.reverseChain.split("/").length-1;H+=1)rA.push("null");rA.push(Jt[mr].value),Jt[mr].value="["+rA.join(" ")+"]"}}Q("<<");for(var te=0;te<Jt.length;te++)Q("/"+Jt[te].key+" "+Jt[te].value);Q(">>"),Ht.data.length!==0&&(Q("stream"),Q(It(Ht.data)),Q("endstream"))},ln=f.__private__.putPage=function(m){var U=m.number,ne=m.data,ve=m.objId,Se=m.contentsObjId;Er(ve,!0),Q("<</Type /Page"),Q("/Parent "+m.rootDictionaryObjId+" 0 R"),Q("/Resources "+m.resourceDictionaryObjId+" 0 R"),Q("/MediaBox ["+parseFloat(O(m.mediaBox.bottomLeftX))+" "+parseFloat(O(m.mediaBox.bottomLeftY))+" "+O(m.mediaBox.topRightX)+" "+O(m.mediaBox.topRightY)+"]"),m.cropBox!==null&&Q("/CropBox ["+O(m.cropBox.bottomLeftX)+" "+O(m.cropBox.bottomLeftY)+" "+O(m.cropBox.topRightX)+" "+O(m.cropBox.topRightY)+"]"),m.bleedBox!==null&&Q("/BleedBox ["+O(m.bleedBox.bottomLeftX)+" "+O(m.bleedBox.bottomLeftY)+" "+O(m.bleedBox.topRightX)+" "+O(m.bleedBox.topRightY)+"]"),m.trimBox!==null&&Q("/TrimBox ["+O(m.trimBox.bottomLeftX)+" "+O(m.trimBox.bottomLeftY)+" "+O(m.trimBox.topRightX)+" "+O(m.trimBox.topRightY)+"]"),m.artBox!==null&&Q("/ArtBox ["+O(m.artBox.bottomLeftX)+" "+O(m.artBox.bottomLeftY)+" "+O(m.artBox.topRightX)+" "+O(m.artBox.topRightY)+"]"),typeof m.userUnit=="number"&&m.userUnit!==1&&Q("/UserUnit "+m.userUnit),wt.publish("putPage",{objId:ve,pageContext:je[U],pageNumber:U,page:ne}),Q("/Contents "+Se+" 0 R"),Q(">>"),Q("endobj");var et=ne.join(`
`);return k===E&&(et+=`
Q`),Er(Se,!0),vA({data:et,filters:Rr(),objectId:Se}),Q("endobj"),ve},Ct=f.__private__.putPages=function(){var m,U,ne=[];for(m=1;m<=_e;m++)je[m].objId=Cr(),je[m].contentsObjId=Cr();for(m=1;m<=_e;m++)ne.push(ln({number:m,data:Pe[m],objId:je[m].objId,contentsObjId:je[m].contentsObjId,mediaBox:je[m].mediaBox,cropBox:je[m].cropBox,bleedBox:je[m].bleedBox,trimBox:je[m].trimBox,artBox:je[m].artBox,userUnit:je[m].userUnit,rootDictionaryObjId:uA,resourceDictionaryObjId:Br}));Er(uA,!0),Q("<</Type /Pages");var ve="/Kids [";for(U=0;U<_e;U++)ve+=ne[U]+" 0 R ";Q(ve+"]"),Q("/Count "+_e),Q(">>"),Q("endobj"),wt.publish("postPutPages")},Be=function(m){wt.publish("putFont",{font:m,out:Q,newObject:fr,putStream:vA}),m.isAlreadyPutted!==!0&&(m.objectNumber=fr(),Q("<<"),Q("/Type /Font"),Q("/BaseFont /"+js(m.postScriptName)),Q("/Subtype /Type1"),typeof m.encoding=="string"&&Q("/Encoding /"+m.encoding),Q("/FirstChar 32"),Q("/LastChar 255"),Q(">>"),Q("endobj"))},$=function(m){m.objectNumber=fr();var U=[];U.push({key:"Type",value:"/XObject"}),U.push({key:"Subtype",value:"/Form"}),U.push({key:"BBox",value:"["+[O(m.x),O(m.y),O(m.x+m.width),O(m.y+m.height)].join(" ")+"]"}),U.push({key:"Matrix",value:"["+m.matrix.toString()+"]"});var ne=m.pages[1].join(`
`);vA({data:ne,additionalKeyValues:U,objectId:m.objectNumber}),Q("endobj")},de=function(m,U){U||(U=21);var ne=fr(),ve=(function(it,It){var Ht,Jt=[],Ar=1/(It-1);for(Ht=0;Ht<1;Ht+=Ar)Jt.push(Ht);if(Jt.push(1),it[0].offset!=0){var mr={offset:0,color:it[0].color};it.unshift(mr)}if(it[it.length-1].offset!=1){var rA={offset:1,color:it[it.length-1].color};it.push(rA)}for(var H="",te=0,K=0;K<Jt.length;K++){for(Ht=Jt[K];Ht>it[te+1].offset;)te++;var ue=it[te].offset,we=(Ht-ue)/(it[te+1].offset-ue),Ue=it[te].color,Ge=it[te+1].color;H+=z(Math.round((1-we)*Ue[0]+we*Ge[0]).toString(16))+z(Math.round((1-we)*Ue[1]+we*Ge[1]).toString(16))+z(Math.round((1-we)*Ue[2]+we*Ge[2]).toString(16))}return H.trim()})(m.colors,U),Se=[];Se.push({key:"FunctionType",value:"0"}),Se.push({key:"Domain",value:"[0.0 1.0]"}),Se.push({key:"Size",value:"["+U+"]"}),Se.push({key:"BitsPerSample",value:"8"}),Se.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Se.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),vA({data:ve,additionalKeyValues:Se,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ne}),Q("endobj"),m.objectNumber=fr(),Q("<< /ShadingType "+m.type),Q("/ColorSpace /DeviceRGB");var et="/Coords ["+O(parseFloat(m.coords[0]))+" "+O(parseFloat(m.coords[1]))+" ";m.type===2?et+=O(parseFloat(m.coords[2]))+" "+O(parseFloat(m.coords[3])):et+=O(parseFloat(m.coords[2]))+" "+O(parseFloat(m.coords[3]))+" "+O(parseFloat(m.coords[4]))+" "+O(parseFloat(m.coords[5])),Q(et+="]"),m.matrix&&Q("/Matrix ["+m.matrix.toString()+"]"),Q("/Function "+ne+" 0 R"),Q("/Extend [true true]"),Q(">>"),Q("endobj")},Ke=function(m,U){var ne=Cr(),ve=fr();U.push({resourcesOid:ne,objectOid:ve}),m.objectNumber=ve;var Se=[];Se.push({key:"Type",value:"/Pattern"}),Se.push({key:"PatternType",value:"1"}),Se.push({key:"PaintType",value:"1"}),Se.push({key:"TilingType",value:"1"}),Se.push({key:"BBox",value:"["+m.boundingBox.map(O).join(" ")+"]"}),Se.push({key:"XStep",value:O(m.xStep)}),Se.push({key:"YStep",value:O(m.yStep)}),Se.push({key:"Resources",value:ne+" 0 R"}),m.matrix&&Se.push({key:"Matrix",value:"["+m.matrix.toString()+"]"}),vA({data:m.stream,additionalKeyValues:Se,objectId:m.objectNumber}),Q("endobj")},rt=function(m){for(var U in m.objectNumber=fr(),Q("<<"),m)switch(U){case"opacity":Q("/ca "+S(m[U]));break;case"stroke-opacity":Q("/CA "+S(m[U]))}Q(">>"),Q("endobj")},q=function(m){Er(m.resourcesOid,!0),Q("<<"),Q("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var U in Q("/Font <<"),Ut)Ut.hasOwnProperty(U)&&(h===!1||h===!0&&p.hasOwnProperty(U))&&Q("/"+U+" "+Ut[U].objectNumber+" 0 R");Q(">>")})(),(function(){if(Object.keys(Et).length>0){for(var U in Q("/Shading <<"),Et)Et.hasOwnProperty(U)&&Et[U]instanceof ss&&Et[U].objectNumber>=0&&Q("/"+U+" "+Et[U].objectNumber+" 0 R");wt.publish("putShadingPatternDict"),Q(">>")}})(),(function(U){if(Object.keys(Et).length>0){for(var ne in Q("/Pattern <<"),Et)Et.hasOwnProperty(ne)&&Et[ne]instanceof f.TilingPattern&&Et[ne].objectNumber>=0&&Et[ne].objectNumber<U&&Q("/"+ne+" "+Et[ne].objectNumber+" 0 R");wt.publish("putTilingPatternDict"),Q(">>")}})(m.objectOid),(function(){if(Object.keys(St).length>0){var U;for(U in Q("/ExtGState <<"),St)St.hasOwnProperty(U)&&St[U].objectNumber>=0&&Q("/"+U+" "+St[U].objectNumber+" 0 R");wt.publish("putGStateDict"),Q(">>")}})(),(function(){for(var U in Q("/XObject <<"),Tt)Tt.hasOwnProperty(U)&&Tt[U].objectNumber>=0&&Q("/"+U+" "+Tt[U].objectNumber+" 0 R");wt.publish("putXobjectDict"),Q(">>")})(),Q(">>"),Q("endobj")},me=function(m){Lt[m.fontName]=Lt[m.fontName]||{},Lt[m.fontName][m.fontStyle]=m.id},Ce=function(m,U,ne,ve,Se){var et={id:"F"+(Object.keys(Ut).length+1).toString(10),postScriptName:m,fontName:U,fontStyle:ne,encoding:ve,isStandardFont:Se||!1,metadata:{}};return wt.publish("addFont",{font:et,instance:this}),Ut[et.id]=et,me(et),et.id},Te=f.__private__.pdfEscape=f.pdfEscape=function(m,U){return(function(ne,ve){var Se,et,it,It,Ht,Jt,Ar,mr,rA;if(it=(ve=ve||{}).sourceEncoding||"Unicode",Ht=ve.outputEncoding,(ve.autoencode||Ht)&&Ut[ht].metadata&&Ut[ht].metadata[it]&&Ut[ht].metadata[it].encoding&&(It=Ut[ht].metadata[it].encoding,!Ht&&Ut[ht].encoding&&(Ht=Ut[ht].encoding),!Ht&&It.codePages&&(Ht=It.codePages[0]),typeof Ht=="string"&&(Ht=It[Ht]),Ht)){for(Ar=!1,Jt=[],Se=0,et=ne.length;Se<et;Se++)(mr=Ht[ne.charCodeAt(Se)])?Jt.push(String.fromCharCode(mr)):Jt.push(ne[Se]),Jt[Se].charCodeAt(0)>>8&&(Ar=!0);ne=Jt.join("")}for(Se=ne.length;Ar===void 0&&Se!==0;)ne.charCodeAt(Se-1)>>8&&(Ar=!0),Se--;if(!Ar)return ne;for(Jt=ve.noBOM?[]:[254,255],Se=0,et=ne.length;Se<et;Se++){if((rA=(mr=ne.charCodeAt(Se))>>8)>>8)throw new Error("Character at position "+Se+" of string '"+ne+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Jt.push(rA),Jt.push(mr-(rA<<8))}return String.fromCharCode.apply(void 0,Jt)})(m,U).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ze=f.__private__.beginPage=function(m){Pe[++_e]=[],je[_e]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(m[0]),topRightY:Number(m[1])}},Ye(_e),lt(Pe[I])},Ie=function(m,U){var ne,ve,Se;switch(e=U||e,typeof m=="string"&&(ne=B(m.toLowerCase()),Array.isArray(ne)&&(ve=ne[0],Se=ne[1])),Array.isArray(m)&&(ve=m[0]*Bt,Se=m[1]*Bt),isNaN(ve)&&(ve=n[0],Se=n[1]),(ve>14400||Se>14400)&&(zr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ve=Math.min(14400,ve),Se=Math.min(14400,Se)),n=[ve,Se],e.substr(0,1)){case"l":Se>ve&&(n=[Se,ve]);break;case"p":ve>Se&&(n=[Se,ve])}ze(n),Zt(dn),Q(_a),Ma!==0&&Q(Ma+" J"),$i!==0&&Q($i+" j"),wt.publish("addPage",{pageNumber:_e})},Xe=function(m){m>0&&m<=_e&&(Pe.splice(m,1),je.splice(m,1),_e--,I>_e&&(I=_e),this.setPage(I))},Ye=function(m){m>0&&m<=_e&&(I=m)},st=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return Pe.length-1},vt=function(m,U,ne){var ve,Se=void 0;return ne=ne||{},m=m!==void 0?m:Ut[ht].fontName,U=U!==void 0?U:Ut[ht].fontStyle,ve=m.toLowerCase(),Lt[ve]!==void 0&&Lt[ve][U]!==void 0?Se=Lt[ve][U]:Lt[m]!==void 0&&Lt[m][U]!==void 0?Se=Lt[m][U]:ne.disableWarning===!1&&zr.warn("Unable to look up font label for font '"+m+"', '"+U+"'. Refer to getFontList() for available fonts."),Se||ne.noFallback||(Se=Lt.times[U])==null&&(Se=Lt.times.normal),Se},qt=f.__private__.putInfo=function(){var m=fr(),U=function(ve){return ve};for(var ne in u!==null&&(U=$t.encryptor(m,0)),Q("<<"),Q("/Producer ("+Te(U("jsPDF "+Wt.version))+")"),mt)mt.hasOwnProperty(ne)&&mt[ne]&&Q("/"+ne.substr(0,1).toUpperCase()+ne.substr(1)+" ("+Te(U(mt[ne]))+")");Q("/CreationDate ("+Te(U(oe))+")"),Q(">>"),Q("endobj")},tr=f.__private__.putCatalog=function(m){var U=(m=m||{}).rootDictionaryObjId||uA;switch(fr(),Q("<<"),Q("/Type /Catalog"),Q("/Pages "+U+" 0 R"),xe||(xe="fullwidth"),xe){case"fullwidth":Q("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Q("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Q("/OpenAction [3 0 R /Fit]");break;case"original":Q("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ne=""+xe;ne.substr(ne.length-1)==="%"&&(xe=parseInt(xe)/100),typeof xe=="number"&&Q("/OpenAction [3 0 R /XYZ null null "+S(xe)+"]")}switch($e||($e="continuous"),$e){case"continuous":Q("/PageLayout /OneColumn");break;case"single":Q("/PageLayout /SinglePage");break;case"two":case"twoleft":Q("/PageLayout /TwoColumnLeft");break;case"tworight":Q("/PageLayout /TwoColumnRight")}Ve&&Q("/PageMode /"+Ve),wt.publish("putCatalog"),Q(">>"),Q("endobj")},nr=f.__private__.putTrailer=function(){Q("trailer"),Q("<<"),Q("/Size "+(Ae+1)),Q("/Root "+Ae+" 0 R"),Q("/Info "+(Ae-1)+" 0 R"),u!==null&&Q("/Encrypt "+$t.oid+" 0 R"),Q("/ID [ <"+le+"> <"+le+"> ]"),Q(">>")},Kt=f.__private__.putHeader=function(){Q("%PDF-"+v),Q("%ºß¬à")},Gt=f.__private__.putXRef=function(){var m="0000000000";Q("xref"),Q("0 "+(Ae+1)),Q("0000000000 65535 f ");for(var U=1;U<=Ae;U++)typeof he[U]=="function"?Q((m+he[U]()).slice(-10)+" 00000 n "):he[U]!==void 0?Q((m+he[U]).slice(-10)+" 00000 n "):Q("0000000000 00000 n ")},Rt=f.__private__.buildDocument=function(){var m;Ae=0,ce=0,fe=[],he=[],Fe=[],uA=Cr(),Br=Cr(),lt(fe),wt.publish("buildDocument"),Kt(),Ct(),(function(){wt.publish("putAdditionalObjects");for(var ne=0;ne<Fe.length;ne++){var ve=Fe[ne];Er(ve.objId,!0),Q(ve.content),Q("endobj")}wt.publish("postPutAdditionalObjects")})(),m=[],(function(){for(var ne in Ut)Ut.hasOwnProperty(ne)&&(h===!1||h===!0&&p.hasOwnProperty(ne))&&Be(Ut[ne])})(),(function(){var ne;for(ne in St)St.hasOwnProperty(ne)&&rt(St[ne])})(),(function(){for(var ne in Tt)Tt.hasOwnProperty(ne)&&$(Tt[ne])})(),(function(ne){var ve;for(ve in Et)Et.hasOwnProperty(ve)&&(Et[ve]instanceof ss?de(Et[ve]):Et[ve]instanceof Ys&&Ke(Et[ve],ne))})(m),wt.publish("putResources"),m.forEach(q),q({resourcesOid:Br,objectOid:Number.MAX_SAFE_INTEGER}),wt.publish("postPutResources"),u!==null&&($t.oid=fr(),Q("<<"),Q("/Filter /Standard"),Q("/V "+$t.v),Q("/R "+$t.r),Q("/U <"+$t.toHexString($t.U)+">"),Q("/O <"+$t.toHexString($t.O)+">"),Q("/P "+$t.P),Q(">>"),Q("endobj")),qt(),tr();var U=ce;return Gt(),nr(),Q("startxref"),Q(""+U),Q("%%EOF"),lt(Pe[I]),fe.join(`
`)},pr=f.__private__.getBlob=function(m){return new Blob([pe(m)],{type:"application/pdf"})},dr=f.output=f.__private__.output=(xr=function(m,U){switch(typeof(U=U||{})=="string"?U={filename:U}:U.filename=U.filename||"generated.pdf",m){case void 0:return Rt();case"save":f.save(U.filename);break;case"arraybuffer":return pe(Rt());case"blob":return pr(Rt());case"bloburi":case"bloburl":if(er.URL!==void 0&&typeof er.URL.createObjectURL=="function")return er.URL&&er.URL.createObjectURL(pr(Rt()))||void 0;zr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ne="",ve=Rt();try{ne=K0(ve)}catch{ne=K0(unescape(encodeURIComponent(ve)))}return"data:application/pdf;filename="+U.filename+";base64,"+ne;case"pdfobjectnewwindow":if(Object.prototype.toString.call(er)==="[object Window]"){var Se="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",et=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';U.pdfObjectUrl&&(Se=U.pdfObjectUrl,et="");var it='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+Se+'"'+et+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(U)+");<\/script></body></html>",It=er.open();return It!==null&&It.document.write(it),It}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(er)==="[object Window]"){var Ht='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(U.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+U.filename+'" width="500px" height="400px" /></body></html>',Jt=er.open();if(Jt!==null){Jt.document.write(Ht);var Ar=this;Jt.document.documentElement.querySelector("#pdfViewer").onload=function(){Jt.document.title=U.filename,Jt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Ar.output("bloburl"))}}return Jt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(er)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var mr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",U)+'"></iframe></body></html>',rA=er.open();if(rA!==null&&(rA.document.write(mr),rA.document.title=U.filename),rA||typeof safari>"u")return rA;break;case"datauri":case"dataurl":return er.document.location.href=this.output("datauristring",U);default:return null}},xr.foo=function(){try{return xr.apply(this,arguments)}catch(ne){var m=ne.stack||"";~m.indexOf(" at ")&&(m=m.split(" at ")[1]);var U="Error in function "+m.split(`
`)[0].split("<")[0]+": "+ne.message;if(!er.console)throw new Error(U);er.console.error(U,ne),er.alert&&alert(U)}},xr.foo.bar=xr,xr.foo),yr=function(m){return Array.isArray(Qt)===!0&&Qt.indexOf(m)>-1};switch(r){case"pt":Bt=1;break;case"mm":Bt=72/25.4;break;case"cm":Bt=72/2.54;break;case"in":Bt=72;break;case"px":Bt=yr("px_scaling")==1?.75:96/72;break;case"pc":case"em":Bt=12;break;case"ex":Bt=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);Bt=r}var $t=null;se(),ee();var RA=f.__private__.getPageInfo=f.getPageInfo=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:je[m].objId,pageNumber:m,pageContext:je[m]}},cn=f.__private__.getPageInfoByObjId=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var U in je)if(je[U].objId===m)break;return RA(U)},Ln=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:je[I].objId,pageNumber:I,pageContext:je[I]}};f.addPage=function(){return Ie.apply(this,arguments),this},f.setPage=function(){return Ye.apply(this,arguments),lt.call(this,Pe[I]),this},f.insertPage=function(m){return this.addPage(),this.movePage(I,m),this},f.movePage=function(m,U){var ne,ve;if(m>U){ne=Pe[m],ve=je[m];for(var Se=m;Se>U;Se--)Pe[Se]=Pe[Se-1],je[Se]=je[Se-1];Pe[U]=ne,je[U]=ve,this.setPage(U)}else if(m<U){ne=Pe[m],ve=je[m];for(var et=m;et<U;et++)Pe[et]=Pe[et+1],je[et]=je[et+1];Pe[U]=ne,je[U]=ve,this.setPage(U)}return this},f.deletePage=function(){return Xe.apply(this,arguments),this},f.__private__.text=f.text=function(m,U,ne,ve,Se){var et,it,It,Ht,Jt,Ar,mr,rA,H,te=(ve=ve||{}).scope||this;if(typeof m=="number"&&typeof U=="number"&&(typeof ne=="string"||Array.isArray(ne))){var K=ne;ne=U,U=m,m=K}if(arguments[3]instanceof Ft==0?(It=arguments[4],Ht=arguments[5],Dr(mr=arguments[3])==="object"&&mr!==null||(typeof It=="string"&&(Ht=It,It=null),typeof mr=="string"&&(Ht=mr,mr=null),typeof mr=="number"&&(It=mr,mr=null),ve={flags:mr,angle:It,align:Ht})):(L("The transform parameter of text() with a Matrix value"),H=Se),isNaN(U)||isNaN(ne)||m==null)throw new Error("Invalid arguments passed to jsPDF.text");if(m.length===0)return te;var ue,we="",Ue=typeof ve.lineHeightFactor=="number"?ve.lineHeightFactor:mA,Ge=te.internal.scaleFactor;function We(Nr){return Nr=Nr.split("	").join(Array(ve.TabLen||9).join(" ")),Te(Nr,mr)}function ft(Nr){for(var Gr,xA=Nr.concat(),HA=[],Ja=xA.length;Ja--;)typeof(Gr=xA.shift())=="string"?HA.push(Gr):Array.isArray(Nr)&&(Gr.length===1||Gr[1]===void 0&&Gr[2]===void 0)?HA.push(Gr[0]):HA.push([Gr[0],Gr[1],Gr[2]]);return HA}function kt(Nr,Gr){var xA;if(typeof Nr=="string")xA=Gr(Nr)[0];else if(Array.isArray(Nr)){for(var HA,Ja,fo=Nr.concat(),Ls=[],dl=fo.length;dl--;)typeof(HA=fo.shift())=="string"?Ls.push(Gr(HA)[0]):Array.isArray(HA)&&typeof HA[0]=="string"&&(Ja=Gr(HA[0],HA[1],HA[2]),Ls.push([Ja[0],Ja[1],Ja[2]]));xA=Ls}return xA}var bt=!1,ut=!0;if(typeof m=="string")bt=!0;else if(Array.isArray(m)){var Mt=m.concat();it=[];for(var Sr,Tr=Mt.length;Tr--;)(typeof(Sr=Mt.shift())!="string"||Array.isArray(Sr)&&typeof Sr[0]!="string")&&(ut=!1);bt=ut}if(bt===!1)throw new Error('Type of text must be string or Array. "'+m+'" is not recognized.');typeof m=="string"&&(m=m.match(/[\r?\n]/)?m.split(/\r\n|\r|\n/g):[m]);var jA=Ee/te.internal.scaleFactor,aA=jA*(Ue-1);switch(ve.baseline){case"bottom":ne-=aA;break;case"top":ne+=jA-aA;break;case"hanging":ne+=jA-2*aA;break;case"middle":ne+=jA/2-aA}if((Ar=ve.maxWidth||0)>0&&(typeof m=="string"?m=te.splitTextToSize(m,Ar):Object.prototype.toString.call(m)==="[object Array]"&&(m=m.reduce(function(Nr,Gr){return Nr.concat(te.splitTextToSize(Gr,Ar))},[]))),et={text:m,x:U,y:ne,options:ve,mutex:{pdfEscape:Te,activeFontKey:ht,fonts:Ut,activeFontSize:Ee}},wt.publish("preProcessText",et),m=et.text,It=(ve=et.options).angle,H instanceof Ft==0&&It&&typeof It=="number"){It*=Math.PI/180,ve.rotationDirection===0&&(It=-It),k===E&&(It=-It);var fA=Math.cos(It),wA=Math.sin(It);H=new Ft(fA,wA,-wA,fA,0,0)}else It&&It instanceof Ft&&(H=It);k!==E||H||(H=lA),(Jt=ve.charSpace||ZA)!==void 0&&(we+=O(G(Jt))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(rA=ve.horizontalScale)!==void 0&&(we+=O(100*rA)+` Tz
`),ve.lang;var Hr=-1,Cn=ve.renderingMode!==void 0?ve.renderingMode:ve.stroke,Xr=te.internal.getCurrentPageInfo().pageContext;switch(Cn){case 0:case!1:case"fill":Hr=0;break;case 1:case!0:case"stroke":Hr=1;break;case 2:case"fillThenStroke":Hr=2;break;case 3:case"invisible":Hr=3;break;case 4:case"fillAndAddForClipping":Hr=4;break;case 5:case"strokeAndAddPathForClipping":Hr=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Hr=6;break;case 7:case"addToPathForClipping":Hr=7}var qn=Xr.usedRenderingMode!==void 0?Xr.usedRenderingMode:-1;Hr!==-1?we+=Hr+` Tr
`:qn!==-1&&(we+=`0 Tr
`),Hr!==-1&&(Xr.usedRenderingMode=Hr),Ht=ve.align||"left";var WA,na=Ee*Ue,Xi=te.internal.pageSize.getWidth(),Xa=Ut[ht];Jt=ve.charSpace||ZA,Ar=ve.maxWidth||0,mr=Object.assign({autoencode:!0,noBOM:!0},ve.flags);var qr=[],Ir=function(Nr){return te.getStringUnitWidth(Nr,{font:Xa,charSpace:Jt,fontSize:Ee,doKerning:!1})*Ee/Ge};if(Object.prototype.toString.call(m)==="[object Array]"){var Ur;it=ft(m),Ht!=="left"&&(WA=it.map(Ir));var jr,en=0;if(Ht==="right"){U-=WA[0],m=[],Tr=it.length;for(var GA=0;GA<Tr;GA++)GA===0?(jr=va(U),Ur=JA(ne)):(jr=G(en-WA[GA]),Ur=-na),m.push([it[GA],jr,Ur]),en=WA[GA]}else if(Ht==="center"){U-=WA[0]/2,m=[],Tr=it.length;for(var Ba=0;Ba<Tr;Ba++)Ba===0?(jr=va(U),Ur=JA(ne)):(jr=G((en-WA[Ba])/2),Ur=-na),m.push([it[Ba],jr,Ur]),en=WA[Ba]}else if(Ht==="left"){m=[],Tr=it.length;for(var yi=0;yi<Tr;yi++)m.push(it[yi])}else if(Ht==="justify"&&Xa.encoding==="Identity-H"){m=[],Tr=it.length,Ar=Ar!==0?Ar:Xi;for(var Ra=0,dA=0;dA<Tr;dA++)if(Ur=dA===0?JA(ne):-na,jr=dA===0?va(U):Ra,dA<Tr-1){var Qs=G((Ar-WA[dA])/(it[dA].split(" ").length-1)),aa=it[dA].split(" ");m.push([aa[0]+" ",jr,Ur]),Ra=0;for(var Ha=1;Ha<aa.length;Ha++){var oo=(Ir(aa[Ha-1]+" "+aa[Ha])-Ir(aa[Ha]))*Ge+Qs;Ha==aa.length-1?m.push([aa[Ha],oo,0]):m.push([aa[Ha]+" ",oo,0]),Ra-=oo}}else m.push([it[dA],jr,Ur]);m.push(["",Ra,0])}else{if(Ht!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(m=[],Tr=it.length,Ar=Ar!==0?Ar:Xi,dA=0;dA<Tr;dA++){Ur=dA===0?JA(ne):-na,jr=dA===0?va(U):0;var lo=it[dA].split(" ").length-1,co=lo>0?(Ar-WA[dA])/lo:0;dA<Tr-1?qr.push(O(G(co))):qr.push(0),m.push([it[dA],jr,Ur])}}}(typeof ve.R2L=="boolean"?ve.R2L:Oe)===!0&&(m=kt(m,function(Nr,Gr,xA){return[Nr.split("").reverse().join(""),Gr,xA]})),et={text:m,x:U,y:ne,options:ve,mutex:{pdfEscape:Te,activeFontKey:ht,fonts:Ut,activeFontSize:Ee}},wt.publish("postProcessText",et),m=et.text,ue=et.mutex.isHex||!1;var uo=Ut[ht].encoding;uo!=="WinAnsiEncoding"&&uo!=="StandardEncoding"||(m=kt(m,function(Nr,Gr,xA){return[We(Nr),Gr,xA]})),it=ft(m),m=[];for(var bi,Ci,Ei,Ji=Array.isArray(it[0])?1:0,Fi="",Zi=function(Nr,Gr,xA){var HA="";return xA instanceof Ft?(xA=typeof ve.angle=="number"?hA(xA,new Ft(1,0,0,1,Nr,Gr)):hA(new Ft(1,0,0,1,Nr,Gr),xA),k===E&&(xA=hA(new Ft(1,0,0,-1,0,0),xA)),HA=xA.join(" ")+` Tm
`):HA=O(Nr)+" "+O(Gr)+` Td
`,HA},ia=0;ia<it.length;ia++){switch(Fi="",Ji){case 1:Ei=(ue?"<":"(")+it[ia][0]+(ue?">":")"),bi=parseFloat(it[ia][1]),Ci=parseFloat(it[ia][2]);break;case 0:Ei=(ue?"<":"(")+it[ia]+(ue?">":")"),bi=va(U),Ci=JA(ne)}qr!==void 0&&qr[ia]!==void 0&&(Fi=qr[ia]+` Tw
`),ia===0?m.push(Fi+Zi(bi,Ci,H)+Ei):Ji===0?m.push(Fi+Ei):Ji===1&&m.push(Fi+Zi(bi,Ci,H)+Ei)}m=Ji===0?m.join(` Tj
T* `):m.join(` Tj
`),m+=` Tj
`;var Pa=`BT
/`;return Pa+=ht+" "+Ee+` Tf
`,Pa+=O(Ee*Ue)+` TL
`,Pa+=or+`
`,Pa+=we,Pa+=m,Q(Pa+="ET"),p[ht]=!0,te};var bn=f.__private__.clip=f.clip=function(m){return Q(m==="evenodd"?"W*":"W"),this};f.clipEvenOdd=function(){return bn("evenodd")},f.__private__.discardPath=f.discardPath=function(){return Q("n"),this};var Qr=f.__private__.isValidStyle=function(m){var U=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(m)!==-1&&(U=!0),U};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(m){return Qr(m)&&(c=m),this};var ur=f.__private__.getStyle=f.getStyle=function(m){var U=c;switch(m){case"D":case"S":U="S";break;case"F":U="f";break;case"FD":case"DF":U="B";break;case"f":case"f*":case"B":case"B*":U=m}return U},Kr=f.close=function(){return Q("h"),this};f.stroke=function(){return Q("S"),this},f.fill=function(m){return Lr("f",m),this},f.fillEvenOdd=function(m){return Lr("f*",m),this},f.fillStroke=function(m){return Lr("B",m),this},f.fillStrokeEvenOdd=function(m){return Lr("B*",m),this};var Lr=function(m,U){Dr(U)==="object"?ta(U,m):Q(m)},$r=function(m){m===null||k===E&&m===void 0||(m=ur(m),Q(m))};function XA(m,U,ne,ve,Se){var et=new Ys(U||this.boundingBox,ne||this.xStep,ve||this.yStep,this.gState,Se||this.matrix);et.stream=this.stream;var it=m+"$$"+this.cloneIndex+++"$$";return cA(it,et),et}var ta=function(m,U){var ne=rr[m.key],ve=Et[ne];if(ve instanceof ss)Q("q"),Q(Vn(U)),ve.gState&&f.setGState(ve.gState),Q(m.matrix.toString()+" cm"),Q("/"+ne+" sh"),Q("Q");else if(ve instanceof Ys){var Se=new Ft(1,0,0,-1,0,Kn());m.matrix&&(Se=Se.multiply(m.matrix||lA),ne=XA.call(ve,m.key,m.boundingBox,m.xStep,m.yStep,Se).id),Q("q"),Q("/Pattern cs"),Q("/"+ne+" scn"),ve.gState&&f.setGState(ve.gState),Q(U),Q("Q")}},Vn=function(m){switch(m){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"}},un=f.moveTo=function(m,U){return Q(O(G(m))+" "+O(N(U))+" m"),this},ra=f.lineTo=function(m,U){return Q(O(G(m))+" "+O(N(U))+" l"),this},kA=f.curveTo=function(m,U,ne,ve,Se,et){return Q([O(G(m)),O(N(U)),O(G(ne)),O(N(ve)),O(G(Se)),O(N(et)),"c"].join(" ")),this};f.__private__.line=f.line=function(m,U,ne,ve,Se){if(isNaN(m)||isNaN(U)||isNaN(ne)||isNaN(ve)||!Qr(Se))throw new Error("Invalid arguments passed to jsPDF.line");return k===F?this.lines([[ne-m,ve-U]],m,U,[1,1],Se||"S"):this.lines([[ne-m,ve-U]],m,U,[1,1]).stroke()},f.__private__.lines=f.lines=function(m,U,ne,ve,Se,et){var it,It,Ht,Jt,Ar,mr,rA,H,te,K,ue,we;if(typeof m=="number"&&(we=ne,ne=U,U=m,m=we),ve=ve||[1,1],et=et||!1,isNaN(U)||isNaN(ne)||!Array.isArray(m)||!Array.isArray(ve)||!Qr(Se)||typeof et!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(un(U,ne),it=ve[0],It=ve[1],Jt=m.length,K=U,ue=ne,Ht=0;Ht<Jt;Ht++)(Ar=m[Ht]).length===2?(K=Ar[0]*it+K,ue=Ar[1]*It+ue,ra(K,ue)):(mr=Ar[0]*it+K,rA=Ar[1]*It+ue,H=Ar[2]*it+K,te=Ar[3]*It+ue,K=Ar[4]*it+K,ue=Ar[5]*It+ue,kA(mr,rA,H,te,K,ue));return et&&Kr(),$r(Se),this},f.path=function(m){for(var U=0;U<m.length;U++){var ne=m[U],ve=ne.c;switch(ne.op){case"m":un(ve[0],ve[1]);break;case"l":ra(ve[0],ve[1]);break;case"c":kA.apply(this,ve);break;case"h":Kr()}}return this},f.__private__.rect=f.rect=function(m,U,ne,ve,Se){if(isNaN(m)||isNaN(U)||isNaN(ne)||isNaN(ve)||!Qr(Se))throw new Error("Invalid arguments passed to jsPDF.rect");return k===F&&(ve=-ve),Q([O(G(m)),O(N(U)),O(G(ne)),O(G(ve)),"re"].join(" ")),$r(Se),this},f.__private__.triangle=f.triangle=function(m,U,ne,ve,Se,et,it){if(isNaN(m)||isNaN(U)||isNaN(ne)||isNaN(ve)||isNaN(Se)||isNaN(et)||!Qr(it))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[ne-m,ve-U],[Se-ne,et-ve],[m-Se,U-et]],m,U,[1,1],it,!0),this},f.__private__.roundedRect=f.roundedRect=function(m,U,ne,ve,Se,et,it){if(isNaN(m)||isNaN(U)||isNaN(ne)||isNaN(ve)||isNaN(Se)||isNaN(et)||!Qr(it))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var It=4/3*(Math.SQRT2-1);return Se=Math.min(Se,.5*ne),et=Math.min(et,.5*ve),this.lines([[ne-2*Se,0],[Se*It,0,Se,et-et*It,Se,et],[0,ve-2*et],[0,et*It,-Se*It,et,-Se,et],[2*Se-ne,0],[-Se*It,0,-Se,-et*It,-Se,-et],[0,2*et-ve],[0,-et*It,Se*It,-et,Se,-et]],m+Se,U,[1,1],it,!0),this},f.__private__.ellipse=f.ellipse=function(m,U,ne,ve,Se){if(isNaN(m)||isNaN(U)||isNaN(ne)||isNaN(ve)||!Qr(Se))throw new Error("Invalid arguments passed to jsPDF.ellipse");var et=4/3*(Math.SQRT2-1)*ne,it=4/3*(Math.SQRT2-1)*ve;return un(m+ne,U),kA(m+ne,U-it,m+et,U-ve,m,U-ve),kA(m-et,U-ve,m-ne,U-it,m-ne,U),kA(m-ne,U+it,m-et,U+ve,m,U+ve),kA(m+et,U+ve,m+ne,U+it,m+ne,U),$r(Se),this},f.__private__.circle=f.circle=function(m,U,ne,ve){if(isNaN(m)||isNaN(U)||isNaN(ne)||!Qr(ve))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(m,U,ne,ne,ve)},f.setFont=function(m,U,ne){return ne&&(U=M(U,ne)),ht=vt(m,U,{disableWarning:!1}),this};var fn=f.__private__.getFont=f.getFont=function(){return Ut[vt.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var m,U,ne={};for(m in Lt)if(Lt.hasOwnProperty(m))for(U in ne[m]=[],Lt[m])Lt[m].hasOwnProperty(U)&&ne[m].push(U);return ne},f.addFont=function(m,U,ne,ve,Se){var et=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&et.indexOf(arguments[3])!==-1?Se=arguments[3]:arguments[3]&&et.indexOf(arguments[3])==-1&&(ne=M(ne,ve)),Ce.call(this,m,U,ne,Se=Se||"Identity-H")};var mA,dn=A.lineWidth||.200025,Cs=f.__private__.getLineWidth=f.getLineWidth=function(){return dn},Zt=f.__private__.setLineWidth=f.setLineWidth=function(m){return dn=m,Q(O(G(m))+" w"),this};f.__private__.setLineDash=Wt.API.setLineDash=Wt.API.setLineDashPattern=function(m,U){if(m=m||[],U=U||0,isNaN(U)||!Array.isArray(m))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return m=m.map(function(ne){return O(G(ne))}).join(" "),U=O(G(U)),Q("["+m+"] "+U+" d"),this};var so=f.__private__.getLineHeight=f.getLineHeight=function(){return Ee*mA};f.__private__.getLineHeight=f.getLineHeight=function(){return Ee*mA};var Es=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(m){return typeof(m=m||1.15)=="number"&&(mA=m),this},Fs=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return mA};Es(A.lineHeight);var va=f.__private__.getHorizontalCoordinate=function(m){return G(m)},JA=f.__private__.getVerticalCoordinate=function(m){return k===E?m:je[I].mediaBox.topRightY-je[I].mediaBox.bottomLeftY-G(m)},zi=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(m){return O(va(m))},ks=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(m){return O(JA(m))},_a=A.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return tA(_a)},f.__private__.setStrokeColor=f.setDrawColor=function(m,U,ne,ve){return _a=pA({ch1:m,ch2:U,ch3:ne,ch4:ve,pdfColorType:"draw",precision:2}),Q(_a),this};var pi=A.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return tA(pi)},f.__private__.setFillColor=f.setFillColor=function(m,U,ne,ve){return pi=pA({ch1:m,ch2:U,ch3:ne,ch4:ve,pdfColorType:"fill",precision:2}),Q(pi),this};var or=A.textColor||"0 g",In=f.__private__.getTextColor=f.getTextColor=function(){return tA(or)};f.__private__.setTextColor=f.setTextColor=function(m,U,ne,ve){return or=pA({ch1:m,ch2:U,ch3:ne,ch4:ve,pdfColorType:"text",precision:3}),this};var ZA=A.charSpace,vi=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat(ZA||0)};f.__private__.setCharSpace=f.setCharSpace=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ZA=m,this};var Ma=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(m){var U=f.CapJoinStyles[m];if(U===void 0)throw new Error("Line cap style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ma=U,Q(U+" J"),this};var $i=0;f.__private__.setLineJoin=f.setLineJoin=function(m){var U=f.CapJoinStyles[m];if(U===void 0)throw new Error("Line join style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return $i=U,Q(U+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(m){if(m=m||0,isNaN(m))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Q(O(G(m))+" M"),this},f.GState=Qc,f.setGState=function(m){(m=typeof m=="string"?St[ye[m]]:xs(null,m)).equals(He)||(Q("/"+m.id+" gs"),He=m)};var xs=function(m,U){if(!m||!ye[m]){var ne=!1;for(var ve in St)if(St.hasOwnProperty(ve)&&St[ve].equals(U)){ne=!0;break}if(ne)U=St[ve];else{var Se="GS"+(Object.keys(St).length+1).toString(10);St[Se]=U,U.id=Se}return m&&(ye[m]=U.id),wt.publish("addGState",U),U}};f.addGState=function(m,U){return xs(m,U),this},f.saveGraphicsState=function(){return Q("q"),Xt.push({key:ht,size:Ee,color:or}),this},f.restoreGraphicsState=function(){Q("Q");var m=Xt.pop();return ht=m.key,Ee=m.size,or=m.color,He=null,this},f.setCurrentTransformationMatrix=function(m){return Q(m.toString()+" cm"),this},f.comment=function(m){return Q("#"+m),this};var Nn=function(m,U){var ne=m||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ne},set:function(et){isNaN(et)||(ne=parseFloat(et))}});var ve=U||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ve},set:function(et){isNaN(et)||(ve=parseFloat(et))}});var Se="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Se},set:function(et){Se=et.toString()}}),this},Oa=function(m,U,ne,ve){Nn.call(this,m,U),this.type="rect";var Se=ne||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Se},set:function(it){isNaN(it)||(Se=parseFloat(it))}});var et=ve||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return et},set:function(it){isNaN(it)||(et=parseFloat(it))}}),this},mi=function(){this.page=_e,this.currentPage=I,this.pages=Pe.slice(0),this.pagesContext=je.slice(0),this.x=pt,this.y=zt,this.matrix=_t,this.width=Bi(I),this.height=Ts(I),this.outputDestination=tt,this.id="",this.objectNumber=-1};mi.prototype.restore=function(){_e=this.page,I=this.currentPage,je=this.pagesContext,Pe=this.pages,pt=this.x,zt=this.y,_t=this.matrix,Ss(I,this.width),ma(I,this.height),tt=this.outputDestination};var wi=function(m,U,ne,ve,Se){Or.push(new mi),_e=I=0,Pe=[],pt=m,zt=U,_t=Se,ze([ne,ve])};for(var Aa in f.beginFormObject=function(m,U,ne,ve,Se){return wi(m,U,ne,ve,Se),this},f.endFormObject=function(m){return(function(U){if(gr[U])Or.pop().restore();else{var ne=new mi,ve="Xo"+(Object.keys(Tt).length+1).toString(10);ne.id=ve,gr[U]=ve,Tt[ve]=ne,wt.publish("addFormObject",ne),Or.pop().restore()}})(m),this},f.doFormObject=function(m,U){var ne=Tt[gr[m]];return Q("q"),Q(U.toString()+" cm"),Q("/"+ne.id+" Do"),Q("Q"),this},f.getFormObject=function(m){var U=Tt[gr[m]];return{x:U.x,y:U.y,width:U.width,height:U.height,matrix:U.matrix}},f.save=function(m,U){return m=m||"generated.pdf",(U=U||{}).returnPromise=U.returnPromise||!1,U.returnPromise===!1?(as(pr(Rt()),m),typeof as.unload=="function"&&er.setTimeout&&setTimeout(as.unload,911),this):new Promise(function(ne,ve){try{var Se=as(pr(Rt()),m);typeof as.unload=="function"&&er.setTimeout&&setTimeout(as.unload,911),ne(Se)}catch(et){ve(et.message)}})},Wt.API)Wt.API.hasOwnProperty(Aa)&&(Aa==="events"&&Wt.API.events.length?(function(m,U){var ne,ve,Se;for(Se=U.length-1;Se!==-1;Se--)ne=U[Se][0],ve=U[Se][1],m.subscribe.apply(m,[ne].concat(typeof ve=="function"?[ve]:ve))})(wt,Wt.API.events):f[Aa]=Wt.API[Aa]);function Bi(m){return je[m].mediaBox.topRightX-je[m].mediaBox.bottomLeftX}function Ss(m,U){je[m].mediaBox.topRightX=U+je[m].mediaBox.bottomLeftX}function Ts(m){return je[m].mediaBox.topRightY-je[m].mediaBox.bottomLeftY}function ma(m,U){je[m].mediaBox.topRightY=U+je[m].mediaBox.bottomLeftY}var wa=f.getPageWidth=function(m){return Bi(m=m||I)/Bt},Us=f.setPageWidth=function(m,U){Ss(m,U*Bt)},Kn=f.getPageHeight=function(m){return Ts(m=m||I)/Bt},Ds=f.setPageHeight=function(m,U){ma(m,U*Bt)};return f.internal={pdfEscape:Te,getStyle:ur,getFont:fn,getFontSize:Qe,getCharSpace:vi,getTextColor:In,getLineHeight:so,getLineHeightFactor:Fs,getLineWidth:Cs,write:De,getHorizontalCoordinate:va,getVerticalCoordinate:JA,getCoordinateString:zi,getVerticalCoordinateString:ks,collections:{},newObject:fr,newAdditionalObject:gA,newObjectDeferred:Cr,newObjectDeferredBegin:Er,getFilters:Rr,putStream:vA,events:wt,scaleFactor:Bt,pageSize:{getWidth:function(){return wa(I)},setWidth:function(m){Us(I,m)},getHeight:function(){return Kn(I)},setHeight:function(m){Ds(I,m)}},encryptionOptions:u,encryption:$t,getEncryptor:function(m){return u!==null?$t.encryptor(m,0):function(U){return U}},output:dr,getNumberOfPages:st,get pages(){return Pe},out:Q,f2:S,f3:T,getPageInfo:RA,getPageInfoByObjId:cn,getCurrentPageInfo:Ln,getPDFVersion:w,Point:Nn,Rectangle:Oa,Matrix:Ft,hasHotfix:yr},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return wa(I)},set:function(m){Us(I,m)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return Kn(I)},set:function(m){Ds(I,m)},enumerable:!0,configurable:!0}),(function(m){for(var U=0,ne=ge.length;U<ne;U++){var ve=Ce.call(this,m[U][0],m[U][1],m[U][2],ge[U][3],!0);h===!1&&(p[ve]=!0);var Se=m[U][0].split("-");me({id:ve,fontName:Se[0],fontStyle:Se[1]||""})}wt.publish("addFonts",{fonts:Ut,dictionary:Lt})}).call(f,ge),ht="F1",Ie(n,e),wt.publish("initialized"),f}qs.prototype.lsbFirstWord=function(A){return String.fromCharCode(255&A,A>>8&255,A>>16&255,A>>24&255)},qs.prototype.toHexString=function(A){return A.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},qs.prototype.hexToBytes=function(A){for(var t=[],e=0;e<A.length;e+=2)t.push(String.fromCharCode(parseInt(A.substr(e,2),16)));return t.join("")},qs.prototype.processOwnerPassword=function(A,t){return Sg(xg(t).substr(0,5),A)},qs.prototype.encryptor=function(A,t){var e=xg(this.encryptionKey+String.fromCharCode(255&A,A>>8&255,A>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return Sg(e,r)}},Qc.prototype.equals=function(A){var t,e="id,objectNumber,equals";if(!A||Dr(A)!==Dr(this))return!1;var r=0;for(t in this)if(!(e.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!A.hasOwnProperty(t)||this[t]!==A[t])return!1;r++}for(t in A)A.hasOwnProperty(t)&&e.indexOf(t)<0&&r--;return r===0},Wt.API={events:[]},Wt.version="3.0.4";var bA=Wt.API,yp=1,ms=function(A){return A.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},_s=function(A){return A.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ar=function(A){return A.toFixed(2)},Li=function(A){return A.toFixed(5)};bA.__acroform__={};var Hn=function(A,t){A.prototype=Object.create(t.prototype),A.prototype.constructor=A},G0=function(A){return A*yp},qa=function(A){var t=new zy,e=Ot.internal.getHeight(A)||0,r=Ot.internal.getWidth(A)||0;return t.BBox=[0,0,Number(ar(r)),Number(ar(e))],t},kU=bA.__acroform__.setBit=function(A,t){if(A=A||0,t=t||0,isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return A|1<<t},xU=bA.__acroform__.clearBit=function(A,t){if(A=A||0,t=t||0,isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return A&~(1<<t)},SU=bA.__acroform__.getBit=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return A&1<<t?1:0},QA=bA.__acroform__.getBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return SU(A,t-1)},LA=bA.__acroform__.setBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return kU(A,t-1)},IA=bA.__acroform__.clearBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return xU(A,t-1)},TU=bA.__acroform__.calculateCoordinates=function(A,t){var e=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,n=A[0],a=A[1],o=A[2],s=A[3],l={};return l.lowerLeft_X=e(n)||0,l.lowerLeft_Y=r(a+s)||0,l.upperRight_X=e(n+o)||0,l.upperRight_Y=r(a)||0,[Number(ar(l.lowerLeft_X)),Number(ar(l.lowerLeft_Y)),Number(ar(l.upperRight_X)),Number(ar(l.upperRight_Y))]},UU=function(A){if(A.appearanceStreamContent)return A.appearanceStreamContent;if(A.V||A.DV){var t=[],e=A._V||A.DV,r=Tg(A,e),n=A.scope.internal.getFont(A.fontName,A.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(A.scope.__private__.encodeColorString(A.color)),t.push("/"+n+" "+ar(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var a=qa(A);return a.scope=A.scope,a.stream=t.join(`
`),a}},Tg=function(A,t){var e=A.fontSize===0?A.maxFontSize:A.fontSize,r={text:"",fontSize:""},n=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");n=A.multiline?n.map(function(S){return S.split(`
`)}):n.map(function(S){return[S]});var a=e,o=Ot.internal.getHeight(A)||0;o=o<0?-o:o;var s=Ot.internal.getWidth(A)||0;s=s<0?-s:s;var l=function(S,T,G){if(S+1<n.length){var N=T+" "+n[S+1][0];return Ol(N,A,G).width<=s-4}return!1};a++;e:for(;a>0;){t="",a--;var c,u,h=Ol("3",A,a).height,p=A.multiline?o-a:(o-h)/2,f=p+=2,v=0,w=0,b=0;if(a<=0){t=`(...) Tj
`,t+="% Width of Text: "+Ol(t,A,a=12).width+", FieldWidth:"+s+`
`;break}for(var B="",F=0,E=0;E<n.length;E++)if(n.hasOwnProperty(E)){var k=!1;if(n[E].length!==1&&b!==n[E].length-1){if((h+2)*(F+2)+2>o)continue e;B+=n[E][b],k=!0,w=E,E--}else{B=(B+=n[E][b]+" ").substr(B.length-1)==" "?B.substr(0,B.length-1):B;var P=parseInt(E),j=l(P,B,a),M=E>=n.length-1;if(j&&!M){B+=" ",b=0;continue}if(j||M){if(M)w=P;else if(A.multiline&&(h+2)*(F+2)+2>o)continue e}else{if(!A.multiline||(h+2)*(F+2)+2>o)continue e;w=P}}for(var O="",L=v;L<=w;L++){var R=n[L];if(A.multiline){if(L===w){O+=R[b]+" ",b=(b+1)%R.length;continue}if(L===v){O+=R[R.length-1]+" ";continue}}O+=R[0]+" "}switch(O=O.substr(O.length-1)==" "?O.substr(0,O.length-1):O,u=Ol(O,A,a).width,A.textAlign){case"right":c=s-u-2;break;case"center":c=(s-u)/2;break;default:c=2}t+=ar(c)+" "+ar(f)+` Td
`,t+="("+ms(O)+`) Tj
`,t+=-ar(c)+` 0 Td
`,f=-(a+2),u=0,v=k?w:w+1,F++,B=""}break}return r.text=t,r.fontSize=a,r},Ol=function(A,t,e){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),n=t.scope.getStringUnitWidth(A,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:n}},DU={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},QU=function(A,t){var e={type:"reference",object:A};t.internal.getPageInfo(A.page).pageContext.annotations.find(function(r){return r.type===e.type&&r.object===e.object})===void 0&&t.internal.getPageInfo(A.page).pageContext.annotations.push(e)},LU=function(A,t){if(t.scope=A,A.internal!==void 0&&(A.internal.acroformPlugin===void 0||A.internal.acroformPlugin.isInitialized===!1)){if(Ua.FieldNum=0,A.internal.acroformPlugin=JSON.parse(JSON.stringify(DU)),A.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");yp=A.internal.scaleFactor,A.internal.acroformPlugin.acroFormDictionaryRoot=new $y,A.internal.acroformPlugin.acroFormDictionaryRoot.scope=A,A.internal.acroformPlugin.acroFormDictionaryRoot._eventID=A.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})(A)}),A.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 a=r[n];a.objId=void 0,a.hasAnnotation&&QU(a,e)}})(A)}),A.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")})(A)}),A.internal.events.subscribe("postPutPages",function(e){(function(r,n){var a=!r;for(var o 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(o)){var s=r[o],l=[],c=s.Rect;if(s.Rect&&(s.Rect=TU(s.Rect,n)),n.internal.newObjectDeferredBegin(s.objId,!0),s.DA=Ot.createDefaultAppearanceStream(s),Dr(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(l=s.getKeyValueListForStream()),s.Rect=c,s.hasAppearanceStream&&!s.appearanceStreamContent){var u=UU(s);l.push({key:"AP",value:"<</N "+u+">>"}),n.internal.acroformPlugin.xForms.push(u)}if(s.appearanceStreamContent){var h="";for(var p in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(p)){var f=s.appearanceStreamContent[p];if(h+="/"+p+" ",h+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var o in f)if(f.hasOwnProperty(o)){var v=f[o];typeof v=="function"&&(v=v.call(n,s)),h+="/"+o+" "+v+" ",n.internal.acroformPlugin.xForms.indexOf(v)>=0||n.internal.acroformPlugin.xForms.push(v)}}else typeof(v=f)=="function"&&(v=v.call(n,s)),h+="/"+o+" "+v,n.internal.acroformPlugin.xForms.indexOf(v)>=0||n.internal.acroformPlugin.xForms.push(v);h+=">>"}l.push({key:"AP",value:`<<
`+h+">>"})}n.internal.putStream({additionalKeyValues:l,objectId:s.objId}),n.internal.out("endobj")}a&&(function(w,b){for(var B in w)if(w.hasOwnProperty(B)){var F=B,E=w[B];b.internal.newObjectDeferredBegin(E.objId,!0),Dr(E)==="object"&&typeof E.putStream=="function"&&E.putStream(),delete w[F]}})(n.internal.acroformPlugin.xForms,n)})(e,A)}),A.internal.acroformPlugin.isInitialized=!0}},Yy=bA.__acroform__.arrayToPdfArray=function(A,t,e){var r=function(o){return o};if(Array.isArray(A)){for(var n="[",a=0;a<A.length;a++)switch(a!==0&&(n+=" "),Dr(A[a])){case"boolean":case"number":case"object":n+=A[a].toString();break;case"string":A[a].substr(0,1)!=="/"?(t!==void 0&&e&&(r=e.internal.getEncryptor(t)),n+="("+ms(r(A[a].toString()))+")"):n+=A[a].toString()}return n+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},tf=function(A,t,e){var r=function(n){return n};return t!==void 0&&e&&(r=e.internal.getEncryptor(t)),(A=A||"").toString(),"("+ms(r(A))+")"},ja=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(A){this._objId=A}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ja.prototype.toString=function(){return this.objId+" 0 R"},ja.prototype.putStream=function(){var A=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:A,objectId:this.objId}),this.scope.internal.out("endobj")},ja.prototype.getKeyValueListForStream=function(){var A=[],t=Object.getOwnPropertyNames(this).filter(function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"});for(var e in t)if(Object.getOwnPropertyDescriptor(this,t[e]).configurable===!1){var r=t[e],n=this[r];n&&(Array.isArray(n)?A.push({key:r,value:Yy(n,this.objId,this.scope)}):n instanceof ja?(n.scope=this.scope,A.push({key:r,value:n.objId+" 0 R"})):typeof n!="function"&&A.push({key:r,value:n}))}return A};var zy=function(){ja.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 A,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){A=e.trim()},get:function(){return A||null}})};Hn(zy,ja);var $y=function(){ja.call(this);var A,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(A){var e=function(r){return r};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+ms(e(A))+")"}},set:function(e){A=e}})};Hn($y,ja);var Ua=function A(){ja.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(B){if(isNaN(B))throw new Error('Invalid value "'+B+'" for attribute F supplied.');t=B}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!QA(t,3)},set:function(B){B?this.F=LA(t,3):this.F=IA(t,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(B){if(isNaN(B))throw new Error('Invalid value "'+B+'" for attribute Ff supplied.');e=B}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(B){r=B!==void 0?B:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(B){r[0]=B}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(B){r[1]=B}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(B){r[2]=B}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(B){r[3]=B}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(B){switch(B){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=B;break;default:throw new Error('Invalid value "'+B+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof Lc)return;a="FieldObject"+A.FieldNum++}var B=function(F){return F};return this.scope&&(B=this.scope.internal.getEncryptor(this.objId)),"("+ms(B(a))+")"},set:function(B){a=B.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(B){a=B}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(B){o=B}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(B){s=B}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(B){l=B}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/yp:c},set:function(B){c=B}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(B){u=B}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof Lc||this instanceof us))return tf(h,this.objId,this.scope)},set:function(B){B=B.toString(),h=B}});var p=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof zA==0?tf(p,this.objId,this.scope):p},set:function(B){B=B.toString(),p=this instanceof zA==0?B.substr(0,1)==="("?_s(B.substr(1,B.length-2)):_s(B):B}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof zA==1?_s(p.substr(1,p.length-1)):p},set:function(B){B=B.toString(),p=this instanceof zA==1?"/"+B:B}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(B){this.V=B}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof zA==0?tf(f,this.objId,this.scope):f},set:function(B){B=B.toString(),f=this instanceof zA==0?B.substr(0,1)==="("?_s(B.substr(1,B.length-2)):_s(B):B}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof zA==1?_s(f.substr(1,f.length-1)):f},set:function(B){B=B.toString(),f=this instanceof zA==1?"/"+B:B}}),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 v,w=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return w},set:function(B){B=!!B,w=B}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(v)return v},set:function(B){v=B}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,1)},set:function(B){B?this.Ff=LA(this.Ff,1):this.Ff=IA(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,2)},set:function(B){B?this.Ff=LA(this.Ff,2):this.Ff=IA(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,3)},set:function(B){B?this.Ff=LA(this.Ff,3):this.Ff=IA(this.Ff,3)}});var b=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(b!==null)return b},set:function(B){if([0,1,2].indexOf(B)===-1)throw new Error('Invalid value "'+B+'" for attribute Q supplied.');b=B}}),Object.defineProperty(this,"textAlign",{get:function(){var B;switch(b){case 0:default:B="left";break;case 1:B="center";break;case 2:B="right"}return B},configurable:!0,enumerable:!0,set:function(B){switch(B){case"right":case 2:b=2;break;case"center":case 1:b=1;break;default:b=0}}})};Hn(Ua,ja);var $s=function(){Ua.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var A=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return A},set:function(e){A=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return A},set:function(e){A=e}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Yy(t,this.objId,this.scope)},set:function(e){var r,n;n=[],typeof(r=e)=="string"&&(n=(function(a,o,s){s||(s=1);for(var l,c=[];l=o.exec(a);)c.push(l[s]);return c})(r,/\((.*?)\)/g)),t=n}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,r){for(r=r||!1,e=(e=e||"").toString();t.indexOf(e)!==-1&&(t.splice(t.indexOf(e),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,18)},set:function(e){e?this.Ff=LA(this.Ff,18):this.Ff=IA(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=LA(this.Ff,19):this.Ff=IA(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,20)},set:function(e){e?(this.Ff=LA(this.Ff,20),t.sort()):this.Ff=IA(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,22)},set:function(e){e?this.Ff=LA(this.Ff,22):this.Ff=IA(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,23)},set:function(e){e?this.Ff=LA(this.Ff,23):this.Ff=IA(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,27)},set:function(e){e?this.Ff=LA(this.Ff,27):this.Ff=IA(this.Ff,27)}}),this.hasAppearanceStream=!1};Hn($s,Ua);var Xs=function(){$s.call(this),this.fontName="helvetica",this.combo=!1};Hn(Xs,$s);var Js=function(){Xs.call(this),this.combo=!0};Hn(Js,Xs);var wc=function(){Js.call(this),this.edit=!0};Hn(wc,Js);var zA=function(){Ua.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,15)},set:function(e){e?this.Ff=LA(this.Ff,15):this.Ff=IA(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,16)},set:function(e){e?this.Ff=LA(this.Ff,16):this.Ff=IA(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,17)},set:function(e){e?this.Ff=LA(this.Ff,17):this.Ff=IA(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,26)},set:function(e){e?this.Ff=LA(this.Ff,26):this.Ff=IA(this.Ff,26)}});var A,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(a){return a};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var r,n=[];for(r in n.push("<<"),t)n.push("/"+r+" ("+ms(e(t[r]))+")");return n.push(">>"),n.join(`
`)}},set:function(e){Dr(e)==="object"&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){typeof e=="string"&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return A},set:function(e){A=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return A.substr(1,A.length-1)},set:function(e){A="/"+e}})};Hn(zA,Ua);var Bc=function(){zA.call(this),this.pushButton=!0};Hn(Bc,zA);var Zs=function(){zA.call(this),this.radio=!0,this.pushButton=!1;var A=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=t!==void 0?t:[]}})};Hn(Zs,zA);var Lc=function(){var A,t;Ua.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return A},set:function(n){A=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(s){return s};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var a,o=[];for(a in o.push("<<"),r)o.push("/"+a+" ("+ms(n(r[a]))+")");return o.push(">>"),o.join(`
`)},set:function(n){Dr(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=Ot.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Hn(Lc,Ua),Zs.prototype.setAppearance=function(A){if(!("createAppearanceStream"in A)||!("getCA"in A))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var e=this.Kids[t];e.appearanceStreamContent=A.createAppearanceStream(e.optionName),e.caption=A.getCA()}},Zs.prototype.createOption=function(A){var t=new Lc;return t.Parent=this,t.optionName=A,this.Kids.push(t),IU.call(this.scope,t),t};var yc=function(){zA.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ot.CheckBox.createAppearanceStream()};Hn(yc,zA);var us=function(){Ua.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,13)},set:function(t){t?this.Ff=LA(this.Ff,13):this.Ff=IA(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,21)},set:function(t){t?this.Ff=LA(this.Ff,21):this.Ff=IA(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,23)},set:function(t){t?this.Ff=LA(this.Ff,23):this.Ff=IA(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,24)},set:function(t){t?this.Ff=LA(this.Ff,24):this.Ff=IA(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,25)},set:function(t){t?this.Ff=LA(this.Ff,25):this.Ff=IA(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,26)},set:function(t){t?this.Ff=LA(this.Ff,26):this.Ff=IA(this.Ff,26)}});var A=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return A},set:function(t){Number.isInteger(t)&&(A=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Hn(us,Ua);var bc=function(){us.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!QA(this.Ff,14)},set:function(A){A?this.Ff=LA(this.Ff,14):this.Ff=IA(this.Ff,14)}}),this.password=!0};Hn(bc,us);var Ot={CheckBox:{createAppearanceStream:function(){return{N:{On:Ot.CheckBox.YesNormal},D:{On:Ot.CheckBox.YesPushDown,Off:Ot.CheckBox.OffPushDown}}},YesPushDown:function(A){var t=qa(A);t.scope=A.scope;var e=[],r=A.scope.internal.getFont(A.fontName,A.fontStyle).id,n=A.scope.__private__.encodeColorString(A.color),a=Tg(A,A.caption);return e.push("0.749023 g"),e.push("0 0 "+ar(Ot.internal.getWidth(A))+" "+ar(Ot.internal.getHeight(A))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+ar(a.fontSize)+" Tf "+n),e.push("BT"),e.push(a.text),e.push("ET"),e.push("Q"),e.push("EMC"),t.stream=e.join(`
`),t},YesNormal:function(A){var t=qa(A);t.scope=A.scope;var e=A.scope.internal.getFont(A.fontName,A.fontStyle).id,r=A.scope.__private__.encodeColorString(A.color),n=[],a=Ot.internal.getHeight(A),o=Ot.internal.getWidth(A),s=Tg(A,A.caption);return n.push("1 g"),n.push("0 0 "+ar(o)+" "+ar(a)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+ar(o-1)+" "+ar(a-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+e+" "+ar(s.fontSize)+" Tf "+r),n.push(s.text),n.push("ET"),n.push("Q"),t.stream=n.join(`
`),t},OffPushDown:function(A){var t=qa(A);t.scope=A.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+ar(Ot.internal.getWidth(A))+" "+ar(Ot.internal.getHeight(A))+" re"),e.push("f"),t.stream=e.join(`
`),t}},RadioButton:{Circle:{createAppearanceStream:function(A){var t={D:{Off:Ot.RadioButton.Circle.OffPushDown},N:{}};return t.N[A]=Ot.RadioButton.Circle.YesNormal,t.D[A]=Ot.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(A){var t=qa(A);t.scope=A.scope;var e=[],r=Ot.internal.getWidth(A)<=Ot.internal.getHeight(A)?Ot.internal.getWidth(A)/4:Ot.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Ot.internal.Bezier_C,a=Number((r*n).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+Li(Ot.internal.getWidth(A)/2)+" "+Li(Ot.internal.getHeight(A)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),e.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),e.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),e.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
`),t},YesPushDown:function(A){var t=qa(A);t.scope=A.scope;var e=[],r=Ot.internal.getWidth(A)<=Ot.internal.getHeight(A)?Ot.internal.getWidth(A)/4:Ot.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),a=Number((n*Ot.internal.Bezier_C).toFixed(5)),o=Number((r*Ot.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+Li(Ot.internal.getWidth(A)/2)+" "+Li(Ot.internal.getHeight(A)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),e.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),e.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),e.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+Li(Ot.internal.getWidth(A)/2)+" "+Li(Ot.internal.getHeight(A)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),e.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),e.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),e.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
`),t},OffPushDown:function(A){var t=qa(A);t.scope=A.scope;var e=[],r=Ot.internal.getWidth(A)<=Ot.internal.getHeight(A)?Ot.internal.getWidth(A)/4:Ot.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),a=Number((n*Ot.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+Li(Ot.internal.getWidth(A)/2)+" "+Li(Ot.internal.getHeight(A)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),e.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),e.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),e.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
`),t}},Cross:{createAppearanceStream:function(A){var t={D:{Off:Ot.RadioButton.Cross.OffPushDown},N:{}};return t.N[A]=Ot.RadioButton.Cross.YesNormal,t.D[A]=Ot.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(A){var t=qa(A);t.scope=A.scope;var e=[],r=Ot.internal.calculateCross(A);return e.push("q"),e.push("1 1 "+ar(Ot.internal.getWidth(A)-2)+" "+ar(Ot.internal.getHeight(A)-2)+" re"),e.push("W"),e.push("n"),e.push(ar(r.x1.x)+" "+ar(r.x1.y)+" m"),e.push(ar(r.x2.x)+" "+ar(r.x2.y)+" l"),e.push(ar(r.x4.x)+" "+ar(r.x4.y)+" m"),e.push(ar(r.x3.x)+" "+ar(r.x3.y)+" l"),e.push("s"),e.push("Q"),t.stream=e.join(`
`),t},YesPushDown:function(A){var t=qa(A);t.scope=A.scope;var e=Ot.internal.calculateCross(A),r=[];return r.push("0.749023 g"),r.push("0 0 "+ar(Ot.internal.getWidth(A))+" "+ar(Ot.internal.getHeight(A))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+ar(Ot.internal.getWidth(A)-2)+" "+ar(Ot.internal.getHeight(A)-2)+" re"),r.push("W"),r.push("n"),r.push(ar(e.x1.x)+" "+ar(e.x1.y)+" m"),r.push(ar(e.x2.x)+" "+ar(e.x2.y)+" l"),r.push(ar(e.x4.x)+" "+ar(e.x4.y)+" m"),r.push(ar(e.x3.x)+" "+ar(e.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
`),t},OffPushDown:function(A){var t=qa(A);t.scope=A.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+ar(Ot.internal.getWidth(A))+" "+ar(Ot.internal.getHeight(A))+" re"),e.push("f"),t.stream=e.join(`
`),t}}},createDefaultAppearanceStream:function(A){var t=A.scope.internal.getFont(A.fontName,A.fontStyle).id,e=A.scope.__private__.encodeColorString(A.color);return"/"+t+" "+A.fontSize+" Tf "+e}};Ot.internal={Bezier_C:.551915024494,calculateCross:function(A){var t=Ot.internal.getWidth(A),e=Ot.internal.getHeight(A),r=Math.min(t,e);return{x1:{x:(t-r)/2,y:(e-r)/2+r},x2:{x:(t-r)/2+r,y:(e-r)/2},x3:{x:(t-r)/2,y:(e-r)/2},x4:{x:(t-r)/2+r,y:(e-r)/2+r}}}},Ot.internal.getWidth=function(A){var t=0;return Dr(A)==="object"&&(t=G0(A.Rect[2])),t},Ot.internal.getHeight=function(A){var t=0;return Dr(A)==="object"&&(t=G0(A.Rect[3])),t};var IU=bA.addField=function(A){if(LU(this,A),!(A instanceof Ua))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=A).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),A.page=A.scope.internal.getCurrentPageInfo().pageNumber,this};bA.AcroFormChoiceField=$s,bA.AcroFormListBox=Xs,bA.AcroFormComboBox=Js,bA.AcroFormEditBox=wc,bA.AcroFormButton=zA,bA.AcroFormPushButton=Bc,bA.AcroFormRadioButton=Zs,bA.AcroFormCheckBox=yc,bA.AcroFormTextField=us,bA.AcroFormPasswordField=bc,bA.AcroFormAppearance=Ot,bA.AcroForm={ChoiceField:$s,ListBox:Xs,ComboBox:Js,EditBox:wc,Button:zA,PushButton:Bc,RadioButton:Zs,CheckBox:yc,TextField:us,PasswordField:bc,Appearance:Ot},Wt.AcroForm={ChoiceField:$s,ListBox:Xs,ComboBox:Js,EditBox:wc,Button:zA,PushButton:Bc,RadioButton:Zs,CheckBox:yc,TextField:us,PasswordField:bc,Appearance:Ot};Wt.AcroForm;function Xy(A){return A.reduce(function(t,e,r){return t[e]=r,t},{})}(function(A){var t="addImage_";A.__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=A.__addimage__.getImageFileTypeByImageData=function(S,T){var G,N,oe,le,Z,ee=e;if((T=T||e)==="RGBA"||S.data!==void 0&&S.data instanceof Uint8ClampedArray&&"height"in S&&"width"in S)return"RGBA";if(j(S))for(Z in r)for(oe=r[Z],G=0;G<oe.length;G+=1){for(le=!0,N=0;N<oe[G].length;N+=1)if(oe[G][N]!==void 0&&oe[G][N]!==S[N]){le=!1;break}if(le===!0){ee=Z;break}}else for(Z in r)for(oe=r[Z],G=0;G<oe.length;G+=1){for(le=!0,N=0;N<oe[G].length;N+=1)if(oe[G][N]!==void 0&&oe[G][N]!==S.charCodeAt(N)){le=!1;break}if(le===!0){ee=Z;break}}return ee===e&&T!==e&&(ee=T),ee},a=function S(T){for(var G=this.internal.write,N=this.internal.putStream,oe=(0,this.internal.getFilters)();oe.indexOf("FlateEncode")!==-1;)oe.splice(oe.indexOf("FlateEncode"),1);T.objectId=this.internal.newObject();var le=[];if(le.push({key:"Type",value:"/XObject"}),le.push({key:"Subtype",value:"/Image"}),le.push({key:"Width",value:T.width}),le.push({key:"Height",value:T.height}),T.colorSpace===B.INDEXED?le.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(T.palette.length/3-1)+" "+("sMask"in T&&T.sMask!==void 0?T.objectId+2:T.objectId+1)+" 0 R]"}):(le.push({key:"ColorSpace",value:"/"+T.colorSpace}),T.colorSpace===B.DEVICE_CMYK&&le.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),le.push({key:"BitsPerComponent",value:T.bitsPerComponent}),"decodeParameters"in T&&T.decodeParameters!==void 0&&le.push({key:"DecodeParms",value:"<<"+T.decodeParameters+">>"}),"transparency"in T&&Array.isArray(T.transparency)&&T.transparency.length>0){for(var Z="",ee=0,X=T.transparency.length;ee<X;ee++)Z+=T.transparency[ee]+" "+T.transparency[ee]+" ";le.push({key:"Mask",value:"["+Z+"]"})}T.sMask!==void 0&&le.push({key:"SMask",value:T.objectId+1+" 0 R"});var re=T.filter!==void 0?["/"+T.filter]:void 0;if(N({data:T.data,additionalKeyValues:le,alreadyAppliedFilters:re,objectId:T.objectId}),G("endobj"),"sMask"in T&&T.sMask!==void 0){var se,x=(se=T.sMaskBitsPerComponent)!==null&&se!==void 0?se:T.bitsPerComponent,I={width:T.width,height:T.height,colorSpace:"DeviceGray",bitsPerComponent:x,data:T.sMask};"filter"in T&&(I.decodeParameters="/Predictor ".concat(T.predictor," /Colors 1 /BitsPerComponent ").concat(x," /Columns ").concat(T.width),I.filter=T.filter),S.call(this,I)}if(T.colorSpace===B.INDEXED){var W=this.internal.newObject();N({data:O(new Uint8Array(T.palette)),objectId:W}),G("endobj")}},o=function(){var S=this.internal.collections[t+"images"];for(var T in S)a.call(this,S[T])},s=function(){var S,T=this.internal.collections[t+"images"],G=this.internal.write;for(var N in T)G("/I"+(S=T[N]).index,S.objectId,"0","R")},l=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s))},c=function(){var S=this.internal.collections[t+"images"];return l.call(this),S},u=function(){return Object.keys(this.internal.collections[t+"images"]).length},h=function(S){return typeof A["process"+S.toUpperCase()]=="function"},p=function(S){return Dr(S)==="object"&&S.nodeType===1},f=function(S,T){if(S.nodeName==="IMG"&&S.hasAttribute("src")){var G=""+S.getAttribute("src");if(G.indexOf("data:image/")===0)return mc(unescape(G).split("base64,").pop());var N=A.loadFile(G,!0);if(N!==void 0)return N}if(S.nodeName==="CANVAS"){if(S.width===0||S.height===0)throw new Error("Given canvas must have data. Canvas width: "+S.width+", height: "+S.height);var oe;switch(T){case"PNG":oe="image/png";break;case"WEBP":oe="image/webp";break;default:oe="image/jpeg"}return mc(S.toDataURL(oe,1).split("base64,").pop())}},v=function(S){var T=this.internal.collections[t+"images"];if(T){for(var G in T)if(S===T[G].alias)return T[G]}},w=function(S,T,G){return S||T||(S=-96,T=-96),S<0&&(S=-1*G.width*72/S/this.internal.scaleFactor),T<0&&(T=-1*G.height*72/T/this.internal.scaleFactor),S===0&&(S=T*G.width/G.height),T===0&&(T=S*G.height/G.width),[S,T]},b=function(S,T,G,N,oe,le){var Z=w.call(this,G,N,oe),ee=this.internal.getCoordinateString,X=this.internal.getVerticalCoordinateString,re=c.call(this);if(G=Z[0],N=Z[1],re[oe.index]=oe,le){le*=Math.PI/180;var se=Math.cos(le),x=Math.sin(le),I=function(z){return z.toFixed(4)},W=[I(se),I(x),I(-1*x),I(se),0,0,"cm"]}this.internal.write("q"),le?(this.internal.write([1,"0","0",1,ee(S),X(T+N),"cm"].join(" ")),this.internal.write(W.join(" ")),this.internal.write([ee(G),"0","0",ee(N),"0","0","cm"].join(" "))):this.internal.write([ee(G),"0","0",ee(N),ee(S),X(T+N),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+oe.index+" Do"),this.internal.write("Q")},B=A.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"};A.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 F=A.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},E=A.__addimage__.sHashCode=function(S){var T,G,N=0;if(typeof S=="string")for(G=S.length,T=0;T<G;T++)N=(N<<5)-N+S.charCodeAt(T),N|=0;else if(j(S))for(G=S.byteLength/2,T=0;T<G;T++)N=(N<<5)-N+S[T],N|=0;return N},k=A.__addimage__.validateStringAsBase64=function(S){(S=S||"").toString().trim();var T=!0;return S.length===0&&(T=!1),S.length%4!=0&&(T=!1),/^[A-Za-z0-9+/]+$/.test(S.substr(0,S.length-2))===!1&&(T=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(S.substr(-2))===!1&&(T=!1),T},P=A.__addimage__.extractImageFromDataUrl=function(S){if(S==null||!(S=S.trim()).startsWith("data:"))return null;var T=S.indexOf(",");return T<0?null:S.substring(0,T).trim().endsWith("base64")?S.substring(T+1):null};A.__addimage__.isArrayBuffer=function(S){return S instanceof ArrayBuffer};var j=A.__addimage__.isArrayBufferView=function(S){return S instanceof Int8Array||S instanceof Uint8Array||S instanceof Uint8ClampedArray||S instanceof Int16Array||S instanceof Uint16Array||S instanceof Int32Array||S instanceof Uint32Array||S instanceof Float32Array||S instanceof Float64Array},M=A.__addimage__.binaryStringToUint8Array=function(S){for(var T=S.length,G=new Uint8Array(T),N=0;N<T;N++)G[N]=S.charCodeAt(N);return G},O=A.__addimage__.arrayBufferToBinaryString=function(S){for(var T="",G=j(S)?S:new Uint8Array(S),N=0;N<G.length;N+=8192)T+=String.fromCharCode.apply(null,G.subarray(N,N+8192));return T};A.addImage=function(){var S,T,G,N,oe,le,Z,ee,X;if(typeof arguments[1]=="number"?(T=e,G=arguments[1],N=arguments[2],oe=arguments[3],le=arguments[4],Z=arguments[5],ee=arguments[6],X=arguments[7]):(T=arguments[1],G=arguments[2],N=arguments[3],oe=arguments[4],le=arguments[5],Z=arguments[6],ee=arguments[7],X=arguments[8]),Dr(S=arguments[0])==="object"&&!p(S)&&"imageData"in S){var re=S;S=re.imageData,T=re.format||T||e,G=re.x||G||0,N=re.y||N||0,oe=re.w||re.width||oe,le=re.h||re.height||le,Z=re.alias||Z,ee=re.compression||ee,X=re.rotation||re.angle||X}var se=this.internal.getFilters();if(ee===void 0&&se.indexOf("FlateEncode")!==-1&&(ee="SLOW"),isNaN(G)||isNaN(N))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var x=L.call(this,S,T,Z,ee);return b.call(this,G,N,oe,le,x,X),this};var L=function(S,T,G,N){var oe,le,Z;if(typeof S=="string"&&n(S)===e){S=unescape(S);var ee=R(S,!1);(ee!==""||(ee=A.loadFile(S,!0))!==void 0)&&(S=ee)}if(p(S)&&(S=f(S,T)),T=n(S,T),!h(T))throw new Error("addImage does not support files of type '"+T+"', please ensure that a plugin for '"+T+"' support is added.");if(((Z=G)==null||Z.length===0)&&(G=(function(X){return typeof X=="string"||j(X)?E(X):j(X.data)?E(X.data):null})(S)),(oe=v.call(this,G))||(S instanceof Uint8Array||T==="RGBA"||(le=S,S=M(S)),oe=this["process"+T.toUpperCase()](S,u.call(this),G,(function(X){return X&&typeof X=="string"&&(X=X.toUpperCase()),X in A.image_compression?X:F.NONE})(N),le)),!oe)throw new Error("An unknown error occurred whilst processing the image.");return oe},R=A.__addimage__.convertBase64ToBinaryString=function(S,T){T=typeof T!="boolean"||T;var G,N="";if(typeof S=="string"){var oe;G=(oe=P(S))!==null&&oe!==void 0?oe:S;try{N=mc(G)}catch(le){if(T)throw k(G)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+le.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return N};A.getImageProperties=function(S){var T,G,N="";if(p(S)&&(S=f(S)),typeof S=="string"&&n(S)===e&&((N=R(S,!1))===""&&(N=A.loadFile(S)||""),S=N),G=n(S),!h(G))throw new Error("addImage does not support files of type '"+G+"', please ensure that a plugin for '"+G+"' support is added.");if(S instanceof Uint8Array||(S=M(S)),!(T=this["process"+G.toUpperCase()](S)))throw new Error("An unknown error occurred whilst processing the image");return T.fileType=G,T}})(Wt.API),(function(A){var t=function(e){if(e!==void 0&&e!="")return!0};Wt.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),A.events.push(["putPage",function(e){for(var r,n,a,o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(e.objId),c=e.pageContext.annotations,u=!1,h=0;h<c.length&&!u;h++)switch((r=c[h]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(u!=0){this.internal.write("/Annots [");for(var p=0;p<c.length;p++){r=c[p];var f=this.internal.pdfEscape,v=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var w=this.internal.newAdditionalObject(),b=this.internal.newAdditionalObject(),B=this.internal.getEncryptor(w.objId),F=r.title||"Note";a="<</Type /Annot /Subtype /Text "+(n="/Rect ["+o(r.bounds.x)+" "+s(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y)+"] ")+"/Contents ("+f(B(r.contents))+")",a+=" /Popup "+b.objId+" 0 R",a+=" /P "+l.objId+" 0 R",a+=" /T ("+f(B(F))+") >>",w.content=a;var E=w.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+o(r.bounds.x+30)+" "+s(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w+30)+" "+s(r.bounds.y)+"] ")+" /Parent "+E,r.open&&(a+=" /Open true"),a+=" >>",b.content=a,this.internal.write(w.objId,"0 R",b.objId,"0 R");break;case"freetext":n="/Rect ["+o(r.bounds.x)+" "+s(r.bounds.y)+" "+o(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y+r.bounds.h)+"] ";var k=r.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+f(v(r.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+k+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(r.options.name){var P=this.annotations._nameMap[r.options.name];r.options.pageNumber=P.page,r.options.top=P.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",a="",r.options.url)a="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+f(v(r.options.url))+") >>";else if(r.options.pageNumber)switch(a="<</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":a+=" /Fit]";break;case"FitH":a+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,a+=" /FitV "+r.options.left+"]";break;default:var j=s(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),a+=" /XYZ "+r.options.left+" "+j+" "+r.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),A.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)}},A.link=function(e,r,n,a,o){var s=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:l(e),y:c(r),w:l(e+n),h:c(r+a)},options:o,type:"link"})},A.textWithLink=function(e,r,n,a){var o,s,l=this.getTextWidth(e),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){s=a.maxWidth;var u=this.splitTextToSize(e,s).length;o=Math.ceil(c*u)}else s=l,o=c;return this.text(e,r,n,a),n+=.2*c,a.align==="center"&&(r-=l/2),a.align==="right"&&(r-=l),this.link(r,n-c,s,o,a),l},A.getTextWidth=function(e){var r=this.internal.getFontSize();return this.getStringUnitWidth(e)*r/this.internal.scaleFactor}})(Wt.API),(function(A){var t={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];A.__arabicParser__={};var a=A.__arabicParser__.isInArabicSubstitutionA=function(w){return t[w.charCodeAt(0)]!==void 0},o=A.__arabicParser__.isArabicLetter=function(w){return typeof w=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(w)},s=A.__arabicParser__.isArabicEndLetter=function(w){return o(w)&&a(w)&&t[w.charCodeAt(0)].length<=2},l=A.__arabicParser__.isArabicAlfLetter=function(w){return o(w)&&n.indexOf(w.charCodeAt(0))>=0};A.__arabicParser__.arabicLetterHasIsolatedForm=function(w){return o(w)&&a(w)&&t[w.charCodeAt(0)].length>=1};var c=A.__arabicParser__.arabicLetterHasFinalForm=function(w){return o(w)&&a(w)&&t[w.charCodeAt(0)].length>=2};A.__arabicParser__.arabicLetterHasInitialForm=function(w){return o(w)&&a(w)&&t[w.charCodeAt(0)].length>=3};var u=A.__arabicParser__.arabicLetterHasMedialForm=function(w){return o(w)&&a(w)&&t[w.charCodeAt(0)].length==4},h=A.__arabicParser__.resolveLigatures=function(w){var b=0,B=e,F="",E=0;for(b=0;b<w.length;b+=1)B[w.charCodeAt(b)]!==void 0?(E++,typeof(B=B[w.charCodeAt(b)])=="number"&&(F+=String.fromCharCode(B),B=e,E=0),b===w.length-1&&(B=e,F+=w.charAt(b-(E-1)),b-=E-1,E=0)):(B=e,F+=w.charAt(b-E),b-=E,E=0);return F};A.__arabicParser__.isArabicDiacritic=function(w){return w!==void 0&&r[w.charCodeAt(0)]!==void 0};var p=A.__arabicParser__.getCorrectForm=function(w,b,B){return o(w)?a(w)===!1?-1:!c(w)||!o(b)&&!o(B)||!o(B)&&s(b)||s(w)&&!o(b)||s(w)&&l(b)||s(w)&&s(b)?0:u(w)&&o(b)&&!s(b)&&o(B)&&c(B)?3:s(w)||!o(B)?1:2:-1},f=function(w){var b=0,B=0,F=0,E="",k="",P="",j=(w=w||"").split("\\s+"),M=[];for(b=0;b<j.length;b+=1){for(M.push(""),B=0;B<j[b].length;B+=1)E=j[b][B],k=j[b][B-1],P=j[b][B+1],o(E)?(F=p(E,k,P),M[b]+=F!==-1?String.fromCharCode(t[E.charCodeAt(0)][F]):E):M[b]+=E;M[b]=h(M[b])}return M.join(" ")},v=A.__arabicParser__.processArabic=A.processArabic=function(){var w,b=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,B=[];if(Array.isArray(b)){var F=0;for(B=[],F=0;F<b.length;F+=1)Array.isArray(b[F])?B.push([f(b[F][0]),b[F][1],b[F][2]]):B.push([f(b[F])]);w=B}else w=f(b);return typeof arguments[0]=="string"?w:(arguments[0].text=w,arguments[0])};A.events.push(["preProcessText",v])})(Wt.API),Wt.API.autoPrint=function(A){var t;return(A=A||{}).variant=A.variant||"non-conform",A.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=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 "+t+" 0 R")})),this},(function(A){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(s){e=s}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(s){r=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(s){a=s}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(s){o=s}}),Object.defineProperty(this,"parentNode",{})};t.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},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},A.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])})(Wt.API),(function(A){var t={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({},t),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(w){l=w}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(w){c=w}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(w){u=w}});var h=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return h},set:function(w){h=w}});var p=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return p},set:function(w){p=w}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(w){f=w}});var v=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return v},set:function(w){v=w}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},A.setHeaderFunction=function(l){return r.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},A.getTextDimensions=function(l,c){r.call(this);var u=(c=c||{}).fontSize||this.getFontSize(),h=c.font||this.getFont(),p=c.scaleFactor||this.internal.scaleFactor,f=0,v=0,w=0,b=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var B=c.maxWidth;B>0?typeof l=="string"?l=this.splitTextToSize(l,B):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(E,k){return E.concat(b.splitTextToSize(k,B))},[])):l=Array.isArray(l)?l:[l];for(var F=0;F<l.length;F++)f<(w=this.getStringUnitWidth(l[F],{font:h})*u)&&(f=w);return f!==0&&(v=l.length),{w:f/=p,h:Math.max((v*u*this.getLineHeightFactor()-u*(this.getLineHeightFactor()-1))/p,0)}},A.cellAddPage=function(){r.call(this),this.addPage();var l=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new a(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=A.cell=function(){var l;l=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var c=this.internal.__cell__.lastCell,u=this.internal.__cell__.padding,h=this.internal.__cell__.margins||t,p=this.internal.__cell__.tableHeaderRow,f=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.height+l.height+h.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=h.top,f&&p&&(this.printHeaderRow(l.lineNumber,!0),l.y+=p[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,e===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-u,l.y+u,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+u,{align:"center",baseline:"top",maxWidth:l.width-u-u}):this.text(l.text,l.x+u,l.y+u,{align:"left",baseline:"top",maxWidth:l.width-u-u})),this.internal.__cell__.lastCell=l,this};A.table=function(l,c,u,h,p){if(r.call(this),!u)throw new Error("No data for PDF table.");var f,v,w,b,B=[],F=[],E=[],k={},P={},j=[],M=[],O=(p=p||{}).autoSize||!1,L=p.printHeaders!==!1,R=p.css&&p.css["font-size"]!==void 0?16*p.css["font-size"]:p.fontSize||12,S=p.margins||Object.assign({width:this.getPageWidth()},t),T=typeof p.padding=="number"?p.padding:3,G=p.headerBackgroundColor||"#c8c8c8",N=p.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=L,this.internal.__cell__.margins=S,this.internal.__cell__.table_font_size=R,this.internal.__cell__.padding=T,this.internal.__cell__.headerBackgroundColor=G,this.internal.__cell__.headerTextColor=N,this.setFontSize(R),h==null)F=B=Object.keys(u[0]),E=B.map(function(){return"left"});else if(Array.isArray(h)&&Dr(h[0])==="object")for(B=h.map(function(re){return re.name}),F=h.map(function(re){return re.prompt||re.name||""}),E=h.map(function(re){return re.align||"left"}),f=0;f<h.length;f+=1)P[h[f].name]=.7499990551181103*h[f].width;else Array.isArray(h)&&typeof h[0]=="string"&&(F=B=h,E=B.map(function(){return"left"}));if(O||Array.isArray(h)&&typeof h[0]=="string")for(f=0;f<B.length;f+=1){for(k[b=B[f]]=u.map(function(re){return re[b]}),this.setFont(void 0,"bold"),j.push(this.getTextDimensions(F[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),v=k[b],this.setFont(void 0,"normal"),w=0;w<v.length;w+=1)j.push(this.getTextDimensions(v[w],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);P[b]=Math.max.apply(null,j)+T+T,j=[]}if(L){var oe={};for(f=0;f<B.length;f+=1)oe[B[f]]={},oe[B[f]].text=F[f],oe[B[f]].align=E[f];var le=s.call(this,oe,P);M=B.map(function(re){return new a(l,c,P[re],le,oe[re].text,void 0,oe[re].align)}),this.setTableHeaderRow(M),this.printHeaderRow(1,!1)}var Z=h.reduce(function(re,se){return re[se.name]=se.align,re},{});for(f=0;f<u.length;f+=1){"rowStart"in p&&p.rowStart instanceof Function&&p.rowStart({row:f,data:u[f]},this);var ee=s.call(this,u[f],P);for(w=0;w<B.length;w+=1){var X=u[f][B[w]];"cellStart"in p&&p.cellStart instanceof Function&&p.cellStart({row:f,col:w,data:X},this),o.call(this,new a(l,c,P[B[w]],ee,X,f+2,Z[B[w]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var s=function(l,c){var u=this.internal.__cell__.padding,h=this.internal.__cell__.table_font_size,p=this.internal.scaleFactor;return Object.keys(l).map(function(f){var v=l[f];return this.splitTextToSize(v.hasOwnProperty("text")?v.text:v,c[f]-u-u)},this).map(function(f){return this.getLineHeightFactor()*f.length*h/p+u+u},this).reduce(function(f,v){return Math.max(f,v)},0)};A.setTableHeaderRow=function(l){r.call(this),this.internal.__cell__.tableHeaderRow=l},A.printHeaderRow=function(l,c){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var u;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var h=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(h[0],h[1],h[2],h[3],void 0,-1)}this.setFont(void 0,"bold");for(var p=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){u=this.internal.__cell__.tableHeaderRow[f].clone(),c&&(u.y=this.internal.__cell__.margins.top||0,p.push(u)),u.lineNumber=l;var v=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,u),this.setTextColor(v)}p.length>0&&this.setTableHeaderRow(p),this.setFont(void 0,"normal"),e=!1}})(Wt.API);var Jy={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Zy=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ug=Xy(Zy),e5=[100,200,300,400,500,600,700,800,900],NU=Xy(e5);function rf(A){var t=A.family.replace(/"|'/g,"").toLowerCase(),e=(function(a){return Jy[a=a||"normal"]?a:"normal"})(A.style),r=(function(a){return a?typeof a=="number"?a>=100&&a<=900&&a%100==0?a:400:/^\d00$/.test(a)?parseInt(a):a==="bold"?700:400:400})(A.weight),n=(function(a){return typeof Ug[a=a||"normal"]=="number"?a:"normal"})(A.stretch);return{family:t,style:e,weight:r,stretch:n,src:A.src||[],ref:A.ref||{name:t,style:[n,e,r].join(" ")}}}function Y0(A,t,e,r){var n;for(n=e;n>=0&&n<t.length;n+=r)if(A[t[n]])return A[t[n]];for(n=e;n>=0&&n<t.length;n-=r)if(A[t[n]])return A[t[n]]}var _U={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},z0={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function $0(A){return[A.stretch,A.style,A.weight,A.family].join(" ")}function X0(A){return A.trimLeft()}function MU(A,t){for(var e=0;e<A.length;){if(A.charAt(e)===t)return[A.substring(0,e),A.substring(e+1)];e+=1}return null}function OU(A){var t=A.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],A.substring(t[0].length)]}var Rl,J0,Z0,Ms,Hl,em,tm,rm,Af=["times"];function Am(A,t,e,r,n){var a=4,o=am;switch(n){case Wt.API.image_compression.FAST:a=1,o=nm;break;case Wt.API.image_compression.MEDIUM:a=6,o=im;break;case Wt.API.image_compression.SLOW:a=9,o=sm}A=(function(l,c,u,h){for(var p,f=l.length/c,v=new Uint8Array(l.length+f),w=[RU,nm,am,im,sm],b=0;b<f;b+=1){var B=b*c,F=l.subarray(B,B+c);if(h)v.set(h(F,u,p),B+b);else{for(var E=w.length,k=[],P=0;P<E;P+=1)k[P]=w[P](F,u,p);var j=PU(k.concat());v.set(k[j],B+b)}p=F}return v})(A,t,Math.ceil(e*r/8),o);var s=Cg(A,{level:a});return Wt.API.__addimage__.arrayBufferToBinaryString(s)}function RU(A){var t=Array.apply([],A);return t.unshift(0),t}function nm(A,t){var e=A.length,r=[];r[0]=1;for(var n=0;n<e;n+=1){var a=A[n-t]||0;r[n+1]=A[n]-a+256&255}return r}function am(A,t,e){var r=A.length,n=[];n[0]=2;for(var a=0;a<r;a+=1){var o=e&&e[a]||0;n[a+1]=A[a]-o+256&255}return n}function im(A,t,e){var r=A.length,n=[];n[0]=3;for(var a=0;a<r;a+=1){var o=A[a-t]||0,s=e&&e[a]||0;n[a+1]=A[a]+256-(o+s>>>1)&255}return n}function sm(A,t,e){var r=A.length,n=[];n[0]=4;for(var a=0;a<r;a+=1){var o=HU(A[a-t]||0,e&&e[a]||0,e&&e[a-t]||0);n[a+1]=A[a]-o+256&255}return n}function HU(A,t,e){if(A===t&&t===e)return A;var r=Math.abs(t-e),n=Math.abs(A-e),a=Math.abs(A+t-e-e);return r<=n&&r<=a?A:n<=a?t:e}function PU(A){var t=A.map(function(e){return e.reduce(function(r,n){return r+Math.abs(n)},0)});return t.indexOf(Math.min.apply(null,t))}function nf(A,t,e){var r=t*e,n=Math.floor(r/8),a=16-(r-8*n+e),o=(1<<e)-1;return t5(A,n)>>a&o}function om(A,t,e,r){var n=e*r,a=Math.floor(n/8),o=16-(n-8*a+r),s=(1<<r)-1,l=(t&s)<<o;(function(c,u,h){if(u+1<c.byteLength)c.setUint16(u,h,!1);else{var p=h>>8&255;c.setUint8(u,p)}})(A,a,t5(A,a)&~(s<<o)&65535|l)}function t5(A,t){return t+1<A.byteLength?A.getUint16(t,!1):A.getUint8(t)<<8}function VU(A){var t=0;if(A[t++]!==71||A[t++]!==73||A[t++]!==70||A[t++]!==56||(A[t++]+1&253)!=56||A[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=A[t++]|A[t++]<<8,r=A[t++]|A[t++]<<8,n=A[t++],a=n>>7,o=1<<1+(7&n);A[t++],A[t++];var s=null,l=null;a&&(s=t,l=o,t+=3*o);var c=!0,u=[],h=0,p=null,f=0,v=null;for(this.width=e,this.height=r;c&&t<A.length;)switch(A[t++]){case 33:switch(A[t++]){case 255:if(A[t]!==11||A[t+1]==78&&A[t+2]==69&&A[t+3]==84&&A[t+4]==83&&A[t+5]==67&&A[t+6]==65&&A[t+7]==80&&A[t+8]==69&&A[t+9]==50&&A[t+10]==46&&A[t+11]==48&&A[t+12]==3&&A[t+13]==1&&A[t+16]==0)t+=14,v=A[t++]|A[t++]<<8,t++;else for(t+=12;;){if(!((S=A[t++])>=0))throw Error("Invalid block size");if(S===0)break;t+=S}break;case 249:if(A[t++]!==4||A[t+4]!==0)throw new Error("Invalid graphics extension block.");var w=A[t++];h=A[t++]|A[t++]<<8,p=A[t++],1&w||(p=null),f=w>>2&7,t++;break;case 254:for(;;){if(!((S=A[t++])>=0))throw Error("Invalid block size");if(S===0)break;t+=S}break;default:throw new Error("Unknown graphic control label: 0x"+A[t-1].toString(16))}break;case 44:var b=A[t++]|A[t++]<<8,B=A[t++]|A[t++]<<8,F=A[t++]|A[t++]<<8,E=A[t++]|A[t++]<<8,k=A[t++],P=k>>6&1,j=1<<1+(7&k),M=s,O=l,L=!1;k>>7&&(L=!0,M=t,O=j,t+=3*j);var R=t;for(t++;;){var S;if(!((S=A[t++])>=0))throw Error("Invalid block size");if(S===0)break;t+=S}u.push({x:b,y:B,width:F,height:E,has_local_palette:L,palette_offset:M,palette_size:O,data_offset:R,data_length:t-R,transparent_index:p,interlaced:!!P,delay:h,disposal:f});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+A[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return v},this.frameInfo=function(T){if(T<0||T>=u.length)throw new Error("Frame index out of range.");return u[T]},this.decodeAndBlitFrameBGRA=function(T,G){var N=this.frameInfo(T),oe=N.width*N.height,le=new Uint8Array(oe);lm(A,N.data_offset,le,oe);var Z=N.palette_offset,ee=N.transparent_index;ee===null&&(ee=256);var X=N.width,re=e-X,se=X,x=4*(N.y*e+N.x),I=4*((N.y+N.height)*e+N.x),W=x,z=4*re;N.interlaced===!0&&(z+=4*e*7);for(var Ae=8,he=0,fe=le.length;he<fe;++he){var ce=le[he];if(se===0&&(se=X,(W+=z)>=I&&(z=4*re+4*e*(Ae-1),W=x+(X+re)*(Ae<<1),Ae>>=1)),ce===ee)W+=4;else{var Fe=A[Z+3*ce],Pe=A[Z+3*ce+1],Ze=A[Z+3*ce+2];G[W++]=Ze,G[W++]=Pe,G[W++]=Fe,G[W++]=255}--se}},this.decodeAndBlitFrameRGBA=function(T,G){var N=this.frameInfo(T),oe=N.width*N.height,le=new Uint8Array(oe);lm(A,N.data_offset,le,oe);var Z=N.palette_offset,ee=N.transparent_index;ee===null&&(ee=256);var X=N.width,re=e-X,se=X,x=4*(N.y*e+N.x),I=4*((N.y+N.height)*e+N.x),W=x,z=4*re;N.interlaced===!0&&(z+=4*e*7);for(var Ae=8,he=0,fe=le.length;he<fe;++he){var ce=le[he];if(se===0&&(se=X,(W+=z)>=I&&(z=4*re+4*e*(Ae-1),W=x+(X+re)*(Ae<<1),Ae>>=1)),ce===ee)W+=4;else{var Fe=A[Z+3*ce],Pe=A[Z+3*ce+1],Ze=A[Z+3*ce+2];G[W++]=Fe,G[W++]=Pe,G[W++]=Ze,G[W++]=255}--se}}}function lm(A,t,e,r){for(var n=A[t++],a=1<<n,o=a+1,s=o+1,l=n+1,c=(1<<l)-1,u=0,h=0,p=0,f=A[t++],v=new Int32Array(4096),w=null;;){for(;u<16&&f!==0;)h|=A[t++]<<u,u+=8,f===1?f=A[t++]:--f;if(u<l)break;var b=h&c;if(h>>=l,u-=l,b!==a){if(b===o)break;for(var B=b<s?b:w,F=0,E=B;E>a;)E=v[E]>>8,++F;var k=E;if(p+F+(B!==b?1:0)>r)return void zr.log("Warning, gif stream longer than expected.");e[p++]=k;var P=p+=F;for(B!==b&&(e[p++]=k),E=B;F--;)E=v[E],e[--P]=255&E,E>>=8;w!==null&&s<4096&&(v[s++]=w<<8|k,s>=c+1&&l<12&&(++l,c=c<<1|1)),w=b}else s=o+1,c=(1<<(l=n+1))-1,w=null}return p!==r&&zr.log("Warning, gif stream shorter than expected."),e}/**
 * @license
  Copyright (c) 2008, Adobe Systems Incorporated
  All rights reserved.

  Redistribution and use in source and binary forms, with or without 
  modification, are permitted provided that the following conditions are
  met:

  * Redistributions of source code must retain the above copyright notice, 
    this list of conditions and the following disclaimer.
  
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the 
    documentation and/or other materials provided with the distribution.
  
  * Neither the name of Adobe Systems Incorporated nor the names of its 
    contributors may be used to endorse or promote products derived from 
    this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function af(A){var t,e,r,n,a,o=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),u=new Array(64),h=new Array(65535),p=new Array(65535),f=new Array(64),v=new Array(64),w=[],b=0,B=7,F=new Array(64),E=new Array(64),k=new Array(64),P=new Array(256),j=new Array(2048),M=[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],O=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],L=[0,1,2,3,4,5,6,7,8,9,10,11],R=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],S=[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],T=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],G=[0,1,2,3,4,5,6,7,8,9,10,11],N=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],oe=[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 le(x,I){for(var W=0,z=0,Ae=new Array,he=1;he<=16;he++){for(var fe=1;fe<=x[he];fe++)Ae[I[z]]=[],Ae[I[z]][0]=W,Ae[I[z]][1]=he,z++,W++;W*=2}return Ae}function Z(x){for(var I=x[0],W=x[1]-1;W>=0;)I&1<<W&&(b|=1<<B),W--,--B<0&&(b==255?(ee(255),ee(0)):ee(b),B=7,b=0)}function ee(x){w.push(x)}function X(x){ee(x>>8&255),ee(255&x)}function re(x,I,W,z,Ae){for(var he,fe=Ae[0],ce=Ae[240],Fe=(function(Ee,xe){var Qe,Oe,Ve,Re,$e,at,gt,mt,ht,Bt,pt=0;for(ht=0;ht<8;++ht){Qe=Ee[pt],Oe=Ee[pt+1],Ve=Ee[pt+2],Re=Ee[pt+3],$e=Ee[pt+4],at=Ee[pt+5],gt=Ee[pt+6];var zt=Qe+(mt=Ee[pt+7]),_t=Qe-mt,Ut=Oe+gt,Lt=Oe-gt,Xt=Ve+at,Et=Ve-at,rr=Re+$e,St=Re-$e,ye=zt+rr,He=zt-rr,_e=Ut+Xt,je=Ut-Xt;Ee[pt]=ye+_e,Ee[pt+4]=ye-_e;var wt=.707106781*(je+He);Ee[pt+2]=He+wt,Ee[pt+6]=He-wt;var Qt=.382683433*((ye=St+Et)-(je=Lt+_t)),Tt=.5411961*ye+Qt,gr=1.306562965*je+Qt,Or=.707106781*(_e=Et+Lt),Ft=_t+Or,hA=_t-Or;Ee[pt+5]=hA+Tt,Ee[pt+3]=hA-Tt,Ee[pt+1]=Ft+gr,Ee[pt+7]=Ft-gr,pt+=8}for(pt=0,ht=0;ht<8;++ht){Qe=Ee[pt],Oe=Ee[pt+8],Ve=Ee[pt+16],Re=Ee[pt+24],$e=Ee[pt+32],at=Ee[pt+40],gt=Ee[pt+48];var lA=Qe+(mt=Ee[pt+56]),cA=Qe-mt,xr=Oe+gt,fr=Oe-gt,Cr=Ve+at,Er=Ve-at,gA=Re+$e,uA=Re-$e,Br=lA+gA,tA=lA-gA,pA=xr+Cr,Rr=xr-Cr;Ee[pt]=Br+pA,Ee[pt+32]=Br-pA;var vA=.707106781*(Rr+tA);Ee[pt+16]=tA+vA,Ee[pt+48]=tA-vA;var ln=.382683433*((Br=uA+Er)-(Rr=fr+cA)),Ct=.5411961*Br+ln,Be=1.306562965*Rr+ln,$=.707106781*(pA=Er+fr),de=cA+$,Ke=cA-$;Ee[pt+40]=Ke+Ct,Ee[pt+24]=Ke-Ct,Ee[pt+8]=de+Be,Ee[pt+56]=de-Be,pt++}for(ht=0;ht<64;++ht)Bt=Ee[ht]*xe[ht],f[ht]=Bt>0?Bt+.5|0:Bt-.5|0;return f})(x,I),Pe=0;Pe<64;++Pe)v[M[Pe]]=Fe[Pe];var Ze=v[0]-W;W=v[0],Ze==0?Z(z[0]):(Z(z[p[he=32767+Ze]]),Z(h[he]));for(var tt=63;tt>0&&v[tt]==0;)tt--;if(tt==0)return Z(fe),W;for(var lt,Q=1;Q<=tt;){for(var De=Q;v[Q]==0&&Q<=tt;)++Q;var pe=Q-De;if(pe>=16){lt=pe>>4;for(var ge=1;ge<=lt;++ge)Z(ce);pe&=15}he=32767+v[Q],Z(Ae[(pe<<4)+p[he]]),Z(h[he]),Q++}return tt!=63&&Z(fe),W}function se(x){x=Math.min(Math.max(x,1),100),a!=x&&((function(I){for(var W=[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],z=0;z<64;z++){var Ae=o((W[z]*I+50)/100);Ae=Math.min(Math.max(Ae,1),255),s[M[z]]=Ae}for(var he=[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],fe=0;fe<64;fe++){var ce=o((he[fe]*I+50)/100);ce=Math.min(Math.max(ce,1),255),l[M[fe]]=ce}for(var Fe=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Pe=0,Ze=0;Ze<8;Ze++)for(var tt=0;tt<8;tt++)c[Pe]=1/(s[M[Pe]]*Fe[Ze]*Fe[tt]*8),u[Pe]=1/(l[M[Pe]]*Fe[Ze]*Fe[tt]*8),Pe++})(x<50?Math.floor(5e3/x):Math.floor(200-2*x)),a=x)}this.encode=function(x,I){I&&se(I),w=new Array,b=0,B=7,X(65496),X(65504),X(16),ee(74),ee(70),ee(73),ee(70),ee(0),ee(1),ee(1),ee(0),X(1),X(1),ee(0),ee(0),(function(){X(65499),X(132),ee(0);for(var Oe=0;Oe<64;Oe++)ee(s[Oe]);ee(1);for(var Ve=0;Ve<64;Ve++)ee(l[Ve])})(),(function(Oe,Ve){X(65472),X(17),ee(8),X(Ve),X(Oe),ee(3),ee(1),ee(17),ee(0),ee(2),ee(17),ee(1),ee(3),ee(17),ee(1)})(x.width,x.height),(function(){X(65476),X(418),ee(0);for(var Oe=0;Oe<16;Oe++)ee(O[Oe+1]);for(var Ve=0;Ve<=11;Ve++)ee(L[Ve]);ee(16);for(var Re=0;Re<16;Re++)ee(R[Re+1]);for(var $e=0;$e<=161;$e++)ee(S[$e]);ee(1);for(var at=0;at<16;at++)ee(T[at+1]);for(var gt=0;gt<=11;gt++)ee(G[gt]);ee(17);for(var mt=0;mt<16;mt++)ee(N[mt+1]);for(var ht=0;ht<=161;ht++)ee(oe[ht])})(),X(65498),X(12),ee(3),ee(1),ee(0),ee(2),ee(17),ee(3),ee(17),ee(0),ee(63),ee(0);var W=0,z=0,Ae=0;b=0,B=7,this.encode.displayName="_encode_";for(var he,fe,ce,Fe,Pe,Ze,tt,lt,Q,De=x.data,pe=x.width,ge=x.height,Ee=4*pe,xe=0;xe<ge;){for(he=0;he<Ee;){for(Pe=Ee*xe+he,tt=-1,lt=0,Q=0;Q<64;Q++)Ze=Pe+(lt=Q>>3)*Ee+(tt=4*(7&Q)),xe+lt>=ge&&(Ze-=Ee*(xe+1+lt-ge)),he+tt>=Ee&&(Ze-=he+tt-Ee+4),fe=De[Ze++],ce=De[Ze++],Fe=De[Ze++],F[Q]=(j[fe]+j[ce+256|0]+j[Fe+512|0]>>16)-128,E[Q]=(j[fe+768|0]+j[ce+1024|0]+j[Fe+1280|0]>>16)-128,k[Q]=(j[fe+1280|0]+j[ce+1536|0]+j[Fe+1792|0]>>16)-128;W=re(F,c,W,t,r),z=re(E,u,z,e,n),Ae=re(k,u,Ae,e,n),he+=32}xe+=8}if(B>=0){var Qe=[];Qe[1]=B+1,Qe[0]=(1<<B+1)-1,Z(Qe)}return X(65497),new Uint8Array(w)},A=A||50,(function(){for(var x=String.fromCharCode,I=0;I<256;I++)P[I]=x(I)})(),t=le(O,L),e=le(T,G),r=le(R,S),n=le(N,oe),(function(){for(var x=1,I=2,W=1;W<=15;W++){for(var z=x;z<I;z++)p[32767+z]=W,h[32767+z]=[],h[32767+z][1]=W,h[32767+z][0]=z;for(var Ae=-(I-1);Ae<=-x;Ae++)p[32767+Ae]=W,h[32767+Ae]=[],h[32767+Ae][1]=W,h[32767+Ae][0]=I-1+Ae;x<<=1,I<<=1}})(),(function(){for(var x=0;x<256;x++)j[x]=19595*x,j[x+256|0]=38470*x,j[x+512|0]=7471*x+32768,j[x+768|0]=-11059*x,j[x+1024|0]=-21709*x,j[x+1280|0]=32768*x+8421375,j[x+1536|0]=-27439*x,j[x+1792|0]=-5329*x})(),se(A)}/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function Ea(A,t){if(this.pos=0,this.buffer=A,this.datav=new DataView(A.buffer),this.is_with_alpha=!!t,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 cm(A){function t(L){if(!L)throw Error("assert :P")}function e(L,R,S){for(var T=0;4>T;T++)if(L[R+T]!=S.charCodeAt(T))return!0;return!1}function r(L,R,S,T,G){for(var N=0;N<G;N++)L[R+N]=S[T+N]}function n(L,R,S,T){for(var G=0;G<T;G++)L[R+G]=S}function a(L){return new Int32Array(L)}function o(L,R){for(var S=[],T=0;T<L;T++)S.push(new R);return S}function s(L,R){var S=[];return(function T(G,N,oe){for(var le=oe[N],Z=0;Z<le&&(G.push(oe.length>N+1?[]:new R),!(oe.length<N+1));Z++)T(G[Z],N+1,oe)})(S,0,L),S}var l=function(){var L=this;function R(d,g){for(var y=1<<g-1>>>0;d&y;)y>>>=1;return y?(d&y-1)+y:d}function S(d,g,y,C,D){t(!(C%y));do d[g+(C-=y)]=D;while(0<C)}function T(d,g,y,C,D){if(t(2328>=D),512>=D)var _=a(512);else if((_=a(D))==null)return 0;return(function(V,Y,J,ae,be,Me){var ie,ke,Le=Y,Je=1<<J,Ne=a(16),At=a(16);for(t(be!=0),t(ae!=null),t(V!=null),t(0<J),ke=0;ke<be;++ke){if(15<ae[ke])return 0;++Ne[ae[ke]]}if(Ne[0]==be)return 0;for(At[1]=0,ie=1;15>ie;++ie){if(Ne[ie]>1<<ie)return 0;At[ie+1]=At[ie]+Ne[ie]}for(ke=0;ke<be;++ke)ie=ae[ke],0<ae[ke]&&(Me[At[ie]++]=ke);if(At[15]==1)return(ae=new G).g=0,ae.value=Me[0],S(V,Le,1,Je,ae),Je;var nt,dt=-1,ot=Je-1,jt=0,Nt=1,lr=1,Pt=1<<J;for(ke=0,ie=1,be=2;ie<=J;++ie,be<<=1){if(Nt+=lr<<=1,0>(lr-=Ne[ie]))return 0;for(;0<Ne[ie];--Ne[ie])(ae=new G).g=ie,ae.value=Me[ke++],S(V,Le+jt,be,Pt,ae),jt=R(jt,ie)}for(ie=J+1,be=2;15>=ie;++ie,be<<=1){if(Nt+=lr<<=1,0>(lr-=Ne[ie]))return 0;for(;0<Ne[ie];--Ne[ie]){if(ae=new G,(jt&ot)!=dt){for(Le+=Pt,nt=1<<(dt=ie)-J;15>dt&&!(0>=(nt-=Ne[dt]));)++dt,nt<<=1;Je+=Pt=1<<(nt=dt-J),V[Y+(dt=jt&ot)].g=nt+J,V[Y+dt].value=Le-Y-dt}ae.g=ie-J,ae.value=Me[ke++],S(V,Le+(jt>>J),be,Pt,ae),jt=R(jt,ie)}}return Nt!=2*At[15]-1?0:Je})(d,g,y,C,D,_)}function G(){this.value=this.g=0}function N(){this.value=this.g=0}function oe(){this.G=o(5,G),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Ir,N)}function le(d,g,y,C){t(d!=null),t(g!=null),t(2147483648>C),d.Ca=254,d.I=0,d.b=-8,d.Ka=0,d.oa=g,d.pa=y,d.Jd=g,d.Yc=y+C,d.Zc=4<=C?y+C-4+1:y,fe(d)}function Z(d,g){for(var y=0;0<g--;)y|=Fe(d,128)<<g;return y}function ee(d,g){var y=Z(d,g);return ce(d)?-y:y}function X(d,g,y,C){var D,_=0;for(t(d!=null),t(g!=null),t(4294967288>C),d.Sb=C,d.Ra=0,d.u=0,d.h=0,4<C&&(C=4),D=0;D<C;++D)_+=g[y+D]<<8*D;d.Ra=_,d.bb=C,d.oa=g,d.pa=y}function re(d){for(;8<=d.u&&d.bb<d.Sb;)d.Ra>>>=8,d.Ra+=d.oa[d.pa+d.bb]<<en-8>>>0,++d.bb,d.u-=8;z(d)&&(d.h=1,d.u=0)}function se(d,g){if(t(0<=g),!d.h&&g<=jr){var y=W(d)&Ur[g];return d.u+=g,re(d),y}return d.h=1,d.u=0}function x(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function I(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function W(d){return d.Ra>>>(d.u&en-1)>>>0}function z(d){return t(d.bb<=d.Sb),d.h||d.bb==d.Sb&&d.u>en}function Ae(d,g){d.u=g,d.h=z(d)}function he(d){d.u>=GA&&(t(d.u>=GA),re(d))}function fe(d){t(d!=null&&d.oa!=null),d.pa<d.Zc?(d.I=(d.oa[d.pa++]|d.I<<8)>>>0,d.b+=8):(t(d!=null&&d.oa!=null),d.pa<d.Yc?(d.b+=8,d.I=d.oa[d.pa++]|d.I<<8):d.Ka?d.b=0:(d.I<<=8,d.b+=8,d.Ka=1))}function ce(d){return Z(d,1)}function Fe(d,g){var y=d.Ca;0>d.b&&fe(d);var C=d.b,D=y*g>>>8,_=(d.I>>>C>D)+0;for(_?(y-=D,d.I-=D+1<<C>>>0):y=D+1,C=y,D=0;256<=C;)D+=8,C>>=8;return C=7^D+Ba[C],d.b-=C,d.Ca=(y<<C)-1,_}function Pe(d,g,y){d[g+0]=y>>24&255,d[g+1]=y>>16&255,d[g+2]=y>>8&255,d[g+3]=255&y}function Ze(d,g){return d[g+0]|d[g+1]<<8}function tt(d,g){return Ze(d,g)|d[g+2]<<16}function lt(d,g){return Ze(d,g)|Ze(d,g+2)<<16}function Q(d,g){var y=1<<g;return t(d!=null),t(0<g),d.X=a(y),d.X==null?0:(d.Mb=32-g,d.Xa=g,1)}function De(d,g){t(d!=null),t(g!=null),t(d.Xa==g.Xa),r(g.X,0,d.X,0,1<<g.Xa)}function pe(){this.X=[],this.Xa=this.Mb=0}function ge(d,g,y,C){t(y!=null),t(C!=null);var D=y[0],_=C[0];return D==0&&(D=(d*_+g/2)/g),_==0&&(_=(g*D+d/2)/d),0>=D||0>=_?0:(y[0]=D,C[0]=_,1)}function Ee(d,g){return d+(1<<g)-1>>>g}function xe(d,g){return((4278255360&d)+(4278255360&g)>>>0&4278255360)+((16711935&d)+(16711935&g)>>>0&16711935)>>>0}function Qe(d,g){L[g]=function(y,C,D,_,V,Y,J){var ae;for(ae=0;ae<V;++ae){var be=L[d](Y[J+ae-1],D,_+ae);Y[J+ae]=xe(y[C+ae],be)}}}function Oe(){this.ud=this.hd=this.jd=0}function Ve(d,g){return((4278124286&(d^g))>>>1)+(d&g)>>>0}function Re(d){return 0<=d&&256>d?d:0>d?0:255<d?255:void 0}function $e(d,g){return Re(d+(d-g+.5>>1))}function at(d,g,y){return Math.abs(g-y)-Math.abs(d-y)}function gt(d,g,y,C,D,_,V){for(C=_[V-1],y=0;y<D;++y)_[V+y]=C=xe(d[g+y],C)}function mt(d,g,y,C,D){var _;for(_=0;_<y;++_){var V=d[g+_],Y=V>>8&255,J=16711935&(J=(J=16711935&V)+((Y<<16)+Y));C[D+_]=(4278255360&V)+J>>>0}}function ht(d,g){g.jd=255&d,g.hd=d>>8&255,g.ud=d>>16&255}function Bt(d,g,y,C,D,_){var V;for(V=0;V<C;++V){var Y=g[y+V],J=Y>>>8,ae=Y,be=255&(be=(be=Y>>>16)+((d.jd<<24>>24)*(J<<24>>24)>>>5));ae=255&(ae=(ae+=(d.hd<<24>>24)*(J<<24>>24)>>>5)+((d.ud<<24>>24)*(be<<24>>24)>>>5)),D[_+V]=(4278255360&Y)+(be<<16)+ae}}function pt(d,g,y,C,D){L[g]=function(_,V,Y,J,ae,be,Me,ie,ke){for(J=Me;J<ie;++J)for(Me=0;Me<ke;++Me)ae[be++]=D(Y[C(_[V++])])},L[d]=function(_,V,Y,J,ae,be,Me){var ie=8>>_.b,ke=_.Ea,Le=_.K[0],Je=_.w;if(8>ie)for(_=(1<<_.b)-1,Je=(1<<ie)-1;V<Y;++V){var Ne,At=0;for(Ne=0;Ne<ke;++Ne)Ne&_||(At=C(J[ae++])),be[Me++]=D(Le[At&Je]),At>>=ie}else L["VP8LMapColor"+y](J,ae,Le,Je,be,Me,V,Y,ke)}}function zt(d,g,y,C,D){for(y=g+y;g<y;){var _=d[g++];C[D++]=_>>16&255,C[D++]=_>>8&255,C[D++]=255&_}}function _t(d,g,y,C,D){for(y=g+y;g<y;){var _=d[g++];C[D++]=_>>16&255,C[D++]=_>>8&255,C[D++]=255&_,C[D++]=_>>24&255}}function Ut(d,g,y,C,D){for(y=g+y;g<y;){var _=(V=d[g++])>>16&240|V>>12&15,V=240&V|V>>28&15;C[D++]=_,C[D++]=V}}function Lt(d,g,y,C,D){for(y=g+y;g<y;){var _=(V=d[g++])>>16&248|V>>13&7,V=V>>5&224|V>>3&31;C[D++]=_,C[D++]=V}}function Xt(d,g,y,C,D){for(y=g+y;g<y;){var _=d[g++];C[D++]=255&_,C[D++]=_>>8&255,C[D++]=_>>16&255}}function Et(d,g,y,C,D,_){if(_==0)for(y=g+y;g<y;)Pe(C,((_=d[g++])[0]>>24|_[1]>>8&65280|_[2]<<8&16711680|_[3]<<24)>>>0),D+=32;else r(C,D,d,g,y)}function rr(d,g){L[g][0]=L[d+"0"],L[g][1]=L[d+"1"],L[g][2]=L[d+"2"],L[g][3]=L[d+"3"],L[g][4]=L[d+"4"],L[g][5]=L[d+"5"],L[g][6]=L[d+"6"],L[g][7]=L[d+"7"],L[g][8]=L[d+"8"],L[g][9]=L[d+"9"],L[g][10]=L[d+"10"],L[g][11]=L[d+"11"],L[g][12]=L[d+"12"],L[g][13]=L[d+"13"],L[g][14]=L[d+"0"],L[g][15]=L[d+"0"]}function St(d){return d==yu||d==bu||d==wl||d==Cu}function ye(){this.eb=[],this.size=this.A=this.fb=0}function He(){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 _e(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ye,this.f.kb=new He,this.sd=null}function je(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function wt(){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 Qt(d){return alert("todo:WebPSamplerProcessPlane"),d.T}function Tt(d,g){var y=d.T,C=g.ba.f.RGBA,D=C.eb,_=C.fb+d.ka*C.A,V=oa[g.ba.S],Y=d.y,J=d.O,ae=d.f,be=d.N,Me=d.ea,ie=d.W,ke=g.cc,Le=g.dc,Je=g.Mc,Ne=g.Nc,At=d.ka,nt=d.ka+d.T,dt=d.U,ot=dt+1>>1;for(At==0?V(Y,J,null,null,ae,be,Me,ie,ae,be,Me,ie,D,_,null,null,dt):(V(g.ec,g.fc,Y,J,ke,Le,Je,Ne,ae,be,Me,ie,D,_-C.A,D,_,dt),++y);At+2<nt;At+=2)ke=ae,Le=be,Je=Me,Ne=ie,be+=d.Rc,ie+=d.Rc,_+=2*C.A,V(Y,(J+=2*d.fa)-d.fa,Y,J,ke,Le,Je,Ne,ae,be,Me,ie,D,_-C.A,D,_,dt);return J+=d.fa,d.j+nt<d.o?(r(g.ec,g.fc,Y,J,dt),r(g.cc,g.dc,ae,be,ot),r(g.Mc,g.Nc,Me,ie,ot),y--):1&nt||V(Y,J,null,null,ae,be,Me,ie,ae,be,Me,ie,D,_+C.A,null,null,dt),y}function gr(d,g,y){var C=d.F,D=[d.J];if(C!=null){var _=d.U,V=g.ba.S,Y=V==ml||V==wl;g=g.ba.f.RGBA;var J=[0],ae=d.ka;J[0]=d.T,d.Kb&&(ae==0?--J[0]:(--ae,D[0]-=d.width),d.j+d.ka+d.T==d.o&&(J[0]=d.o-d.j-ae));var be=g.eb;ae=g.fb+ae*g.A,d=fv(C,D[0],d.width,_,J,be,ae+(Y?0:3),g.A),t(y==J),d&&St(V)&&ho(be,ae,Y,_,J,g.A)}return 0}function Or(d){var g=d.ma,y=g.ba.S,C=11>y,D=y==pl||y==vl||y==ml||y==Bu||y==12||St(y);if(g.memory=null,g.Ib=null,g.Jb=null,g.Nd=null,!Xi(g.Oa,d,D?11:12))return 0;if(D&&St(y)&&ft(),d.da)alert("todo:use_scaling");else{if(C){if(g.Ib=Qt,d.Kb){if(y=d.U+1>>1,g.memory=a(d.U+2*y),g.memory==null)return 0;g.ec=g.memory,g.fc=0,g.cc=g.ec,g.dc=g.fc+d.U,g.Mc=g.cc,g.Nc=g.dc+y,g.Ib=Tt,ft()}}else alert("todo:EmitYUV");D&&(g.Jb=gr,C&&Ge())}if(C&&!Sv){for(d=0;256>d;++d)nE[d]=89858*(d-128)+yl>>Bl,sE[d]=-22014*(d-128)+yl,iE[d]=-45773*(d-128),aE[d]=113618*(d-128)+yl>>Bl;for(d=po;d<ku;++d)g=76283*(d-16)+yl>>Bl,oE[d-po]=qt(g,255),lE[d-po]=qt(g+8>>4,15);Sv=1}return 1}function Ft(d){var g=d.ma,y=d.U,C=d.T;return t(!(1&d.ka)),0>=y||0>=C?0:(y=g.Ib(d,g),g.Jb!=null&&g.Jb(d,g,y),g.Dc+=y,1)}function hA(d){d.ma.memory=null}function lA(d,g,y,C){return se(d,8)!=47?0:(g[0]=se(d,14)+1,y[0]=se(d,14)+1,C[0]=se(d,1),se(d,3)!=0?0:!d.h)}function cA(d,g){if(4>d)return d+1;var y=d-2>>1;return(2+(1&d)<<y)+se(g,y)+1}function xr(d,g){return 120<g?g-120:1<=(y=((y=qC[g-1])>>4)*d+(8-(15&y)))?y:1;var y}function fr(d,g,y){var C=W(y),D=d[g+=255&C].g-8;return 0<D&&(Ae(y,y.u+8),C=W(y),g+=d[g].value,g+=C&(1<<D)-1),Ae(y,y.u+d[g].g),d[g].value}function Cr(d,g,y){return y.g+=d.g,y.value+=d.value<<g>>>0,t(8>=y.g),d.g}function Er(d,g,y){var C=d.xc;return t((g=C==0?0:d.vc[d.md*(y>>C)+(g>>C)])<d.Wb),d.Ya[g]}function gA(d,g,y,C){var D=d.ab,_=d.c*g,V=d.C;g=V+g;var Y=y,J=C;for(C=d.Ta,y=d.Ua;0<D--;){var ae=d.gc[D],be=V,Me=g,ie=Y,ke=J,Le=(J=C,Y=y,ae.Ea);switch(t(be<Me),t(Me<=ae.nc),ae.hc){case 2:dA(ie,ke,(Me-be)*Le,J,Y);break;case 0:var Je=be,Ne=Me,At=J,nt=Y,dt=(Pt=ae).Ea;Je==0&&(yi(ie,ke,null,null,1,At,nt),gt(ie,ke+1,0,0,dt-1,At,nt+1),ke+=dt,nt+=dt,++Je);for(var ot=1<<Pt.b,jt=ot-1,Nt=Ee(dt,Pt.b),lr=Pt.K,Pt=Pt.w+(Je>>Pt.b)*Nt;Je<Ne;){var wr=lr,PA=Pt,cr=1;for(Ra(ie,ke,At,nt-dt,1,At,nt);cr<dt;){var Vt=(cr&~jt)+ot;Vt>dt&&(Vt=dt),(0,lo[wr[PA++]>>8&15])(ie,ke+ +cr,At,nt+cr-dt,Vt-cr,At,nt+cr),cr=Vt}ke+=dt,nt+=dt,++Je&jt||(Pt+=Nt)}Me!=ae.nc&&r(J,Y-Le,J,Y+(Me-be-1)*Le,Le);break;case 1:for(Le=ie,Ne=ke,dt=(ie=ae.Ea)-(nt=ie&~(At=(ke=1<<ae.b)-1)),Je=Ee(ie,ae.b),ot=ae.K,ae=ae.w+(be>>ae.b)*Je;be<Me;){for(jt=ot,Nt=ae,lr=new Oe,Pt=Ne+nt,wr=Ne+ie;Ne<Pt;)ht(jt[Nt++],lr),co(lr,Le,Ne,ke,J,Y),Ne+=ke,Y+=ke;Ne<wr&&(ht(jt[Nt++],lr),co(lr,Le,Ne,dt,J,Y),Ne+=dt,Y+=dt),++be&At||(ae+=Je)}break;case 3:if(ie==J&&ke==Y&&0<ae.b){for(Ne=J,ie=Le=Y+(Me-be)*Le-(nt=(Me-be)*Ee(ae.Ea,ae.b)),ke=J,At=Y,Je=[],nt=(dt=nt)-1;0<=nt;--nt)Je[nt]=ke[At+nt];for(nt=dt-1;0<=nt;--nt)Ne[ie+nt]=Je[nt];Qs(ae,be,Me,J,Le,J,Y)}else Qs(ae,be,Me,ie,ke,J,Y)}Y=C,J=y}J!=y&&r(C,y,Y,J,_)}function uA(d,g){var y=d.V,C=d.Ba+d.c*d.C,D=g-d.C;if(t(g<=d.l.o),t(16>=D),0<D){var _=d.l,V=d.Ta,Y=d.Ua,J=_.width;if(gA(d,D,y,C),D=Y=[Y],t((y=d.C)<(C=g)),t(_.v<_.va),C>_.o&&(C=_.o),y<_.j){var ae=_.j-y;y=_.j,D[0]+=ae*J}if(y>=C?y=0:(D[0]+=4*_.v,_.ka=y-_.j,_.U=_.va-_.v,_.T=C-y,y=1),y){if(Y=Y[0],11>(y=d.ca).S){var be=y.f.RGBA,Me=(C=y.S,D=_.U,_=_.T,ae=be.eb,be.A),ie=_;for(be=be.fb+d.Ma*be.A;0<ie--;){var ke=V,Le=Y,Je=D,Ne=ae,At=be;switch(C){case gl:uo(ke,Le,Je,Ne,At);break;case pl:bi(ke,Le,Je,Ne,At);break;case yu:bi(ke,Le,Je,Ne,At),ho(Ne,At,0,Je,1,0);break;case wv:Ji(ke,Le,Je,Ne,At);break;case vl:Et(ke,Le,Je,Ne,At,1);break;case bu:Et(ke,Le,Je,Ne,At,1),ho(Ne,At,0,Je,1,0);break;case ml:Et(ke,Le,Je,Ne,At,0);break;case wl:Et(ke,Le,Je,Ne,At,0),ho(Ne,At,1,Je,1,0);break;case Bu:Ci(ke,Le,Je,Ne,At);break;case Cu:Ci(ke,Le,Je,Ne,At),uv(Ne,At,Je,1,0);break;case Bv:Ei(ke,Le,Je,Ne,At);break;default:t(0)}Y+=J,be+=Me}d.Ma+=_}else alert("todo:EmitRescaledRowsYUVA");t(d.Ma<=y.height)}}d.C=g,t(d.C<=d.i)}function Br(d){var g;if(0<d.ua)return 0;for(g=0;g<d.Wb;++g){var y=d.Ya[g].G,C=d.Ya[g].H;if(0<y[1][C[1]+0].g||0<y[2][C[2]+0].g||0<y[3][C[3]+0].g)return 0}return 1}function tA(d,g,y,C,D,_){if(d.Z!=0){var V=d.qd,Y=d.rd;for(t(xi[d.Z]!=null);g<y;++g)xi[d.Z](V,Y,C,D,C,D,_),V=C,Y=D,D+=_;d.qd=V,d.rd=Y}}function pA(d,g){var y=d.l.ma,C=y.Z==0||y.Z==1?d.l.j:d.C;if(C=d.C<C?C:d.C,t(g<=d.l.o),g>C){var D=d.l.width,_=y.ca,V=y.tb+D*C,Y=d.V,J=d.Ba+d.c*C,ae=d.gc;t(d.ab==1),t(ae[0].hc==3),Ha(ae[0],C,g,Y,J,_,V),tA(y,C,g,_,V,D)}d.C=d.Ma=g}function Rr(d,g,y,C,D,_,V){var Y=d.$/C,J=d.$%C,ae=d.m,be=d.s,Me=y+d.$,ie=Me;D=y+C*D;var ke=y+C*_,Le=280+be.ua,Je=d.Pb?Y:16777216,Ne=0<be.ua?be.Wa:null,At=be.wc,nt=Me<ke?Er(be,J,Y):null;t(d.C<_),t(ke<=D);var dt=!1;e:for(;;){for(;dt||Me<ke;){var ot=0;if(Y>=Je){var jt=Me-y;t((Je=d).Pb),Je.wd=Je.m,Je.xd=jt,0<Je.s.ua&&De(Je.s.Wa,Je.s.vb),Je=Y+WC}if(J&At||(nt=Er(be,J,Y)),t(nt!=null),nt.Qb&&(g[Me]=nt.qb,dt=!0),!dt)if(he(ae),nt.jc){ot=ae,jt=g;var Nt=Me,lr=nt.pd[W(ot)&Ir-1];t(nt.jc),256>lr.g?(Ae(ot,ot.u+lr.g),jt[Nt]=lr.value,ot=0):(Ae(ot,ot.u+lr.g-256),t(256<=lr.value),ot=lr.value),ot==0&&(dt=!0)}else ot=fr(nt.G[0],nt.H[0],ae);if(ae.h)break;if(dt||256>ot){if(!dt)if(nt.nd)g[Me]=(nt.qb|ot<<8)>>>0;else{if(he(ae),dt=fr(nt.G[1],nt.H[1],ae),he(ae),jt=fr(nt.G[2],nt.H[2],ae),Nt=fr(nt.G[3],nt.H[3],ae),ae.h)break;g[Me]=(Nt<<24|dt<<16|ot<<8|jt)>>>0}if(dt=!1,++Me,++J>=C&&(J=0,++Y,V!=null&&Y<=_&&!(Y%16)&&V(d,Y),Ne!=null))for(;ie<Me;)ot=g[ie++],Ne.X[(506832829*ot&4294967295)>>>Ne.Mb]=ot}else if(280>ot){if(ot=cA(ot-256,ae),jt=fr(nt.G[4],nt.H[4],ae),he(ae),jt=xr(C,jt=cA(jt,ae)),ae.h)break;if(Me-y<jt||D-Me<ot)break e;for(Nt=0;Nt<ot;++Nt)g[Me+Nt]=g[Me+Nt-jt];for(Me+=ot,J+=ot;J>=C;)J-=C,++Y,V!=null&&Y<=_&&!(Y%16)&&V(d,Y);if(t(Me<=D),J&At&&(nt=Er(be,J,Y)),Ne!=null)for(;ie<Me;)ot=g[ie++],Ne.X[(506832829*ot&4294967295)>>>Ne.Mb]=ot}else{if(!(ot<Le))break e;for(dt=ot-280,t(Ne!=null);ie<Me;)ot=g[ie++],Ne.X[(506832829*ot&4294967295)>>>Ne.Mb]=ot;ot=Me,t(!(dt>>>(jt=Ne).Xa)),g[ot]=jt.X[dt],dt=!0}dt||t(ae.h==z(ae))}if(d.Pb&&ae.h&&Me<D)t(d.m.h),d.a=5,d.m=d.wd,d.$=d.xd,0<d.s.ua&&De(d.s.vb,d.s.Wa);else{if(ae.h)break e;V!=null&&V(d,Y>_?_:Y),d.a=0,d.$=Me-y}return 1}return d.a=3,0}function vA(d){t(d!=null),d.vc=null,d.yc=null,d.Ya=null;var g=d.Wa;g!=null&&(g.X=null),d.vb=null,t(d!=null)}function ln(){var d=new Jt;return d==null?null:(d.a=0,d.xb=Cv,rr("Predictor","VP8LPredictors"),rr("Predictor","VP8LPredictors_C"),rr("PredictorAdd","VP8LPredictorsAdd"),rr("PredictorAdd","VP8LPredictorsAdd_C"),dA=mt,co=Bt,uo=zt,bi=_t,Ci=Ut,Ei=Lt,Ji=Xt,L.VP8LMapColor32b=aa,L.VP8LMapColor8b=oo,d)}function Ct(d,g,y,C,D){var _=1,V=[d],Y=[g],J=C.m,ae=C.s,be=null,Me=0;e:for(;;){if(y)for(;_&&se(J,1);){var ie=V,ke=Y,Le=C,Je=1,Ne=Le.m,At=Le.gc[Le.ab],nt=se(Ne,2);if(Le.Oc&1<<nt)_=0;else{switch(Le.Oc|=1<<nt,At.hc=nt,At.Ea=ie[0],At.nc=ke[0],At.K=[null],++Le.ab,t(4>=Le.ab),nt){case 0:case 1:At.b=se(Ne,3)+2,Je=Ct(Ee(At.Ea,At.b),Ee(At.nc,At.b),0,Le,At.K),At.K=At.K[0];break;case 3:var dt,ot=se(Ne,8)+1,jt=16<ot?0:4<ot?1:2<ot?2:3;if(ie[0]=Ee(At.Ea,jt),At.b=jt,dt=Je=Ct(ot,1,0,Le,At.K)){var Nt,lr=ot,Pt=At,wr=1<<(8>>Pt.b),PA=a(wr);if(PA==null)dt=0;else{var cr=Pt.K[0],Vt=Pt.w;for(PA[0]=Pt.K[0][0],Nt=1;Nt<1*lr;++Nt)PA[Nt]=xe(cr[Vt+Nt],PA[Nt-1]);for(;Nt<4*wr;++Nt)PA[Nt]=0;Pt.K[0]=null,Pt.K[0]=PA,dt=1}}Je=dt;break;case 2:break;default:t(0)}_=Je}}if(V=V[0],Y=Y[0],_&&se(J,1)&&!(_=1<=(Me=se(J,4))&&11>=Me)){C.a=3;break e}var yt;if(yt=_)t:{var SA,ir,br,AA=C,tn=V,En=Y,BA=Me,hn=y,Fn=AA.m,VA=AA.s,Fr=[null],Pr=1,yA=0,Vr=jC[BA];r:for(;;){if(hn&&se(Fn,1)){var rn=se(Fn,3)+2,ba=Ee(tn,rn),TA=Ee(En,rn),_n=ba*TA;if(!Ct(ba,TA,0,AA,Fr))break r;for(Fr=Fr[0],VA.xc=rn,SA=0;SA<_n;++SA){var Yr=Fr[SA]>>8&65535;Fr[SA]=Yr,Yr>=Pr&&(Pr=Yr+1)}}if(Fn.h)break r;for(ir=0;5>ir;++ir){var KA=yv[ir];!ir&&0<BA&&(KA+=1<<BA),yA<KA&&(yA=KA)}var Wn=o(Pr*Vr,G),kn=Pr,Gn=o(kn,oe);if(Gn==null)var Yn=null;else t(65536>=kn),Yn=Gn;var Mn=a(yA);if(Yn==null||Mn==null||Wn==null){AA.a=1;break r}var zn=Wn;for(SA=br=0;SA<Pr;++SA){var Jr=Yn[SA],$n=Jr.G,Ca=Jr.H,es=0,ei=1,An=0;for(ir=0;5>ir;++ir){KA=yv[ir],$n[ir]=zn,Ca[ir]=br,!ir&&0<BA&&(KA+=1<<BA);n:{var Cl,xu=KA,El=AA,vo=Mn,fE=zn,dE=br,Su=0,Si=El.m,hE=se(Si,1);if(n(vo,0,0,xu),hE){var gE=se(Si,1)+1,pE=se(Si,1),Dv=se(Si,pE==0?1:8);vo[Dv]=1,gE==2&&(vo[Dv=se(Si,8)]=1);var Fl=1}else{var Qv=a(19),Lv=se(Si,4)+4;if(19<Lv){El.a=3;var kl=0;break n}for(Cl=0;Cl<Lv;++Cl)Qv[KC[Cl]]=se(Si,3);var Tu=void 0,mo=void 0,Iv=El,vE=Qv,xl=xu,Nv=vo,Uu=0,Ti=Iv.m,_v=8,Mv=o(128,G);A:for(;T(Mv,0,7,vE,19);){if(se(Ti,1)){var mE=2+2*se(Ti,3);if((Tu=2+se(Ti,mE))>xl)break A}else Tu=xl;for(mo=0;mo<xl&&Tu--;){he(Ti);var Ov=Mv[0+(127&W(Ti))];Ae(Ti,Ti.u+Ov.g);var Is=Ov.value;if(16>Is)Nv[mo++]=Is,Is!=0&&(_v=Is);else{var wE=Is==16,Rv=Is-16,BE=PC[Rv],Hv=se(Ti,HC[Rv])+BE;if(mo+Hv>xl)break A;for(var yE=wE?_v:0;0<Hv--;)Nv[mo++]=yE}}Uu=1;break A}Uu||(Iv.a=3),Fl=Uu}(Fl=Fl&&!Si.h)&&(Su=T(fE,dE,8,vo,xu)),Fl&&Su!=0?kl=Su:(El.a=3,kl=0)}if(kl==0)break r;if(ei&&VC[ir]==1&&(ei=zn[br].g==0),es+=zn[br].g,br+=kl,3>=ir){var wo,Du=Mn[0];for(wo=1;wo<KA;++wo)Mn[wo]>Du&&(Du=Mn[wo]);An+=Du}}if(Jr.nd=ei,Jr.Qb=0,ei&&(Jr.qb=($n[3][Ca[3]+0].value<<24|$n[1][Ca[1]+0].value<<16|$n[2][Ca[2]+0].value)>>>0,es==0&&256>$n[0][Ca[0]+0].value&&(Jr.Qb=1,Jr.qb+=$n[0][Ca[0]+0].value<<8)),Jr.jc=!Jr.Qb&&6>An,Jr.jc){var Sl,ti=Jr;for(Sl=0;Sl<Ir;++Sl){var Ui=Sl,Di=ti.pd[Ui],Tl=ti.G[0][ti.H[0]+Ui];256<=Tl.value?(Di.g=Tl.g+256,Di.value=Tl.value):(Di.g=0,Di.value=0,Ui>>=Cr(Tl,8,Di),Ui>>=Cr(ti.G[1][ti.H[1]+Ui],16,Di),Ui>>=Cr(ti.G[2][ti.H[2]+Ui],0,Di),Cr(ti.G[3][ti.H[3]+Ui],24,Di))}}}VA.vc=Fr,VA.Wb=Pr,VA.Ya=Yn,VA.yc=Wn,yt=1;break t}yt=0}if(!(_=yt)){C.a=3;break e}if(0<Me){if(ae.ua=1<<Me,!Q(ae.Wa,Me)){C.a=1,_=0;break e}}else ae.ua=0;var Qu=C,Pv=V,bE=Y,Lu=Qu.s,Iu=Lu.xc;if(Qu.c=Pv,Qu.i=bE,Lu.md=Ee(Pv,Iu),Lu.wc=Iu==0?-1:(1<<Iu)-1,y){C.xb=ZC;break e}if((be=a(V*Y))==null){C.a=1,_=0;break e}_=(_=Rr(C,be,0,V,Y,Y,null))&&!J.h;break e}return _?(D!=null?D[0]=be:(t(be==null),t(y)),C.$=0,y||vA(ae)):vA(ae),_}function Be(d,g){var y=d.c*d.i,C=y+g+16*g;return t(d.c<=g),d.V=a(C),d.V==null?(d.Ta=null,d.Ua=0,d.a=1,0):(d.Ta=d.V,d.Ua=d.Ba+y+g,1)}function $(d,g){var y=d.C,C=g-y,D=d.V,_=d.Ba+d.c*y;for(t(g<=d.l.o);0<C;){var V=16<C?16:C,Y=d.l.ma,J=d.l.width,ae=J*V,be=Y.ca,Me=Y.tb+J*y,ie=d.Ta,ke=d.Ua;gA(d,V,D,_),dv(ie,ke,be,Me,ae),tA(Y,y,y+V,be,Me,J),C-=V,D+=V*d.c,y+=V}t(y==g),d.C=d.Ma=g}function de(){this.ub=this.yd=this.td=this.Rb=0}function Ke(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function rt(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function q(){this.Yb=(function(){var d=[];return(function g(y,C,D){for(var _=D[C],V=0;V<_&&(y.push(D.length>C+1?[]:0),!(D.length<C+1));V++)g(y[V],C+1,D)})(d,0,[3,11]),d})()}function me(){this.jb=a(3),this.Wc=s([4,8],q),this.Xc=s([4,17],q)}function Ce(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Te(){this.ld=this.La=this.dd=this.tc=0}function ze(){this.Na=this.la=0}function Ie(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Xe(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ye(){this.uc=this.M=this.Nb=0,this.wa=Array(new Te),this.Y=0,this.ya=Array(new Xe),this.aa=0,this.l=new tr}function st(){this.y=a(16),this.f=a(8),this.ea=a(8)}function vt(){this.cb=this.a=0,this.sc="",this.m=new x,this.Od=new de,this.Kc=new Ke,this.ed=new Ce,this.Qa=new rt,this.Ic=this.$c=this.Aa=0,this.D=new Ye,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,x),this.ia=0,this.pb=o(4,Ie),this.Pa=new me,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new st),this.Hd=0,this.rb=Array(new ze),this.sb=0,this.wa=Array(new Te),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 Xe),this.L=this.aa=0,this.gd=s([4,2],Te),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 qt(d,g){return 0>d?0:d>g?g:d}function tr(){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 nr(){var d=new vt;return d!=null&&(d.a=0,d.sc="OK",d.cb=0,d.Xb=0,go||(go=pr)),d}function Kt(d,g,y){return d.a==0&&(d.a=g,d.sc=y,d.cb=0),0}function Gt(d,g,y){return 3<=y&&d[g+0]==157&&d[g+1]==1&&d[g+2]==42}function Rt(d,g){if(d==null)return 0;if(d.a=0,d.sc="OK",g==null)return Kt(d,2,"null VP8Io passed to VP8GetHeaders()");var y=g.data,C=g.w,D=g.ha;if(4>D)return Kt(d,7,"Truncated header.");var _=y[C+0]|y[C+1]<<8|y[C+2]<<16,V=d.Od;if(V.Rb=!(1&_),V.td=_>>1&7,V.yd=_>>4&1,V.ub=_>>5,3<V.td)return Kt(d,3,"Incorrect keyframe parameters.");if(!V.yd)return Kt(d,4,"Frame not displayable.");C+=3,D-=3;var Y=d.Kc;if(V.Rb){if(7>D)return Kt(d,7,"cannot parse picture header");if(!Gt(y,C,D))return Kt(d,3,"Bad code word");Y.c=16383&(y[C+4]<<8|y[C+3]),Y.Td=y[C+4]>>6,Y.i=16383&(y[C+6]<<8|y[C+5]),Y.Ud=y[C+6]>>6,C+=7,D-=7,d.za=Y.c+15>>4,d.Ub=Y.i+15>>4,g.width=Y.c,g.height=Y.i,g.Da=0,g.j=0,g.v=0,g.va=g.width,g.o=g.height,g.da=0,g.ib=g.width,g.hb=g.height,g.U=g.width,g.T=g.height,n((_=d.Pa).jb,0,255,_.jb.length),t((_=d.Qa)!=null),_.Cb=0,_.Bb=0,_.Fb=1,n(_.Zb,0,0,_.Zb.length),n(_.Lb,0,0,_.Lb)}if(V.ub>D)return Kt(d,7,"bad partition length");le(_=d.m,y,C,V.ub),C+=V.ub,D-=V.ub,V.Rb&&(Y.Ld=ce(_),Y.Kd=ce(_)),Y=d.Qa;var J,ae=d.Pa;if(t(_!=null),t(Y!=null),Y.Cb=ce(_),Y.Cb){if(Y.Bb=ce(_),ce(_)){for(Y.Fb=ce(_),J=0;4>J;++J)Y.Zb[J]=ce(_)?ee(_,7):0;for(J=0;4>J;++J)Y.Lb[J]=ce(_)?ee(_,6):0}if(Y.Bb)for(J=0;3>J;++J)ae.jb[J]=ce(_)?Z(_,8):255}else Y.Bb=0;if(_.Ka)return Kt(d,3,"cannot parse segment header");if((Y=d.ed).zd=ce(_),Y.Tb=Z(_,6),Y.wb=Z(_,3),Y.Pc=ce(_),Y.Pc&&ce(_)){for(ae=0;4>ae;++ae)ce(_)&&(Y.vd[ae]=ee(_,6));for(ae=0;4>ae;++ae)ce(_)&&(Y.od[ae]=ee(_,6))}if(d.L=Y.Tb==0?0:Y.zd?1:2,_.Ka)return Kt(d,3,"cannot parse filter header");var be=D;if(D=J=C,C=J+be,Y=be,d.Xb=(1<<Z(d.m,2))-1,be<3*(ae=d.Xb))y=7;else{for(J+=3*ae,Y-=3*ae,be=0;be<ae;++be){var Me=y[D+0]|y[D+1]<<8|y[D+2]<<16;Me>Y&&(Me=Y),le(d.Jc[+be],y,J,Me),J+=Me,Y-=Me,D+=3}le(d.Jc[+ae],y,J,Y),y=J<C?0:5}if(y!=0)return Kt(d,y,"cannot parse partitions");for(y=Z(J=d.m,7),D=ce(J)?ee(J,4):0,C=ce(J)?ee(J,4):0,Y=ce(J)?ee(J,4):0,ae=ce(J)?ee(J,4):0,J=ce(J)?ee(J,4):0,be=d.Qa,Me=0;4>Me;++Me){if(be.Cb){var ie=be.Zb[Me];be.Fb||(ie+=y)}else{if(0<Me){d.pb[Me]=d.pb[0];continue}ie=y}var ke=d.pb[Me];ke.Sc[0]=Eu[qt(ie+D,127)],ke.Sc[1]=Fu[qt(ie+0,127)],ke.Eb[0]=2*Eu[qt(ie+C,127)],ke.Eb[1]=101581*Fu[qt(ie+Y,127)]>>16,8>ke.Eb[1]&&(ke.Eb[1]=8),ke.Qc[0]=Eu[qt(ie+ae,117)],ke.Qc[1]=Fu[qt(ie+J,127)],ke.lc=ie+J}if(!V.Rb)return Kt(d,4,"Not a key frame.");for(ce(_),V=d.Pa,y=0;4>y;++y){for(D=0;8>D;++D)for(C=0;3>C;++C)for(Y=0;11>Y;++Y)ae=Fe(_,XC[y][D][C][Y])?Z(_,8):zC[y][D][C][Y],V.Wc[y][D].Yb[C][Y]=ae;for(D=0;17>D;++D)V.Xc[y][D]=V.Wc[y][JC[D]]}return d.kc=ce(_),d.kc&&(d.Bd=Z(_,8)),d.cb=1}function pr(d,g,y,C,D,_,V){var Y=g[D].Yb[y];for(y=0;16>D;++D){if(!Fe(d,Y[y+0]))return D;for(;!Fe(d,Y[y+1]);)if(Y=g[++D].Yb[0],y=0,D==16)return 16;var J=g[D+1].Yb;if(Fe(d,Y[y+2])){var ae=d,be=0;if(Fe(ae,(ie=Y)[(Me=y)+3]))if(Fe(ae,ie[Me+6])){for(Y=0,Me=2*(be=Fe(ae,ie[Me+8]))+(ie=Fe(ae,ie[Me+9+be])),be=0,ie=GC[Me];ie[Y];++Y)be+=be+Fe(ae,ie[Y]);be+=3+(8<<Me)}else Fe(ae,ie[Me+7])?(be=7+2*Fe(ae,165),be+=Fe(ae,145)):be=5+Fe(ae,159);else be=Fe(ae,ie[Me+4])?3+Fe(ae,ie[Me+5]):2;Y=J[2]}else be=1,Y=J[1];J=V+YC[D],0>(ae=d).b&&fe(ae);var Me,ie=ae.b,ke=(Me=ae.Ca>>1)-(ae.I>>ie)>>31;--ae.b,ae.Ca+=ke,ae.Ca|=1,ae.I-=(Me+1&ke)<<ie,_[J]=((be^ke)-ke)*C[(0<D)+0]}return 16}function dr(d){var g=d.rb[d.sb-1];g.la=0,g.Na=0,n(d.zc,0,0,d.zc.length),d.ja=0}function yr(d,g,y,C,D){D=d[g+y+32*C]+(D>>3),d[g+y+32*C]=-256&D?0>D?0:255:D}function $t(d,g,y,C,D,_){yr(d,g,0,y,C+D),yr(d,g,1,y,C+_),yr(d,g,2,y,C-_),yr(d,g,3,y,C-D)}function RA(d){return(20091*d>>16)+d}function cn(d,g,y,C){var D,_=0,V=a(16);for(D=0;4>D;++D){var Y=d[g+0]+d[g+8],J=d[g+0]-d[g+8],ae=(35468*d[g+4]>>16)-RA(d[g+12]),be=RA(d[g+4])+(35468*d[g+12]>>16);V[_+0]=Y+be,V[_+1]=J+ae,V[_+2]=J-ae,V[_+3]=Y-be,_+=4,g++}for(D=_=0;4>D;++D)Y=(d=V[_+0]+4)+V[_+8],J=d-V[_+8],ae=(35468*V[_+4]>>16)-RA(V[_+12]),yr(y,C,0,0,Y+(be=RA(V[_+4])+(35468*V[_+12]>>16))),yr(y,C,1,0,J+ae),yr(y,C,2,0,J-ae),yr(y,C,3,0,Y-be),_++,C+=32}function Ln(d,g,y,C){var D=d[g+0]+4,_=35468*d[g+4]>>16,V=RA(d[g+4]),Y=35468*d[g+1]>>16;$t(y,C,0,D+V,d=RA(d[g+1]),Y),$t(y,C,1,D+_,d,Y),$t(y,C,2,D-_,d,Y),$t(y,C,3,D-V,d,Y)}function bn(d,g,y,C,D){cn(d,g,y,C),D&&cn(d,g+16,y,C+4)}function Qr(d,g,y,C){Zi(d,g+0,y,C,1),Zi(d,g+32,y,C+128,1)}function ur(d,g,y,C){var D;for(d=d[g+0]+4,D=0;4>D;++D)for(g=0;4>g;++g)yr(y,C,g,D,d)}function Kr(d,g,y,C){d[g+0]&&Nr(d,g+0,y,C),d[g+16]&&Nr(d,g+16,y,C+4),d[g+32]&&Nr(d,g+32,y,C+128),d[g+48]&&Nr(d,g+48,y,C+128+4)}function Lr(d,g,y,C){var D,_=a(16);for(D=0;4>D;++D){var V=d[g+0+D]+d[g+12+D],Y=d[g+4+D]+d[g+8+D],J=d[g+4+D]-d[g+8+D],ae=d[g+0+D]-d[g+12+D];_[0+D]=V+Y,_[8+D]=V-Y,_[4+D]=ae+J,_[12+D]=ae-J}for(D=0;4>D;++D)V=(d=_[0+4*D]+3)+_[3+4*D],Y=_[1+4*D]+_[2+4*D],J=_[1+4*D]-_[2+4*D],ae=d-_[3+4*D],y[C+0]=V+Y>>3,y[C+16]=ae+J>>3,y[C+32]=V-Y>>3,y[C+48]=ae-J>>3,C+=64}function $r(d,g,y){var C,D=g-32,_=jn,V=255-d[D-1];for(C=0;C<y;++C){var Y,J=_,ae=V+d[g-1];for(Y=0;Y<y;++Y)d[g+Y]=J[ae+d[D+Y]];g+=32}}function XA(d,g){$r(d,g,4)}function ta(d,g){$r(d,g,8)}function Vn(d,g){$r(d,g,16)}function un(d,g){var y;for(y=0;16>y;++y)r(d,g+32*y,d,g-32,16)}function ra(d,g){var y;for(y=16;0<y;--y)n(d,g,d[g-1],16),g+=32}function kA(d,g,y){var C;for(C=0;16>C;++C)n(g,y+32*C,d,16)}function fn(d,g){var y,C=16;for(y=0;16>y;++y)C+=d[g-1+32*y]+d[g+y-32];kA(C>>5,d,g)}function mA(d,g){var y,C=8;for(y=0;16>y;++y)C+=d[g-1+32*y];kA(C>>4,d,g)}function dn(d,g){var y,C=8;for(y=0;16>y;++y)C+=d[g+y-32];kA(C>>4,d,g)}function Cs(d,g){kA(128,d,g)}function Zt(d,g,y){return d+2*g+y+2>>2}function so(d,g){var y,C=g-32;for(C=new Uint8Array([Zt(d[C-1],d[C+0],d[C+1]),Zt(d[C+0],d[C+1],d[C+2]),Zt(d[C+1],d[C+2],d[C+3]),Zt(d[C+2],d[C+3],d[C+4])]),y=0;4>y;++y)r(d,g+32*y,C,0,C.length)}function Es(d,g){var y=d[g-1],C=d[g-1+32],D=d[g-1+64],_=d[g-1+96];Pe(d,g+0,16843009*Zt(d[g-1-32],y,C)),Pe(d,g+32,16843009*Zt(y,C,D)),Pe(d,g+64,16843009*Zt(C,D,_)),Pe(d,g+96,16843009*Zt(D,_,_))}function Fs(d,g){var y,C=4;for(y=0;4>y;++y)C+=d[g+y-32]+d[g-1+32*y];for(C>>=3,y=0;4>y;++y)n(d,g+32*y,C,4)}function va(d,g){var y=d[g-1+0],C=d[g-1+32],D=d[g-1+64],_=d[g-1-32],V=d[g+0-32],Y=d[g+1-32],J=d[g+2-32],ae=d[g+3-32];d[g+0+96]=Zt(C,D,d[g-1+96]),d[g+1+96]=d[g+0+64]=Zt(y,C,D),d[g+2+96]=d[g+1+64]=d[g+0+32]=Zt(_,y,C),d[g+3+96]=d[g+2+64]=d[g+1+32]=d[g+0+0]=Zt(V,_,y),d[g+3+64]=d[g+2+32]=d[g+1+0]=Zt(Y,V,_),d[g+3+32]=d[g+2+0]=Zt(J,Y,V),d[g+3+0]=Zt(ae,J,Y)}function JA(d,g){var y=d[g+1-32],C=d[g+2-32],D=d[g+3-32],_=d[g+4-32],V=d[g+5-32],Y=d[g+6-32],J=d[g+7-32];d[g+0+0]=Zt(d[g+0-32],y,C),d[g+1+0]=d[g+0+32]=Zt(y,C,D),d[g+2+0]=d[g+1+32]=d[g+0+64]=Zt(C,D,_),d[g+3+0]=d[g+2+32]=d[g+1+64]=d[g+0+96]=Zt(D,_,V),d[g+3+32]=d[g+2+64]=d[g+1+96]=Zt(_,V,Y),d[g+3+64]=d[g+2+96]=Zt(V,Y,J),d[g+3+96]=Zt(Y,J,J)}function zi(d,g){var y=d[g-1+0],C=d[g-1+32],D=d[g-1+64],_=d[g-1-32],V=d[g+0-32],Y=d[g+1-32],J=d[g+2-32],ae=d[g+3-32];d[g+0+0]=d[g+1+64]=_+V+1>>1,d[g+1+0]=d[g+2+64]=V+Y+1>>1,d[g+2+0]=d[g+3+64]=Y+J+1>>1,d[g+3+0]=J+ae+1>>1,d[g+0+96]=Zt(D,C,y),d[g+0+64]=Zt(C,y,_),d[g+0+32]=d[g+1+96]=Zt(y,_,V),d[g+1+32]=d[g+2+96]=Zt(_,V,Y),d[g+2+32]=d[g+3+96]=Zt(V,Y,J),d[g+3+32]=Zt(Y,J,ae)}function ks(d,g){var y=d[g+0-32],C=d[g+1-32],D=d[g+2-32],_=d[g+3-32],V=d[g+4-32],Y=d[g+5-32],J=d[g+6-32],ae=d[g+7-32];d[g+0+0]=y+C+1>>1,d[g+1+0]=d[g+0+64]=C+D+1>>1,d[g+2+0]=d[g+1+64]=D+_+1>>1,d[g+3+0]=d[g+2+64]=_+V+1>>1,d[g+0+32]=Zt(y,C,D),d[g+1+32]=d[g+0+96]=Zt(C,D,_),d[g+2+32]=d[g+1+96]=Zt(D,_,V),d[g+3+32]=d[g+2+96]=Zt(_,V,Y),d[g+3+64]=Zt(V,Y,J),d[g+3+96]=Zt(Y,J,ae)}function _a(d,g){var y=d[g-1+0],C=d[g-1+32],D=d[g-1+64],_=d[g-1+96];d[g+0+0]=y+C+1>>1,d[g+2+0]=d[g+0+32]=C+D+1>>1,d[g+2+32]=d[g+0+64]=D+_+1>>1,d[g+1+0]=Zt(y,C,D),d[g+3+0]=d[g+1+32]=Zt(C,D,_),d[g+3+32]=d[g+1+64]=Zt(D,_,_),d[g+3+64]=d[g+2+64]=d[g+0+96]=d[g+1+96]=d[g+2+96]=d[g+3+96]=_}function pi(d,g){var y=d[g-1+0],C=d[g-1+32],D=d[g-1+64],_=d[g-1+96],V=d[g-1-32],Y=d[g+0-32],J=d[g+1-32],ae=d[g+2-32];d[g+0+0]=d[g+2+32]=y+V+1>>1,d[g+0+32]=d[g+2+64]=C+y+1>>1,d[g+0+64]=d[g+2+96]=D+C+1>>1,d[g+0+96]=_+D+1>>1,d[g+3+0]=Zt(Y,J,ae),d[g+2+0]=Zt(V,Y,J),d[g+1+0]=d[g+3+32]=Zt(y,V,Y),d[g+1+32]=d[g+3+64]=Zt(C,y,V),d[g+1+64]=d[g+3+96]=Zt(D,C,y),d[g+1+96]=Zt(_,D,C)}function or(d,g){var y;for(y=0;8>y;++y)r(d,g+32*y,d,g-32,8)}function In(d,g){var y;for(y=0;8>y;++y)n(d,g,d[g-1],8),g+=32}function ZA(d,g,y){var C;for(C=0;8>C;++C)n(g,y+32*C,d,8)}function vi(d,g){var y,C=8;for(y=0;8>y;++y)C+=d[g+y-32]+d[g-1+32*y];ZA(C>>4,d,g)}function Ma(d,g){var y,C=4;for(y=0;8>y;++y)C+=d[g+y-32];ZA(C>>3,d,g)}function $i(d,g){var y,C=4;for(y=0;8>y;++y)C+=d[g-1+32*y];ZA(C>>3,d,g)}function xs(d,g){ZA(128,d,g)}function Nn(d,g,y){var C=d[g-y],D=d[g+0],_=3*(D-C)+wu[1020+d[g-2*y]-d[g+y]],V=hl[112+(_+4>>3)];d[g-y]=jn[255+C+hl[112+(_+3>>3)]],d[g+0]=jn[255+D-V]}function Oa(d,g,y,C){var D=d[g+0],_=d[g+y];return sa[255+d[g-2*y]-d[g-y]]>C||sa[255+_-D]>C}function mi(d,g,y,C){return 4*sa[255+d[g-y]-d[g+0]]+sa[255+d[g-2*y]-d[g+y]]<=C}function wi(d,g,y,C,D){var _=d[g-3*y],V=d[g-2*y],Y=d[g-y],J=d[g+0],ae=d[g+y],be=d[g+2*y],Me=d[g+3*y];return 4*sa[255+Y-J]+sa[255+V-ae]>C?0:sa[255+d[g-4*y]-_]<=D&&sa[255+_-V]<=D&&sa[255+V-Y]<=D&&sa[255+Me-be]<=D&&sa[255+be-ae]<=D&&sa[255+ae-J]<=D}function Aa(d,g,y,C){var D=2*C+1;for(C=0;16>C;++C)mi(d,g+C,y,D)&&Nn(d,g+C,y)}function Bi(d,g,y,C){var D=2*C+1;for(C=0;16>C;++C)mi(d,g+C*y,1,D)&&Nn(d,g+C*y,1)}function Ss(d,g,y,C){var D;for(D=3;0<D;--D)Aa(d,g+=4*y,y,C)}function Ts(d,g,y,C){var D;for(D=3;0<D;--D)Bi(d,g+=4,y,C)}function ma(d,g,y,C,D,_,V,Y){for(_=2*_+1;0<D--;){if(wi(d,g,y,_,V))if(Oa(d,g,y,Y))Nn(d,g,y);else{var J=d,ae=g,be=y,Me=J[ae-2*be],ie=J[ae-be],ke=J[ae+0],Le=J[ae+be],Je=J[ae+2*be],Ne=27*(nt=wu[1020+3*(ke-ie)+wu[1020+Me-Le]])+63>>7,At=18*nt+63>>7,nt=9*nt+63>>7;J[ae-3*be]=jn[255+J[ae-3*be]+nt],J[ae-2*be]=jn[255+Me+At],J[ae-be]=jn[255+ie+Ne],J[ae+0]=jn[255+ke-Ne],J[ae+be]=jn[255+Le-At],J[ae+2*be]=jn[255+Je-nt]}g+=C}}function wa(d,g,y,C,D,_,V,Y){for(_=2*_+1;0<D--;){if(wi(d,g,y,_,V))if(Oa(d,g,y,Y))Nn(d,g,y);else{var J=d,ae=g,be=y,Me=J[ae-be],ie=J[ae+0],ke=J[ae+be],Le=hl[112+(4+(Je=3*(ie-Me))>>3)],Je=hl[112+(Je+3>>3)],Ne=Le+1>>1;J[ae-2*be]=jn[255+J[ae-2*be]+Ne],J[ae-be]=jn[255+Me+Je],J[ae+0]=jn[255+ie-Le],J[ae+be]=jn[255+ke-Ne]}g+=C}}function Us(d,g,y,C,D,_){ma(d,g,y,1,16,C,D,_)}function Kn(d,g,y,C,D,_){ma(d,g,1,y,16,C,D,_)}function Ds(d,g,y,C,D,_){var V;for(V=3;0<V;--V)wa(d,g+=4*y,y,1,16,C,D,_)}function m(d,g,y,C,D,_){var V;for(V=3;0<V;--V)wa(d,g+=4,1,y,16,C,D,_)}function U(d,g,y,C,D,_,V,Y){ma(d,g,D,1,8,_,V,Y),ma(y,C,D,1,8,_,V,Y)}function ne(d,g,y,C,D,_,V,Y){ma(d,g,1,D,8,_,V,Y),ma(y,C,1,D,8,_,V,Y)}function ve(d,g,y,C,D,_,V,Y){wa(d,g+4*D,D,1,8,_,V,Y),wa(y,C+4*D,D,1,8,_,V,Y)}function Se(d,g,y,C,D,_,V,Y){wa(d,g+4,1,D,8,_,V,Y),wa(y,C+4,1,D,8,_,V,Y)}function et(){this.ba=new _e,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new wt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function it(){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 It(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ht(){this.ua=0,this.Wa=new pe,this.vb=new pe,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new oe,this.yc=new G}function Jt(){this.xb=this.a=0,this.l=new tr,this.ca=new _e,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new I,this.Pb=0,this.wd=new I,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ht,this.ab=0,this.gc=o(4,It),this.Oc=0}function Ar(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new tr,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function mr(d,g,y,C,D,_,V){for(d=d==null?0:d[g+0],g=0;g<V;++g)D[_+g]=d+y[C+g]&255,d=D[_+g]}function rA(d,g,y,C,D,_,V){var Y;if(d==null)mr(null,null,y,C,D,_,V);else for(Y=0;Y<V;++Y)D[_+Y]=d[g+Y]+y[C+Y]&255}function H(d,g,y,C,D,_,V){if(d==null)mr(null,null,y,C,D,_,V);else{var Y,J=d[g+0],ae=J,be=J;for(Y=0;Y<V;++Y)ae=be+(J=d[g+Y])-ae,be=y[C+Y]+(-256&ae?0>ae?0:255:ae)&255,ae=J,D[_+Y]=be}}function te(d,g,y,C){var D=g.width,_=g.o;if(t(d!=null&&g!=null),0>y||0>=C||y+C>_)return null;if(!d.Cc){if(d.ga==null){var V;if(d.ga=new Ar,(V=d.ga==null)||(V=g.width*g.o,t(d.Gb.length==0),d.Gb=a(V),d.Uc=0,d.Gb==null?V=0:(d.mb=d.Gb,d.nb=d.Uc,d.rc=null,V=1),V=!V),!V){V=d.ga;var Y=d.Fa,J=d.P,ae=d.qc,be=d.mb,Me=d.nb,ie=J+1,ke=ae-1,Le=V.l;if(t(Y!=null&&be!=null&&g!=null),xi[0]=null,xi[1]=mr,xi[2]=rA,xi[3]=H,V.ca=be,V.tb=Me,V.c=g.width,V.i=g.height,t(0<V.c&&0<V.i),1>=ae)g=0;else if(V.$a=3&Y[J+0],V.Z=Y[J+0]>>2&3,V.Lc=Y[J+0]>>4&3,J=Y[J+0]>>6&3,0>V.$a||1<V.$a||4<=V.Z||1<V.Lc||J)g=0;else if(Le.put=Ft,Le.ac=Or,Le.bc=hA,Le.ma=V,Le.width=g.width,Le.height=g.height,Le.Da=g.Da,Le.v=g.v,Le.va=g.va,Le.j=g.j,Le.o=g.o,V.$a)e:{t(V.$a==1),g=ln();t:for(;;){if(g==null){g=0;break e}if(t(V!=null),V.mc=g,g.c=V.c,g.i=V.i,g.l=V.l,g.l.ma=V,g.l.width=V.c,g.l.height=V.i,g.a=0,X(g.m,Y,ie,ke),!Ct(V.c,V.i,1,g,null)||(g.ab==1&&g.gc[0].hc==3&&Br(g.s)?(V.ic=1,Y=g.c*g.i,g.Ta=null,g.Ua=0,g.V=a(Y),g.Ba=0,g.V==null?(g.a=1,g=0):g=1):(V.ic=0,g=Be(g,V.c)),!g))break t;g=1;break e}V.mc=null,g=0}else g=ke>=V.c*V.i;V=!g}if(V)return null;d.ga.Lc!=1?d.Ga=0:C=_-y}t(d.ga!=null),t(y+C<=_);e:{if(g=(Y=d.ga).c,_=Y.l.o,Y.$a==0){if(ie=d.rc,ke=d.Vc,Le=d.Fa,J=d.P+1+y*g,ae=d.mb,be=d.nb+y*g,t(J<=d.P+d.qc),Y.Z!=0)for(t(xi[Y.Z]!=null),V=0;V<C;++V)xi[Y.Z](ie,ke,Le,J,ae,be,g),ie=ae,ke=be,be+=g,J+=g;else for(V=0;V<C;++V)r(ae,be,Le,J,g),ie=ae,ke=be,be+=g,J+=g;d.rc=ie,d.Vc=ke}else{if(t(Y.mc!=null),g=y+C,t((V=Y.mc)!=null),t(g<=V.i),V.C>=g)g=1;else if(Y.ic||Ge(),Y.ic){Y=V.V,ie=V.Ba,ke=V.c;var Je=V.i,Ne=(Le=1,J=V.$/ke,ae=V.$%ke,be=V.m,Me=V.s,V.$),At=ke*Je,nt=ke*g,dt=Me.wc,ot=Ne<nt?Er(Me,ae,J):null;t(Ne<=At),t(g<=Je),t(Br(Me));t:for(;;){for(;!be.h&&Ne<nt;){if(ae&dt||(ot=Er(Me,ae,J)),t(ot!=null),he(be),256>(Je=fr(ot.G[0],ot.H[0],be)))Y[ie+Ne]=Je,++Ne,++ae>=ke&&(ae=0,++J<=g&&!(J%16)&&pA(V,J));else{if(!(280>Je)){Le=0;break t}Je=cA(Je-256,be);var jt,Nt=fr(ot.G[4],ot.H[4],be);if(he(be),!(Ne>=(Nt=xr(ke,Nt=cA(Nt,be)))&&At-Ne>=Je)){Le=0;break t}for(jt=0;jt<Je;++jt)Y[ie+Ne+jt]=Y[ie+Ne+jt-Nt];for(Ne+=Je,ae+=Je;ae>=ke;)ae-=ke,++J<=g&&!(J%16)&&pA(V,J);Ne<nt&&ae&dt&&(ot=Er(Me,ae,J))}t(be.h==z(be))}pA(V,J>g?g:J);break t}!Le||be.h&&Ne<At?(Le=0,V.a=be.h?5:3):V.$=Ne,g=Le}else g=Rr(V,V.V,V.Ba,V.c,V.i,g,$);if(!g){C=0;break e}}y+C>=_&&(d.Cc=1),C=1}if(!C)return null;if(d.Cc&&((C=d.ga)!=null&&(C.mc=null),d.ga=null,0<d.Ga))return alert("todo:WebPDequantizeLevels"),null}return d.nb+y*D}function K(d,g,y,C,D,_){for(;0<D--;){var V,Y=d,J=g+(y?1:0),ae=d,be=g+(y?0:3);for(V=0;V<C;++V){var Me=ae[be+4*V];Me!=255&&(Me*=32897,Y[J+4*V+0]=Y[J+4*V+0]*Me>>23,Y[J+4*V+1]=Y[J+4*V+1]*Me>>23,Y[J+4*V+2]=Y[J+4*V+2]*Me>>23)}g+=_}}function ue(d,g,y,C,D){for(;0<C--;){var _;for(_=0;_<y;++_){var V=d[g+2*_+0],Y=15&(ae=d[g+2*_+1]),J=4369*Y,ae=(240&ae|ae>>4)*J>>16;d[g+2*_+0]=(240&V|V>>4)*J>>16&240|(15&V|V<<4)*J>>16>>4&15,d[g+2*_+1]=240&ae|Y}g+=D}}function we(d,g,y,C,D,_,V,Y){var J,ae,be=255;for(ae=0;ae<D;++ae){for(J=0;J<C;++J){var Me=d[g+J];_[V+4*J]=Me,be&=Me}g+=y,V+=Y}return be!=255}function Ue(d,g,y,C,D){var _;for(_=0;_<D;++_)y[C+_]=d[g+_]>>8}function Ge(){ho=K,uv=ue,fv=we,dv=Ue}function We(d,g,y){L[d]=function(C,D,_,V,Y,J,ae,be,Me,ie,ke,Le,Je,Ne,At,nt,dt){var ot,jt=dt-1>>1,Nt=Y[J+0]|ae[be+0]<<16,lr=Me[ie+0]|ke[Le+0]<<16;t(C!=null);var Pt=3*Nt+lr+131074>>2;for(g(C[D+0],255&Pt,Pt>>16,Je,Ne),_!=null&&(Pt=3*lr+Nt+131074>>2,g(_[V+0],255&Pt,Pt>>16,At,nt)),ot=1;ot<=jt;++ot){var wr=Y[J+ot]|ae[be+ot]<<16,PA=Me[ie+ot]|ke[Le+ot]<<16,cr=Nt+wr+lr+PA+524296,Vt=cr+2*(wr+lr)>>3;Pt=Vt+Nt>>1,Nt=(cr=cr+2*(Nt+PA)>>3)+wr>>1,g(C[D+2*ot-1],255&Pt,Pt>>16,Je,Ne+(2*ot-1)*y),g(C[D+2*ot-0],255&Nt,Nt>>16,Je,Ne+(2*ot-0)*y),_!=null&&(Pt=cr+lr>>1,Nt=Vt+PA>>1,g(_[V+2*ot-1],255&Pt,Pt>>16,At,nt+(2*ot-1)*y),g(_[V+2*ot+0],255&Nt,Nt>>16,At,nt+(2*ot+0)*y)),Nt=wr,lr=PA}1&dt||(Pt=3*Nt+lr+131074>>2,g(C[D+dt-1],255&Pt,Pt>>16,Je,Ne+(dt-1)*y),_!=null&&(Pt=3*lr+Nt+131074>>2,g(_[V+dt-1],255&Pt,Pt>>16,At,nt+(dt-1)*y)))}}function ft(){oa[gl]=eE,oa[pl]=Ev,oa[wv]=tE,oa[vl]=Fv,oa[ml]=kv,oa[Bu]=xv,oa[Bv]=rE,oa[yu]=Ev,oa[bu]=Fv,oa[wl]=kv,oa[Cu]=xv}function kt(d){return d&-16384?0>d?0:255:d>>AE}function bt(d,g){return kt((19077*d>>8)+(26149*g>>8)-14234)}function ut(d,g,y){return kt((19077*d>>8)-(6419*g>>8)-(13320*y>>8)+8708)}function Mt(d,g){return kt((19077*d>>8)+(33050*g>>8)-17685)}function Sr(d,g,y,C,D){C[D+0]=bt(d,y),C[D+1]=ut(d,g,y),C[D+2]=Mt(d,g)}function Tr(d,g,y,C,D){C[D+0]=Mt(d,g),C[D+1]=ut(d,g,y),C[D+2]=bt(d,y)}function jA(d,g,y,C,D){var _=ut(d,g,y);g=_<<3&224|Mt(d,g)>>3,C[D+0]=248&bt(d,y)|_>>5,C[D+1]=g}function aA(d,g,y,C,D){var _=240&Mt(d,g)|15;C[D+0]=240&bt(d,y)|ut(d,g,y)>>4,C[D+1]=_}function fA(d,g,y,C,D){C[D+0]=255,Sr(d,g,y,C,D+1)}function wA(d,g,y,C,D){Tr(d,g,y,C,D),C[D+3]=255}function Hr(d,g,y,C,D){Sr(d,g,y,C,D),C[D+3]=255}function Cn(d,g,y){L[d]=function(C,D,_,V,Y,J,ae,be,Me){for(var ie=be+(-2&Me)*y;be!=ie;)g(C[D+0],_[V+0],Y[J+0],ae,be),g(C[D+1],_[V+0],Y[J+0],ae,be+y),D+=2,++V,++J,be+=2*y;1&Me&&g(C[D+0],_[V+0],Y[J+0],ae,be)}}function Xr(d,g,y){return y==0?d==0?g==0?6:5:g==0?4:0:y}function qn(d,g,y,C,D){switch(d>>>30){case 3:Zi(g,y,C,D,0);break;case 2:ia(g,y,C,D);break;case 1:Nr(g,y,C,D)}}function WA(d,g){var y,C,D=g.M,_=g.Nb,V=d.oc,Y=d.pc+40,J=d.oc,ae=d.pc+584,be=d.oc,Me=d.pc+600;for(y=0;16>y;++y)V[Y+32*y-1]=129;for(y=0;8>y;++y)J[ae+32*y-1]=129,be[Me+32*y-1]=129;for(0<D?V[Y-1-32]=J[ae-1-32]=be[Me-1-32]=129:(n(V,Y-32-1,127,21),n(J,ae-32-1,127,9),n(be,Me-32-1,127,9)),C=0;C<d.za;++C){var ie=g.ya[g.aa+C];if(0<C){for(y=-1;16>y;++y)r(V,Y+32*y-4,V,Y+32*y+12,4);for(y=-1;8>y;++y)r(J,ae+32*y-4,J,ae+32*y+4,4),r(be,Me+32*y-4,be,Me+32*y+4,4)}var ke=d.Gd,Le=d.Hd+C,Je=ie.ad,Ne=ie.Hc;if(0<D&&(r(V,Y-32,ke[Le].y,0,16),r(J,ae-32,ke[Le].f,0,8),r(be,Me-32,ke[Le].ea,0,8)),ie.Za){var At=V,nt=Y-32+16;for(0<D&&(C>=d.za-1?n(At,nt,ke[Le].y[15],4):r(At,nt,ke[Le+1].y,0,4)),y=0;4>y;y++)At[nt+128+y]=At[nt+256+y]=At[nt+384+y]=At[nt+0+y];for(y=0;16>y;++y,Ne<<=2)At=V,nt=Y+Tv[y],ya[ie.Ob[y]](At,nt),qn(Ne,Je,16*+y,At,nt)}else if(At=Xr(C,D,ie.Ob[0]),ki[At](V,Y),Ne!=0)for(y=0;16>y;++y,Ne<<=2)qn(Ne,Je,16*+y,V,Y+Tv[y]);for(y=ie.Gc,At=Xr(C,D,ie.Dd),Za[At](J,ae),Za[At](be,Me),Ne=Je,At=J,nt=ae,255&(ie=0|y)&&(170&ie?Pa(Ne,256,At,nt):Gr(Ne,256,At,nt)),ie=be,Ne=Me,255&(y>>=8)&&(170&y?Pa(Je,320,ie,Ne):Gr(Je,320,ie,Ne)),D<d.Ub-1&&(r(ke[Le].y,0,V,Y+480,16),r(ke[Le].f,0,J,ae+224,8),r(ke[Le].ea,0,be,Me+224,8)),y=8*_*d.B,ke=d.sa,Le=d.ta+16*C+16*_*d.R,Je=d.qa,ie=d.ra+8*C+y,Ne=d.Ha,At=d.Ia+8*C+y,y=0;16>y;++y)r(ke,Le+y*d.R,V,Y+32*y,16);for(y=0;8>y;++y)r(Je,ie+y*d.B,J,ae+32*y,8),r(Ne,At+y*d.B,be,Me+32*y,8)}}function na(d,g,y,C,D,_,V,Y,J){var ae=[0],be=[0],Me=0,ie=J!=null?J.kd:0,ke=J??new it;if(d==null||12>y)return 7;ke.data=d,ke.w=g,ke.ha=y,g=[g],y=[y],ke.gb=[ke.gb];e:{var Le=g,Je=y,Ne=ke.gb;if(t(d!=null),t(Je!=null),t(Ne!=null),Ne[0]=0,12<=Je[0]&&!e(d,Le[0],"RIFF")){if(e(d,Le[0]+8,"WEBP")){Ne=3;break e}var At=lt(d,Le[0]+4);if(12>At||4294967286<At){Ne=3;break e}if(ie&&At>Je[0]-8){Ne=7;break e}Ne[0]=At,Le[0]+=12,Je[0]-=12}Ne=0}if(Ne!=0)return Ne;for(At=0<ke.gb[0],y=y[0];;){e:{var nt=d;Je=g,Ne=y;var dt=ae,ot=be,jt=Le=[0];if((Pt=Me=[Me])[0]=0,8>Ne[0])Ne=7;else{if(!e(nt,Je[0],"VP8X")){if(lt(nt,Je[0]+4)!=10){Ne=3;break e}if(18>Ne[0]){Ne=7;break e}var Nt=lt(nt,Je[0]+8),lr=1+tt(nt,Je[0]+12);if(2147483648<=lr*(nt=1+tt(nt,Je[0]+15))){Ne=3;break e}jt!=null&&(jt[0]=Nt),dt!=null&&(dt[0]=lr),ot!=null&&(ot[0]=nt),Je[0]+=18,Ne[0]-=18,Pt[0]=1}Ne=0}}if(Me=Me[0],Le=Le[0],Ne!=0)return Ne;if(Je=!!(2&Le),!At&&Me)return 3;if(_!=null&&(_[0]=!!(16&Le)),V!=null&&(V[0]=Je),Y!=null&&(Y[0]=0),V=ae[0],Le=be[0],Me&&Je&&J==null){Ne=0;break}if(4>y){Ne=7;break}if(At&&Me||!At&&!Me&&!e(d,g[0],"ALPH")){y=[y],ke.na=[ke.na],ke.P=[ke.P],ke.Sa=[ke.Sa];e:{Nt=d,Ne=g,At=y;var Pt=ke.gb;dt=ke.na,ot=ke.P,jt=ke.Sa,lr=22,t(Nt!=null),t(At!=null),nt=Ne[0];var wr=At[0];for(t(dt!=null),t(jt!=null),dt[0]=null,ot[0]=null,jt[0]=0;;){if(Ne[0]=nt,At[0]=wr,8>wr){Ne=7;break e}var PA=lt(Nt,nt+4);if(4294967286<PA){Ne=3;break e}var cr=8+PA+1&-2;if(lr+=cr,0<Pt&&lr>Pt){Ne=3;break e}if(!e(Nt,nt,"VP8 ")||!e(Nt,nt,"VP8L")){Ne=0;break e}if(wr[0]<cr){Ne=7;break e}e(Nt,nt,"ALPH")||(dt[0]=Nt,ot[0]=nt+8,jt[0]=PA),nt+=cr,wr-=cr}}if(y=y[0],ke.na=ke.na[0],ke.P=ke.P[0],ke.Sa=ke.Sa[0],Ne!=0)break}y=[y],ke.Ja=[ke.Ja],ke.xa=[ke.xa];e:if(Pt=d,Ne=g,At=y,dt=ke.gb[0],ot=ke.Ja,jt=ke.xa,Nt=Ne[0],nt=!e(Pt,Nt,"VP8 "),lr=!e(Pt,Nt,"VP8L"),t(Pt!=null),t(At!=null),t(ot!=null),t(jt!=null),8>At[0])Ne=7;else{if(nt||lr){if(Pt=lt(Pt,Nt+4),12<=dt&&Pt>dt-12){Ne=3;break e}if(ie&&Pt>At[0]-8){Ne=7;break e}ot[0]=Pt,Ne[0]+=8,At[0]-=8,jt[0]=lr}else jt[0]=5<=At[0]&&Pt[Nt+0]==47&&!(Pt[Nt+4]>>5),ot[0]=At[0];Ne=0}if(y=y[0],ke.Ja=ke.Ja[0],ke.xa=ke.xa[0],g=g[0],Ne!=0)break;if(4294967286<ke.Ja)return 3;if(Y==null||Je||(Y[0]=ke.xa?2:1),V=[V],Le=[Le],ke.xa){if(5>y){Ne=7;break}Y=V,ie=Le,Je=_,d==null||5>y?d=0:5<=y&&d[g+0]==47&&!(d[g+4]>>5)?(At=[0],Pt=[0],dt=[0],X(ot=new I,d,g,y),lA(ot,At,Pt,dt)?(Y!=null&&(Y[0]=At[0]),ie!=null&&(ie[0]=Pt[0]),Je!=null&&(Je[0]=dt[0]),d=1):d=0):d=0}else{if(10>y){Ne=7;break}Y=Le,d==null||10>y||!Gt(d,g+3,y-3)?d=0:(ie=d[g+0]|d[g+1]<<8|d[g+2]<<16,Je=16383&(d[g+7]<<8|d[g+6]),d=16383&(d[g+9]<<8|d[g+8]),1&ie||3<(ie>>1&7)||!(ie>>4&1)||ie>>5>=ke.Ja||!Je||!d?d=0:(V&&(V[0]=Je),Y&&(Y[0]=d),d=1))}if(!d||(V=V[0],Le=Le[0],Me&&(ae[0]!=V||be[0]!=Le)))return 3;J!=null&&(J[0]=ke,J.offset=g-J.w,t(4294967286>g-J.w),t(J.offset==J.ha-y));break}return Ne==0||Ne==7&&Me&&J==null?(_!=null&&(_[0]|=ke.na!=null&&0<ke.na.length),C!=null&&(C[0]=V),D!=null&&(D[0]=Le),0):Ne}function Xi(d,g,y){var C=g.width,D=g.height,_=0,V=0,Y=C,J=D;if(g.Da=d!=null&&0<d.Da,g.Da&&(Y=d.cd,J=d.bd,_=d.v,V=d.j,11>y||(_&=-2,V&=-2),0>_||0>V||0>=Y||0>=J||_+Y>C||V+J>D))return 0;if(g.v=_,g.j=V,g.va=_+Y,g.o=V+J,g.U=Y,g.T=J,g.da=d!=null&&0<d.da,g.da){if(!ge(Y,J,y=[d.ib],_=[d.hb]))return 0;g.ib=y[0],g.hb=_[0]}return g.ob=d!=null&&d.ob,g.Kb=d==null||!d.Sd,g.da&&(g.ob=g.ib<3*C/4&&g.hb<3*D/4,g.Kb=0),1}function Xa(d){if(d==null)return 2;if(11>d.S){var g=d.f.RGBA;g.fb+=(d.height-1)*g.A,g.A=-g.A}else g=d.f.kb,d=d.height,g.O+=(d-1)*g.fa,g.fa=-g.fa,g.N+=(d-1>>1)*g.Ab,g.Ab=-g.Ab,g.W+=(d-1>>1)*g.Db,g.Db=-g.Db,g.F!=null&&(g.J+=(d-1)*g.lb,g.lb=-g.lb);return 0}function qr(d,g,y,C){if(C==null||0>=d||0>=g)return 2;if(y!=null){if(y.Da){var D=y.cd,_=y.bd,V=-2&y.v,Y=-2&y.j;if(0>V||0>Y||0>=D||0>=_||V+D>d||Y+_>g)return 2;d=D,g=_}if(y.da){if(!ge(d,g,D=[y.ib],_=[y.hb]))return 2;d=D[0],g=_[0]}}C.width=d,C.height=g;e:{var J=C.width,ae=C.height;if(d=C.S,0>=J||0>=ae||!(d>=gl&&13>d))d=2;else{if(0>=C.Rd&&C.sd==null){V=_=D=g=0;var be=(Y=J*Uv[d])*ae;if(11>d||(_=(ae+1)/2*(g=(J+1)/2),d==12&&(V=(D=J)*ae)),(ae=a(be+2*_+V))==null){d=1;break e}C.sd=ae,11>d?((J=C.f.RGBA).eb=ae,J.fb=0,J.A=Y,J.size=be):((J=C.f.kb).y=ae,J.O=0,J.fa=Y,J.Fd=be,J.f=ae,J.N=0+be,J.Ab=g,J.Cd=_,J.ea=ae,J.W=0+be+_,J.Db=g,J.Ed=_,d==12&&(J.F=ae,J.J=0+be+2*_),J.Tc=V,J.lb=D)}if(g=1,D=C.S,_=C.width,V=C.height,D>=gl&&13>D)if(11>D)d=C.f.RGBA,g&=(Y=Math.abs(d.A))*(V-1)+_<=d.size,g&=Y>=_*Uv[D],g&=d.eb!=null;else{d=C.f.kb,Y=(_+1)/2,be=(V+1)/2,J=Math.abs(d.fa),ae=Math.abs(d.Ab);var Me=Math.abs(d.Db),ie=Math.abs(d.lb),ke=ie*(V-1)+_;g&=J*(V-1)+_<=d.Fd,g&=ae*(be-1)+Y<=d.Cd,g=(g&=Me*(be-1)+Y<=d.Ed)&J>=_&ae>=Y&Me>=Y,g&=d.y!=null,g&=d.f!=null,g&=d.ea!=null,D==12&&(g&=ie>=_,g&=ke<=d.Tc,g&=d.F!=null)}else g=0;d=g?0:2}}return d!=0||y!=null&&y.fd&&(d=Xa(C)),d}var Ir=64,Ur=[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],jr=24,en=32,GA=8,Ba=[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];Qe("Predictor0","PredictorAdd0"),L.Predictor0=function(){return 4278190080},L.Predictor1=function(d){return d},L.Predictor2=function(d,g,y){return g[y+0]},L.Predictor3=function(d,g,y){return g[y+1]},L.Predictor4=function(d,g,y){return g[y-1]},L.Predictor5=function(d,g,y){return Ve(Ve(d,g[y+1]),g[y+0])},L.Predictor6=function(d,g,y){return Ve(d,g[y-1])},L.Predictor7=function(d,g,y){return Ve(d,g[y+0])},L.Predictor8=function(d,g,y){return Ve(g[y-1],g[y+0])},L.Predictor9=function(d,g,y){return Ve(g[y+0],g[y+1])},L.Predictor10=function(d,g,y){return Ve(Ve(d,g[y-1]),Ve(g[y+0],g[y+1]))},L.Predictor11=function(d,g,y){var C=g[y+0];return 0>=at(C>>24&255,d>>24&255,(g=g[y-1])>>24&255)+at(C>>16&255,d>>16&255,g>>16&255)+at(C>>8&255,d>>8&255,g>>8&255)+at(255&C,255&d,255&g)?C:d},L.Predictor12=function(d,g,y){var C=g[y+0];return(Re((d>>24&255)+(C>>24&255)-((g=g[y-1])>>24&255))<<24|Re((d>>16&255)+(C>>16&255)-(g>>16&255))<<16|Re((d>>8&255)+(C>>8&255)-(g>>8&255))<<8|Re((255&d)+(255&C)-(255&g)))>>>0},L.Predictor13=function(d,g,y){var C=g[y-1];return($e((d=Ve(d,g[y+0]))>>24&255,C>>24&255)<<24|$e(d>>16&255,C>>16&255)<<16|$e(d>>8&255,C>>8&255)<<8|$e(255&d,255&C))>>>0};var yi=L.PredictorAdd0;L.PredictorAdd1=gt,Qe("Predictor2","PredictorAdd2"),Qe("Predictor3","PredictorAdd3"),Qe("Predictor4","PredictorAdd4"),Qe("Predictor5","PredictorAdd5"),Qe("Predictor6","PredictorAdd6"),Qe("Predictor7","PredictorAdd7"),Qe("Predictor8","PredictorAdd8"),Qe("Predictor9","PredictorAdd9"),Qe("Predictor10","PredictorAdd10"),Qe("Predictor11","PredictorAdd11"),Qe("Predictor12","PredictorAdd12"),Qe("Predictor13","PredictorAdd13");var Ra=L.PredictorAdd2;pt("ColorIndexInverseTransform","MapARGB","32b",function(d){return d>>8&255},function(d){return d}),pt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(d){return d},function(d){return d>>8&255});var dA,Qs=L.ColorIndexInverseTransform,aa=L.MapARGB,Ha=L.VP8LColorIndexInverseTransformAlpha,oo=L.MapAlpha,lo=L.VP8LPredictorsAdd=[];lo.length=16,(L.VP8LPredictors=[]).length=16,(L.VP8LPredictorsAdd_C=[]).length=16,(L.VP8LPredictors_C=[]).length=16;var co,uo,bi,Ci,Ei,Ji,Fi,Zi,ia,Pa,Nr,Gr,xA,HA,Ja,fo,Ls,dl,av,iv,sv,ov,lv,cv,ho,uv,fv,dv,hv=a(511),gv=a(2041),pv=a(225),vv=a(767),mv=0,wu=gv,hl=pv,jn=vv,sa=hv,gl=0,pl=1,wv=2,vl=3,ml=4,Bu=5,Bv=6,yu=7,bu=8,wl=9,Cu=10,HC=[2,3,7],PC=[3,3,11],yv=[280,256,256,256,40],VC=[0,1,1,1,0],KC=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],qC=[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],jC=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],WC=8,Eu=[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],Fu=[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],go=null,GC=[[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]],YC=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],bv=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],zC=[[[[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]]]],$C=[[[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]]],XC=[[[[255,255,255,255,255,255,255,255,255,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]]]],JC=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ki=[],ya=[],Za=[],ZC=1,Cv=2,xi=[],oa=[];We("UpsampleRgbLinePair",Sr,3),We("UpsampleBgrLinePair",Tr,3),We("UpsampleRgbaLinePair",Hr,4),We("UpsampleBgraLinePair",wA,4),We("UpsampleArgbLinePair",fA,4),We("UpsampleRgba4444LinePair",aA,2),We("UpsampleRgb565LinePair",jA,2);var eE=L.UpsampleRgbLinePair,tE=L.UpsampleBgrLinePair,Ev=L.UpsampleRgbaLinePair,Fv=L.UpsampleBgraLinePair,kv=L.UpsampleArgbLinePair,xv=L.UpsampleRgba4444LinePair,rE=L.UpsampleRgb565LinePair,Bl=16,yl=1<<Bl-1,po=-227,ku=482,AE=6,Sv=0,nE=a(256),aE=a(256),iE=a(256),sE=a(256),oE=a(ku-po),lE=a(ku-po);Cn("YuvToRgbRow",Sr,3),Cn("YuvToBgrRow",Tr,3),Cn("YuvToRgbaRow",Hr,4),Cn("YuvToBgraRow",wA,4),Cn("YuvToArgbRow",fA,4),Cn("YuvToRgba4444Row",aA,2),Cn("YuvToRgb565Row",jA,2);var Tv=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],bl=[0,2,8],cE=[8,7,6,4,4,2,2,2,1,1,1,1],uE=1;this.WebPDecodeRGBA=function(d,g,y,C,D){var _=pl,V=new et,Y=new _e;V.ba=Y,Y.S=_,Y.width=[Y.width],Y.height=[Y.height];var J=Y.width,ae=Y.height,be=new je;if(be==null||d==null)var Me=2;else t(be!=null),Me=na(d,g,y,be.width,be.height,be.Pd,be.Qd,be.format,null);if(Me!=0?J=0:(J!=null&&(J[0]=be.width[0]),ae!=null&&(ae[0]=be.height[0]),J=1),J){Y.width=Y.width[0],Y.height=Y.height[0],C!=null&&(C[0]=Y.width),D!=null&&(D[0]=Y.height);e:{if(C=new tr,(D=new it).data=d,D.w=g,D.ha=y,D.kd=1,g=[0],t(D!=null),((d=na(D.data,D.w,D.ha,null,null,null,g,null,D))==0||d==7)&&g[0]&&(d=4),(g=d)==0){if(t(V!=null),C.data=D.data,C.w=D.w+D.offset,C.ha=D.ha-D.offset,C.put=Ft,C.ac=Or,C.bc=hA,C.ma=V,D.xa){if((d=ln())==null){V=1;break e}if((function(ie,ke){var Le=[0],Je=[0],Ne=[0];t:for(;;){if(ie==null)return 0;if(ke==null)return ie.a=2,0;if(ie.l=ke,ie.a=0,X(ie.m,ke.data,ke.w,ke.ha),!lA(ie.m,Le,Je,Ne)){ie.a=3;break t}if(ie.xb=Cv,ke.width=Le[0],ke.height=Je[0],!Ct(Le[0],Je[0],1,ie,null))break t;return 1}return t(ie.a!=0),0})(d,C)){if(C=(g=qr(C.width,C.height,V.Oa,V.ba))==0){t:{C=d;r:for(;;){if(C==null){C=0;break t}if(t(C.s.yc!=null),t(C.s.Ya!=null),t(0<C.s.Wb),t((y=C.l)!=null),t((D=y.ma)!=null),C.xb!=0){if(C.ca=D.ba,C.tb=D.tb,t(C.ca!=null),!Xi(D.Oa,y,vl)){C.a=2;break r}if(!Be(C,y.width)||y.da)break r;if((y.da||St(C.ca.S))&&Ge(),11>C.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),C.ca.f.kb.F!=null&&Ge()),C.Pb&&0<C.s.ua&&C.s.vb.X==null&&!Q(C.s.vb,C.s.Wa.Xa)){C.a=1;break r}C.xb=0}if(!Rr(C,C.V,C.Ba,C.c,C.i,y.o,uA))break r;D.Dc=C.Ma,C=1;break t}t(C.a!=0),C=0}C=!C}C&&(g=d.a)}else g=d.a}else{if((d=new nr)==null){V=1;break e}if(d.Fa=D.na,d.P=D.P,d.qc=D.Sa,Rt(d,C)){if((g=qr(C.width,C.height,V.Oa,V.ba))==0){if(d.Aa=0,y=V.Oa,t((D=d)!=null),y!=null){if(0<(J=0>(J=y.Md)?0:100<J?255:255*J/100)){for(ae=be=0;4>ae;++ae)12>(Me=D.pb[ae]).lc&&(Me.ia=J*cE[0>Me.lc?0:Me.lc]>>3),be|=Me.ia;be&&(alert("todo:VP8InitRandom"),D.ia=1)}D.Ga=y.Id,100<D.Ga?D.Ga=100:0>D.Ga&&(D.Ga=0)}(function(ie,ke){if(ie==null)return 0;if(ke==null)return Kt(ie,2,"NULL VP8Io parameter in VP8Decode().");if(!ie.cb&&!Rt(ie,ke))return 0;if(t(ie.cb),ke.ac==null||ke.ac(ke)){ke.ob&&(ie.L=0);var Le=bl[ie.L];if(ie.L==2?(ie.yb=0,ie.zb=0):(ie.yb=ke.v-Le>>4,ie.zb=ke.j-Le>>4,0>ie.yb&&(ie.yb=0),0>ie.zb&&(ie.zb=0)),ie.Va=ke.o+15+Le>>4,ie.Hb=ke.va+15+Le>>4,ie.Hb>ie.za&&(ie.Hb=ie.za),ie.Va>ie.Ub&&(ie.Va=ie.Ub),0<ie.L){var Je=ie.ed;for(Le=0;4>Le;++Le){var Ne;if(ie.Qa.Cb){var At=ie.Qa.Lb[Le];ie.Qa.Fb||(At+=Je.Tb)}else At=Je.Tb;for(Ne=0;1>=Ne;++Ne){var nt=ie.gd[Le][Ne],dt=At;if(Je.Pc&&(dt+=Je.vd[0],Ne&&(dt+=Je.od[0])),0<(dt=0>dt?0:63<dt?63:dt)){var ot=dt;0<Je.wb&&(ot=4<Je.wb?ot>>2:ot>>1)>9-Je.wb&&(ot=9-Je.wb),1>ot&&(ot=1),nt.dd=ot,nt.tc=2*dt+ot,nt.ld=40<=dt?2:15<=dt?1:0}else nt.tc=0;nt.La=Ne}}}Le=0}else Kt(ie,6,"Frame setup failed"),Le=ie.a;if(Le=Le==0){if(Le){ie.$c=0,0<ie.Aa||(ie.Ic=uE);t:{Le=ie.Ic,Je=4*(ot=ie.za);var jt=32*ot,Nt=ot+1,lr=0<ie.L?ot*(0<ie.Aa?2:1):0,Pt=(ie.Aa==2?2:1)*ot;if((nt=Je+832+(Ne=3*(16*Le+bl[ie.L])/2*jt)+(At=ie.Fa!=null&&0<ie.Fa.length?ie.Kc.c*ie.Kc.i:0))!=nt)Le=0;else{if(nt>ie.Vb){if(ie.Vb=0,ie.Ec=a(nt),ie.Fc=0,ie.Ec==null){Le=Kt(ie,1,"no memory during frame initialization.");break t}ie.Vb=nt}nt=ie.Ec,dt=ie.Fc,ie.Ac=nt,ie.Bc=dt,dt+=Je,ie.Gd=o(jt,st),ie.Hd=0,ie.rb=o(Nt+1,ze),ie.sb=1,ie.wa=lr?o(lr,Te):null,ie.Y=0,ie.D.Nb=0,ie.D.wa=ie.wa,ie.D.Y=ie.Y,0<ie.Aa&&(ie.D.Y+=ot),t(!0),ie.oc=nt,ie.pc=dt,dt+=832,ie.ya=o(Pt,Xe),ie.aa=0,ie.D.ya=ie.ya,ie.D.aa=ie.aa,ie.Aa==2&&(ie.D.aa+=ot),ie.R=16*ot,ie.B=8*ot,ot=(jt=bl[ie.L])*ie.R,jt=jt/2*ie.B,ie.sa=nt,ie.ta=dt+ot,ie.qa=ie.sa,ie.ra=ie.ta+16*Le*ie.R+jt,ie.Ha=ie.qa,ie.Ia=ie.ra+8*Le*ie.B+jt,ie.$c=0,dt+=Ne,ie.mb=At?nt:null,ie.nb=At?dt:null,t(dt+At<=ie.Fc+ie.Vb),dr(ie),n(ie.Ac,ie.Bc,0,Je),Le=1}}if(Le){if(ke.ka=0,ke.y=ie.sa,ke.O=ie.ta,ke.f=ie.qa,ke.N=ie.ra,ke.ea=ie.Ha,ke.Vd=ie.Ia,ke.fa=ie.R,ke.Rc=ie.B,ke.F=null,ke.J=0,!mv){for(Le=-255;255>=Le;++Le)hv[255+Le]=0>Le?-Le:Le;for(Le=-1020;1020>=Le;++Le)gv[1020+Le]=-128>Le?-128:127<Le?127:Le;for(Le=-112;112>=Le;++Le)pv[112+Le]=-16>Le?-16:15<Le?15:Le;for(Le=-255;510>=Le;++Le)vv[255+Le]=0>Le?0:255<Le?255:Le;mv=1}Fi=Lr,Zi=bn,Pa=Qr,Nr=ur,Gr=Kr,ia=Ln,xA=Us,HA=Kn,Ja=U,fo=ne,Ls=Ds,dl=m,av=ve,iv=Se,sv=Aa,ov=Bi,lv=Ss,cv=Ts,ya[0]=Fs,ya[1]=XA,ya[2]=so,ya[3]=Es,ya[4]=va,ya[5]=zi,ya[6]=JA,ya[7]=ks,ya[8]=pi,ya[9]=_a,ki[0]=fn,ki[1]=Vn,ki[2]=un,ki[3]=ra,ki[4]=mA,ki[5]=dn,ki[6]=Cs,Za[0]=vi,Za[1]=ta,Za[2]=or,Za[3]=In,Za[4]=$i,Za[5]=Ma,Za[6]=xs,Le=1}else Le=0}Le&&(Le=(function(wr,PA){for(wr.M=0;wr.M<wr.Va;++wr.M){var cr,Vt=wr.Jc[wr.M&wr.Xb],yt=wr.m,SA=wr;for(cr=0;cr<SA.za;++cr){var ir=yt,br=SA,AA=br.Ac,tn=br.Bc+4*cr,En=br.zc,BA=br.ya[br.aa+cr];if(br.Qa.Bb?BA.$b=Fe(ir,br.Pa.jb[0])?2+Fe(ir,br.Pa.jb[2]):Fe(ir,br.Pa.jb[1]):BA.$b=0,br.kc&&(BA.Ad=Fe(ir,br.Bd)),BA.Za=!Fe(ir,145)+0,BA.Za){var hn=BA.Ob,Fn=0;for(br=0;4>br;++br){var VA,Fr=En[0+br];for(VA=0;4>VA;++VA){Fr=$C[AA[tn+VA]][Fr];for(var Pr=bv[Fe(ir,Fr[0])];0<Pr;)Pr=bv[2*Pr+Fe(ir,Fr[Pr])];Fr=-Pr,AA[tn+VA]=Fr}r(hn,Fn,AA,tn,4),Fn+=4,En[0+br]=Fr}}else Fr=Fe(ir,156)?Fe(ir,128)?1:3:Fe(ir,163)?2:0,BA.Ob[0]=Fr,n(AA,tn,Fr,4),n(En,0,Fr,4);BA.Dd=Fe(ir,142)?Fe(ir,114)?Fe(ir,183)?1:3:2:0}if(SA.m.Ka)return Kt(wr,7,"Premature end-of-partition0 encountered.");for(;wr.ja<wr.za;++wr.ja){if(SA=Vt,ir=(yt=wr).rb[yt.sb-1],AA=yt.rb[yt.sb+yt.ja],cr=yt.ya[yt.aa+yt.ja],tn=yt.kc?cr.Ad:0)ir.la=AA.la=0,cr.Za||(ir.Na=AA.Na=0),cr.Hc=0,cr.Gc=0,cr.ia=0;else{var yA,Vr;if(ir=AA,AA=SA,tn=yt.Pa.Xc,En=yt.ya[yt.aa+yt.ja],BA=yt.pb[En.$b],br=En.ad,hn=0,Fn=yt.rb[yt.sb-1],Fr=VA=0,n(br,hn,0,384),En.Za)var rn=0,ba=tn[3];else{Pr=a(16);var TA=ir.Na+Fn.Na;if(TA=go(AA,tn[1],TA,BA.Eb,0,Pr,0),ir.Na=Fn.Na=(0<TA)+0,1<TA)Fi(Pr,0,br,hn);else{var _n=Pr[0]+3>>3;for(Pr=0;256>Pr;Pr+=16)br[hn+Pr]=_n}rn=1,ba=tn[0]}var Yr=15&ir.la,KA=15&Fn.la;for(Pr=0;4>Pr;++Pr){var Wn=1&KA;for(_n=Vr=0;4>_n;++_n)Yr=Yr>>1|(Wn=(TA=go(AA,ba,TA=Wn+(1&Yr),BA.Sc,rn,br,hn))>rn)<<7,Vr=Vr<<2|(3<TA?3:1<TA?2:br[hn+0]!=0),hn+=16;Yr>>=4,KA=KA>>1|Wn<<7,VA=(VA<<8|Vr)>>>0}for(ba=Yr,rn=KA>>4,yA=0;4>yA;yA+=2){for(Vr=0,Yr=ir.la>>4+yA,KA=Fn.la>>4+yA,Pr=0;2>Pr;++Pr){for(Wn=1&KA,_n=0;2>_n;++_n)TA=Wn+(1&Yr),Yr=Yr>>1|(Wn=0<(TA=go(AA,tn[2],TA,BA.Qc,0,br,hn)))<<3,Vr=Vr<<2|(3<TA?3:1<TA?2:br[hn+0]!=0),hn+=16;Yr>>=2,KA=KA>>1|Wn<<5}Fr|=Vr<<4*yA,ba|=Yr<<4<<yA,rn|=(240&KA)<<yA}ir.la=ba,Fn.la=rn,En.Hc=VA,En.Gc=Fr,En.ia=43690&Fr?0:BA.ia,tn=!(VA|Fr)}if(0<yt.L&&(yt.wa[yt.Y+yt.ja]=yt.gd[cr.$b][cr.Za],yt.wa[yt.Y+yt.ja].La|=!tn),SA.Ka)return Kt(wr,7,"Premature end-of-file encountered.")}if(dr(wr),yt=PA,SA=1,cr=(Vt=wr).D,ir=0<Vt.L&&Vt.M>=Vt.zb&&Vt.M<=Vt.Va,Vt.Aa==0)t:{if(cr.M=Vt.M,cr.uc=ir,WA(Vt,cr),SA=1,cr=(Vr=Vt.D).Nb,ir=(Fr=bl[Vt.L])*Vt.R,AA=Fr/2*Vt.B,Pr=16*cr*Vt.R,_n=8*cr*Vt.B,tn=Vt.sa,En=Vt.ta-ir+Pr,BA=Vt.qa,br=Vt.ra-AA+_n,hn=Vt.Ha,Fn=Vt.Ia-AA+_n,KA=(Yr=Vr.M)==0,VA=Yr>=Vt.Va-1,Vt.Aa==2&&WA(Vt,Vr),Vr.uc)for(Wn=(TA=Vt).D.M,t(TA.D.uc),Vr=TA.yb;Vr<TA.Hb;++Vr){rn=Vr,ba=Wn;var kn=(Gn=(An=TA).D).Nb;yA=An.R;var Gn=Gn.wa[Gn.Y+rn],Yn=An.sa,Mn=An.ta+16*kn*yA+16*rn,zn=Gn.dd,Jr=Gn.tc;if(Jr!=0)if(t(3<=Jr),An.L==1)0<rn&&ov(Yn,Mn,yA,Jr+4),Gn.La&&cv(Yn,Mn,yA,Jr),0<ba&&sv(Yn,Mn,yA,Jr+4),Gn.La&&lv(Yn,Mn,yA,Jr);else{var $n=An.B,Ca=An.qa,es=An.ra+8*kn*$n+8*rn,ei=An.Ha,An=An.Ia+8*kn*$n+8*rn;kn=Gn.ld,0<rn&&(HA(Yn,Mn,yA,Jr+4,zn,kn),fo(Ca,es,ei,An,$n,Jr+4,zn,kn)),Gn.La&&(dl(Yn,Mn,yA,Jr,zn,kn),iv(Ca,es,ei,An,$n,Jr,zn,kn)),0<ba&&(xA(Yn,Mn,yA,Jr+4,zn,kn),Ja(Ca,es,ei,An,$n,Jr+4,zn,kn)),Gn.La&&(Ls(Yn,Mn,yA,Jr,zn,kn),av(Ca,es,ei,An,$n,Jr,zn,kn))}}if(Vt.ia&&alert("todo:DitherRow"),yt.put!=null){if(Vr=16*Yr,Yr=16*(Yr+1),KA?(yt.y=Vt.sa,yt.O=Vt.ta+Pr,yt.f=Vt.qa,yt.N=Vt.ra+_n,yt.ea=Vt.Ha,yt.W=Vt.Ia+_n):(Vr-=Fr,yt.y=tn,yt.O=En,yt.f=BA,yt.N=br,yt.ea=hn,yt.W=Fn),VA||(Yr-=Fr),Yr>yt.o&&(Yr=yt.o),yt.F=null,yt.J=null,Vt.Fa!=null&&0<Vt.Fa.length&&Vr<Yr&&(yt.J=te(Vt,yt,Vr,Yr-Vr),yt.F=Vt.mb,yt.F==null&&yt.F.length==0)){SA=Kt(Vt,3,"Could not decode alpha data.");break t}Vr<yt.j&&(Fr=yt.j-Vr,Vr=yt.j,t(!(1&Fr)),yt.O+=Vt.R*Fr,yt.N+=Vt.B*(Fr>>1),yt.W+=Vt.B*(Fr>>1),yt.F!=null&&(yt.J+=yt.width*Fr)),Vr<Yr&&(yt.O+=yt.v,yt.N+=yt.v>>1,yt.W+=yt.v>>1,yt.F!=null&&(yt.J+=yt.v),yt.ka=Vr-yt.j,yt.U=yt.va-yt.v,yt.T=Yr-Vr,SA=yt.put(yt))}cr+1!=Vt.Ic||VA||(r(Vt.sa,Vt.ta-ir,tn,En+16*Vt.R,ir),r(Vt.qa,Vt.ra-AA,BA,br+8*Vt.B,AA),r(Vt.Ha,Vt.Ia-AA,hn,Fn+8*Vt.B,AA))}if(!SA)return Kt(wr,6,"Output aborted.")}return 1})(ie,ke)),ke.bc!=null&&ke.bc(ke),Le&=1}return Le?(ie.cb=0,Le):0})(d,C)||(g=d.a)}}else g=d.a}g==0&&V.Oa!=null&&V.Oa.fd&&(g=Xa(V.ba))}V=g}_=V!=0?null:11>_?Y.f.RGBA.eb:Y.f.kb.y}else _=null;return _};var Uv=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(L,R){for(var S="",T=0;T<4;T++)S+=String.fromCharCode(L[R++]);return S}function u(L,R){return L[R+0]|L[R+1]<<8}function h(L,R){return(L[R+0]|L[R+1]<<8|L[R+2]<<16)>>>0}function p(L,R){return(L[R+0]|L[R+1]<<8|L[R+2]<<16|L[R+3]<<24)>>>0}new l;var f=[0],v=[0],w=[],b=new l,B=A,F=(function(L,R){var S={},T=0,G=!1,N=0,oe=0;if(S.frames=[],!(function(x,I){for(var W=0;W<4;W++)if(x[I+W]!="RIFF".charCodeAt(W))return!0;return!1})(L,R)){for(p(L,R+=4),R+=8;R<L.length;){var le=c(L,R),Z=p(L,R+=4);R+=4;var ee=Z+(1&Z);switch(le){case"VP8 ":case"VP8L":S.frames[T]===void 0&&(S.frames[T]={}),(se=S.frames[T]).src_off=G?oe:R-8,se.src_size=N+Z+8,T++,G&&(G=!1,N=0,oe=0);break;case"VP8X":(se=S.header={}).feature_flags=L[R];var X=R+4;se.canvas_width=1+h(L,X),X+=3,se.canvas_height=1+h(L,X),X+=3;break;case"ALPH":G=!0,N=ee+8,oe=R-8;break;case"ANIM":(se=S.header).bgcolor=p(L,R),X=R+4,se.loop_count=u(L,X),X+=2;break;case"ANMF":var re,se;(se=S.frames[T]={}).offset_x=2*h(L,R),R+=3,se.offset_y=2*h(L,R),R+=3,se.width=1+h(L,R),R+=3,se.height=1+h(L,R),R+=3,se.duration=h(L,R),R+=3,re=L[R++],se.dispose=1&re,se.blend=re>>1&1}le!="ANMF"&&(R+=ee)}return S}})(B,0);F.response=B,F.rgbaoutput=!0,F.dataurl=!1;var E=F.header?F.header:null,k=F.frames?F.frames:null;if(E){E.loop_counter=E.loop_count,f=[E.canvas_height],v=[E.canvas_width];for(var P=0;P<k.length&&k[P].blend!=0;P++);}var j=k[0],M=b.WebPDecodeRGBA(B,j.src_off,j.src_size,v,f);j.rgba=M,j.imgwidth=v[0],j.imgheight=f[0];for(var O=0;O<v[0]*f[0]*4;O++)w[O]=M[O];return this.width=v,this.height=f,this.data=w,this}(function(A){var t,e,r,n,a,o,s,l,c,u=function(x){return x=x||{},this.isStrokeTransparent=x.isStrokeTransparent||!1,this.strokeOpacity=x.strokeOpacity||1,this.strokeStyle=x.strokeStyle||"#000000",this.fillStyle=x.fillStyle||"#000000",this.isFillTransparent=x.isFillTransparent||!1,this.fillOpacity=x.fillOpacity||1,this.font=x.font||"10px sans-serif",this.textBaseline=x.textBaseline||"alphabetic",this.textAlign=x.textAlign||"left",this.lineWidth=x.lineWidth||1,this.lineJoin=x.lineJoin||"miter",this.lineCap=x.lineCap||"butt",this.path=x.path||[],this.transform=x.transform!==void 0?x.transform.clone():new l,this.globalCompositeOperation=x.globalCompositeOperation||"normal",this.globalAlpha=x.globalAlpha||1,this.clip_path=x.clip_path||[],this.currentPoint=x.currentPoint||new o,this.miterLimit=x.miterLimit||10,this.lastPoint=x.lastPoint||new o,this.lineDashOffset=x.lineDashOffset||0,this.lineDash=x.lineDash||[],this.margin=x.margin||[0,0,0,0],this.prevPageLastElemOffset=x.prevPageLastElemOffset||0,this.ignoreClearRect=typeof x.ignoreClearRect!="boolean"||x.ignoreClearRect,this};A.events.push(["initialized",function(){this.context2d=new h(this),t=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,o=this.internal.Point,s=this.internal.Rectangle,l=this.internal.Matrix,c=new u}]);var h=function(x){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var I=x;Object.defineProperty(this,"pdf",{get:function(){return I}});var W=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return W},set:function(Q){W=!!Q}});var z=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return z},set:function(Q){z=!!Q}});var Ae=0;Object.defineProperty(this,"posX",{get:function(){return Ae},set:function(Q){isNaN(Q)||(Ae=Q)}});var he=0;Object.defineProperty(this,"posY",{get:function(){return he},set:function(Q){isNaN(Q)||(he=Q)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(Q){var De;typeof Q=="number"?De=[Q,Q,Q,Q]:((De=new Array(4))[0]=Q[0],De[1]=Q.length>=2?Q[1]:De[0],De[2]=Q.length>=3?Q[2]:De[0],De[3]=Q.length>=4?Q[3]:De[1]),c.margin=De}});var fe=!1;Object.defineProperty(this,"autoPaging",{get:function(){return fe},set:function(Q){fe=Q}});var ce=0;Object.defineProperty(this,"lastBreak",{get:function(){return ce},set:function(Q){ce=Q}});var Fe=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Fe},set:function(Q){Fe=Q}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(Q){Q instanceof u&&(c=Q)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(Q){c.path=Q}});var Pe=[];Object.defineProperty(this,"ctxStack",{get:function(){return Pe},set:function(Q){Pe=Q}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Q){var De;De=p(Q),this.ctx.fillStyle=De.style,this.ctx.isFillTransparent=De.a===0,this.ctx.fillOpacity=De.a,this.pdf.setFillColor(De.r,De.g,De.b,{a:De.a}),this.pdf.setTextColor(De.r,De.g,De.b,{a:De.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Q){var De=p(Q);this.ctx.strokeStyle=De.style,this.ctx.isStrokeTransparent=De.a===0,this.ctx.strokeOpacity=De.a,De.a===0?this.pdf.setDrawColor(255,255,255):(De.a,this.pdf.setDrawColor(De.r,De.g,De.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Q){["butt","round","square"].indexOf(Q)!==-1&&(this.ctx.lineCap=Q,this.pdf.setLineCap(Q))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Q){isNaN(Q)||(this.ctx.lineWidth=Q,this.pdf.setLineWidth(Q))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Q){["bevel","round","miter"].indexOf(Q)!==-1&&(this.ctx.lineJoin=Q,this.pdf.setLineJoin(Q))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Q){isNaN(Q)||(this.ctx.miterLimit=Q,this.pdf.setMiterLimit(Q))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Q){this.ctx.textBaseline=Q}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Q){["right","end","center","left","start"].indexOf(Q)!==-1&&(this.ctx.textAlign=Q)}});var Ze=null,tt=null,lt=null;Object.defineProperty(this,"fontFaces",{get:function(){return lt},set:function(Q){Ze=null,tt=null,lt=Q}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Q){var De;if(this.ctx.font=Q,(De=/^\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(Q))!==null){var pe=De[1];De[2];var ge=De[3],Ee=De[4];De[5];var xe=De[6],Qe=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ee)[2];Ee=Math.floor(Qe==="px"?parseFloat(Ee)*this.pdf.internal.scaleFactor:Qe==="em"?parseFloat(Ee)*this.pdf.getFontSize():parseFloat(Ee)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ee);var Oe=(function(pt){var zt,_t,Ut=[],Lt=pt.trim();if(Lt==="")return Af;if(Lt in z0)return[z0[Lt]];for(;Lt!=="";){switch(_t=null,zt=(Lt=X0(Lt)).charAt(0)){case'"':case"'":_t=MU(Lt.substring(1),zt);break;default:_t=OU(Lt)}if(_t===null||(Ut.push(_t[0]),(Lt=X0(_t[1]))!==""&&Lt.charAt(0)!==","))return Af;Lt=Lt.replace(/^,/,"")}return Ut})(xe);if(this.fontFaces){var Ve=(function(pt,zt){var _t=pt.getFontList(),Ut=JSON.stringify(_t);if(Ze===null||tt!==Ut){var Lt=(function(Xt){var Et=[];return Object.keys(Xt).forEach(function(rr){Xt[rr].forEach(function(St){var ye=null;switch(St){case"bold":ye={family:rr,weight:"bold"};break;case"italic":ye={family:rr,style:"italic"};break;case"bolditalic":ye={family:rr,weight:"bold",style:"italic"};break;case"":case"normal":ye={family:rr}}ye!==null&&(ye.ref={name:rr,style:St},Et.push(ye))})}),Et})(_t);Ze=(function(Xt){for(var Et={},rr=0;rr<Xt.length;++rr){var St=rf(Xt[rr]),ye=St.family,He=St.stretch,_e=St.style,je=St.weight;Et[ye]=Et[ye]||{},Et[ye][He]=Et[ye][He]||{},Et[ye][He][_e]=Et[ye][He][_e]||{},Et[ye][He][_e][je]=St}return Et})(Lt.concat(zt)),tt=Ut}return Ze})(this.pdf,this.fontFaces),Re=Oe.map(function(pt){return{family:pt,stretch:"normal",weight:ge,style:pe}}),$e=(function(pt,zt,_t){for(var Ut=(_t=_t||{}).defaultFontFamily||"times",Lt=Object.assign({},_U,_t.genericFontFamilies||{}),Xt=null,Et=null,rr=0;rr<zt.length;++rr)if(Lt[(Xt=rf(zt[rr])).family]&&(Xt.family=Lt[Xt.family]),pt.hasOwnProperty(Xt.family)){Et=pt[Xt.family];break}if(!(Et=Et||pt[Ut]))throw new Error("Could not find a font-family for the rule '"+$0(Xt)+"' and default family '"+Ut+"'.");if(Et=(function(St,ye){if(ye[St])return ye[St];var He=Ug[St],_e=He<=Ug.normal?-1:1,je=Y0(ye,Zy,He,_e);if(!je)throw new Error("Could not find a matching font-stretch value for "+St);return je})(Xt.stretch,Et),Et=(function(St,ye){if(ye[St])return ye[St];for(var He=Jy[St],_e=0;_e<He.length;++_e)if(ye[He[_e]])return ye[He[_e]];throw new Error("Could not find a matching font-style for "+St)})(Xt.style,Et),!(Et=(function(St,ye){if(ye[St])return ye[St];if(St===400&&ye[500])return ye[500];if(St===500&&ye[400])return ye[400];var He=NU[St],_e=Y0(ye,e5,He,St<400?-1:1);if(!_e)throw new Error("Could not find a matching font-weight for value "+St);return _e})(Xt.weight,Et)))throw new Error("Failed to resolve a font for the rule '"+$0(Xt)+"'.");return Et})(Ve,Re);this.pdf.setFont($e.ref.name,$e.ref.style)}else{var at="";(ge==="bold"||parseInt(ge,10)>=700||pe==="bold")&&(at="bold"),pe==="italic"&&(at+="italic"),at.length===0&&(at="normal");for(var gt="",mt={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"},ht=0;ht<Oe.length;ht++){if(this.pdf.internal.getFont(Oe[ht],at,{noFallback:!0,disableWarning:!0})!==void 0){gt=Oe[ht];break}if(at==="bolditalic"&&this.pdf.internal.getFont(Oe[ht],"bold",{noFallback:!0,disableWarning:!0})!==void 0)gt=Oe[ht],at="bold";else if(this.pdf.internal.getFont(Oe[ht],"normal",{noFallback:!0,disableWarning:!0})!==void 0){gt=Oe[ht],at="normal";break}}if(gt===""){for(var Bt=0;Bt<Oe.length;Bt++)if(mt[Oe[Bt]]){gt=mt[Oe[Bt]];break}}gt=gt===""?"Times":gt,this.pdf.setFont(gt,at)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Q){this.ctx.globalCompositeOperation=Q}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Q){this.ctx.globalAlpha=Q}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Q){this.ctx.lineDashOffset=Q,se.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Q){this.ctx.lineDash=Q,se.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Q){this.ctx.ignoreClearRect=!!Q}})};h.prototype.setLineDash=function(x){this.lineDash=x},h.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},h.prototype.fill=function(){k.call(this,"fill",!1)},h.prototype.stroke=function(){k.call(this,"stroke",!1)},h.prototype.beginPath=function(){this.path=[{type:"begin"}]},h.prototype.moveTo=function(x,I){if(isNaN(x)||isNaN(I))throw zr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var W=this.ctx.transform.applyToPoint(new o(x,I));this.path.push({type:"mt",x:W.x,y:W.y}),this.ctx.lastPoint=new o(x,I)},h.prototype.closePath=function(){var x=new o(0,0),I=0;for(I=this.path.length-1;I!==-1;I--)if(this.path[I].type==="begin"&&Dr(this.path[I+1])==="object"&&typeof this.path[I+1].x=="number"){x=new o(this.path[I+1].x,this.path[I+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(x.x,x.y)},h.prototype.lineTo=function(x,I){if(isNaN(x)||isNaN(I))throw zr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var W=this.ctx.transform.applyToPoint(new o(x,I));this.path.push({type:"lt",x:W.x,y:W.y}),this.ctx.lastPoint=new o(W.x,W.y)},h.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),k.call(this,null,!0)},h.prototype.quadraticCurveTo=function(x,I,W,z){if(isNaN(W)||isNaN(z)||isNaN(x)||isNaN(I))throw zr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Ae=this.ctx.transform.applyToPoint(new o(W,z)),he=this.ctx.transform.applyToPoint(new o(x,I));this.path.push({type:"qct",x1:he.x,y1:he.y,x:Ae.x,y:Ae.y}),this.ctx.lastPoint=new o(Ae.x,Ae.y)},h.prototype.bezierCurveTo=function(x,I,W,z,Ae,he){if(isNaN(Ae)||isNaN(he)||isNaN(x)||isNaN(I)||isNaN(W)||isNaN(z))throw zr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var fe=this.ctx.transform.applyToPoint(new o(Ae,he)),ce=this.ctx.transform.applyToPoint(new o(x,I)),Fe=this.ctx.transform.applyToPoint(new o(W,z));this.path.push({type:"bct",x1:ce.x,y1:ce.y,x2:Fe.x,y2:Fe.y,x:fe.x,y:fe.y}),this.ctx.lastPoint=new o(fe.x,fe.y)},h.prototype.arc=function(x,I,W,z,Ae,he){if(isNaN(x)||isNaN(I)||isNaN(W)||isNaN(z)||isNaN(Ae))throw zr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(he=!!he,!this.ctx.transform.isIdentity){var fe=this.ctx.transform.applyToPoint(new o(x,I));x=fe.x,I=fe.y;var ce=this.ctx.transform.applyToPoint(new o(0,W)),Fe=this.ctx.transform.applyToPoint(new o(0,0));W=Math.sqrt(Math.pow(ce.x-Fe.x,2)+Math.pow(ce.y-Fe.y,2))}Math.abs(Ae-z)>=2*Math.PI&&(z=0,Ae=2*Math.PI),this.path.push({type:"arc",x,y:I,radius:W,startAngle:z,endAngle:Ae,counterclockwise:he})},h.prototype.arcTo=function(x,I,W,z,Ae){throw new Error("arcTo not implemented.")},h.prototype.rect=function(x,I,W,z){if(isNaN(x)||isNaN(I)||isNaN(W)||isNaN(z))throw zr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(x,I),this.lineTo(x+W,I),this.lineTo(x+W,I+z),this.lineTo(x,I+z),this.lineTo(x,I),this.lineTo(x+W,I),this.lineTo(x,I)},h.prototype.fillRect=function(x,I,W,z){if(isNaN(x)||isNaN(I)||isNaN(W)||isNaN(z))throw zr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var Ae={};this.lineCap!=="butt"&&(Ae.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Ae.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(x,I,W,z),this.fill(),Ae.hasOwnProperty("lineCap")&&(this.lineCap=Ae.lineCap),Ae.hasOwnProperty("lineJoin")&&(this.lineJoin=Ae.lineJoin)}},h.prototype.strokeRect=function(x,I,W,z){if(isNaN(x)||isNaN(I)||isNaN(W)||isNaN(z))throw zr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");v.call(this)||(this.beginPath(),this.rect(x,I,W,z),this.stroke())},h.prototype.clearRect=function(x,I,W,z){if(isNaN(x)||isNaN(I)||isNaN(W)||isNaN(z))throw zr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(x,I,W,z))},h.prototype.save=function(x){x=typeof x!="boolean"||x;for(var I=this.pdf.internal.getCurrentPageInfo().pageNumber,W=0;W<this.pdf.internal.getNumberOfPages();W++)this.pdf.setPage(W+1),this.pdf.internal.out("q");if(this.pdf.setPage(I),x){this.ctx.fontSize=this.pdf.internal.getFontSize();var z=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=z}},h.prototype.restore=function(x){x=typeof x!="boolean"||x;for(var I=this.pdf.internal.getCurrentPageInfo().pageNumber,W=0;W<this.pdf.internal.getNumberOfPages();W++)this.pdf.setPage(W+1),this.pdf.internal.out("Q");this.pdf.setPage(I),x&&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)},h.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var p=function(x){var I,W,z,Ae;if(x.isCanvasGradient===!0&&(x=x.getColor()),!x)return{r:0,g:0,b:0,a:0,style:x};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(x))I=0,W=0,z=0,Ae=0;else{var he=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(x);if(he!==null)I=parseInt(he[1]),W=parseInt(he[2]),z=parseInt(he[3]),Ae=1;else if((he=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(x))!==null)I=parseInt(he[1]),W=parseInt(he[2]),z=parseInt(he[3]),Ae=parseFloat(he[4]);else{if(Ae=1,typeof x=="string"&&x.charAt(0)!=="#"){var fe=new jy(x);x=fe.ok?fe.toHex():"#000000"}x.length===4?(I=x.substring(1,2),I+=I,W=x.substring(2,3),W+=W,z=x.substring(3,4),z+=z):(I=x.substring(1,3),W=x.substring(3,5),z=x.substring(5,7)),I=parseInt(I,16),W=parseInt(W,16),z=parseInt(z,16)}}return{r:I,g:W,b:z,a:Ae,style:x}},f=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},v=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};h.prototype.fillText=function(x,I,W,z){if(isNaN(I)||isNaN(W)||typeof x!="string")throw zr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(z=isNaN(z)?void 0:z,!f.call(this)){var Ae=ee(this.ctx.transform.rotation),he=this.ctx.transform.scaleX;T.call(this,{text:x,x:I,y:W,scale:he,angle:Ae,align:this.textAlign,maxWidth:z})}},h.prototype.strokeText=function(x,I,W,z){if(isNaN(I)||isNaN(W)||typeof x!="string")throw zr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!v.call(this)){z=isNaN(z)?void 0:z;var Ae=ee(this.ctx.transform.rotation),he=this.ctx.transform.scaleX;T.call(this,{text:x,x:I,y:W,scale:he,renderingMode:"stroke",angle:Ae,align:this.textAlign,maxWidth:z})}},h.prototype.measureText=function(x){if(typeof x!="string")throw zr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var I=this.pdf,W=this.pdf.internal.scaleFactor,z=I.internal.getFontSize(),Ae=I.getStringUnitWidth(x)*z/I.internal.scaleFactor;return new function(he){var fe=(he=he||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return fe}}),this}({width:Ae*=Math.round(96*W/72*1e4)/1e4})},h.prototype.scale=function(x,I){if(isNaN(x)||isNaN(I))throw zr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var W=new l(x,0,0,I,0,0);this.ctx.transform=this.ctx.transform.multiply(W)},h.prototype.rotate=function(x){if(isNaN(x))throw zr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var I=new l(Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0);this.ctx.transform=this.ctx.transform.multiply(I)},h.prototype.translate=function(x,I){if(isNaN(x)||isNaN(I))throw zr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var W=new l(1,0,0,1,x,I);this.ctx.transform=this.ctx.transform.multiply(W)},h.prototype.transform=function(x,I,W,z,Ae,he){if(isNaN(x)||isNaN(I)||isNaN(W)||isNaN(z)||isNaN(Ae)||isNaN(he))throw zr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var fe=new l(x,I,W,z,Ae,he);this.ctx.transform=this.ctx.transform.multiply(fe)},h.prototype.setTransform=function(x,I,W,z,Ae,he){x=isNaN(x)?1:x,I=isNaN(I)?0:I,W=isNaN(W)?0:W,z=isNaN(z)?1:z,Ae=isNaN(Ae)?0:Ae,he=isNaN(he)?0:he,this.ctx.transform=new l(x,I,W,z,Ae,he)};var w=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};h.prototype.drawImage=function(x,I,W,z,Ae,he,fe,ce,Fe){var Pe=this.pdf.getImageProperties(x),Ze=1,tt=1,lt=1,Q=1;z!==void 0&&ce!==void 0&&(lt=ce/z,Q=Fe/Ae,Ze=Pe.width/z*ce/z,tt=Pe.height/Ae*Fe/Ae),he===void 0&&(he=I,fe=W,I=0,W=0),z!==void 0&&ce===void 0&&(ce=z,Fe=Ae),z===void 0&&ce===void 0&&(ce=Pe.width,Fe=Pe.height);var De=this.ctx.transform.decompose(),pe=ee(De.rotate.shx),ge=new l,Ee=(ge=(ge=(ge=ge.multiply(De.translate)).multiply(De.skew)).multiply(De.scale)).applyToRectangle(new s(he-I*lt,fe-W*Q,z*Ze,Ae*tt));if(this.autoPaging){for(var xe,Qe=b.call(this,Ee),Oe=[],Ve=0;Ve<Qe.length;Ve+=1)Oe.indexOf(Qe[Ve])===-1&&Oe.push(Qe[Ve]);E(Oe);for(var Re=Oe[0],$e=Oe[Oe.length-1],at=Re;at<$e+1;at++){this.pdf.setPage(at);var gt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],mt=at===1?this.posY+this.margin[0]:this.margin[0],ht=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Bt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],pt=at===1?0:ht+(at-2)*Bt;if(this.ctx.clip_path.length!==0){var zt=this.path;xe=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=F(xe,this.posX+this.margin[3],-pt+mt+this.ctx.prevPageLastElemOffset),P.call(this,"fill",!0),this.path=zt}var _t=JSON.parse(JSON.stringify(Ee));_t=F([_t],this.posX+this.margin[3],-pt+mt+this.ctx.prevPageLastElemOffset)[0];var Ut=(at>Re||at<$e)&&w.call(this);Ut&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],gt,Bt,null).clip().discardPath()),this.pdf.addImage(x,"JPEG",_t.x,_t.y,_t.w,_t.h,null,null,pe),Ut&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(x,"JPEG",Ee.x,Ee.y,Ee.w,Ee.h,null,null,pe)};var b=function(x,I,W){var z=[];I=I||this.pdf.internal.pageSize.width,W=W||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Ae=this.posY+this.ctx.prevPageLastElemOffset;switch(x.type){default:case"mt":case"lt":z.push(Math.floor((x.y+Ae)/W)+1);break;case"arc":z.push(Math.floor((x.y+Ae-x.radius)/W)+1),z.push(Math.floor((x.y+Ae+x.radius)/W)+1);break;case"qct":var he=X(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x,x.y);z.push(Math.floor((he.y+Ae)/W)+1),z.push(Math.floor((he.y+he.h+Ae)/W)+1);break;case"bct":var fe=re(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x2,x.y2,x.x,x.y);z.push(Math.floor((fe.y+Ae)/W)+1),z.push(Math.floor((fe.y+fe.h+Ae)/W)+1);break;case"rect":z.push(Math.floor((x.y+Ae)/W)+1),z.push(Math.floor((x.y+x.h+Ae)/W)+1)}for(var ce=0;ce<z.length;ce+=1)for(;this.pdf.internal.getNumberOfPages()<z[ce];)B.call(this);return z},B=function(){var x=this.fillStyle,I=this.strokeStyle,W=this.font,z=this.lineCap,Ae=this.lineWidth,he=this.lineJoin;this.pdf.addPage(),this.fillStyle=x,this.strokeStyle=I,this.font=W,this.lineCap=z,this.lineWidth=Ae,this.lineJoin=he},F=function(x,I,W){for(var z=0;z<x.length;z++)switch(x[z].type){case"bct":x[z].x2+=I,x[z].y2+=W;case"qct":x[z].x1+=I,x[z].y1+=W;default:x[z].x+=I,x[z].y+=W}return x},E=function(x){return x.sort(function(I,W){return I-W})},k=function(x,I){var W=this.fillStyle,z=this.strokeStyle,Ae=this.lineCap,he=this.lineWidth,fe=Math.abs(he*this.ctx.transform.scaleX),ce=this.lineJoin;if(this.autoPaging){for(var Fe,Pe,Ze=JSON.parse(JSON.stringify(this.path)),tt=JSON.parse(JSON.stringify(this.path)),lt=[],Q=0;Q<tt.length;Q++)if(tt[Q].x!==void 0)for(var De=b.call(this,tt[Q]),pe=0;pe<De.length;pe+=1)lt.indexOf(De[pe])===-1&&lt.push(De[pe]);for(var ge=0;ge<lt.length;ge++)for(;this.pdf.internal.getNumberOfPages()<lt[ge];)B.call(this);E(lt);for(var Ee=lt[0],xe=lt[lt.length-1],Qe=Ee;Qe<xe+1;Qe++){this.pdf.setPage(Qe),this.fillStyle=W,this.strokeStyle=z,this.lineCap=Ae,this.lineWidth=fe,this.lineJoin=ce;var Oe=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ve=Qe===1?this.posY+this.margin[0]:this.margin[0],Re=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],$e=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],at=Qe===1?0:Re+(Qe-2)*$e;if(this.ctx.clip_path.length!==0){var gt=this.path;Fe=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=F(Fe,this.posX+this.margin[3],-at+Ve+this.ctx.prevPageLastElemOffset),P.call(this,x,!0),this.path=gt}if(Pe=JSON.parse(JSON.stringify(Ze)),this.path=F(Pe,this.posX+this.margin[3],-at+Ve+this.ctx.prevPageLastElemOffset),I===!1||Qe===0){var mt=(Qe>Ee||Qe<xe)&&w.call(this);mt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Oe,$e,null).clip().discardPath()),P.call(this,x,I),mt&&this.pdf.restoreGraphicsState()}this.lineWidth=he}this.path=Ze}else this.lineWidth=fe,P.call(this,x,I),this.lineWidth=he},P=function(x,I){if((x!=="stroke"||I||!v.call(this))&&(x==="stroke"||I||!f.call(this))){for(var W,z,Ae=[],he=this.path,fe=0;fe<he.length;fe++){var ce=he[fe];switch(ce.type){case"begin":Ae.push({begin:!0});break;case"close":Ae.push({close:!0});break;case"mt":Ae.push({start:ce,deltas:[],abs:[]});break;case"lt":var Fe=Ae.length;if(he[fe-1]&&!isNaN(he[fe-1].x)&&(W=[ce.x-he[fe-1].x,ce.y-he[fe-1].y],Fe>0)){for(;Fe>=0;Fe--)if(Ae[Fe-1].close!==!0&&Ae[Fe-1].begin!==!0){Ae[Fe-1].deltas.push(W),Ae[Fe-1].abs.push(ce);break}}break;case"bct":W=[ce.x1-he[fe-1].x,ce.y1-he[fe-1].y,ce.x2-he[fe-1].x,ce.y2-he[fe-1].y,ce.x-he[fe-1].x,ce.y-he[fe-1].y],Ae[Ae.length-1].deltas.push(W);break;case"qct":var Pe=he[fe-1].x+2/3*(ce.x1-he[fe-1].x),Ze=he[fe-1].y+2/3*(ce.y1-he[fe-1].y),tt=ce.x+2/3*(ce.x1-ce.x),lt=ce.y+2/3*(ce.y1-ce.y),Q=ce.x,De=ce.y;W=[Pe-he[fe-1].x,Ze-he[fe-1].y,tt-he[fe-1].x,lt-he[fe-1].y,Q-he[fe-1].x,De-he[fe-1].y],Ae[Ae.length-1].deltas.push(W);break;case"arc":Ae.push({deltas:[],abs:[],arc:!0}),Array.isArray(Ae[Ae.length-1].abs)&&Ae[Ae.length-1].abs.push(ce)}}z=I?null:x==="stroke"?"stroke":"fill";for(var pe=!1,ge=0;ge<Ae.length;ge++)if(Ae[ge].arc)for(var Ee=Ae[ge].abs,xe=0;xe<Ee.length;xe++){var Qe=Ee[xe];Qe.type==="arc"?O.call(this,Qe.x,Qe.y,Qe.radius,Qe.startAngle,Qe.endAngle,Qe.counterclockwise,void 0,I,!pe):G.call(this,Qe.x,Qe.y),pe=!0}else if(Ae[ge].close===!0)this.pdf.internal.out("h"),pe=!1;else if(Ae[ge].begin!==!0){var Oe=Ae[ge].start.x,Ve=Ae[ge].start.y;N.call(this,Ae[ge].deltas,Oe,Ve),pe=!0}z&&L.call(this,z),I&&R.call(this)}},j=function(x){var I=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,W=I*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return x-W;case"top":return x+I-W;case"hanging":return x+I-2*W;case"middle":return x+I/2-W;default:return x}},M=function(x){return x+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};h.prototype.createLinearGradient=function(){var x=function(){};return x.colorStops=[],x.addColorStop=function(I,W){this.colorStops.push([I,W])},x.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},x.isCanvasGradient=!0,x},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var O=function(x,I,W,z,Ae,he,fe,ce,Fe){for(var Pe=le.call(this,W,z,Ae,he),Ze=0;Ze<Pe.length;Ze++){var tt=Pe[Ze];Ze===0&&(Fe?S.call(this,tt.x1+x,tt.y1+I):G.call(this,tt.x1+x,tt.y1+I)),oe.call(this,x,I,tt.x2,tt.y2,tt.x3,tt.y3,tt.x4,tt.y4)}ce?R.call(this):L.call(this,fe)},L=function(x){switch(x){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},R=function(){this.pdf.clip(),this.pdf.discardPath()},S=function(x,I){this.pdf.internal.out(e(x)+" "+r(I)+" m")},T=function(x){var I;switch(x.align){case"right":case"end":I="right";break;case"center":I="center";break;default:I="left"}var W,z,Ae,he=this.pdf.getTextDimensions(x.text),fe=j.call(this,x.y),ce=M.call(this,fe)-he.h,Fe=this.ctx.transform.applyToPoint(new o(x.x,fe));if(this.autoPaging){var Pe=this.ctx.transform.decompose(),Ze=new l;Ze=(Ze=(Ze=Ze.multiply(Pe.translate)).multiply(Pe.skew)).multiply(Pe.scale);for(var tt=this.ctx.transform.applyToRectangle(new s(x.x,fe,he.w,he.h)),lt=Ze.applyToRectangle(new s(x.x,ce,he.w,he.h)),Q=b.call(this,lt),De=[],pe=0;pe<Q.length;pe+=1)De.indexOf(Q[pe])===-1&&De.push(Q[pe]);E(De);for(var ge=De[0],Ee=De[De.length-1],xe=ge;xe<Ee+1;xe++){this.pdf.setPage(xe);var Qe=xe===1?this.posY+this.margin[0]:this.margin[0],Oe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ve=this.pdf.internal.pageSize.height-this.margin[2],Re=Ve-this.margin[0],$e=this.pdf.internal.pageSize.width-this.margin[1],at=$e-this.margin[3],gt=xe===1?0:Oe+(xe-2)*Re;if(this.ctx.clip_path.length!==0){var mt=this.path;W=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=F(W,this.posX+this.margin[3],-1*gt+Qe),P.call(this,"fill",!0),this.path=mt}var ht=F([JSON.parse(JSON.stringify(lt))],this.posX+this.margin[3],-gt+Qe+this.ctx.prevPageLastElemOffset)[0];x.scale>=.01&&(z=this.pdf.internal.getFontSize(),this.pdf.setFontSize(z*x.scale),Ae=this.lineWidth,this.lineWidth=Ae*x.scale);var Bt=this.autoPaging!=="text";if(Bt||ht.y+ht.h<=Ve){if(Bt||ht.y>=Qe&&ht.x<=$e){var pt=Bt?x.text:this.pdf.splitTextToSize(x.text,x.maxWidth||$e-ht.x)[0],zt=F([JSON.parse(JSON.stringify(tt))],this.posX+this.margin[3],-gt+Qe+this.ctx.prevPageLastElemOffset)[0],_t=Bt&&(xe>ge||xe<Ee)&&w.call(this);_t&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],at,Re,null).clip().discardPath()),this.pdf.text(pt,zt.x,zt.y,{angle:x.angle,align:I,renderingMode:x.renderingMode}),_t&&this.pdf.restoreGraphicsState()}}else ht.y<Ve&&(this.ctx.prevPageLastElemOffset+=Ve-ht.y);x.scale>=.01&&(this.pdf.setFontSize(z),this.lineWidth=Ae)}}else x.scale>=.01&&(z=this.pdf.internal.getFontSize(),this.pdf.setFontSize(z*x.scale),Ae=this.lineWidth,this.lineWidth=Ae*x.scale),this.pdf.text(x.text,Fe.x+this.posX,Fe.y+this.posY,{angle:x.angle,align:I,renderingMode:x.renderingMode,maxWidth:x.maxWidth}),x.scale>=.01&&(this.pdf.setFontSize(z),this.lineWidth=Ae)},G=function(x,I,W,z){W=W||0,z=z||0,this.pdf.internal.out(e(x+W)+" "+r(I+z)+" l")},N=function(x,I,W){return this.pdf.lines(x,I,W,null,null)},oe=function(x,I,W,z,Ae,he,fe,ce){this.pdf.internal.out([t(n(W+x)),t(a(z+I)),t(n(Ae+x)),t(a(he+I)),t(n(fe+x)),t(a(ce+I)),"c"].join(" "))},le=function(x,I,W,z){for(var Ae=2*Math.PI,he=Math.PI/2;I>W;)I-=Ae;var fe=Math.abs(W-I);fe<Ae&&z&&(fe=Ae-fe);for(var ce=[],Fe=z?-1:1,Pe=I;fe>1e-5;){var Ze=Pe+Fe*Math.min(fe,he);ce.push(Z.call(this,x,Pe,Ze)),fe-=Math.abs(Ze-Pe),Pe=Ze}return ce},Z=function(x,I,W){var z=(W-I)/2,Ae=x*Math.cos(z),he=x*Math.sin(z),fe=Ae,ce=-he,Fe=fe*fe+ce*ce,Pe=Fe+fe*Ae+ce*he,Ze=4/3*(Math.sqrt(2*Fe*Pe)-Pe)/(fe*he-ce*Ae),tt=fe-Ze*ce,lt=ce+Ze*fe,Q=tt,De=-lt,pe=z+I,ge=Math.cos(pe),Ee=Math.sin(pe);return{x1:x*Math.cos(I),y1:x*Math.sin(I),x2:tt*ge-lt*Ee,y2:tt*Ee+lt*ge,x3:Q*ge-De*Ee,y3:Q*Ee+De*ge,x4:x*Math.cos(W),y4:x*Math.sin(W)}},ee=function(x){return 180*x/Math.PI},X=function(x,I,W,z,Ae,he){var fe=x+.5*(W-x),ce=I+.5*(z-I),Fe=Ae+.5*(W-Ae),Pe=he+.5*(z-he),Ze=Math.min(x,Ae,fe,Fe),tt=Math.max(x,Ae,fe,Fe),lt=Math.min(I,he,ce,Pe),Q=Math.max(I,he,ce,Pe);return new s(Ze,lt,tt-Ze,Q-lt)},re=function(x,I,W,z,Ae,he,fe,ce){var Fe,Pe,Ze,tt,lt,Q,De,pe,ge,Ee,xe,Qe,Oe,Ve,Re=W-x,$e=z-I,at=Ae-W,gt=he-z,mt=fe-Ae,ht=ce-he;for(Pe=0;Pe<41;Pe++)ge=(De=(Ze=x+(Fe=Pe/40)*Re)+Fe*((lt=W+Fe*at)-Ze))+Fe*(lt+Fe*(Ae+Fe*mt-lt)-De),Ee=(pe=(tt=I+Fe*$e)+Fe*((Q=z+Fe*gt)-tt))+Fe*(Q+Fe*(he+Fe*ht-Q)-pe),Pe==0?(xe=ge,Qe=Ee,Oe=ge,Ve=Ee):(xe=Math.min(xe,ge),Qe=Math.min(Qe,Ee),Oe=Math.max(Oe,ge),Ve=Math.max(Ve,Ee));return new s(Math.round(xe),Math.round(Qe),Math.round(Oe-xe),Math.round(Ve-Qe))},se=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var x,I,W=(x=this.ctx.lineDash,I=this.ctx.lineDashOffset,JSON.stringify({lineDash:x,lineDashOffset:I}));this.prevLineDash!==W&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=W)}}})(Wt.API),(function(A){var t=function(o){var s,l,c,u,h,p,f,v,w,b;for(l=[],c=0,u=(o+=s="\0\0\0\0".slice(o.length%4||4)).length;u>c;c+=4)(h=(o.charCodeAt(c)<<24)+(o.charCodeAt(c+1)<<16)+(o.charCodeAt(c+2)<<8)+o.charCodeAt(c+3))!==0?(p=(h=((h=((h=((h=(h-(b=h%85))/85)-(w=h%85))/85)-(v=h%85))/85)-(f=h%85))/85)%85,l.push(p+33,f+33,v+33,w+33,b+33)):l.push(122);return(function(B,F){for(var E=F;E>0;E--)B.pop()})(l,s.length),String.fromCharCode.apply(String,l)+"~>"},e=function(o){var s,l,c,u,h,p=String,f="length",v=255,w="charCodeAt",b="slice",B="replace";for(o[b](-2),o=o[b](0,-2)[B](/\s/g,"")[B]("z","!!!!!"),c=[],u=0,h=(o+=s="uuuuu"[b](o[f]%5||5))[f];h>u;u+=5)l=52200625*(o[w](u)-33)+614125*(o[w](u+1)-33)+7225*(o[w](u+2)-33)+85*(o[w](u+3)-33)+(o[w](u+4)-33),c.push(v&l>>24,v&l>>16,v&l>>8,v&l);return(function(F,E){for(var k=E;k>0;k--)F.pop()})(c,s[f]),p.fromCharCode.apply(p,c)},r=function(o){return o.split("").map(function(s){return("0"+s.charCodeAt().toString(16)).slice(-2)}).join("")+">"},n=function(o){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),s.test(o)===!1)return"";for(var l="",c=0;c<o.length;c+=2)l+=String.fromCharCode("0x"+(o[c]+o[c+1]));return l},a=function(o){for(var s=new Uint8Array(o.length),l=o.length;l--;)s[l]=o.charCodeAt(l);return(s=Cg(s)).reduce(function(c,u){return c+String.fromCharCode(u)},"")};A.processDataByFilters=function(o,s){var l=0,c=o||"",u=[];for(typeof(s=s||[])=="string"&&(s=[s]),l=0;l<s.length;l+=1)switch(s[l]){case"ASCII85Decode":case"/ASCII85Decode":c=e(c),u.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=t(c),u.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=n(c),u.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=r(c),u.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=a(c),u.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[l]+'" is not implemented')}return{data:c,reverseChain:u.reverse().join(" ")}}})(Wt.API),(function(A){A.loadFile=function(t,e,r){return(function(n,a,o){a=a!==!1,o=typeof o=="function"?o:function(){};var s=void 0;try{s=(function(l,c,u){var h=new XMLHttpRequest,p=0,f=function(v){var w=v.length,b=[],B=String.fromCharCode;for(p=0;p<w;p+=1)b.push(B(255&v.charCodeAt(p)));return b.join("")};if(h.open("GET",l,!c),h.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(h.onload=function(){h.status===200?u(f(this.responseText)):u(void 0)}),h.send(null),c&&h.status===200)return f(h.responseText)})(n,a,o)}catch{}return s})(t,e,r)},A.loadImageFile=A.loadFile})(Wt.API),(function(A){function t(){return(er.html2canvas?Promise.resolve(er.html2canvas):Promise.resolve().then(()=>S_)).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function e(){return(er.DOMPurify?Promise.resolve(er.DOMPurify):Promise.resolve().then(()=>a6)).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var r=function(s){var l=Dr(s);return l==="undefined"?"undefined":l==="string"||s instanceof String?"string":l==="number"||s instanceof Number?"number":l==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":l==="object"?"object":"unknown"},n=function(s,l){var c=document.createElement(s);for(var u in l.className&&(c.className=l.className),l.innerHTML&&l.dompurify&&(c.innerHTML=l.dompurify.sanitize(l.innerHTML)),l.style)c.style[u]=l.style[u];return c},a=function s(l,c){for(var u=l.nodeType===3?document.createTextNode(l.nodeValue):l.cloneNode(!1),h=l.firstChild;h;h=h.nextSibling)c!==!0&&h.nodeType===1&&h.nodeName==="SCRIPT"||u.appendChild(s(h,c));return l.nodeType===1&&(l.nodeName==="CANVAS"?(u.width=l.width,u.height=l.height,u.getContext("2d").drawImage(l,0,0)):l.nodeName!=="TEXTAREA"&&l.nodeName!=="SELECT"||(u.value=l.value),u.addEventListener("load",function(){u.scrollTop=l.scrollTop,u.scrollLeft=l.scrollLeft},!0)),u},o=function s(l){var c=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),u=s.convert(Promise.resolve(),c);return(u=u.setProgress(1,s,1,[s])).set(l)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(s,l){return s.__proto__=l||o.prototype,s},o.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"}},o.prototype.from=function(s,l){return this.then(function(){switch(l=l||(function(c){switch(r(c)){case"string":return"string";case"element":return c.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(s),l){case"string":return this.then(e).then(function(c){return this.set({src:n("div",{innerHTML:s,dompurify:c})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},o.prototype.to=function(s){switch(s){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.")}},o.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 s={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},l=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);l.tagName==="BODY"&&(s.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:s}),this.prop.container.appendChild(l),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"})},o.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(l){var c=Object.assign({},this.opt.html2canvas);return delete c.onrendered,l(this.prop.container,c)}).then(function(l){(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(l){var c=this.opt.jsPDF,u=this.opt.fontFaces,h=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,p=Object.assign({async:!0,allowTaint:!0,scale:h,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 p.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=u,u)for(var f=0;f<u.length;++f){var v=u[f],w=v.src.find(function(b){return b.format==="truetype"});w&&c.addFont(w.url,v.ref.name,v.ref.style)}return p.windowHeight=p.windowHeight||0,p.windowHeight=p.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):p.windowHeight,c.context2d.save(!0),l(this.prop.container,p)}).then(function(l){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(s,l,c){return(c=c||"pdf").toLowerCase()==="img"||c.toLowerCase()==="image"?this.outputImg(s,l):this.outputPdf(s,l)},o.prototype.outputPdf=function(s,l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,l)})},o.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){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 "'+s+'" is not supported.'}})},o.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(s){if(r(s)!=="object")return this;var l=Object.keys(s||{}).map(function(c){if(c in o.template.prop)return function(){this.prop[c]=s[c]};switch(c){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[c]=s[c]}}},this);return this.then(function(){return this.thenList(l)})},o.prototype.get=function(s,l){return this.then(function(){var c=s in o.template.prop?this.prop[s]:this.opt[s];return l?l(c):c})},o.prototype.setMargin=function(s){return this.then(function(){switch(r(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},o.prototype.setPageSize=function(s){function l(c,u){return Math.floor(c*u/72*96)}return this.then(function(){(s=s||Wt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:l(s.inner.width,s.k),height:l(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},o.prototype.setProgress=function(s,l,c,u){return s!=null&&(this.progress.val=s),l!=null&&(this.progress.state=l),c!=null&&(this.progress.n=c),u!=null&&(this.progress.stack=u),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(s,l,c,u){return this.setProgress(s?this.progress.val+s:null,l||null,c?this.progress.n+c:null,u?this.progress.stack.concat(u):null)},o.prototype.then=function(s,l){var c=this;return this.thenCore(s,l,function(u,h){return c.updateProgress(null,null,1,[u]),Promise.prototype.then.call(this,function(p){return c.updateProgress(null,u),p}).then(u,h).then(function(p){return c.updateProgress(1),p})})},o.prototype.thenCore=function(s,l,c){c=c||Promise.prototype.then;var u=this;s&&(s=s.bind(u)),l&&(l=l.bind(u));var h=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?u:o.convert(Object.assign({},u),Promise.prototype),p=c.call(h,s,l);return o.convert(p,u.__proto__)},o.prototype.thenExternal=function(s,l){return Promise.prototype.then.call(this,s,l)},o.prototype.thenList=function(s){var l=this;return s.forEach(function(c){l=l.thenCore(c)}),l},o.prototype.catch=function(s){s&&(s=s.bind(this));var l=Promise.prototype.catch.call(this,s);return o.convert(l,this)},o.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},o.prototype.error=function(s){return this.then(function(){throw new Error(s)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,Wt.getPageSize=function(s,l,c){if(Dr(s)==="object"){var u=s;s=u.orientation,l=u.unit||l,c=u.format||c}l=l||"mm",c=c||"a4",s=(""+(s||"P")).toLowerCase();var h,p=(""+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(l){case"pt":h=1;break;case"mm":h=72/25.4;break;case"cm":h=72/2.54;break;case"in":h=72;break;case"px":h=.75;break;case"pc":case"em":h=12;break;case"ex":h=6;break;default:throw"Invalid unit: "+l}var v,w=0,b=0;if(f.hasOwnProperty(p))w=f[p][1]/h,b=f[p][0]/h;else try{w=c[1],b=c[0]}catch{throw new Error("Invalid format: "+c)}if(s==="p"||s==="portrait")s="p",b>w&&(v=b,b=w,w=v);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",w>b&&(v=b,b=w,w=v)}return{width:b,height:w,unit:l,k:h,orientation:s}},A.html=function(s,l){(l=l||{}).callback=l.callback||function(){},l.html2canvas=l.html2canvas||{},l.html2canvas.canvas=l.html2canvas.canvas||this.canvas,l.jsPDF=l.jsPDF||this,l.fontFaces=l.fontFaces?l.fontFaces.map(rf):null;var c=new o(l);return l.worker?c:c.from(s).doCallback()}})(Wt.API),Wt.API.addJS=function(A){return Z0=A,this.internal.events.subscribe("postPutResources",function(){Rl=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Rl+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),J0=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Z0+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Rl!==void 0&&J0!==void 0&&this.internal.out("/Names <</JavaScript "+Rl+" 0 R>>")}),this},(function(A){var t;A.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/),a=0;a<n.length;a++){var o=n[a],s=r.exec(o);if(s!=null){var l=s[1];e.internal.newObjectDeferredBegin(l,!1)}e.internal.write(o)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,u=[];for(a=0;a<c;a++){var h=e.internal.newObject();u.push(h);var p=e.internal.getPageInfo(a+1);e.internal.write("<< /D["+p.objId+" 0 R /XYZ null null null]>> endobj")}var f=e.internal.newObject();for(e.internal.write("<< /Names [ "),a=0;a<u.length;a++)e.internal.write("(page_"+(a+1)+")"+u[a]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+f+" 0 R"),e.internal.write(">>","endobj")}}]),A.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 "+t+" 0 R"))}]),A.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,n,a){var o={title:n,options:a,children:[]};return r==null&&(r=this.root),r.children.push(o),o},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,a=0;a<r.children.length;a++){var o=r.children[a];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(r)),a>0&&this.line("/Prev "+this.makeRef(r.children[a-1])),a<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[a+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var s=this.count=this.count_r({count:0},o);if(s>0&&this.line("/Count "+s),o.options&&o.options.pageNumber){var l=e.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+l.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
`},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
`+r.id+` 0 obj\r
<<\r
`},e.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},e.outline.count_r=function(r,n){for(var a=0;a<n.children.length;a++)r.count++,this.count_r(r,n.children[a]);return r.count}}])})(Wt.API),(function(A){var t=[192,193,194,195,196,197,198,199];A.processJPEG=function(e,r,n,a,o,s){var l,c=this.decode.DCT_DECODE,u=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=o||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,l=(function(h){for(var p,f=256*h.charCodeAt(4)+h.charCodeAt(5),v=h.length,w={width:0,height:0,numcomponents:1},b=4;b<v;b+=2){if(b+=f,t.indexOf(h.charCodeAt(b+1))!==-1){p=256*h.charCodeAt(b+5)+h.charCodeAt(b+6),w={width:256*h.charCodeAt(b+7)+h.charCodeAt(b+8),height:p,numcomponents:h.charCodeAt(b+9)};break}f=256*h.charCodeAt(b+2)+h.charCodeAt(b+3)}return w})(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),l.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}u={data:e,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:c,index:r,alias:n}}return u}})(Wt.API),Wt.API.processPNG=function(A,t,e,r){if(this.__addimage__.isArrayBuffer(A)&&(A=new Uint8Array(A)),this.__addimage__.isArrayBufferView(A)){var n,a=yU(A,{checkCrc:!0}),o=a.width,s=a.height,l=a.channels,c=a.palette,u=a.depth;n=c&&l===1?(function(O){for(var L=O.width,R=O.height,S=O.data,T=O.palette,G=O.depth,N=!1,oe=[],le=[],Z=void 0,ee=!1,X=0,re=0;re<T.length;re++){var se=A0(T[re],4),x=se[0],I=se[1],W=se[2],z=se[3];oe.push(x,I,W),z!=null&&(z===0?(X++,le.length<1&&le.push(re)):z<255&&(ee=!0))}if(ee||X>1){N=!0,le=void 0;var Ae=L*R;Z=new Uint8Array(Ae);for(var he=new DataView(S.buffer),fe=0;fe<Ae;fe++){var ce=nf(he,fe,G),Fe=A0(T[ce],4)[3];Z[fe]=Fe}}else X===0&&(le=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:N?8:void 0,colorBytes:S,alphaBytes:Z,needSMask:N,palette:oe,mask:le}})(a):l===2||l===4?(function(O){for(var L=O.data,R=O.width,S=O.height,T=O.channels,G=O.depth,N=T===2?"DeviceGray":"DeviceRGB",oe=T-1,le=R*S,Z=oe,ee=le*Z,X=1*le,re=Math.ceil(ee*G/8),se=Math.ceil(X*G/8),x=new Uint8Array(re),I=new Uint8Array(se),W=new DataView(L.buffer),z=new DataView(x.buffer),Ae=new DataView(I.buffer),he=!1,fe=0;fe<le;fe++){for(var ce=fe*T,Fe=0;Fe<Z;Fe++)om(z,nf(W,ce+Fe,G),fe*Z+Fe,G);var Pe=nf(W,ce+Z,G);Pe<(1<<G)-1&&(he=!0),om(Ae,Pe,1*fe,G)}return{colorSpace:N,colorsPerPixel:oe,sMaskBitsPerComponent:he?G:void 0,colorBytes:x,alphaBytes:I,needSMask:he}})(a):(function(O){var L=O.data,R=O.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:R,colorsPerPixel:R==="DeviceGray"?1:3,colorBytes:L instanceof Uint16Array?(function(S){for(var T=S.length,G=new Uint8Array(2*T),N=new DataView(G.buffer,G.byteOffset,G.byteLength),oe=0;oe<T;oe++)N.setUint16(2*oe,S[oe],!1);return G})(L):L,needSMask:!1}})(a);var h,p,f,v=n,w=v.colorSpace,b=v.colorsPerPixel,B=v.sMaskBitsPerComponent,F=v.colorBytes,E=v.alphaBytes,k=v.needSMask,P=v.palette,j=v.mask,M=null;return r!==Wt.API.image_compression.NONE&&typeof Cg=="function"?(M=(function(O){var L;switch(O){case Wt.API.image_compression.FAST:L=11;break;case Wt.API.image_compression.MEDIUM:L=13;break;case Wt.API.image_compression.SLOW:L=14;break;default:L=12}return L})(r),h=this.decode.FLATE_DECODE,p="/Predictor ".concat(M," /Colors ").concat(b," /BitsPerComponent ").concat(u," /Columns ").concat(o),A=Am(F,Math.ceil(o*b*u/8),b,u,r),k&&(f=Am(E,Math.ceil(o*B/8),1,B,r))):(h=void 0,p=void 0,A=F,k&&(f=E)),(this.__addimage__.isArrayBuffer(A)||this.__addimage__.isArrayBufferView(A))&&(A=this.__addimage__.arrayBufferToBinaryString(A)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:e,data:A,index:t,filter:h,decodeParameters:p,transparency:j,palette:P,sMask:f,predictor:M,width:o,height:s,bitsPerComponent:u,sMaskBitsPerComponent:B,colorSpace:w}}},(function(A){A.processGIF89A=function(t,e,r,n){var a=new VU(t),o=a.width,s=a.height,l=[];a.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:s},u=new af(100).encode(c,100);return A.processJPEG.call(this,u,e,r,n)},A.processGIF87A=A.processGIF89A})(Wt.API),Ea.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 A=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(A);for(var t=0;t<A;t++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:n,green:r,blue:e,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Ea.prototype.parseBGR=function(){this.pos=this.offset;try{var A="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[A]()}catch(e){zr.log("bit decode error:"+e)}},Ea.prototype.bit1=function(){var A,t=Math.ceil(this.width/8),e=t%4;for(A=this.height-1;A>=0;A--){for(var r=this.bottom_up?A:this.height-1-A,n=0;n<t;n++)for(var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*n*4,s=0;s<8&&8*n+s<this.width;s++){var l=this.palette[a>>7-s&1];this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}e!==0&&(this.pos+=4-e)}},Ea.prototype.bit4=function(){for(var A=Math.ceil(this.width/2),t=A%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<A;n++){var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*n*4,s=a>>4,l=15&a,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*n+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},Ea.prototype.bit8=function(){for(var A=this.width%4,t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*r;if(n<this.palette.length){var o=this.palette[n];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}A!==0&&(this.pos+=4-A)}},Ea.prototype.bit15=function(){for(var A=this.width%3,t=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 a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&t)/t*255|0,s=(a>>5&t)/t*255|0,l=(a>>10&t)/t*255|0,c=a>>15?255:0,u=r*this.width*4+4*n;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=c}this.pos+=A}},Ea.prototype.bit16=function(){for(var A=this.width%3,t=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,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,l=(o>>5&e)/e*255|0,c=(o>>11)/t*255|0,u=n*this.width*4+4*a;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=A}},Ea.prototype.bit24=function(){for(var A=this.height-1;A>=0;A--){for(var t=this.bottom_up?A:this.height-1-A,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*e;this.data[o]=a,this.data[o+1]=n,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},Ea.prototype.bit32=function(){for(var A=this.height-1;A>=0;A--)for(var t=this.bottom_up?A:this.height-1-A,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*e;this.data[s]=a,this.data[s+1]=n,this.data[s+2]=r,this.data[s+3]=o}},Ea.prototype.getData=function(){return this.data},(function(A){A.processBMP=function(t,e,r,n){var a=new Ea(t,!1),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},c=new af(100).encode(l,100);return A.processJPEG.call(this,c,e,r,n)}})(Wt.API),cm.prototype.getData=function(){return this.data},(function(A){A.processWEBP=function(t,e,r,n){var a=new cm(t),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},c=new af(100).encode(l,100);return A.processJPEG.call(this,c,e,r,n)}})(Wt.API),Wt.API.processRGBA=function(A,t,e){for(var r=A.data,n=r.length,a=new Uint8Array(n/4*3),o=new Uint8Array(n/4),s=0,l=0,c=0;c<n;c+=4){var u=r[c],h=r[c+1],p=r[c+2],f=r[c+3];a[s++]=u,a[s++]=h,a[s++]=p,o[l++]=f}var v=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:v,index:t,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:A.width,height:A.height}},Wt.API.setLanguage=function(A){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"}[A]!==void 0&&(this.internal.languageSettings.languageCode=A,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},Ms=Wt.API,Hl=Ms.getCharWidthsArray=function(A,t){var e,r,n=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:n.metadata.Unicode.widths,l=s.fof?s.fof:1,c=t.kerning?t.kerning:n.metadata.Unicode.kerning,u=c.fof?c.fof:1,h=t.doKerning!==!1,p=0,f=A.length,v=0,w=s[0]||l,b=[];for(e=0;e<f;e++)r=A.charCodeAt(e),typeof n.metadata.widthOfString=="function"?b.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(r))+o*(1e3/a)||0)/1e3):(p=h&&Dr(c[r])==="object"&&!isNaN(parseInt(c[r][v],10))?c[r][v]/u:0,b.push((s[r]||w)/l+p)),v=r;return b},em=Ms.getStringUnitWidth=function(A,t){var e=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),n=t.charSpace||this.internal.getCharSpace();return Ms.processArabic&&(A=Ms.processArabic(A)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(A,e,n)/e:Hl.apply(this,arguments).reduce(function(a,o){return a+o},0)},tm=function(A,t,e,r){for(var n=[],a=0,o=A.length,s=0;a!==o&&s+t[a]<e;)s+=t[a],a++;n.push(A.slice(0,a));var l=a;for(s=0;a!==o;)s+t[a]>r&&(n.push(A.slice(l,a)),s=0,l=a),s+=t[a],a++;return l!==a&&n.push(A.slice(l,a)),n},rm=function(A,t,e){e||(e={});var r,n,a,o,s,l,c,u=[],h=[u],p=e.textIndent||0,f=0,v=0,w=A.split(" "),b=Hl.apply(this,[" ",e])[0];if(l=e.lineIndent===-1?w[0].length+2:e.lineIndent||0){var B=Array(l).join(" "),F=[];w.map(function(k){(k=k.split(/\s*\n/)).length>1?F=F.concat(k.map(function(P,j){return(j&&P.length?`
`:"")+P})):F.push(k[0])}),w=F,l=em.apply(this,[B,e])}for(a=0,o=w.length;a<o;a++){var E=0;if(r=w[a],l&&r[0]==`
`&&(r=r.substr(1),E=1),p+f+(v=(n=Hl.apply(this,[r,e])).reduce(function(k,P){return k+P},0))>t||E){if(v>t){for(s=tm.apply(this,[r,n,t-(p+f),t]),u.push(s.shift()),u=[s.pop()];s.length;)h.push([s.shift()]);v=n.slice(r.length-(u[0]?u[0].length:0)).reduce(function(k,P){return k+P},0)}else u=[r];h.push(u),p=v+l,f=b}else u.push(r),p+=f+v,f=b}return c=l?function(k,P){return(P?B:"")+k.join(" ")}:function(k){return k.join(" ")},h.map(c)},Ms.splitTextToSize=function(A,t,e){var r,n=(e=e||{}).fontSize||this.internal.getFontSize(),a=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var h=this.internal.getFont(u.fontName,u.fontStyle),p="Unicode";return h.metadata[p]?{widths:h.metadata[p].widths||{0:1},kerning:h.metadata[p].kerning||{}}:{font:h.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);r=Array.isArray(A)?A:String(A).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/n;a.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/n:0,a.lineIndent=e.lineIndent;var s,l,c=[];for(s=0,l=r.length;s<l;s++)c=c.concat(rm.apply(this,[r[s],o,a]));return c},(function(A){A.__fontmetrics__=A.__fontmetrics__||{};for(var t="0123456789abcdef",e="klmnopqrstuvwxyz",r={},n={},a=0;a<16;a++)r[e[a]]=t[a],n[t[a]]=e[a];var o=function(p){return"0x"+parseInt(p,10).toString(16)},s=A.__fontmetrics__.compress=function(p){var f,v,w,b,B=["{"];for(var F in p){if(f=p[F],isNaN(parseInt(F,10))?v="'"+F+"'":(F=parseInt(F,10),v=(v=o(F).slice(2)).slice(0,-1)+n[v.slice(-1)]),typeof f=="number")f<0?(w=o(f).slice(3),b="-"):(w=o(f).slice(2),b=""),w=b+w.slice(0,-1)+n[w.slice(-1)];else{if(Dr(f)!=="object")throw new Error("Don't know what to do with value type "+Dr(f)+".");w=s(f)}B.push(v+w)}return B.push("}"),B.join("")},l=A.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var f,v,w,b,B={},F=1,E=B,k=[],P="",j="",M=p.length-1,O=1;O<M;O+=1)(b=p[O])=="'"?f?(w=f.join(""),f=void 0):f=[]:f?f.push(b):b=="{"?(k.push([E,w]),E={},w=void 0):b=="}"?((v=k.pop())[0][v[1]]=E,w=void 0,E=v[0]):b=="-"?F=-1:w===void 0?r.hasOwnProperty(b)?(P+=r[b],w=parseInt(P,16)*F,F=1,P=""):P+=b:r.hasOwnProperty(b)?(j+=r[b],E[w]=parseInt(j,16)*F,F=1,w=void 0,j=""):j+=b;return B},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={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}},h={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'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":l("{'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:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'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:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'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":l("{'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:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'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":l("{'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":l("{'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}}}")}};A.events.push(["addFont",function(p){var f=p.font,v=h.Unicode[f.postScriptName];v&&(f.metadata.Unicode={},f.metadata.Unicode.widths=v.widths,f.metadata.Unicode.kerning=v.kerning);var w=u.Unicode[f.postScriptName];w&&(f.metadata.Unicode.encoding=w,f.encoding=w.codePages[0])}])})(Wt.API),(function(A){var t=function(e){for(var r=e.length,n=new Uint8Array(r),a=0;a<r;a++)n[a]=e.charCodeAt(a);return n};A.API.events.push(["addFont",function(e){var r=void 0,n=e.font,a=e.instance;if(!n.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if(typeof(r=a.existsFileInVFS(n.postScriptName)===!1?a.loadFile(n.postScriptName):a.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(o,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(mc(s)),o.metadata=A.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(n,r)}}])})(Wt),Wt.API.addSvgAsImage=function(A,t,e,r,n,a,o,s){if(isNaN(t)||isNaN(e))throw zr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(n))throw zr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=r,l.height=n;var c=l.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return(er.canvg?Promise.resolve(er.canvg):Promise.resolve().then(()=>f8)).catch(function(p){return Promise.reject(new Error("Could not load canvg: "+p))}).then(function(p){return p.default?p.default:p}).then(function(p){return p.fromString(c,A,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(p){return p.render(u)}).then(function(){h.addImage(l.toDataURL("image/jpeg",1),t,e,r,n,o,s)})},Wt.API.putTotalPages=function(A){var t,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(A,"g"),e=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(A,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(t,e);return this},Wt.API.viewerPreferences=function(A,t){var e;A=A||{},t=t||!1;var r,n,a,o={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}},s=Object.keys(o),l=[],c=0,u=0,h=0;function p(v,w){var b,B=!1;for(b=0;b<v.length;b+=1)v[b]===w&&(B=!0);return B}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,A==="reset"||t===!0){var f=s.length;for(h=0;h<f;h+=1)e[s[h]].value=e[s[h]].defaultValue,e[s[h]].explicitSet=!1}if(Dr(A)==="object"){for(n in A)if(a=A[n],p(s,n)&&a!==void 0){if(e[n].type==="boolean"&&typeof a=="boolean")e[n].value=a;else if(e[n].type==="name"&&p(e[n].valueSet,a))e[n].value=a;else if(e[n].type==="integer"&&Number.isInteger(a))e[n].value=a;else if(e[n].type==="array"){for(c=0;c<a.length;c+=1)if(r=!0,a[c].length===1&&typeof a[c][0]=="number")l.push(String(a[c]-1));else if(a[c].length>1){for(u=0;u<a[c].length;u+=1)typeof a[c][u]!="number"&&(r=!1);r===!0&&l.push([a[c][0]-1,a[c][1]-1].join(" "))}e[n].value="["+l.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 v,w=[];for(v in e)e[v].explicitSet===!0&&(e[v].type==="name"?w.push("/"+v+" /"+e[v].value):w.push("/"+v+" "+e[v].value));w.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+w.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},(function(A){var t=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/">')),a=unescape(encodeURIComponent(r)),o=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),l=unescape(encodeURIComponent("</x:xmpmeta>")),c=a.length+o.length+s.length+n.length+l.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+a+o+s+l),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")};A.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",t)),this}})(Wt.API),(function(A){var t=A.API,e=t.pdfEscape16=function(a,o){for(var s,l=o.metadata.Unicode.widths,c=["","0","00","000","0000"],u=[""],h=0,p=a.length;h<p;++h){if(s=o.metadata.characterToGlyph(a.charCodeAt(h)),o.metadata.glyIdsUsed.push(s),o.metadata.toUnicode[s]=a.charCodeAt(h),l.indexOf(s)==-1&&(l.push(s),l.push([parseInt(o.metadata.widthOfGlyph(s),10)])),s=="0")return u.join("");s=s.toString(16),u.push(c[4-s.length],s)}return u.join("")},r=function(a){var o,s,l,c,u,h,p;for(u=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
  /Registry (Adobe)
  /Ordering (UCS)
  /Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,l=[],h=0,p=(s=Object.keys(a).sort(function(f,v){return f-v})).length;h<p;h++)o=s[h],l.length>=100&&(u+=`
`+l.length+` beginbfchar
`+l.join(`
`)+`
endbfchar`,l=[]),a[o]!==void 0&&a[o]!==null&&typeof a[o].toString=="function"&&(c=("0000"+a[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),l.push("<"+o+"><"+c+">"));return l.length&&(u+=`
`+l.length+` beginbfchar
`+l.join(`
`)+`
endbfchar
`),u+`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};t.events.push(["putFont",function(a){(function(o){var s=o.font,l=o.out,c=o.newObject,u=o.putStream;if(s.metadata instanceof A.API.TTFFont&&s.encoding==="Identity-H"){for(var h=s.metadata.Unicode.widths,p=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),f="",v=0;v<p.length;v++)f+=String.fromCharCode(p[v]);var w=c();u({data:f,addLength1:!0,objectId:w}),l("endobj");var b=c();u({data:r(s.metadata.toUnicode),addLength1:!0,objectId:b}),l("endobj");var B=c();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+js(s.fontName)),l("/FontFile2 "+w+" 0 R"),l("/FontBBox "+A.API.PDFObject.convert(s.metadata.bbox)),l("/Flags "+s.metadata.flags),l("/StemV "+s.metadata.stemV),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l(">>"),l("endobj");var F=c();l("<<"),l("/Type /Font"),l("/BaseFont /"+js(s.fontName)),l("/FontDescriptor "+B+" 0 R"),l("/W "+A.API.PDFObject.convert(h)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+s.encoding+")"),l(">>"),l(">>"),l("endobj"),s.objectNumber=c(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+b+" 0 R"),l("/BaseFont /"+js(s.fontName)),l("/Encoding /"+s.encoding),l("/DescendantFonts ["+F+" 0 R]"),l(">>"),l("endobj"),s.isAlreadyPutted=!0}})(a)}]),t.events.push(["putFont",function(a){(function(o){var s=o.font,l=o.out,c=o.newObject,u=o.putStream;if(s.metadata instanceof A.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var h=s.metadata.rawData,p="",f=0;f<h.length;f++)p+=String.fromCharCode(h[f]);var v=c();u({data:p,addLength1:!0,objectId:v}),l("endobj");var w=c();u({data:r(s.metadata.toUnicode),addLength1:!0,objectId:w}),l("endobj");var b=c();l("<<"),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l("/StemV "+s.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+v+" 0 R"),l("/Flags 96"),l("/FontBBox "+A.API.PDFObject.convert(s.metadata.bbox)),l("/FontName /"+js(s.fontName)),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l(">>"),l("endobj"),s.objectNumber=c();for(var B=0;B<s.metadata.hmtx.widths.length;B++)s.metadata.hmtx.widths[B]=parseInt(s.metadata.hmtx.widths[B]*(1e3/s.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+w+" 0 R/BaseFont/"+js(s.fontName)+"/FontDescriptor "+b+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+A.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),l("endobj"),s.isAlreadyPutted=!0}})(a)}]);var n=function(a){var o,s=a.text||"",l=a.x,c=a.y,u=a.options||{},h=a.mutex||{},p=h.pdfEscape,f=h.activeFontKey,v=h.fonts,w=f,b="",B=0,F="",E=v[w].encoding;if(v[w].encoding!=="Identity-H")return{text:s,x:l,y:c,options:u,mutex:h};for(F=s,w=f,Array.isArray(s)&&(F=s[0]),B=0;B<F.length;B+=1)v[w].metadata.hasOwnProperty("cmap")&&(o=v[w].metadata.cmap.unicode.codeMap[F[B].charCodeAt(0)]),o||F[B].charCodeAt(0)<256&&v[w].metadata.hasOwnProperty("Unicode")?b+=F[B]:b+="";var k="";return parseInt(w.slice(1))<14||E==="WinAnsiEncoding"?k=p(b,w).split("").map(function(P){return P.charCodeAt(0).toString(16)}).join(""):E==="Identity-H"&&(k=e(b,v[w])),h.isHex=!0,{text:k,x:l,y:c,options:u,mutex:h}};t.events.push(["postProcessText",function(a){var o=a.text||"",s=[],l={text:o,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(o)){var c=0;for(c=0;c<o.length;c+=1)Array.isArray(o[c])&&o[c].length===3?s.push([n(Object.assign({},l,{text:o[c][0]})).text,o[c][1],o[c][2]]):s.push(n(Object.assign({},l,{text:o[c]})).text);a.text=s}else a.text=n(Object.assign({},l,{text:o})).text}])})(Wt),(function(A){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};A.existsFileInVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0},A.addFileToVFS=function(e,r){return t.call(this),this.internal.vFS[e]=r,this},A.getFileFromVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}})(Wt.API),(function(A){A.__bidiEngine__=A.prototype.__bidiEngine__=function(r){var n,a,o,s,l,c,u,h=t,p=[[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]],v={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},w={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},b=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],B=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)$/),F=!1,E=0;this.__bidiEngine__={};var k=function(S){var T=S.charCodeAt(),G=T>>8,N=w[G];return N!==void 0?h[256*N+(255&T)]:G===252||G===253?"AL":B.test(G)?"L":G===8?"R":"N"},P=function(S){for(var T,G=0;G<S.length;G++){if((T=k(S.charAt(G)))==="L")return!1;if(T==="R")return!0}return!1},j=function(S,T,G,N){var oe,le,Z,ee,X=T[N];switch(X){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":F=!1;break;case"N":case"AN":break;case"EN":F&&(X="AN");break;case"AL":F=!0,X="R";break;case"WS":case"BN":X="N";break;case"CS":N<1||N+1>=T.length||(oe=G[N-1])!=="EN"&&oe!=="AN"||(le=T[N+1])!=="EN"&&le!=="AN"?X="N":F&&(le="AN"),X=le===oe?le:"N";break;case"ES":X=(oe=N>0?G[N-1]:"B")==="EN"&&N+1<T.length&&T[N+1]==="EN"?"EN":"N";break;case"ET":if(N>0&&G[N-1]==="EN"){X="EN";break}if(F){X="N";break}for(Z=N+1,ee=T.length;Z<ee&&T[Z]==="ET";)Z++;X=Z<ee&&T[Z]==="EN"?"EN":"N";break;case"NSM":if(o&&!s){for(ee=T.length,Z=N+1;Z<ee&&T[Z]==="NSM";)Z++;if(Z<ee){var re=S[N],se=re>=1425&&re<=2303||re===64286;if(oe=T[Z],se&&(oe==="R"||oe==="AL")){X="R";break}}}X=N<1||(oe=T[N-1])==="B"?"N":G[N-1];break;case"B":F=!1,n=!0,X=E;break;case"S":a=!0,X="N"}return X},M=function(S,T,G){var N=S.split("");return G&&O(N,G,{hiLevel:E}),N.reverse(),T&&T.reverse(),N.join("")},O=function(S,T,G){var N,oe,le,Z,ee,X=-1,re=S.length,se=0,x=[],I=E?f:p,W=[];for(F=!1,n=!1,a=!1,oe=0;oe<re;oe++)W[oe]=k(S[oe]);for(le=0;le<re;le++){if(ee=se,x[le]=j(S,W,x,le),N=240&(se=I[ee][v[x[le]]]),se&=15,T[le]=Z=I[se][5],N>0)if(N===16){for(oe=X;oe<le;oe++)T[oe]=1;X=-1}else X=-1;if(I[se][6])X===-1&&(X=le);else if(X>-1){for(oe=X;oe<le;oe++)T[oe]=Z;X=-1}W[le]==="B"&&(T[le]=0),G.hiLevel|=Z}a&&(function(z,Ae,he){for(var fe=0;fe<he;fe++)if(z[fe]==="S"){Ae[fe]=E;for(var ce=fe-1;ce>=0&&z[ce]==="WS";ce--)Ae[ce]=E}})(W,T,re)},L=function(S,T,G,N,oe){if(!(oe.hiLevel<S)){if(S===1&&E===1&&!n)return T.reverse(),void(G&&G.reverse());for(var le,Z,ee,X,re=T.length,se=0;se<re;){if(N[se]>=S){for(ee=se+1;ee<re&&N[ee]>=S;)ee++;for(X=se,Z=ee-1;X<Z;X++,Z--)le=T[X],T[X]=T[Z],T[Z]=le,G&&(le=G[X],G[X]=G[Z],G[Z]=le);se=ee}se++}}},R=function(S,T,G){var N=S.split(""),oe={hiLevel:E};return G||(G=[]),O(N,G,oe),(function(le,Z,ee){if(ee.hiLevel!==0&&u)for(var X,re=0;re<le.length;re++)Z[re]===1&&(X=b.indexOf(le[re]))>=0&&(le[re]=b[X+1])})(N,G,oe),L(2,N,T,G,oe),L(1,N,T,G,oe),N.join("")};return this.__bidiEngine__.doBidiReorder=function(S,T,G){if((function(oe,le){if(le)for(var Z=0;Z<oe.length;Z++)le[Z]=Z;s===void 0&&(s=P(oe)),c===void 0&&(c=P(oe))})(S,T),o||!l||c)if(o&&l&&s^c)E=s?1:0,S=M(S,T,G);else if(!o&&l&&c)E=s?1:0,S=R(S,T,G),S=M(S,T);else if(!o||s||l||c){if(o&&!l&&s^c)S=M(S,T),s?(E=0,S=R(S,T,G)):(E=1,S=R(S,T,G),S=M(S,T));else if(o&&s&&!l&&c)E=1,S=R(S,T,G),S=M(S,T);else if(!o&&!l&&s^c){var N=u;s?(E=1,S=R(S,T,G),E=0,u=!1,S=R(S,T,G),u=N):(E=0,S=R(S,T,G),S=M(S,T),E=1,u=!1,S=R(S,T,G),u=N,S=M(S,T))}}else E=0,S=R(S,T,G);else E=s?1:0,S=R(S,T,G);return S},this.__bidiEngine__.setOptions=function(S){S&&(o=S.isInputVisual,l=S.isOutputVisual,s=S.isInputRtl,c=S.isOutputRtl,u=S.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var t=["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 A.__bidiEngine__({isInputVisual:!0});A.API.events.push(["postProcessText",function(r){var n=r.text;r.x,r.y;var a=r.options||{};r.mutex,a.lang;var o=[];if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,e.setOptions(a),Object.prototype.toString.call(n)==="[object Array]"){var s=0;for(o=[],s=0;s<n.length;s+=1)Object.prototype.toString.call(n[s])==="[object Array]"?o.push([e.doBidiReorder(n[s][0]),n[s][1],n[s][2]]):o.push([e.doBidiReorder(n[s])]);r.text=o}else r.text=e.doBidiReorder(n);e.setOptions({isInputVisual:!0})}])})(Wt),Wt.API.TTFFont=(function(){function A(t){var e;if(this.rawData=t,e=this.contents=new qi(t),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new AD(this),this.registerTTF()}return A.open=function(t){return new A(t)},A.prototype.parse=function(){return this.directory=new KU(this.contents),this.head=new jU(this),this.name=new $U(this),this.cmap=new r5(this),this.toUnicode={},this.hhea=new WU(this),this.maxp=new XU(this),this.hmtx=new JU(this),this.post=new YU(this),this.os2=new GU(this),this.loca=new rD(this),this.glyf=new ZU(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]},A.prototype.registerTTF=function(){var t,e,r,n,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var o,s,l,c;for(c=[],o=0,s=(l=this.bbox).length;o<s;o++)t=l[o],c.push(Math.round(t*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=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===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")},A.prototype.characterToGlyph=function(t){var e;return((e=this.cmap.unicode)!=null?e.codeMap[t]:void 0)||0},A.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},A.prototype.widthOfString=function(t,e,r){var n,a,o,s;for(o=0,a=0,s=(t=""+t).length;0<=s?a<s:a>s;a=0<=s?++a:--a)n=t.charCodeAt(a),o+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/e)||0;return o*(e/1e3)},A.prototype.lineHeight=function(t,e){var r;return e==null&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},A})();var Da,qi=(function(){function A(t){this.data=t??[],this.pos=0,this.length=this.data.length}return A.prototype.readByte=function(){return this.data[this.pos++]},A.prototype.writeByte=function(t){return this.data[this.pos++]=t},A.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},A.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},A.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},A.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},A.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},A.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},A.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},A.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},A.prototype.readString=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},A.prototype.writeString=function(t){var e,r,n;for(n=[],e=0,r=t.length;0<=r?e<r:e>r;e=0<=r?++e:--e)n.push(this.writeByte(t.charCodeAt(e)));return n},A.prototype.readShort=function(){return this.readInt16()},A.prototype.writeShort=function(t){return this.writeInt16(t)},A.prototype.readLongLong=function(){var t,e,r,n,a,o,s,l;return t=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),l=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^a)+65536*(255^o)+256*(255^s)+(255^l)+1):72057594037927940*t+281474976710656*e+1099511627776*r+4294967296*n+16777216*a+65536*o+256*s+l},A.prototype.writeLongLong=function(t){var e,r;return e=Math.floor(t/4294967296),r=4294967295&t,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)},A.prototype.readInt=function(){return this.readInt32()},A.prototype.writeInt=function(t){return this.writeInt32(t)},A.prototype.read=function(t){var e,r;for(e=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)e.push(this.readByte());return e},A.prototype.write=function(t){var e,r,n,a;for(a=[],r=0,n=t.length;r<n;r++)e=t[r],a.push(this.writeByte(e));return a},A})(),KU=(function(){var A;function t(e){var r,n,a;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,a=this.tableCount;0<=a?n<a:n>a;n=0<=a?++n:--n)r={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[r.tag]=r}return t.prototype.encode=function(e){var r,n,a,o,s,l,c,u,h,p,f,v,w;for(w in f=Object.keys(e).length,l=Math.log(2),h=16*Math.floor(Math.log(f)/l),o=Math.floor(h/l),u=16*f-h,(n=new qi).writeInt(this.scalarType),n.writeShort(f),n.writeShort(h),n.writeShort(o),n.writeShort(u),a=16*f,c=n.pos+a,s=null,v=[],e)for(p=e[w],n.writeString(w),n.writeInt(A(p)),n.writeInt(c),n.writeInt(p.length),v=v.concat(p),w==="head"&&(s=c),c+=p.length;c%4;)v.push(0),c++;return n.write(v),r=2981146554-A(n.data),n.pos=s+8,n.writeUInt32(r),n.data},A=function(e){var r,n,a,o;for(e=A5.call(e);e.length%4;)e.push(0);for(a=new qi(e),n=0,r=0,o=e.length;r<o;r=r+=4)n+=a.readUInt32();return 4294967295&n},t})(),qU={}.hasOwnProperty,Wa=function(A,t){for(var e in t)qU.call(t,e)&&(A[e]=t[e]);function r(){this.constructor=A}return r.prototype=t.prototype,A.prototype=new r,A.__super__=t.prototype,A};Da=(function(){function A(t){var e;this.file=t,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 A.prototype.parse=function(){},A.prototype.encode=function(){},A.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},A})();var jU=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Wa(A,Da),A.prototype.tag="head",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},A.prototype.encode=function(t){var e;return(e=new qi).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(t),e.writeShort(this.glyphDataFormat),e.data},A})(),um=(function(){function A(t,e){var r,n,a,o,s,l,c,u,h,p,f,v,w,b,B,F,E;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),h=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.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(l=0;l<256;++l)this.codeMap[l]=t.readByte();break;case 4:for(f=t.readUInt16(),p=f/2,t.pos+=6,a=(function(){var k,P;for(P=[],l=k=0;0<=p?k<p:k>p;l=0<=p?++k:--k)P.push(t.readUInt16());return P})(),t.pos+=2,w=(function(){var k,P;for(P=[],l=k=0;0<=p?k<p:k>p;l=0<=p?++k:--k)P.push(t.readUInt16());return P})(),c=(function(){var k,P;for(P=[],l=k=0;0<=p?k<p:k>p;l=0<=p?++k:--k)P.push(t.readUInt16());return P})(),u=(function(){var k,P;for(P=[],l=k=0;0<=p?k<p:k>p;l=0<=p?++k:--k)P.push(t.readUInt16());return P})(),n=(this.length-t.pos+this.offset)/2,s=(function(){var k,P;for(P=[],l=k=0;0<=n?k<n:k>n;l=0<=n?++k:--k)P.push(t.readUInt16());return P})(),l=B=0,E=a.length;B<E;l=++B)for(b=a[l],r=F=v=w[l];v<=b?F<=b:F>=b;r=v<=b?++F:--F)u[l]===0?o=r+c[l]:(o=s[u[l]/2+(r-v)-(p-l)]||0)!==0&&(o+=c[l]),this.codeMap[r]=65535&o}t.pos=h}return A.encode=function(t,e){var r,n,a,o,s,l,c,u,h,p,f,v,w,b,B,F,E,k,P,j,M,O,L,R,S,T,G,N,oe,le,Z,ee,X,re,se,x,I,W,z,Ae,he,fe,ce,Fe,Pe,Ze;switch(N=new qi,o=Object.keys(t).sort(function(tt,lt){return tt-lt}),e){case"macroman":for(w=0,b=(function(){var tt=[];for(v=0;v<256;++v)tt.push(0);return tt})(),F={0:0},a={},oe=0,X=o.length;oe<X;oe++)F[ce=t[n=o[oe]]]==null&&(F[ce]=++w),a[n]={old:t[n],new:F[t[n]]},b[n]=F[t[n]];return N.writeUInt16(1),N.writeUInt16(0),N.writeUInt32(12),N.writeUInt16(0),N.writeUInt16(262),N.writeUInt16(0),N.write(b),{charMap:a,subtable:N.data,maxGlyphID:w+1};case"unicode":for(T=[],h=[],E=0,F={},r={},B=c=null,le=0,re=o.length;le<re;le++)F[P=t[n=o[le]]]==null&&(F[P]=++E),r[n]={old:P,new:F[P]},s=F[P]-n,B!=null&&s===c||(B&&h.push(B),T.push(n),c=s),B=n;for(B&&h.push(B),h.push(65535),T.push(65535),R=2*(L=T.length),O=2*Math.pow(Math.log(L)/Math.LN2,2),p=Math.log(O/2)/Math.LN2,M=2*L-O,l=[],j=[],f=[],v=Z=0,se=T.length;Z<se;v=++Z){if(S=T[v],u=h[v],S===65535){l.push(0),j.push(0);break}if(S-(G=r[S].new)>=32768)for(l.push(0),j.push(2*(f.length+L-v)),n=ee=S;S<=u?ee<=u:ee>=u;n=S<=u?++ee:--ee)f.push(r[n].new);else l.push(G-S),j.push(0)}for(N.writeUInt16(3),N.writeUInt16(1),N.writeUInt32(12),N.writeUInt16(4),N.writeUInt16(16+8*L+2*f.length),N.writeUInt16(0),N.writeUInt16(R),N.writeUInt16(O),N.writeUInt16(p),N.writeUInt16(M),he=0,x=h.length;he<x;he++)n=h[he],N.writeUInt16(n);for(N.writeUInt16(0),fe=0,I=T.length;fe<I;fe++)n=T[fe],N.writeUInt16(n);for(Fe=0,W=l.length;Fe<W;Fe++)s=l[Fe],N.writeUInt16(s);for(Pe=0,z=j.length;Pe<z;Pe++)k=j[Pe],N.writeUInt16(k);for(Ze=0,Ae=f.length;Ze<Ae;Ze++)w=f[Ze],N.writeUInt16(w);return{charMap:r,subtable:N.data,maxGlyphID:E+1}}},A})(),r5=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Wa(A,Da),A.prototype.tag="cmap",A.prototype.parse=function(t){var e,r,n;for(t.pos=this.offset,this.version=t.readUInt16(),n=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)e=new um(t,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return!0},A.encode=function(t,e){var r,n;return e==null&&(e="macroman"),r=um.encode(t,e),(n=new qi).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},A})(),WU=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Wa(A,Da),A.prototype.tag="hhea",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},A})(),GU=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Wa(A,Da),A.prototype.tag="OS/2",A.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=(function(){var e,r;for(r=[],e=0;e<10;++e)r.push(t.readByte());return r})(),this.charRange=(function(){var e,r;for(r=[],e=0;e<4;++e)r.push(t.readInt());return r})(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=(function(){var e,r;for(r=[],e=0;e<2;e=++e)r.push(t.readInt());return r})(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},A})(),YU=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Wa(A,Da),A.prototype.tag="post",A.prototype.parse=function(t){var e,r,n;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var a;for(r=t.readUInt16(),this.glyphNameIndex=[],a=0;0<=r?a<r:a>r;a=0<=r?++a:--a)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],n=[];t.pos<this.offset+this.length;)e=t.readByte(),n.push(this.names.push(t.readString(e)));return n;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=(function(){var o,s,l;for(l=[],a=o=0,s=this.file.maxp.numGlyphs;0<=s?o<s:o>s;a=0<=s?++o:--o)l.push(t.readUInt32());return l}).call(this)}},A})(),zU=function(A,t){this.raw=A,this.length=A.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},$U=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Wa(A,Da),A.prototype.tag="name",A.prototype.parse=function(t){var e,r,n,a,o,s,l,c,u,h,p;for(t.pos=this.offset,t.readShort(),e=t.readShort(),s=t.readShort(),r=[],a=0;0<=e?a<e:a>e;a=0<=e?++a:--a)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+s+t.readShort()});for(l={},a=u=0,h=r.length;u<h;a=++u)n=r[a],t.pos=n.offset,c=t.readString(n.length),o=new zU(c,n),l[p=n.nameID]==null&&(l[p]=[]),l[n.nameID].push(o);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},A})(),XU=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Wa(A,Da),A.prototype.tag="maxp",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},A})(),JU=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Wa(A,Da),A.prototype.tag="hmtx",A.prototype.parse=function(t){var e,r,n,a,o,s,l;for(t.pos=this.offset,this.metrics=[],e=0,s=this.file.hhea.numberOfMetrics;0<=s?e<s:e>s;e=0<=s?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var c,u;for(u=[],e=c=0;0<=n?c<n:c>n;e=0<=n?++c:--c)u.push(t.readInt16());return u})(),this.widths=(function(){var c,u,h,p;for(p=[],c=0,u=(h=this.metrics).length;c<u;c++)a=h[c],p.push(a.advance);return p}).call(this),r=this.widths[this.widths.length-1],l=[],e=o=0;0<=n?o<n:o>n;e=0<=n?++o:--o)l.push(this.widths.push(r));return l},A.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},A})(),A5=[].slice,ZU=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Wa(A,Da),A.prototype.tag="glyf",A.prototype.parse=function(){return this.cache={}},A.prototype.glyphFor=function(t){var e,r,n,a,o,s,l,c,u,h;return t in this.cache?this.cache[t]:(a=this.file.loca,e=this.file.contents,r=a.indexOf(t),(n=a.lengthOf(t))===0?this.cache[t]=null:(e.pos=this.offset+r,o=(s=new qi(e.read(n))).readShort(),c=s.readShort(),h=s.readShort(),l=s.readShort(),u=s.readShort(),this.cache[t]=o===-1?new tD(s,c,h,l,u):new eD(s,o,c,h,l,u),this.cache[t]))},A.prototype.encode=function(t,e,r){var n,a,o,s,l;for(o=[],a=[],s=0,l=e.length;s<l;s++)n=t[e[s]],a.push(o.length),n&&(o=o.concat(n.encode(r)));return a.push(o.length),{table:o,offsets:a}},A})(),eD=(function(){function A(t,e,r,n,a,o){this.raw=t,this.numberOfContours=e,this.xMin=r,this.yMin=n,this.xMax=a,this.yMax=o,this.compound=!1}return A.prototype.encode=function(){return this.raw.data},A})(),tD=(function(){function A(t,e,r,n,a){var o,s;for(this.raw=t,this.xMin=e,this.yMin=r,this.xMax=n,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;s=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&s;)o.pos+=1&s?4:2,128&s?o.pos+=8:64&s?o.pos+=4:8&s&&(o.pos+=2)}return A.prototype.encode=function(){var t,e,r;for(e=new qi(A5.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)e.pos=this.glyphOffsets[t];return e.data},A})(),rD=(function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Wa(A,Da),A.prototype.tag="loca",A.prototype.parse=function(t){var e,r;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=e===0?(function(){var n,a;for(a=[],r=0,n=this.length;r<n;r+=2)a.push(2*t.readUInt16());return a}).call(this):(function(){var n,a;for(a=[],r=0,n=this.length;r<n;r+=4)a.push(t.readUInt32());return a}).call(this)},A.prototype.indexOf=function(t){return this.offsets[t]},A.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},A.prototype.encode=function(t,e){for(var r=new Uint32Array(this.offsets.length),n=0,a=0,o=0;o<r.length;++o)if(r[o]=n,a<e.length&&e[a]==o){++a,r[o]=n;var s=this.offsets[o],l=this.offsets[o+1]-s;l>0&&(n+=l)}for(var c=new Array(4*r.length),u=0;u<r.length;++u)c[4*u+3]=255&r[u],c[4*u+2]=(65280&r[u])>>8,c[4*u+1]=(16711680&r[u])>>16,c[4*u]=(4278190080&r[u])>>24;return c},A})(),AD=(function(){function A(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return A.prototype.generateCmap=function(){var t,e,r,n,a;for(e in n=this.font.cmap.tables[0].codeMap,t={},a=this.subset)r=a[e],t[e]=n[r];return t},A.prototype.glyphsFor=function(t){var e,r,n,a,o,s,l;for(n={},o=0,s=t.length;o<s;o++)n[a=t[o]]=this.font.glyf.glyphFor(a);for(a in e=[],n)(r=n[a])!=null&&r.compound&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(a in l=this.glyphsFor(e))r=l[a],n[a]=r;return n},A.prototype.encode=function(t,e){var r,n,a,o,s,l,c,u,h,p,f,v,w,b,B;for(n in r=r5.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),f={0:0},B=r.charMap)f[(l=B[n]).old]=l.new;for(v in p=r.maxGlyphID,o)v in f||(f[v]=p++);return u=(function(F){var E,k;for(E in k={},F)k[F[E]]=E;return k})(f),h=Object.keys(u).sort(function(F,E){return F-E}),w=(function(){var F,E,k;for(k=[],F=0,E=h.length;F<E;F++)s=h[F],k.push(u[s]);return k})(),a=this.font.glyf.encode(o,w,f),c=this.font.loca.encode(a.offsets,w),b={cmap:this.font.cmap.raw(),glyf:a.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&&(b["OS/2"]=this.font.os2.raw()),this.font.directory.encode(b)},A})();Wt.API.PDFObject=(function(){var A;function t(){}return A=function(e,r){return(Array(r+1).join("0")+e).slice(-r)},t.convert=function(e){var r,n,a,o;if(Array.isArray(e))return"["+(function(){var s,l,c;for(c=[],s=0,l=e.length;s<l;s++)r=e[s],c.push(t.convert(r));return c})().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e!=null&&e.isString)return"("+e+")";if(e instanceof Date)return"(D:"+A(e.getUTCFullYear(),4)+A(e.getUTCMonth(),2)+A(e.getUTCDate(),2)+A(e.getUTCHours(),2)+A(e.getUTCMinutes(),2)+A(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(n in a=["<<"],e)o=e[n],a.push("/"+n+" "+t.convert(o));return a.push(">>"),a.join(`
`)}return""+e},t})();/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Dg=function(A,t){return Dg=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])},Dg(A,t)};function Qa(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Dg(A,t);function e(){this.constructor=A}A.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Qg=function(){return Qg=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Qg.apply(this,arguments)};function Sn(A,t,e,r){function n(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(h){o(h)}}function l(u){try{c(r.throw(u))}catch(h){o(h)}}function c(u){u.done?a(u.value):n(u.value).then(s,l)}c((r=r.apply(A,[])).next())})}function wn(A,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;e;)try{if(r=1,n&&(a=c[0]&2?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=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(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){e.label=c[1];break}if(c[0]===6&&e.label<a[1]){e.label=a[1],a=c;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(c);break}a[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(A,e)}catch(u){c=[6,u],n=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Pl(A,t,e){if(arguments.length===2)for(var r=0,n=t.length,a;r<n;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return A.concat(a||t)}var fi=(function(){function A(t,e,r,n){this.left=t,this.top=e,this.width=r,this.height=n}return A.prototype.add=function(t,e,r,n){return new A(this.left+t,this.top+e,this.width+r,this.height+n)},A.fromClientRect=function(t,e){return new A(e.left+t.windowBounds.left,e.top+t.windowBounds.top,e.width,e.height)},A.fromDOMRectList=function(t,e){var r=Array.from(e).find(function(n){return n.width!==0});return r?new A(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A})(),Gc=function(A,t){return fi.fromClientRect(A,t.getBoundingClientRect())},nD=function(A){var t=A.body,e=A.documentElement;if(!t||!e)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,e.scrollWidth),Math.max(t.offsetWidth,e.offsetWidth),Math.max(t.clientWidth,e.clientWidth)),n=Math.max(Math.max(t.scrollHeight,e.scrollHeight),Math.max(t.offsetHeight,e.offsetHeight),Math.max(t.clientHeight,e.clientHeight));return new fi(0,0,r,n)},Yc=function(A){for(var t=[],e=0,r=A.length;e<r;){var n=A.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var a=A.charCodeAt(e++);(a&64512)===56320?t.push(((n&1023)<<10)+(a&1023)+65536):(t.push(n),e--)}else t.push(n)}return t},DA=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var e=A.length;if(!e)return"";for(var r=[],n=-1,a="";++n<e;){var o=A[n];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(n+1===e||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},fm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",aD=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Vl=0;Vl<fm.length;Vl++)aD[fm.charCodeAt(Vl)]=Vl;var dm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Io=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Kl=0;Kl<dm.length;Kl++)Io[dm.charCodeAt(Kl)]=Kl;var iD=function(A){var t=A.length*.75,e=A.length,r,n=0,a,o,s,l;A[A.length-1]==="="&&(t--,A[A.length-2]==="="&&t--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),u=Array.isArray(c)?c:new Uint8Array(c);for(r=0;r<e;r+=4)a=Io[A.charCodeAt(r)],o=Io[A.charCodeAt(r+1)],s=Io[A.charCodeAt(r+2)],l=Io[A.charCodeAt(r+3)],u[n++]=a<<2|o>>4,u[n++]=(o&15)<<4|s>>2,u[n++]=(s&3)<<6|l&63;return c},sD=function(A){for(var t=A.length,e=[],r=0;r<t;r+=2)e.push(A[r+1]<<8|A[r]);return e},oD=function(A){for(var t=A.length,e=[],r=0;r<t;r+=4)e.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return e},fs=5,bp=11,sf=2,lD=bp-fs,n5=65536>>fs,cD=1<<fs,of=cD-1,uD=1024>>fs,fD=n5+uD,dD=fD,hD=32,gD=dD+hD,pD=65536>>bp,vD=1<<lD,mD=vD-1,hm=function(A,t,e){return A.slice?A.slice(t,e):new Uint16Array(Array.prototype.slice.call(A,t,e))},wD=function(A,t,e){return A.slice?A.slice(t,e):new Uint32Array(Array.prototype.slice.call(A,t,e))},BD=function(A,t){var e=iD(A),r=Array.isArray(e)?oD(e):new Uint32Array(e),n=Array.isArray(e)?sD(e):new Uint16Array(e),a=24,o=hm(n,a/2,r[4]/2),s=r[5]===2?hm(n,(a+r[4])/2):wD(r,Math.ceil((a+r[4])/4));return new yD(r[0],r[1],r[2],r[3],o,s)},yD=(function(){function A(t,e,r,n,a,o){this.initialValue=t,this.errorValue=e,this.highStart=r,this.highValueIndex=n,this.index=a,this.data=o}return A.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>fs],e=(e<<sf)+(t&of),this.data[e];if(t<=65535)return e=this.index[n5+(t-55296>>fs)],e=(e<<sf)+(t&of),this.data[e];if(t<this.highStart)return e=gD-pD+(t>>bp),e=this.index[e],e+=t>>fs&mD,e=this.index[e],e=(e<<sf)+(t&of),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),gm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bD=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ql=0;ql<gm.length;ql++)bD[gm.charCodeAt(ql)]=ql;var CD="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==",pm=50,ED=1,a5=2,i5=3,FD=4,kD=5,vm=7,s5=8,mm=9,Ri=10,Lg=11,wm=12,Ig=13,xD=14,No=15,Ng=16,jl=17,Co=18,SD=19,Bm=20,_g=21,Eo=22,lf=23,Os=24,Jn=25,_o=26,Mo=27,Rs=28,TD=29,os=30,UD=31,Wl=32,Gl=33,Mg=34,Og=35,Rg=36,$o=37,Hg=38,Cc=39,Ec=40,cf=41,o5=42,DD=43,QD=[9001,65288],l5="!",vr="×",Yl="÷",Pg=BD(CD),ni=[os,Rg],Vg=[ED,a5,i5,kD],c5=[Ri,s5],ym=[Mo,_o],LD=Vg.concat(c5),bm=[Hg,Cc,Ec,Mg,Og],ID=[No,Ig],ND=function(A,t){t===void 0&&(t="strict");var e=[],r=[],n=[];return A.forEach(function(a,o){var s=Pg.get(a);if(s>pm?(n.push(!0),s-=pm):n.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return r.push(o),e.push(Ng);if(s===FD||s===Lg){if(o===0)return r.push(o),e.push(os);var l=e[o-1];return LD.indexOf(l)===-1?(r.push(r[o-1]),e.push(l)):(r.push(o),e.push(os))}if(r.push(o),s===UD)return e.push(t==="strict"?_g:$o);if(s===o5||s===TD)return e.push(os);if(s===DD)return a>=131072&&a<=196605||a>=196608&&a<=262141?e.push($o):e.push(os);e.push(s)}),[r,e,n]},uf=function(A,t,e,r){var n=r[e];if(Array.isArray(A)?A.indexOf(n)!==-1:A===n)for(var a=e;a<=r.length;){a++;var o=r[a];if(o===t)return!0;if(o!==Ri)break}if(n===Ri)for(var a=e;a>0;){a--;var s=r[a];if(Array.isArray(A)?A.indexOf(s)!==-1:A===s)for(var l=e;l<=r.length;){l++;var o=r[l];if(o===t)return!0;if(o!==Ri)break}if(s!==Ri)break}return!1},Cm=function(A,t){for(var e=A;e>=0;){var r=t[e];if(r===Ri)e--;else return r}return 0},_D=function(A,t,e,r,n){if(e[r]===0)return vr;var a=r-1;if(Array.isArray(n)&&n[a]===!0)return vr;var o=a-1,s=a+1,l=t[a],c=o>=0?t[o]:0,u=t[s];if(l===a5&&u===i5)return vr;if(Vg.indexOf(l)!==-1)return l5;if(Vg.indexOf(u)!==-1||c5.indexOf(u)!==-1)return vr;if(Cm(a,t)===s5)return Yl;if(Pg.get(A[a])===Lg||(l===Wl||l===Gl)&&Pg.get(A[s])===Lg||l===vm||u===vm||l===mm||[Ri,Ig,No].indexOf(l)===-1&&u===mm||[jl,Co,SD,Os,Rs].indexOf(u)!==-1||Cm(a,t)===Eo||uf(lf,Eo,a,t)||uf([jl,Co],_g,a,t)||uf(wm,wm,a,t))return vr;if(l===Ri)return Yl;if(l===lf||u===lf)return vr;if(u===Ng||l===Ng)return Yl;if([Ig,No,_g].indexOf(u)!==-1||l===xD||c===Rg&&ID.indexOf(l)!==-1||l===Rs&&u===Rg||u===Bm||ni.indexOf(u)!==-1&&l===Jn||ni.indexOf(l)!==-1&&u===Jn||l===Mo&&[$o,Wl,Gl].indexOf(u)!==-1||[$o,Wl,Gl].indexOf(l)!==-1&&u===_o||ni.indexOf(l)!==-1&&ym.indexOf(u)!==-1||ym.indexOf(l)!==-1&&ni.indexOf(u)!==-1||[Mo,_o].indexOf(l)!==-1&&(u===Jn||[Eo,No].indexOf(u)!==-1&&t[s+1]===Jn)||[Eo,No].indexOf(l)!==-1&&u===Jn||l===Jn&&[Jn,Rs,Os].indexOf(u)!==-1)return vr;if([Jn,Rs,Os,jl,Co].indexOf(u)!==-1)for(var h=a;h>=0;){var p=t[h];if(p===Jn)return vr;if([Rs,Os].indexOf(p)!==-1)h--;else break}if([Mo,_o].indexOf(u)!==-1)for(var h=[jl,Co].indexOf(l)!==-1?o:a;h>=0;){var p=t[h];if(p===Jn)return vr;if([Rs,Os].indexOf(p)!==-1)h--;else break}if(Hg===l&&[Hg,Cc,Mg,Og].indexOf(u)!==-1||[Cc,Mg].indexOf(l)!==-1&&[Cc,Ec].indexOf(u)!==-1||[Ec,Og].indexOf(l)!==-1&&u===Ec||bm.indexOf(l)!==-1&&[Bm,_o].indexOf(u)!==-1||bm.indexOf(u)!==-1&&l===Mo||ni.indexOf(l)!==-1&&ni.indexOf(u)!==-1||l===Os&&ni.indexOf(u)!==-1||ni.concat(Jn).indexOf(l)!==-1&&u===Eo&&QD.indexOf(A[s])===-1||ni.concat(Jn).indexOf(u)!==-1&&l===Co)return vr;if(l===cf&&u===cf){for(var f=e[a],v=1;f>0&&(f--,t[f]===cf);)v++;if(v%2!==0)return vr}return l===Wl&&u===Gl?vr:Yl},MD=function(A,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var e=ND(A,t.lineBreak),r=e[0],n=e[1],a=e[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(n=n.map(function(s){return[Jn,os,o5].indexOf(s)!==-1?$o:s}));var o=t.wordBreak==="keep-all"?a.map(function(s,l){return s&&A[l]>=19968&&A[l]<=40959}):void 0;return[r,n,o]},OD=(function(){function A(t,e,r,n){this.codePoints=t,this.required=e===l5,this.start=r,this.end=n}return A.prototype.slice=function(){return DA.apply(void 0,this.codePoints.slice(this.start,this.end))},A})(),RD=function(A,t){var e=Yc(A),r=MD(e,t),n=r[0],a=r[1],o=r[2],s=e.length,l=0,c=0;return{next:function(){if(c>=s)return{done:!0,value:null};for(var u=vr;c<s&&(u=_D(e,a,n,++c,o))===vr;);if(u!==vr||c===s){var h=new OD(e,u,l,c);return l=c,{value:h,done:!1}}return{done:!0,value:null}}}},HD=1,PD=2,el=4,Em=8,Ic=10,Fm=47,Ko=92,VD=9,KD=32,zl=34,Fo=61,qD=35,jD=36,WD=37,$l=39,Xl=40,ko=41,GD=95,On=45,YD=33,zD=60,$D=62,XD=64,JD=91,ZD=93,eQ=61,tQ=123,Jl=63,rQ=125,km=124,AQ=126,nQ=128,xm=65533,ff=42,ls=43,aQ=44,iQ=58,sQ=59,Xo=46,oQ=0,lQ=8,cQ=11,uQ=14,fQ=31,dQ=127,Ka=-1,u5=48,f5=97,d5=101,hQ=102,gQ=117,pQ=122,h5=65,g5=69,p5=70,vQ=85,mQ=90,Bn=function(A){return A>=u5&&A<=57},wQ=function(A){return A>=55296&&A<=57343},Hs=function(A){return Bn(A)||A>=h5&&A<=p5||A>=f5&&A<=hQ},BQ=function(A){return A>=f5&&A<=pQ},yQ=function(A){return A>=h5&&A<=mQ},bQ=function(A){return BQ(A)||yQ(A)},CQ=function(A){return A>=nQ},Zl=function(A){return A===Ic||A===VD||A===KD},Nc=function(A){return bQ(A)||CQ(A)||A===GD},Sm=function(A){return Nc(A)||Bn(A)||A===On},EQ=function(A){return A>=oQ&&A<=lQ||A===cQ||A>=uQ&&A<=fQ||A===dQ},_i=function(A,t){return A!==Ko?!1:t!==Ic},ec=function(A,t,e){return A===On?Nc(t)||_i(t,e):Nc(A)?!0:!!(A===Ko&&_i(A,t))},df=function(A,t,e){return A===ls||A===On?Bn(t)?!0:t===Xo&&Bn(e):Bn(A===Xo?t:A)},FQ=function(A){var t=0,e=1;(A[t]===ls||A[t]===On)&&(A[t]===On&&(e=-1),t++);for(var r=[];Bn(A[t]);)r.push(A[t++]);var n=r.length?parseInt(DA.apply(void 0,r),10):0;A[t]===Xo&&t++;for(var a=[];Bn(A[t]);)a.push(A[t++]);var o=a.length,s=o?parseInt(DA.apply(void 0,a),10):0;(A[t]===g5||A[t]===d5)&&t++;var l=1;(A[t]===ls||A[t]===On)&&(A[t]===On&&(l=-1),t++);for(var c=[];Bn(A[t]);)c.push(A[t++]);var u=c.length?parseInt(DA.apply(void 0,c),10):0;return e*(n+s*Math.pow(10,-o))*Math.pow(10,l*u)},kQ={type:2},xQ={type:3},SQ={type:4},TQ={type:13},UQ={type:8},DQ={type:21},QQ={type:9},LQ={type:10},IQ={type:11},NQ={type:12},_Q={type:14},tc={type:23},MQ={type:1},OQ={type:25},RQ={type:24},HQ={type:26},PQ={type:27},VQ={type:28},KQ={type:29},qQ={type:31},Kg={type:32},v5=(function(){function A(){this._value=[]}return A.prototype.write=function(t){this._value=this._value.concat(Yc(t))},A.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==Kg;)t.push(e),e=this.consumeToken();return t},A.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case zl:return this.consumeStringToken(zl);case qD:var e=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Sm(e)||_i(r,n)){var a=ec(e,r,n)?PD:HD,o=this.consumeName();return{type:5,value:o,flags:a}}break;case jD:if(this.peekCodePoint(0)===Fo)return this.consumeCodePoint(),TQ;break;case $l:return this.consumeStringToken($l);case Xl:return kQ;case ko:return xQ;case ff:if(this.peekCodePoint(0)===Fo)return this.consumeCodePoint(),_Q;break;case ls:if(df(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case aQ:return SQ;case On:var s=t,l=this.peekCodePoint(0),c=this.peekCodePoint(1);if(df(s,l,c))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(ec(s,l,c))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(l===On&&c===$D)return this.consumeCodePoint(),this.consumeCodePoint(),RQ;break;case Xo:if(df(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Fm:if(this.peekCodePoint(0)===ff)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===ff&&(u=this.consumeCodePoint(),u===Fm))return this.consumeToken();if(u===Ka)return this.consumeToken()}break;case iQ:return HQ;case sQ:return PQ;case zD:if(this.peekCodePoint(0)===YD&&this.peekCodePoint(1)===On&&this.peekCodePoint(2)===On)return this.consumeCodePoint(),this.consumeCodePoint(),OQ;break;case XD:var h=this.peekCodePoint(0),p=this.peekCodePoint(1),f=this.peekCodePoint(2);if(ec(h,p,f)){var o=this.consumeName();return{type:7,value:o}}break;case JD:return VQ;case Ko:if(_i(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case ZD:return KQ;case eQ:if(this.peekCodePoint(0)===Fo)return this.consumeCodePoint(),UQ;break;case tQ:return IQ;case rQ:return NQ;case gQ:case vQ:var v=this.peekCodePoint(0),w=this.peekCodePoint(1);return v===ls&&(Hs(w)||w===Jl)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case km:if(this.peekCodePoint(0)===Fo)return this.consumeCodePoint(),QQ;if(this.peekCodePoint(0)===km)return this.consumeCodePoint(),DQ;break;case AQ:if(this.peekCodePoint(0)===Fo)return this.consumeCodePoint(),LQ;break;case Ka:return Kg}return Zl(t)?(this.consumeWhiteSpace(),qQ):Bn(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):Nc(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:DA(t)}},A.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},A.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},A.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},A.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();Hs(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var r=!1;e===Jl&&t.length<6;)t.push(e),e=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(DA.apply(void 0,t.map(function(l){return l===Jl?u5:l})),16),a=parseInt(DA.apply(void 0,t.map(function(l){return l===Jl?p5:l})),16);return{type:30,start:n,end:a}}var o=parseInt(DA.apply(void 0,t),16);if(this.peekCodePoint(0)===On&&Hs(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var s=[];Hs(e)&&s.length<6;)s.push(e),e=this.consumeCodePoint();var a=parseInt(DA.apply(void 0,s),16);return{type:30,start:o,end:a}}else return{type:30,start:o,end:o}},A.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===Xl?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Xl?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},A.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ka)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===$l||e===zl){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ka||this.peekCodePoint(0)===ko)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),tc)}for(;;){var n=this.consumeCodePoint();if(n===Ka||n===ko)return{type:22,value:DA.apply(void 0,t)};if(Zl(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ka||this.peekCodePoint(0)===ko?(this.consumeCodePoint(),{type:22,value:DA.apply(void 0,t)}):(this.consumeBadUrlRemnants(),tc);if(n===zl||n===$l||n===Xl||EQ(n))return this.consumeBadUrlRemnants(),tc;if(n===Ko)if(_i(n,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),tc;else t.push(n)}},A.prototype.consumeWhiteSpace=function(){for(;Zl(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===ko||t===Ka)return;_i(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(t){for(var e=5e4,r="";t>0;){var n=Math.min(e,t);r+=DA.apply(void 0,this._value.splice(0,n)),t-=n}return this._value.shift(),r},A.prototype.consumeStringToken=function(t){var e="",r=0;do{var n=this._value[r];if(n===Ka||n===void 0||n===t)return e+=this.consumeStringSlice(r),{type:0,value:e};if(n===Ic)return this._value.splice(0,r),MQ;if(n===Ko){var a=this._value[r+1];a!==Ka&&a!==void 0&&(a===Ic?(e+=this.consumeStringSlice(r),r=-1,this._value.shift()):_i(n,a)&&(e+=this.consumeStringSlice(r),e+=DA(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},A.prototype.consumeNumber=function(){var t=[],e=el,r=this.peekCodePoint(0);for((r===ls||r===On)&&t.push(this.consumeCodePoint());Bn(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===Xo&&Bn(n))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Em;Bn(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((r===g5||r===d5)&&((n===ls||n===On)&&Bn(a)||Bn(n)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Em;Bn(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[FQ(t),e]},A.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],r=t[1],n=this.peekCodePoint(0),a=this.peekCodePoint(1),o=this.peekCodePoint(2);if(ec(n,a,o)){var s=this.consumeName();return{type:15,number:e,flags:r,unit:s}}return n===WD?(this.consumeCodePoint(),{type:16,number:e,flags:r}):{type:17,number:e,flags:r}},A.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(Hs(t)){for(var e=DA(t);Hs(this.peekCodePoint(0))&&e.length<6;)e+=DA(this.consumeCodePoint());Zl(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(e,16);return r===0||wQ(r)||r>1114111?xm:r}return t===Ka?xm:t},A.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(Sm(e))t+=DA(e);else if(_i(e,this.peekCodePoint(0)))t+=DA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),t}},A})(),m5=(function(){function A(t){this._tokens=t}return A.create=function(t){var e=new v5;return e.write(t),new A(e.read())},A.parseValue=function(t){return A.create(t).parseComponentValue()},A.parseValues=function(t){return A.create(t).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(e.type===32)return t;t.push(e),t.push()}},A.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},A.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},r=this.consumeToken();;){if(r.type===32||WQ(r,t))return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue()),r=this.consumeToken()}},A.prototype.consumeFunction=function(t){for(var e={name:t.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())}},A.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?Kg:t},A.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},A})(),tl=function(A){return A.type===15},Ao=function(A){return A.type===17},Wr=function(A){return A.type===20},jQ=function(A){return A.type===0},qg=function(A,t){return Wr(A)&&A.value===t},w5=function(A){return A.type!==31},to=function(A){return A.type!==31&&A.type!==4},Ga=function(A){var t=[],e=[];return A.forEach(function(r){if(r.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(e),e=[];return}r.type!==31&&e.push(r)}),e.length&&t.push(e),t},WQ=function(A,t){return t===11&&A.type===12||t===28&&A.type===29?!0:t===2&&A.type===3},ji=function(A){return A.type===17||A.type===15},OA=function(A){return A.type===16||ji(A)},B5=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},an={type:17,number:0,flags:el},Cp={type:16,number:50,flags:el},Hi={type:16,number:100,flags:el},Oo=function(A,t,e){var r=A[0],n=A[1];return[Zr(r,t),Zr(typeof n<"u"?n:r,e)]},Zr=function(A,t){if(A.type===16)return A.number/100*t;if(tl(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},y5="deg",b5="grad",C5="rad",E5="turn",zc={name:"angle",parse:function(A,t){if(t.type===15)switch(t.unit){case y5:return Math.PI*t.number/180;case b5:return Math.PI/200*t.number;case C5:return t.number;case E5:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},F5=function(A){return A.type===15&&(A.unit===y5||A.unit===b5||A.unit===C5||A.unit===E5)},k5=function(A){var t=A.filter(Wr).map(function(e){return e.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[an,an];case"to top":case"bottom":return fa(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[an,Hi];case"to right":case"left":return fa(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Hi,Hi];case"to bottom":case"top":return fa(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Hi,an];case"to left":case"right":return fa(270)}return 0},fa=function(A){return Math.PI*A/180},Vi={name:"color",parse:function(A,t){if(t.type===18){var e=GQ[t.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return e(A,t.values)}if(t.type===5){if(t.value.length===3){var r=t.value.substring(0,1),n=t.value.substring(1,2),a=t.value.substring(2,3);return Pi(parseInt(r+r,16),parseInt(n+n,16),parseInt(a+a,16),1)}if(t.value.length===4){var r=t.value.substring(0,1),n=t.value.substring(1,2),a=t.value.substring(2,3),o=t.value.substring(3,4);return Pi(parseInt(r+r,16),parseInt(n+n,16),parseInt(a+a,16),parseInt(o+o,16)/255)}if(t.value.length===6){var r=t.value.substring(0,2),n=t.value.substring(2,4),a=t.value.substring(4,6);return Pi(parseInt(r,16),parseInt(n,16),parseInt(a,16),1)}if(t.value.length===8){var r=t.value.substring(0,2),n=t.value.substring(2,4),a=t.value.substring(4,6),o=t.value.substring(6,8);return Pi(parseInt(r,16),parseInt(n,16),parseInt(a,16),parseInt(o,16)/255)}}if(t.type===20){var s=ci[t.value.toUpperCase()];if(typeof s<"u")return s}return ci.TRANSPARENT}},Ki=function(A){return(255&A)===0},YA=function(A){var t=255&A,e=255&A>>8,r=255&A>>16,n=255&A>>24;return t<255?"rgba("+n+","+r+","+e+","+t/255+")":"rgb("+n+","+r+","+e+")"},Pi=function(A,t,e,r){return(A<<24|t<<16|e<<8|Math.round(r*255)<<0)>>>0},Tm=function(A,t){if(A.type===17)return A.number;if(A.type===16){var e=t===3?1:255;return t===3?A.number/100*e:Math.round(A.number/100*e)}return 0},Um=function(A,t){var e=t.filter(to);if(e.length===3){var r=e.map(Tm),n=r[0],a=r[1],o=r[2];return Pi(n,a,o,1)}if(e.length===4){var s=e.map(Tm),n=s[0],a=s[1],o=s[2],l=s[3];return Pi(n,a,o,l)}return 0};function hf(A,t,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(t-A)*e*6+A:e<1/2?t:e<2/3?(t-A)*6*(2/3-e)+A:A}var Dm=function(A,t){var e=t.filter(to),r=e[0],n=e[1],a=e[2],o=e[3],s=(r.type===17?fa(r.number):zc.parse(A,r))/(Math.PI*2),l=OA(n)?n.number/100:0,c=OA(a)?a.number/100:0,u=typeof o<"u"&&OA(o)?Zr(o,1):1;if(l===0)return Pi(c*255,c*255,c*255,1);var h=c<=.5?c*(l+1):c+l-c*l,p=c*2-h,f=hf(p,h,s+1/3),v=hf(p,h,s),w=hf(p,h,s-1/3);return Pi(f*255,v*255,w*255,u)},GQ={hsl:Dm,hsla:Dm,rgb:Um,rgba:Um},qo=function(A,t){return Vi.parse(A,m5.create(t).parseComponentValue())},ci={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},YQ={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map(function(e){if(Wr(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},zQ={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$c=function(A,t){var e=Vi.parse(A,t[0]),r=t[1];return r&&OA(r)?{color:e,stop:r}:{color:e,stop:null}},Qm=function(A,t){var e=A[0],r=A[A.length-1];e.stop===null&&(e.stop=an),r.stop===null&&(r.stop=Hi);for(var n=[],a=0,o=0;o<A.length;o++){var s=A[o].stop;if(s!==null){var l=Zr(s,t);l>a?n.push(l):n.push(a),a=l}else n.push(null)}for(var c=null,o=0;o<n.length;o++){var u=n[o];if(u===null)c===null&&(c=o);else if(c!==null){for(var h=o-c,p=n[c-1],f=(u-p)/(h+1),v=1;v<=h;v++)n[c+v-1]=f*v;c=null}}return A.map(function(w,b){var B=w.color;return{color:B,stop:Math.max(Math.min(1,n[b]/t),0)}})},$Q=function(A,t,e){var r=t/2,n=e/2,a=Zr(A[0],t)-r,o=n-Zr(A[1],e);return(Math.atan2(o,a)+Math.PI*2)%(Math.PI*2)},XQ=function(A,t,e){var r=typeof A=="number"?A:$Q(A,t,e),n=Math.abs(t*Math.sin(r))+Math.abs(e*Math.cos(r)),a=t/2,o=e/2,s=n/2,l=Math.sin(r-Math.PI/2)*s,c=Math.cos(r-Math.PI/2)*s;return[n,a-c,a+c,o-l,o+l]},ka=function(A,t){return Math.sqrt(A*A+t*t)},Lm=function(A,t,e,r,n){var a=[[0,0],[0,t],[A,0],[A,t]];return a.reduce(function(o,s){var l=s[0],c=s[1],u=ka(e-l,r-c);return(n?u<o.optimumDistance:u>o.optimumDistance)?{optimumCorner:s,optimumDistance:u}:o},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},JQ=function(A,t,e,r,n){var a=0,o=0;switch(A.size){case 0:A.shape===0?a=o=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(e),Math.abs(e-n)):A.shape===1&&(a=Math.min(Math.abs(t),Math.abs(t-r)),o=Math.min(Math.abs(e),Math.abs(e-n)));break;case 2:if(A.shape===0)a=o=Math.min(ka(t,e),ka(t,e-n),ka(t-r,e),ka(t-r,e-n));else if(A.shape===1){var s=Math.min(Math.abs(e),Math.abs(e-n))/Math.min(Math.abs(t),Math.abs(t-r)),l=Lm(r,n,t,e,!0),c=l[0],u=l[1];a=ka(c-t,(u-e)/s),o=s*a}break;case 1:A.shape===0?a=o=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(e),Math.abs(e-n)):A.shape===1&&(a=Math.max(Math.abs(t),Math.abs(t-r)),o=Math.max(Math.abs(e),Math.abs(e-n)));break;case 3:if(A.shape===0)a=o=Math.max(ka(t,e),ka(t,e-n),ka(t-r,e),ka(t-r,e-n));else if(A.shape===1){var s=Math.max(Math.abs(e),Math.abs(e-n))/Math.max(Math.abs(t),Math.abs(t-r)),h=Lm(r,n,t,e,!1),c=h[0],u=h[1];a=ka(c-t,(u-e)/s),o=s*a}break}return Array.isArray(A.size)&&(a=Zr(A.size[0],r),o=A.size.length===2?Zr(A.size[1],n):a),[a,o]},ZQ=function(A,t){var e=fa(180),r=[];return Ga(t).forEach(function(n,a){if(a===0){var o=n[0];if(o.type===20&&o.value==="to"){e=k5(n);return}else if(F5(o)){e=zc.parse(A,o);return}}var s=$c(A,n);r.push(s)}),{angle:e,stops:r,type:1}},rc=function(A,t){var e=fa(180),r=[];return Ga(t).forEach(function(n,a){if(a===0){var o=n[0];if(o.type===20&&["top","left","right","bottom"].indexOf(o.value)!==-1){e=k5(n);return}else if(F5(o)){e=(zc.parse(A,o)+fa(270))%fa(360);return}}var s=$c(A,n);r.push(s)}),{angle:e,stops:r,type:1}},eL=function(A,t){var e=fa(180),r=[],n=1,a=0,o=3,s=[];return Ga(t).forEach(function(l,c){var u=l[0];if(c===0){if(Wr(u)&&u.value==="linear"){n=1;return}else if(Wr(u)&&u.value==="radial"){n=2;return}}if(u.type===18){if(u.name==="from"){var h=Vi.parse(A,u.values[0]);r.push({stop:an,color:h})}else if(u.name==="to"){var h=Vi.parse(A,u.values[0]);r.push({stop:Hi,color:h})}else if(u.name==="color-stop"){var p=u.values.filter(to);if(p.length===2){var h=Vi.parse(A,p[1]),f=p[0];Ao(f)&&r.push({stop:{type:16,number:f.number*100,flags:f.flags},color:h})}}}}),n===1?{angle:(e+fa(180))%fa(360),stops:r,type:n}:{size:o,shape:a,stops:r,position:s,type:n}},x5="closest-side",S5="farthest-side",T5="closest-corner",U5="farthest-corner",D5="circle",Q5="ellipse",L5="cover",I5="contain",tL=function(A,t){var e=0,r=3,n=[],a=[];return Ga(t).forEach(function(o,s){var l=!0;if(s===0){var c=!1;l=o.reduce(function(h,p){if(c)if(Wr(p))switch(p.value){case"center":return a.push(Cp),h;case"top":case"left":return a.push(an),h;case"right":case"bottom":return a.push(Hi),h}else(OA(p)||ji(p))&&a.push(p);else if(Wr(p))switch(p.value){case D5:return e=0,!1;case Q5:return e=1,!1;case"at":return c=!0,!1;case x5:return r=0,!1;case L5:case S5:return r=1,!1;case I5:case T5:return r=2,!1;case U5:return r=3,!1}else if(ji(p)||OA(p))return Array.isArray(r)||(r=[]),r.push(p),!1;return h},l)}if(l){var u=$c(A,o);n.push(u)}}),{size:r,shape:e,stops:n,position:a,type:2}},Ac=function(A,t){var e=0,r=3,n=[],a=[];return Ga(t).forEach(function(o,s){var l=!0;if(s===0?l=o.reduce(function(u,h){if(Wr(h))switch(h.value){case"center":return a.push(Cp),!1;case"top":case"left":return a.push(an),!1;case"right":case"bottom":return a.push(Hi),!1}else if(OA(h)||ji(h))return a.push(h),!1;return u},l):s===1&&(l=o.reduce(function(u,h){if(Wr(h))switch(h.value){case D5:return e=0,!1;case Q5:return e=1,!1;case I5:case x5:return r=0,!1;case S5:return r=1,!1;case T5:return r=2,!1;case L5:case U5:return r=3,!1}else if(ji(h)||OA(h))return Array.isArray(r)||(r=[]),r.push(h),!1;return u},l)),l){var c=$c(A,o);n.push(c)}}),{size:r,shape:e,stops:n,position:a,type:2}},rL=function(A){return A.type===1},AL=function(A){return A.type===2},Ep={name:"image",parse:function(A,t){if(t.type===22){var e={url:t.value,type:0};return A.cache.addImage(t.value),e}if(t.type===18){var r=N5[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(A,t.values)}throw new Error("Unsupported image type "+t.type)}};function nL(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!N5[A.name])}var N5={"linear-gradient":ZQ,"-moz-linear-gradient":rc,"-ms-linear-gradient":rc,"-o-linear-gradient":rc,"-webkit-linear-gradient":rc,"radial-gradient":tL,"-moz-radial-gradient":Ac,"-ms-radial-gradient":Ac,"-o-radial-gradient":Ac,"-webkit-radial-gradient":Ac,"-webkit-gradient":eL},aL={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t.filter(function(r){return to(r)&&nL(r)}).map(function(r){return Ep.parse(A,r)})}},iL={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map(function(e){if(Wr(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},sL={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,t){return Ga(t).map(function(e){return e.filter(OA)}).map(B5)}},oL={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,t){return Ga(t).map(function(e){return e.filter(Wr).map(function(r){return r.value}).join(" ")}).map(lL)}},lL=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},eo;(function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"})(eo||(eo={}));var cL={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,t){return Ga(t).map(function(e){return e.filter(uL)})}},uL=function(A){return Wr(A)||OA(A)},Xc=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},fL=Xc("top"),dL=Xc("right"),hL=Xc("bottom"),gL=Xc("left"),Jc=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return B5(e.filter(OA))}}},pL=Jc("top-left"),vL=Jc("top-right"),mL=Jc("bottom-right"),wL=Jc("bottom-left"),Zc=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},BL=Zc("top"),yL=Zc("right"),bL=Zc("bottom"),CL=Zc("left"),eu=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return tl(e)?e.number:0}}},EL=eu("top"),FL=eu("right"),kL=eu("bottom"),xL=eu("left"),SL={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},TL={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},UL={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,t){return t.filter(Wr).reduce(function(e,r){return e|DL(r.value)},0)}},DL=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},QL={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},LL={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},_c;(function(A){A.NORMAL="normal",A.STRICT="strict"})(_c||(_c={}));var IL={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"strict":return _c.STRICT;case"normal":default:return _c.NORMAL}}},NL={name:"line-height",initialValue:"normal",prefix:!1,type:4},Im=function(A,t){return Wr(A)&&A.value==="normal"?1.2*t:A.type===17?t*A.number:OA(A)?Zr(A,t):t},_L={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,t){return t.type===20&&t.value==="none"?null:Ep.parse(A,t)}},ML={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},jg={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){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}}},tu=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},OL=tu("top"),RL=tu("right"),HL=tu("bottom"),PL=tu("left"),VL={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,t){return t.filter(Wr).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}})}},KL={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},ru=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},qL=ru("top"),jL=ru("right"),WL=ru("bottom"),GL=ru("left"),YL={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},zL={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},$L={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.length===1&&qg(t[0],"none")?[]:Ga(t).map(function(e){for(var r={color:ci.TRANSPARENT,offsetX:an,offsetY:an,blur:an},n=0,a=0;a<e.length;a++){var o=e[a];ji(o)?(n===0?r.offsetX=o:n===1?r.offsetY=o:r.blur=o,n++):r.color=Vi.parse(A,o)}return r})}},XL={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},JL={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,t){if(t.type===20&&t.value==="none")return null;if(t.type===18){var e=tI[t.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return e(t.values)}return null}},ZL=function(A){var t=A.filter(function(e){return e.type===17}).map(function(e){return e.number});return t.length===6?t:null},eI=function(A){var t=A.filter(function(l){return l.type===17}).map(function(l){return l.number}),e=t[0],r=t[1];t[2],t[3];var n=t[4],a=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var o=t[12],s=t[13];return t[14],t[15],t.length===16?[e,r,n,a,o,s]:null},tI={matrix:ZL,matrix3d:eI},Nm={type:16,number:50,flags:el},rI=[Nm,Nm],AI={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,t){var e=t.filter(OA);return e.length!==2?rI:[e[0],e[1]]}},nI={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},jo;(function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"})(jo||(jo={}));var aI={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"break-all":return jo.BREAK_ALL;case"keep-all":return jo.KEEP_ALL;case"normal":default:return jo.NORMAL}}},iI={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,t){if(t.type===20)return{auto:!0,order:0};if(Ao(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},_5={name:"time",parse:function(A,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},sI={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,t){return Ao(t)?t.number:1}},oI={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},lI={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,t){return t.filter(Wr).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})}},cI={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,t){var e=[],r=[];return t.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+"'"})}},uI={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},fI={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,t){if(Ao(t))return t.number;if(Wr(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},dI={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.filter(Wr).map(function(e){return e.value})}},hI={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},qA=function(A,t){return(A&t)!==0},gI={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t}},pI={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(t.length===0)return null;var e=t[0];if(e.type===20&&e.value==="none")return null;for(var r=[],n=t.filter(w5),a=0;a<n.length;a++){var o=n[a],s=n[a+1];if(o.type===20){var l=s&&Ao(s)?s.number:1;r.push({counter:o.value,increment:l})}}return r}},vI={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(t.length===0)return[];for(var e=[],r=t.filter(w5),n=0;n<r.length;n++){var a=r[n],o=r[n+1];if(Wr(a)&&a.value!=="none"){var s=o&&Ao(o)?o.number:0;e.push({counter:a.value,reset:s})}}return e}},mI={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,t){return t.filter(tl).map(function(e){return _5.parse(A,e)})}},wI={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(t.length===0)return null;var e=t[0];if(e.type===20&&e.value==="none")return null;var r=[],n=t.filter(jQ);if(n.length%2!==0)return null;for(var a=0;a<n.length;a+=2){var o=n[a].value,s=n[a+1].value;r.push({open:o,close:s})}return r}},_m=function(A,t,e){if(!A)return"";var r=A[Math.min(t,A.length-1)];return r?e?r.open:r.close:""},BI={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.length===1&&qg(t[0],"none")?[]:Ga(t).map(function(e){for(var r={color:255,offsetX:an,offsetY:an,blur:an,spread:an,inset:!1},n=0,a=0;a<e.length;a++){var o=e[a];qg(o,"inset")?r.inset=!0:ji(o)?(n===0?r.offsetX=o:n===1?r.offsetY=o:n===2?r.blur=o:r.spread=o,n++):r.color=Vi.parse(A,o)}return r})}},yI={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,t){var e=[0,1,2],r=[];return t.filter(Wr).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}},bI={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},CI={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return tl(t)?t.number:0}},EI=(function(){function A(t,e){var r,n;this.animationDuration=Dt(t,mI,e.animationDuration),this.backgroundClip=Dt(t,YQ,e.backgroundClip),this.backgroundColor=Dt(t,zQ,e.backgroundColor),this.backgroundImage=Dt(t,aL,e.backgroundImage),this.backgroundOrigin=Dt(t,iL,e.backgroundOrigin),this.backgroundPosition=Dt(t,sL,e.backgroundPosition),this.backgroundRepeat=Dt(t,oL,e.backgroundRepeat),this.backgroundSize=Dt(t,cL,e.backgroundSize),this.borderTopColor=Dt(t,fL,e.borderTopColor),this.borderRightColor=Dt(t,dL,e.borderRightColor),this.borderBottomColor=Dt(t,hL,e.borderBottomColor),this.borderLeftColor=Dt(t,gL,e.borderLeftColor),this.borderTopLeftRadius=Dt(t,pL,e.borderTopLeftRadius),this.borderTopRightRadius=Dt(t,vL,e.borderTopRightRadius),this.borderBottomRightRadius=Dt(t,mL,e.borderBottomRightRadius),this.borderBottomLeftRadius=Dt(t,wL,e.borderBottomLeftRadius),this.borderTopStyle=Dt(t,BL,e.borderTopStyle),this.borderRightStyle=Dt(t,yL,e.borderRightStyle),this.borderBottomStyle=Dt(t,bL,e.borderBottomStyle),this.borderLeftStyle=Dt(t,CL,e.borderLeftStyle),this.borderTopWidth=Dt(t,EL,e.borderTopWidth),this.borderRightWidth=Dt(t,FL,e.borderRightWidth),this.borderBottomWidth=Dt(t,kL,e.borderBottomWidth),this.borderLeftWidth=Dt(t,xL,e.borderLeftWidth),this.boxShadow=Dt(t,BI,e.boxShadow),this.color=Dt(t,SL,e.color),this.direction=Dt(t,TL,e.direction),this.display=Dt(t,UL,e.display),this.float=Dt(t,QL,e.cssFloat),this.fontFamily=Dt(t,cI,e.fontFamily),this.fontSize=Dt(t,uI,e.fontSize),this.fontStyle=Dt(t,hI,e.fontStyle),this.fontVariant=Dt(t,dI,e.fontVariant),this.fontWeight=Dt(t,fI,e.fontWeight),this.letterSpacing=Dt(t,LL,e.letterSpacing),this.lineBreak=Dt(t,IL,e.lineBreak),this.lineHeight=Dt(t,NL,e.lineHeight),this.listStyleImage=Dt(t,_L,e.listStyleImage),this.listStylePosition=Dt(t,ML,e.listStylePosition),this.listStyleType=Dt(t,jg,e.listStyleType),this.marginTop=Dt(t,OL,e.marginTop),this.marginRight=Dt(t,RL,e.marginRight),this.marginBottom=Dt(t,HL,e.marginBottom),this.marginLeft=Dt(t,PL,e.marginLeft),this.opacity=Dt(t,sI,e.opacity);var a=Dt(t,VL,e.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=Dt(t,KL,e.overflowWrap),this.paddingTop=Dt(t,qL,e.paddingTop),this.paddingRight=Dt(t,jL,e.paddingRight),this.paddingBottom=Dt(t,WL,e.paddingBottom),this.paddingLeft=Dt(t,GL,e.paddingLeft),this.paintOrder=Dt(t,yI,e.paintOrder),this.position=Dt(t,zL,e.position),this.textAlign=Dt(t,YL,e.textAlign),this.textDecorationColor=Dt(t,oI,(r=e.textDecorationColor)!==null&&r!==void 0?r:e.color),this.textDecorationLine=Dt(t,lI,(n=e.textDecorationLine)!==null&&n!==void 0?n:e.textDecoration),this.textShadow=Dt(t,$L,e.textShadow),this.textTransform=Dt(t,XL,e.textTransform),this.transform=Dt(t,JL,e.transform),this.transformOrigin=Dt(t,AI,e.transformOrigin),this.visibility=Dt(t,nI,e.visibility),this.webkitTextStrokeColor=Dt(t,bI,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=Dt(t,CI,e.webkitTextStrokeWidth),this.wordBreak=Dt(t,aI,e.wordBreak),this.zIndex=Dt(t,iI,e.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},A.prototype.isTransparent=function(){return Ki(this.backgroundColor)},A.prototype.isTransformed=function(){return this.transform!==null},A.prototype.isPositioned=function(){return this.position!==0},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==0},A.prototype.isInlineLevel=function(){return qA(this.display,4)||qA(this.display,33554432)||qA(this.display,268435456)||qA(this.display,536870912)||qA(this.display,67108864)||qA(this.display,134217728)},A})(),FI=(function(){function A(t,e){this.content=Dt(t,gI,e.content),this.quotes=Dt(t,wI,e.quotes)}return A})(),Mm=(function(){function A(t,e){this.counterIncrement=Dt(t,pI,e.counterIncrement),this.counterReset=Dt(t,vI,e.counterReset)}return A})(),Dt=function(A,t,e){var r=new v5,n=e!==null&&typeof e<"u"?e.toString():t.initialValue;r.write(n);var a=new m5(r.read());switch(t.type){case 2:var o=a.parseComponentValue();return t.parse(A,Wr(o)?o.value:t.initialValue);case 0:return t.parse(A,a.parseComponentValue());case 1:return t.parse(A,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(t.format){case"angle":return zc.parse(A,a.parseComponentValue());case"color":return Vi.parse(A,a.parseComponentValue());case"image":return Ep.parse(A,a.parseComponentValue());case"length":var s=a.parseComponentValue();return ji(s)?s:an;case"length-percentage":var l=a.parseComponentValue();return OA(l)?l:an;case"time":return _5.parse(A,a.parseComponentValue())}break}},kI="data-html2canvas-debug",xI=function(A){var t=A.getAttribute(kI);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Wg=function(A,t){var e=xI(A);return e===1||t===e},Ya=(function(){function A(t,e){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,Wg(e,3))debugger;this.styles=new EI(t,window.getComputedStyle(e,null)),zg(e)&&(this.styles.animationDuration.some(function(r){return r>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=Gc(this.context,e),Wg(e,4)&&(this.flags|=16)}return A})(),SI="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Om="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ro=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var nc=0;nc<Om.length;nc++)Ro[Om.charCodeAt(nc)]=nc;var TI=function(A){var t=A.length*.75,e=A.length,r,n=0,a,o,s,l;A[A.length-1]==="="&&(t--,A[A.length-2]==="="&&t--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),u=Array.isArray(c)?c:new Uint8Array(c);for(r=0;r<e;r+=4)a=Ro[A.charCodeAt(r)],o=Ro[A.charCodeAt(r+1)],s=Ro[A.charCodeAt(r+2)],l=Ro[A.charCodeAt(r+3)],u[n++]=a<<2|o>>4,u[n++]=(o&15)<<4|s>>2,u[n++]=(s&3)<<6|l&63;return c},UI=function(A){for(var t=A.length,e=[],r=0;r<t;r+=2)e.push(A[r+1]<<8|A[r]);return e},DI=function(A){for(var t=A.length,e=[],r=0;r<t;r+=4)e.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return e},ds=5,Fp=11,gf=2,QI=Fp-ds,M5=65536>>ds,LI=1<<ds,pf=LI-1,II=1024>>ds,NI=M5+II,_I=NI,MI=32,OI=_I+MI,RI=65536>>Fp,HI=1<<QI,PI=HI-1,Rm=function(A,t,e){return A.slice?A.slice(t,e):new Uint16Array(Array.prototype.slice.call(A,t,e))},VI=function(A,t,e){return A.slice?A.slice(t,e):new Uint32Array(Array.prototype.slice.call(A,t,e))},KI=function(A,t){var e=TI(A),r=Array.isArray(e)?DI(e):new Uint32Array(e),n=Array.isArray(e)?UI(e):new Uint16Array(e),a=24,o=Rm(n,a/2,r[4]/2),s=r[5]===2?Rm(n,(a+r[4])/2):VI(r,Math.ceil((a+r[4])/4));return new qI(r[0],r[1],r[2],r[3],o,s)},qI=(function(){function A(t,e,r,n,a,o){this.initialValue=t,this.errorValue=e,this.highStart=r,this.highValueIndex=n,this.index=a,this.data=o}return A.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>ds],e=(e<<gf)+(t&pf),this.data[e];if(t<=65535)return e=this.index[M5+(t-55296>>ds)],e=(e<<gf)+(t&pf),this.data[e];if(t<this.highStart)return e=OI-RI+(t>>Fp),e=this.index[e],e+=t>>ds&PI,e=this.index[e],e=(e<<gf)+(t&pf),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),Hm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jI=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ac=0;ac<Hm.length;ac++)jI[Hm.charCodeAt(ac)]=ac;var WI=1,vf=2,mf=3,Pm=4,Vm=5,GI=7,Km=8,wf=9,Bf=10,qm=11,jm=12,Wm=13,Gm=14,yf=15,YI=function(A){for(var t=[],e=0,r=A.length;e<r;){var n=A.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var a=A.charCodeAt(e++);(a&64512)===56320?t.push(((n&1023)<<10)+(a&1023)+65536):(t.push(n),e--)}else t.push(n)}return t},zI=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var e=A.length;if(!e)return"";for(var r=[],n=-1,a="";++n<e;){var o=A[n];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(n+1===e||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},$I=KI(SI),la="×",bf="÷",XI=function(A){return $I.get(A)},JI=function(A,t,e){var r=e-2,n=t[r],a=t[e-1],o=t[e];if(a===vf&&o===mf)return la;if(a===vf||a===mf||a===Pm||o===vf||o===mf||o===Pm)return bf;if(a===Km&&[Km,wf,qm,jm].indexOf(o)!==-1||(a===qm||a===wf)&&(o===wf||o===Bf)||(a===jm||a===Bf)&&o===Bf||o===Wm||o===Vm||o===GI||a===WI)return la;if(a===Wm&&o===Gm){for(;n===Vm;)n=t[--r];if(n===Gm)return la}if(a===yf&&o===yf){for(var s=0;n===yf;)s++,n=t[--r];if(s%2===0)return la}return bf},ZI=function(A){var t=YI(A),e=t.length,r=0,n=0,a=t.map(XI);return{next:function(){if(r>=e)return{done:!0,value:null};for(var o=la;r<e&&(o=JI(t,a,++r))===la;);if(o!==la||r===e){var s=zI.apply(null,t.slice(n,r));return n=r,{value:s,done:!1}}return{done:!0,value:null}}}},eN=function(A){for(var t=ZI(A),e=[],r;!(r=t.next()).done;)r.value&&e.push(r.value.slice());return e},tN=function(A){var t=123;if(A.createRange){var e=A.createRange();if(e.getBoundingClientRect){var r=A.createElement("boundtest");r.style.height=t+"px",r.style.display="block",A.body.appendChild(r),e.selectNode(r);var n=e.getBoundingClientRect(),a=Math.round(n.height);if(A.body.removeChild(r),a===t)return!0}}return!1},rN=function(A){var t=A.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",A.body.appendChild(t);var e=A.createRange();t.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=t.firstChild,n=Yc(r.data).map(function(l){return DA(l)}),a=0,o={},s=n.every(function(l,c){e.setStart(r,a),e.setEnd(r,a+l.length);var u=e.getBoundingClientRect();a+=l.length;var h=u.x>o.x||u.y>o.y;return o=u,c===0?!0:h});return A.body.removeChild(t),s},AN=function(){return typeof new Image().crossOrigin<"u"},nN=function(){return typeof new XMLHttpRequest().responseType=="string"},aN=function(A){var t=new Image,e=A.createElement("canvas"),r=e.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),e.toDataURL()}catch{return!1}return!0},Ym=function(A){return A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255},iN=function(A){var t=A.createElement("canvas"),e=100;t.width=e,t.height=e;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,e,e);var n=new Image,a=t.toDataURL();n.src=a;var o=Gg(e,e,0,0,n);return r.fillStyle="red",r.fillRect(0,0,e,e),zm(o).then(function(s){r.drawImage(s,0,0);var l=r.getImageData(0,0,e,e).data;r.fillStyle="red",r.fillRect(0,0,e,e);var c=A.createElement("div");return c.style.backgroundImage="url("+a+")",c.style.height=e+"px",Ym(l)?zm(Gg(e,e,0,0,c)):Promise.reject(!1)}).then(function(s){return r.drawImage(s,0,0),Ym(r.getImageData(0,0,e,e).data)}).catch(function(){return!1})},Gg=function(A,t,e,r,n){var a="http://www.w3.org/2000/svg",o=document.createElementNS(a,"svg"),s=document.createElementNS(a,"foreignObject");return o.setAttributeNS(null,"width",A.toString()),o.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",e.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(n),o},zm=function(A){return new Promise(function(t,e){var r=new Image;r.onload=function(){return t(r)},r.onerror=e,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},nn={get SUPPORT_RANGE_BOUNDS(){var A=tN(document);return Object.defineProperty(nn,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=nn.SUPPORT_RANGE_BOUNDS&&rN(document);return Object.defineProperty(nn,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=aN(document);return Object.defineProperty(nn,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A=typeof Array.from=="function"&&typeof window.fetch=="function"?iN(document):Promise.resolve(!1);return Object.defineProperty(nn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=AN();return Object.defineProperty(nn,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=nN();return Object.defineProperty(nn,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(nn,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(nn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Wo=(function(){function A(t,e){this.text=t,this.bounds=e}return A})(),sN=function(A,t,e,r){var n=cN(t,e),a=[],o=0;return n.forEach(function(s){if(e.textDecorationLine.length||s.trim().length>0)if(nn.SUPPORT_RANGE_BOUNDS){var l=$m(r,o,s.length).getClientRects();if(l.length>1){var c=kp(s),u=0;c.forEach(function(p){a.push(new Wo(p,fi.fromDOMRectList(A,$m(r,u+o,p.length).getClientRects()))),u+=p.length})}else a.push(new Wo(s,fi.fromDOMRectList(A,l)))}else{var h=r.splitText(s.length);a.push(new Wo(s,oN(A,r))),r=h}else nn.SUPPORT_RANGE_BOUNDS||(r=r.splitText(s.length));o+=s.length}),a},oN=function(A,t){var e=t.ownerDocument;if(e){var r=e.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var n=t.parentNode;if(n){n.replaceChild(r,t);var a=Gc(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),a}}return fi.EMPTY},$m=function(A,t,e){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,t),n.setEnd(A,t+e),n},kp=function(A){if(nn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(A)).map(function(e){return e.segment})}return eN(A)},lN=function(A,t){if(nn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(A)).map(function(r){return r.segment})}return fN(A,t)},cN=function(A,t){return t.letterSpacing!==0?kp(A):lN(A,t)},uN=[32,160,4961,65792,65793,4153,4241],fN=function(A,t){for(var e=RD(A,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),r=[],n,a=function(){if(n.value){var o=n.value.slice(),s=Yc(o),l="";s.forEach(function(c){uN.indexOf(c)===-1?l+=DA(c):(l.length&&r.push(l),r.push(DA(c)),l="")}),l.length&&r.push(l)}};!(n=e.next()).done;)a();return r},dN=(function(){function A(t,e,r){this.text=hN(e.data,r.textTransform),this.textBounds=sN(t,this.text,r,e)}return A})(),hN=function(A,t){switch(t){case 1:return A.toLowerCase();case 3:return A.replace(gN,pN);case 2:return A.toUpperCase();default:return A}},gN=/(^|\s|:|-|\(|\))([a-z])/g,pN=function(A,t,e){return A.length>0?t+e.toUpperCase():A},O5=(function(A){Qa(t,A);function t(e,r){var n=A.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 t})(Ya),R5=(function(A){Qa(t,A);function t(e,r){var n=A.call(this,e,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return t})(Ya),H5=(function(A){Qa(t,A);function t(e,r){var n=A.call(this,e,r)||this,a=new XMLSerializer,o=Gc(e,r);return r.setAttribute("width",o.width+"px"),r.setAttribute("height",o.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return t})(Ya),P5=(function(A){Qa(t,A);function t(e,r){var n=A.call(this,e,r)||this;return n.value=r.value,n}return t})(Ya),Yg=(function(A){Qa(t,A);function t(e,r){var n=A.call(this,e,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return t})(Ya),vN=[{type:15,flags:0,unit:"px",number:3}],mN=[{type:16,flags:0,number:50}],wN=function(A){return A.width>A.height?new fi(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new fi(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},BN=function(A){var t=A.type===yN?new Array(A.value.length+1).join("•"):A.value;return t.length===0?A.placeholder||"":t},Mc="checkbox",Oc="radio",yN="password",Xm=707406591,xp=(function(A){Qa(t,A);function t(e,r){var n=A.call(this,e,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=BN(r),(n.type===Mc||n.type===Oc)&&(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=wN(n.bounds)),n.type){case Mc:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=vN;break;case Oc:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=mN;break}return n}return t})(Ya),V5=(function(A){Qa(t,A);function t(e,r){var n=A.call(this,e,r)||this,a=r.options[r.selectedIndex||0];return n.value=a&&a.text||"",n}return t})(Ya),K5=(function(A){Qa(t,A);function t(e,r){var n=A.call(this,e,r)||this;return n.value=r.value,n}return t})(Ya),q5=(function(A){Qa(t,A);function t(e,r){var n=A.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=W5(e,r.contentWindow.document.documentElement);var a=r.contentWindow.document.documentElement?qo(e,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):ci.TRANSPARENT,o=r.contentWindow.document.body?qo(e,getComputedStyle(r.contentWindow.document.body).backgroundColor):ci.TRANSPARENT;n.backgroundColor=Ki(a)?Ki(o)?n.styles.backgroundColor:o:a}}catch{}return n}return t})(Ya),bN=["OL","UL","MENU"],Fc=function(A,t,e,r){for(var n=t.firstChild,a=void 0;n;n=a)if(a=n.nextSibling,G5(n)&&n.data.trim().length>0)e.textNodes.push(new dN(A,n,e.styles));else if(zs(n))if(X5(n)&&n.assignedNodes)n.assignedNodes().forEach(function(s){return Fc(A,s,e,r)});else{var o=j5(A,n);o.styles.isVisible()&&(CN(n,o,r)?o.flags|=4:EN(o.styles)&&(o.flags|=2),bN.indexOf(n.tagName)!==-1&&(o.flags|=8),e.elements.push(o),n.slot,n.shadowRoot?Fc(A,n.shadowRoot,o,r):!Rc(n)&&!Y5(n)&&!Hc(n)&&Fc(A,n,o,r))}},j5=function(A,t){return $g(t)?new O5(A,t):z5(t)?new R5(A,t):Y5(t)?new H5(A,t):FN(t)?new P5(A,t):kN(t)?new Yg(A,t):xN(t)?new xp(A,t):Hc(t)?new V5(A,t):Rc(t)?new K5(A,t):$5(t)?new q5(A,t):new Ya(A,t)},W5=function(A,t){var e=j5(A,t);return e.flags|=4,Fc(A,t,e,e),e},CN=function(A,t,e){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Sp(A)&&e.styles.isTransparent()},EN=function(A){return A.isPositioned()||A.isFloating()},G5=function(A){return A.nodeType===Node.TEXT_NODE},zs=function(A){return A.nodeType===Node.ELEMENT_NODE},zg=function(A){return zs(A)&&typeof A.style<"u"&&!kc(A)},kc=function(A){return typeof A.className=="object"},FN=function(A){return A.tagName==="LI"},kN=function(A){return A.tagName==="OL"},xN=function(A){return A.tagName==="INPUT"},SN=function(A){return A.tagName==="HTML"},Y5=function(A){return A.tagName==="svg"},Sp=function(A){return A.tagName==="BODY"},z5=function(A){return A.tagName==="CANVAS"},Jm=function(A){return A.tagName==="VIDEO"},$g=function(A){return A.tagName==="IMG"},$5=function(A){return A.tagName==="IFRAME"},Zm=function(A){return A.tagName==="STYLE"},TN=function(A){return A.tagName==="SCRIPT"},Rc=function(A){return A.tagName==="TEXTAREA"},Hc=function(A){return A.tagName==="SELECT"},X5=function(A){return A.tagName==="SLOT"},e1=function(A){return A.tagName.indexOf("-")>0},UN=(function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},A.prototype.pop=function(t){var e=this;t.forEach(function(r){return e.counters[r].pop()})},A.prototype.parse=function(t){var e=this,r=t.counterIncrement,n=t.counterReset,a=!0;r!==null&&r.forEach(function(s){var l=e.counters[s.counter];l&&s.increment!==0&&(a=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=s.increment)});var o=[];return a&&n.forEach(function(s){var l=e.counters[s.counter];o.push(s.counter),l||(l=e.counters[s.counter]=[]),l.push(s.reset)}),o},A})(),t1={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"]},r1={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},DN={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},QN={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ps=function(A,t,e,r,n,a){return A<t||A>e?Jo(A,n,a.length>0):r.integers.reduce(function(o,s,l){for(;A>=s;)A-=s,o+=r.values[l];return o},"")+a},J5=function(A,t,e,r){var n="";do e||A--,n=r(A)+n,A/=t;while(A*t>=t);return n},UA=function(A,t,e,r,n){var a=e-t+1;return(A<0?"-":"")+(J5(Math.abs(A),a,r,function(o){return DA(Math.floor(o%a)+t)})+n)},ts=function(A,t,e){e===void 0&&(e=". ");var r=t.length;return J5(Math.abs(A),r,!1,function(n){return t[Math.floor(n%r)]})+e},Ws=1,Ii=2,Ni=4,Ho=8,ai=function(A,t,e,r,n,a){if(A<-9999||A>9999)return Jo(A,4,n.length>0);var o=Math.abs(A),s=n;if(o===0)return t[0]+s;for(var l=0;o>0&&l<=4;l++){var c=o%10;c===0&&qA(a,Ws)&&s!==""?s=t[c]+s:c>1||c===1&&l===0||c===1&&l===1&&qA(a,Ii)||c===1&&l===1&&qA(a,Ni)&&A>100||c===1&&l>1&&qA(a,Ho)?s=t[c]+(l>0?e[l-1]:"")+s:c===1&&l>0&&(s=e[l-1]+s),o=Math.floor(o/10)}return(A<0?r:"")+s},A1="十百千萬",n1="拾佰仟萬",a1="マイナス",Cf="마이너스",Jo=function(A,t,e){var r=e?". ":"",n=e?"、":"",a=e?", ":"",o=e?" ":"";switch(t){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=UA(A,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return ts(A,"〇一二三四五六七八九",n);case 6:return Ps(A,1,3999,t1,3,r).toLowerCase();case 7:return Ps(A,1,3999,t1,3,r);case 8:return UA(A,945,969,!1,r);case 9:return UA(A,97,122,!1,r);case 10:return UA(A,65,90,!1,r);case 11:return UA(A,1632,1641,!0,r);case 12:case 49:return Ps(A,1,9999,r1,3,r);case 35:return Ps(A,1,9999,r1,3,r).toLowerCase();case 13:return UA(A,2534,2543,!0,r);case 14:case 30:return UA(A,6112,6121,!0,r);case 15:return ts(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return ts(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return ai(A,"零一二三四五六七八九",A1,"負",n,Ii|Ni|Ho);case 47:return ai(A,"零壹貳參肆伍陸柒捌玖",n1,"負",n,Ws|Ii|Ni|Ho);case 42:return ai(A,"零一二三四五六七八九",A1,"负",n,Ii|Ni|Ho);case 41:return ai(A,"零壹贰叁肆伍陆柒捌玖",n1,"负",n,Ws|Ii|Ni|Ho);case 26:return ai(A,"〇一二三四五六七八九","十百千万",a1,n,0);case 25:return ai(A,"零壱弐参四伍六七八九","拾百千万",a1,n,Ws|Ii|Ni);case 31:return ai(A,"영일이삼사오육칠팔구","십백천만",Cf,a,Ws|Ii|Ni);case 33:return ai(A,"零一二三四五六七八九","十百千萬",Cf,a,0);case 32:return ai(A,"零壹貳參四五六七八九","拾百千",Cf,a,Ws|Ii|Ni);case 18:return UA(A,2406,2415,!0,r);case 20:return Ps(A,1,19999,QN,3,r);case 21:return UA(A,2790,2799,!0,r);case 22:return UA(A,2662,2671,!0,r);case 22:return Ps(A,1,10999,DN,3,r);case 23:return ts(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ts(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return UA(A,3302,3311,!0,r);case 28:return ts(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return ts(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return UA(A,3792,3801,!0,r);case 37:return UA(A,6160,6169,!0,r);case 38:return UA(A,4160,4169,!0,r);case 39:return UA(A,2918,2927,!0,r);case 40:return UA(A,1776,1785,!0,r);case 43:return UA(A,3046,3055,!0,r);case 44:return UA(A,3174,3183,!0,r);case 45:return UA(A,3664,3673,!0,r);case 46:return UA(A,3872,3881,!0,r);case 3:default:return UA(A,48,57,!0,r)}},Z5="data-html2canvas-ignore",i1=(function(){function A(t,e,r){if(this.context=t,this.options=r,this.scrolledElements=[],this.referenceElement=e,this.counters=new UN,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 A.prototype.toIFrame=function(t,e){var r=this,n=LN(t,e);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var a=t.defaultView.pageXOffset,o=t.defaultView.pageYOffset,s=n.contentWindow,l=s.document,c=_N(n).then(function(){return Sn(r,void 0,void 0,function(){var u,h;return wn(this,function(p){switch(p.label){case 0:return this.scrolledElements.forEach(HN),s&&(s.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==e.top||s.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-e.left,s.scrollY-e.top,0,0))),u=this.options.onclone,h=this.clonedReferenceElement,typeof h>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:p.sent(),p.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,NN(l)]:[3,4];case 3:p.sent(),p.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(l,h)}).then(function(){return n})]:[2,n]}})})});return l.open(),l.write(ON(document.doctype)+"<html></html>"),RN(this.referenceElement.ownerDocument,a,o),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},A.prototype.createElementClone=function(t){if(Wg(t,2))debugger;if(z5(t))return this.createCanvasClone(t);if(Jm(t))return this.createVideoClone(t);if(Zm(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return $g(e)&&($g(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),e1(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return Ef(t.style,e),e},A.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var r=[].slice.call(e.cssRules,0).reduce(function(a,o){return o&&typeof o.cssText=="string"?a+o.cssText:a},""),n=t.cloneNode(!1);return n.textContent=r,n}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return t.cloneNode(!1)},A.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var r=t.ownerDocument.createElement("img");try{return r.src=t.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var n=t.cloneNode(!1);try{n.width=t.width,n.height=t.height;var a=t.getContext("2d"),o=n.getContext("2d");if(o)if(!this.options.allowTaint&&a)o.putImageData(a.getImageData(0,0,t.width,t.height),0,0);else{var s=(e=t.getContext("webgl2"))!==null&&e!==void 0?e:t.getContext("webgl");if(s){var l=s.getContextAttributes();(l==null?void 0:l.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}o.drawImage(t,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return n},A.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var r=e.getContext("2d");try{return r&&(r.drawImage(t,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",t)}var n=t.ownerDocument.createElement("canvas");return n.width=t.offsetWidth,n.height=t.offsetHeight,n},A.prototype.appendChildNode=function(t,e,r){(!zs(e)||!TN(e)&&!e.hasAttribute(Z5)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!zs(e)||!Zm(e))&&t.appendChild(this.cloneNode(e,r))},A.prototype.cloneChildNodes=function(t,e,r){for(var n=this,a=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;a;a=a.nextSibling)if(zs(a)&&X5(a)&&typeof a.assignedNodes=="function"){var o=a.assignedNodes();o.length&&o.forEach(function(s){return n.appendChildNode(e,s,r)})}else this.appendChildNode(e,a,r)},A.prototype.cloneNode=function(t,e){if(G5(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var r=t.ownerDocument.defaultView;if(r&&zs(t)&&(zg(t)||kc(t))){var n=this.createElementClone(t);n.style.transitionProperty="none";var a=r.getComputedStyle(t),o=r.getComputedStyle(t,":before"),s=r.getComputedStyle(t,":after");this.referenceElement===t&&zg(n)&&(this.clonedReferenceElement=n),Sp(n)&&KN(n);var l=this.counters.parse(new Mm(this.context,a)),c=this.resolvePseudoContent(t,n,o,Go.BEFORE);e1(t)&&(e=!0),Jm(t)||this.cloneChildNodes(t,n,e),c&&n.insertBefore(c,n.firstChild);var u=this.resolvePseudoContent(t,n,s,Go.AFTER);return u&&n.appendChild(u),this.counters.pop(l),(a&&(this.options.copyStyles||kc(t))&&!$5(t)||e)&&Ef(a,n),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([n,t.scrollLeft,t.scrollTop]),(Rc(t)||Hc(t))&&(Rc(n)||Hc(n))&&(n.value=t.value),n}return t.cloneNode(!1)},A.prototype.resolvePseudoContent=function(t,e,r,n){var a=this;if(r){var o=r.content,s=e.ownerDocument;if(!(!s||!o||o==="none"||o==="-moz-alt-content"||r.display==="none")){this.counters.parse(new Mm(this.context,r));var l=new FI(this.context,r),c=s.createElement("html2canvaspseudoelement");Ef(r,c),l.content.forEach(function(h){if(h.type===0)c.appendChild(s.createTextNode(h.value));else if(h.type===22){var p=s.createElement("img");p.src=h.value,p.style.opacity="1",c.appendChild(p)}else if(h.type===18){if(h.name==="attr"){var f=h.values.filter(Wr);f.length&&c.appendChild(s.createTextNode(t.getAttribute(f[0].value)||""))}else if(h.name==="counter"){var v=h.values.filter(to),w=v[0],b=v[1];if(w&&Wr(w)){var B=a.counters.getCounterValue(w.value),F=b&&Wr(b)?jg.parse(a.context,b.value):3;c.appendChild(s.createTextNode(Jo(B,F,!1)))}}else if(h.name==="counters"){var E=h.values.filter(to),w=E[0],k=E[1],b=E[2];if(w&&Wr(w)){var P=a.counters.getCounterValues(w.value),j=b&&Wr(b)?jg.parse(a.context,b.value):3,M=k&&k.type===0?k.value:"",O=P.map(function(S){return Jo(S,j,!1)}).join(M);c.appendChild(s.createTextNode(O))}}}else if(h.type===20)switch(h.value){case"open-quote":c.appendChild(s.createTextNode(_m(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(s.createTextNode(_m(l.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(s.createTextNode(h.value))}}),c.className=Xg+" "+Jg;var u=n===Go.BEFORE?" "+Xg:" "+Jg;return kc(e)?e.className.baseValue+=u:e.className+=u,c}}},A.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},A})(),Go;(function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"})(Go||(Go={}));var LN=function(A,t){var e=A.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=t.width.toString(),e.height=t.height.toString(),e.scrolling="no",e.setAttribute(Z5,"true"),A.body.appendChild(e),e},IN=function(A){return new Promise(function(t){if(A.complete){t();return}if(!A.src){t();return}A.onload=t,A.onerror=t})},NN=function(A){return Promise.all([].slice.call(A.images,0).map(IN))},_N=function(A){return new Promise(function(t,e){var r=A.contentWindow;if(!r)return e("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var a=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(a),t(A))},50)}})},MN=["all","d","content"],Ef=function(A,t){for(var e=A.length-1;e>=0;e--){var r=A.item(e);MN.indexOf(r)===-1&&t.style.setProperty(r,A.getPropertyValue(r))}return t},ON=function(A){var t="";return A&&(t+="<!DOCTYPE ",A.name&&(t+=A.name),A.internalSubset&&(t+=A.internalSubset),A.publicId&&(t+='"'+A.publicId+'"'),A.systemId&&(t+='"'+A.systemId+'"'),t+=">"),t},RN=function(A,t,e){A&&A.defaultView&&(t!==A.defaultView.pageXOffset||e!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(t,e)},HN=function(A){var t=A[0],e=A[1],r=A[2];t.scrollLeft=e,t.scrollTop=r},PN=":before",VN=":after",Xg="___html2canvas___pseudoelement_before",Jg="___html2canvas___pseudoelement_after",s1=`{
    content: "" !important;
    display: none !important;
}`,KN=function(A){qN(A,"."+Xg+PN+s1+`
         .`+Jg+VN+s1)},qN=function(A,t){var e=A.ownerDocument;if(e){var r=e.createElement("style");r.textContent=t,A.appendChild(r)}},eb=(function(){function A(){}return A.getOrigin=function(t){var e=A._link;return e?(e.href=t,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},A.isSameOrigin=function(t){return A.getOrigin(t)===A._origin},A.setContext=function(t){A._link=t.document.createElement("a"),A._origin=A.getOrigin(t.location.href)},A._origin="about:blank",A})(),jN=(function(){function A(t,e){this.context=t,this._options=e,this._cache={}}return A.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)||(kf(t)||zN(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),e},A.prototype.match=function(t){return this._cache[t]},A.prototype.loadImage=function(t){return Sn(this,void 0,void 0,function(){var e,r,n,a,o=this;return wn(this,function(s){switch(s.label){case 0:return e=eb.isSameOrigin(t),r=!Ff(t)&&this._options.useCORS===!0&&nn.SUPPORT_CORS_IMAGES&&!e,n=!Ff(t)&&!e&&!kf(t)&&typeof this._options.proxy=="string"&&nn.SUPPORT_CORS_XHR&&!r,!e&&this._options.allowTaint===!1&&!Ff(t)&&!kf(t)&&!n&&!r?[2]:(a=t,n?[4,this.proxy(a)]:[3,2]);case 1:a=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(l,c){var u=new Image;u.onload=function(){return l(u)},u.onerror=c,($N(a)||r)&&(u.crossOrigin="anonymous"),u.src=a,u.complete===!0&&setTimeout(function(){return l(u)},500),o._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},A.prototype.has=function(t){return typeof this._cache[t]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(t){var e=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=t.substring(0,256);return new Promise(function(a,o){var s=nn.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(s==="text")a(l.response);else{var h=new FileReader;h.addEventListener("load",function(){return a(h.result)},!1),h.addEventListener("error",function(p){return o(p)},!1),h.readAsDataURL(l.response)}else o("Failed to proxy resource "+n+" with status code "+l.status)},l.onerror=o;var c=r.indexOf("?")>-1?"&":"?";if(l.open("GET",""+r+c+"url="+encodeURIComponent(t)+"&responseType="+s),s!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=s),e._options.imageTimeout){var u=e._options.imageTimeout;l.timeout=u,l.ontimeout=function(){return o("Timed out ("+u+"ms) proxying "+n)}}l.send()})},A})(),WN=/^data:image\/svg\+xml/i,GN=/^data:image\/.*;base64,/i,YN=/^data:image\/.*/i,zN=function(A){return nn.SUPPORT_SVG_DRAWING||!XN(A)},Ff=function(A){return YN.test(A)},$N=function(A){return GN.test(A)},kf=function(A){return A.substr(0,4)==="blob"},XN=function(A){return A.substr(-3).toLowerCase()==="svg"||WN.test(A)},xt=(function(){function A(t,e){this.type=0,this.x=t,this.y=e}return A.prototype.add=function(t,e){return new A(this.x+t,this.y+e)},A})(),Vs=function(A,t,e){return new xt(A.x+(t.x-A.x)*e,A.y+(t.y-A.y)*e)},ic=(function(){function A(t,e,r,n){this.type=1,this.start=t,this.startControl=e,this.endControl=r,this.end=n}return A.prototype.subdivide=function(t,e){var r=Vs(this.start,this.startControl,t),n=Vs(this.startControl,this.endControl,t),a=Vs(this.endControl,this.end,t),o=Vs(r,n,t),s=Vs(n,a,t),l=Vs(o,s,t);return e?new A(this.start,r,o,l):new A(l,s,a,this.end)},A.prototype.add=function(t,e){return new A(this.start.add(t,e),this.startControl.add(t,e),this.endControl.add(t,e),this.end.add(t,e))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A})(),ua=function(A){return A.type===1},JN=(function(){function A(t){var e=t.styles,r=t.bounds,n=Oo(e.borderTopLeftRadius,r.width,r.height),a=n[0],o=n[1],s=Oo(e.borderTopRightRadius,r.width,r.height),l=s[0],c=s[1],u=Oo(e.borderBottomRightRadius,r.width,r.height),h=u[0],p=u[1],f=Oo(e.borderBottomLeftRadius,r.width,r.height),v=f[0],w=f[1],b=[];b.push((a+l)/r.width),b.push((v+h)/r.width),b.push((o+w)/r.height),b.push((c+p)/r.height);var B=Math.max.apply(Math,b);B>1&&(a/=B,o/=B,l/=B,c/=B,h/=B,p/=B,v/=B,w/=B);var F=r.width-l,E=r.height-p,k=r.width-h,P=r.height-w,j=e.borderTopWidth,M=e.borderRightWidth,O=e.borderBottomWidth,L=e.borderLeftWidth,R=Zr(e.paddingTop,t.bounds.width),S=Zr(e.paddingRight,t.bounds.width),T=Zr(e.paddingBottom,t.bounds.width),G=Zr(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||o>0?sA(r.left+L/3,r.top+j/3,a-L/3,o-j/3,_r.TOP_LEFT):new xt(r.left+L/3,r.top+j/3),this.topRightBorderDoubleOuterBox=a>0||o>0?sA(r.left+F,r.top+j/3,l-M/3,c-j/3,_r.TOP_RIGHT):new xt(r.left+r.width-M/3,r.top+j/3),this.bottomRightBorderDoubleOuterBox=h>0||p>0?sA(r.left+k,r.top+E,h-M/3,p-O/3,_r.BOTTOM_RIGHT):new xt(r.left+r.width-M/3,r.top+r.height-O/3),this.bottomLeftBorderDoubleOuterBox=v>0||w>0?sA(r.left+L/3,r.top+P,v-L/3,w-O/3,_r.BOTTOM_LEFT):new xt(r.left+L/3,r.top+r.height-O/3),this.topLeftBorderDoubleInnerBox=a>0||o>0?sA(r.left+L*2/3,r.top+j*2/3,a-L*2/3,o-j*2/3,_r.TOP_LEFT):new xt(r.left+L*2/3,r.top+j*2/3),this.topRightBorderDoubleInnerBox=a>0||o>0?sA(r.left+F,r.top+j*2/3,l-M*2/3,c-j*2/3,_r.TOP_RIGHT):new xt(r.left+r.width-M*2/3,r.top+j*2/3),this.bottomRightBorderDoubleInnerBox=h>0||p>0?sA(r.left+k,r.top+E,h-M*2/3,p-O*2/3,_r.BOTTOM_RIGHT):new xt(r.left+r.width-M*2/3,r.top+r.height-O*2/3),this.bottomLeftBorderDoubleInnerBox=v>0||w>0?sA(r.left+L*2/3,r.top+P,v-L*2/3,w-O*2/3,_r.BOTTOM_LEFT):new xt(r.left+L*2/3,r.top+r.height-O*2/3),this.topLeftBorderStroke=a>0||o>0?sA(r.left+L/2,r.top+j/2,a-L/2,o-j/2,_r.TOP_LEFT):new xt(r.left+L/2,r.top+j/2),this.topRightBorderStroke=a>0||o>0?sA(r.left+F,r.top+j/2,l-M/2,c-j/2,_r.TOP_RIGHT):new xt(r.left+r.width-M/2,r.top+j/2),this.bottomRightBorderStroke=h>0||p>0?sA(r.left+k,r.top+E,h-M/2,p-O/2,_r.BOTTOM_RIGHT):new xt(r.left+r.width-M/2,r.top+r.height-O/2),this.bottomLeftBorderStroke=v>0||w>0?sA(r.left+L/2,r.top+P,v-L/2,w-O/2,_r.BOTTOM_LEFT):new xt(r.left+L/2,r.top+r.height-O/2),this.topLeftBorderBox=a>0||o>0?sA(r.left,r.top,a,o,_r.TOP_LEFT):new xt(r.left,r.top),this.topRightBorderBox=l>0||c>0?sA(r.left+F,r.top,l,c,_r.TOP_RIGHT):new xt(r.left+r.width,r.top),this.bottomRightBorderBox=h>0||p>0?sA(r.left+k,r.top+E,h,p,_r.BOTTOM_RIGHT):new xt(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=v>0||w>0?sA(r.left,r.top+P,v,w,_r.BOTTOM_LEFT):new xt(r.left,r.top+r.height),this.topLeftPaddingBox=a>0||o>0?sA(r.left+L,r.top+j,Math.max(0,a-L),Math.max(0,o-j),_r.TOP_LEFT):new xt(r.left+L,r.top+j),this.topRightPaddingBox=l>0||c>0?sA(r.left+Math.min(F,r.width-M),r.top+j,F>r.width+M?0:Math.max(0,l-M),Math.max(0,c-j),_r.TOP_RIGHT):new xt(r.left+r.width-M,r.top+j),this.bottomRightPaddingBox=h>0||p>0?sA(r.left+Math.min(k,r.width-L),r.top+Math.min(E,r.height-O),Math.max(0,h-M),Math.max(0,p-O),_r.BOTTOM_RIGHT):new xt(r.left+r.width-M,r.top+r.height-O),this.bottomLeftPaddingBox=v>0||w>0?sA(r.left+L,r.top+Math.min(P,r.height-O),Math.max(0,v-L),Math.max(0,w-O),_r.BOTTOM_LEFT):new xt(r.left+L,r.top+r.height-O),this.topLeftContentBox=a>0||o>0?sA(r.left+L+G,r.top+j+R,Math.max(0,a-(L+G)),Math.max(0,o-(j+R)),_r.TOP_LEFT):new xt(r.left+L+G,r.top+j+R),this.topRightContentBox=l>0||c>0?sA(r.left+Math.min(F,r.width+L+G),r.top+j+R,F>r.width+L+G?0:l-L+G,c-(j+R),_r.TOP_RIGHT):new xt(r.left+r.width-(M+S),r.top+j+R),this.bottomRightContentBox=h>0||p>0?sA(r.left+Math.min(k,r.width-(L+G)),r.top+Math.min(E,r.height+j+R),Math.max(0,h-(M+S)),p-(O+T),_r.BOTTOM_RIGHT):new xt(r.left+r.width-(M+S),r.top+r.height-(O+T)),this.bottomLeftContentBox=v>0||w>0?sA(r.left+L+G,r.top+P,Math.max(0,v-(L+G)),w-(O+T),_r.BOTTOM_LEFT):new xt(r.left+L+G,r.top+r.height-(O+T))}return A})(),_r;(function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(_r||(_r={}));var sA=function(A,t,e,r,n){var a=4*((Math.sqrt(2)-1)/3),o=e*a,s=r*a,l=A+e,c=t+r;switch(n){case _r.TOP_LEFT:return new ic(new xt(A,c),new xt(A,c-s),new xt(l-o,t),new xt(l,t));case _r.TOP_RIGHT:return new ic(new xt(A,t),new xt(A+o,t),new xt(l,c-s),new xt(l,c));case _r.BOTTOM_RIGHT:return new ic(new xt(l,t),new xt(l,t+s),new xt(A+o,c),new xt(A,c));case _r.BOTTOM_LEFT:default:return new ic(new xt(l,c),new xt(l-o,c),new xt(A,t+s),new xt(A,t))}},Pc=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},ZN=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},Vc=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},e_=(function(){function A(t,e,r){this.offsetX=t,this.offsetY=e,this.matrix=r,this.type=0,this.target=6}return A})(),sc=(function(){function A(t,e){this.path=t,this.target=e,this.type=1}return A})(),t_=(function(){function A(t){this.opacity=t,this.type=2,this.target=6}return A})(),r_=function(A){return A.type===0},tb=function(A){return A.type===1},A_=function(A){return A.type===2},o1=function(A,t){return A.length===t.length?A.some(function(e,r){return e===t[r]}):!1},n_=function(A,t,e,r,n){return A.map(function(a,o){switch(o){case 0:return a.add(t,e);case 1:return a.add(t+r,e);case 2:return a.add(t+r,e+n);case 3:return a.add(t,e+n)}return a})},rb=(function(){function A(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A})(),Ab=(function(){function A(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new JN(this.container),this.container.styles.opacity<1&&this.effects.push(new t_(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,a=this.container.styles.transform;this.effects.push(new e_(r,n,a))}if(this.container.styles.overflowX!==0){var o=Pc(this.curves),s=Vc(this.curves);o1(o,s)?this.effects.push(new sc(o,6)):(this.effects.push(new sc(o,2)),this.effects.push(new sc(s,4)))}}return A.prototype.getEffects=function(t){for(var e=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var a=r.effects.filter(function(l){return!tb(l)});if(e||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,a),e=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var o=Pc(r.curves),s=Vc(r.curves);o1(o,s)||n.unshift(new sc(s,6))}}else n.unshift.apply(n,a);r=r.parent}return n.filter(function(l){return qA(l.target,t)})},A})(),Zg=function(A,t,e,r){A.container.elements.forEach(function(n){var a=qA(n.flags,4),o=qA(n.flags,2),s=new Ab(n,A);qA(n.styles.display,2048)&&r.push(s);var l=qA(n.flags,8)?[]:r;if(a||o){var c=a||n.styles.isPositioned()?e:t,u=new rb(s);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var h=n.styles.zIndex.order;if(h<0){var p=0;c.negativeZIndex.some(function(v,w){return h>v.element.container.styles.zIndex.order?(p=w,!1):p>0}),c.negativeZIndex.splice(p,0,u)}else if(h>0){var f=0;c.positiveZIndex.some(function(v,w){return h>=v.element.container.styles.zIndex.order?(f=w+1,!1):f>0}),c.positiveZIndex.splice(f,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else n.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);Zg(s,u,a?u:e,l)}else n.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),Zg(s,t,e,l);qA(n.flags,8)&&nb(n,l)})},nb=function(A,t){for(var e=A instanceof Yg?A.start:1,r=A instanceof Yg?A.reversed:!1,n=0;n<t.length;n++){var a=t[n];a.container instanceof P5&&typeof a.container.value=="number"&&a.container.value!==0&&(e=a.container.value),a.listValue=Jo(e,a.container.styles.listStyleType,!0),e+=r?-1:1}},a_=function(A){var t=new Ab(A,null),e=new rb(t),r=[];return Zg(t,e,e,r),nb(t.container,r),e},l1=function(A,t){switch(t){case 0:return da(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return da(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return da(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return da(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},i_=function(A,t){switch(t){case 0:return da(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return da(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return da(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);case 3:default:return da(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},s_=function(A,t){switch(t){case 0:return da(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return da(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return da(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);case 3:default:return da(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},o_=function(A,t){switch(t){case 0:return oc(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return oc(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return oc(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);case 3:default:return oc(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},oc=function(A,t){var e=[];return ua(A)?e.push(A.subdivide(.5,!1)):e.push(A),ua(t)?e.push(t.subdivide(.5,!0)):e.push(t),e},da=function(A,t,e,r){var n=[];return ua(A)?n.push(A.subdivide(.5,!1)):n.push(A),ua(e)?n.push(e.subdivide(.5,!0)):n.push(e),ua(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),ua(t)?n.push(t.subdivide(.5,!1).reverse()):n.push(t),n},ab=function(A){var t=A.bounds,e=A.styles;return t.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},Kc=function(A){var t=A.styles,e=A.bounds,r=Zr(t.paddingLeft,e.width),n=Zr(t.paddingRight,e.width),a=Zr(t.paddingTop,e.width),o=Zr(t.paddingBottom,e.width);return e.add(r+t.borderLeftWidth,a+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+n),-(t.borderTopWidth+t.borderBottomWidth+a+o))},l_=function(A,t){return A===0?t.bounds:A===2?Kc(t):ab(t)},c_=function(A,t){return A===0?t.bounds:A===2?Kc(t):ab(t)},xf=function(A,t,e){var r=l_(Gs(A.styles.backgroundOrigin,t),A),n=c_(Gs(A.styles.backgroundClip,t),A),a=u_(Gs(A.styles.backgroundSize,t),e,r),o=a[0],s=a[1],l=Oo(Gs(A.styles.backgroundPosition,t),r.width-o,r.height-s),c=f_(Gs(A.styles.backgroundRepeat,t),l,a,r,n),u=Math.round(r.left+l[0]),h=Math.round(r.top+l[1]);return[c,u,h,o,s]},Ks=function(A){return Wr(A)&&A.value===eo.AUTO},lc=function(A){return typeof A=="number"},u_=function(A,t,e){var r=t[0],n=t[1],a=t[2],o=A[0],s=A[1];if(!o)return[0,0];if(OA(o)&&s&&OA(s))return[Zr(o,e.width),Zr(s,e.height)];var l=lc(a);if(Wr(o)&&(o.value===eo.CONTAIN||o.value===eo.COVER)){if(lc(a)){var c=e.width/e.height;return c<a!=(o.value===eo.COVER)?[e.width,e.width/a]:[e.height*a,e.height]}return[e.width,e.height]}var u=lc(r),h=lc(n),p=u||h;if(Ks(o)&&(!s||Ks(s))){if(u&&h)return[r,n];if(!l&&!p)return[e.width,e.height];if(p&&l){var f=u?r:n*a,v=h?n:r/a;return[f,v]}var w=u?r:e.width,b=h?n:e.height;return[w,b]}if(l){var B=0,F=0;return OA(o)?B=Zr(o,e.width):OA(s)&&(F=Zr(s,e.height)),Ks(o)?B=F*a:(!s||Ks(s))&&(F=B/a),[B,F]}var E=null,k=null;if(OA(o)?E=Zr(o,e.width):s&&OA(s)&&(k=Zr(s,e.height)),E!==null&&(!s||Ks(s))&&(k=u&&h?E/r*n:e.height),k!==null&&Ks(o)&&(E=u&&h?k/n*r:e.width),E!==null&&k!==null)return[E,k];throw new Error("Unable to calculate background-size for element")},Gs=function(A,t){var e=A[t];return typeof e>"u"?A[0]:e},f_=function(A,t,e,r,n){var a=t[0],o=t[1],s=e[0],l=e[1];switch(A){case 2:return[new xt(Math.round(r.left),Math.round(r.top+o)),new xt(Math.round(r.left+r.width),Math.round(r.top+o)),new xt(Math.round(r.left+r.width),Math.round(l+r.top+o)),new xt(Math.round(r.left),Math.round(l+r.top+o))];case 3:return[new xt(Math.round(r.left+a),Math.round(r.top)),new xt(Math.round(r.left+a+s),Math.round(r.top)),new xt(Math.round(r.left+a+s),Math.round(r.height+r.top)),new xt(Math.round(r.left+a),Math.round(r.height+r.top))];case 1:return[new xt(Math.round(r.left+a),Math.round(r.top+o)),new xt(Math.round(r.left+a+s),Math.round(r.top+o)),new xt(Math.round(r.left+a+s),Math.round(r.top+o+l)),new xt(Math.round(r.left+a),Math.round(r.top+o+l))];default:return[new xt(Math.round(n.left),Math.round(n.top)),new xt(Math.round(n.left+n.width),Math.round(n.top)),new xt(Math.round(n.left+n.width),Math.round(n.height+n.top)),new xt(Math.round(n.left),Math.round(n.height+n.top))]}},d_="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",c1="Hidden Text",h_=(function(){function A(t){this._data={},this._document=t}return A.prototype.parseMetrics=function(t,e){var r=this._document.createElement("div"),n=this._document.createElement("img"),a=this._document.createElement("span"),o=this._document.body;r.style.visibility="hidden",r.style.fontFamily=t,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",o.appendChild(r),n.src=d_,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",a.style.fontFamily=t,a.style.fontSize=e,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(c1)),r.appendChild(a),r.appendChild(n);var s=n.offsetTop-a.offsetTop+2;r.removeChild(a),r.appendChild(this._document.createTextNode(c1)),r.style.lineHeight="normal",n.style.verticalAlign="super";var l=n.offsetTop-r.offsetTop+2;return o.removeChild(r),{baseline:s,middle:l}},A.prototype.getMetrics=function(t,e){var r=t+" "+e;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(t,e)),this._data[r]},A})(),ib=(function(){function A(t,e){this.context=t,this.options=e}return A})(),g_=1e4,p_=(function(A){Qa(t,A);function t(e,r){var n=A.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 h_(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 t.prototype.applyEffects=function(e){for(var r=this;this._activeEffects.length;)this.popEffect();e.forEach(function(n){return r.applyEffect(n)})},t.prototype.applyEffect=function(e){this.ctx.save(),A_(e)&&(this.ctx.globalAlpha=e.opacity),r_(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)),tb(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(e){return Sn(this,void 0,void 0,function(){var r;return wn(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]}})})},t.prototype.renderNode=function(e){return Sn(this,void 0,void 0,function(){return wn(this,function(r){switch(r.label){case 0:if(qA(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]}})})},t.prototype.renderTextWithLetterSpacing=function(e,r,n){var a=this;if(r===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n);else{var o=kp(e.text);o.reduce(function(s,l){return a.ctx.fillText(l,s,e.bounds.top+n),s+a.ctx.measureText(l).width},e.bounds.left)}},t.prototype.createFontStyle=function(e){var r=e.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),n=y_(e.fontFamily).join(", "),a=tl(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,r,e.fontWeight,a,n].join(" "),n,a]},t.prototype.renderTextNode=function(e,r){return Sn(this,void 0,void 0,function(){var n,a,o,s,l,c,u,h,p=this;return wn(this,function(f){return n=this.createFontStyle(r),a=n[0],o=n[1],s=n[2],this.ctx.font=a,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(o,s),c=l.baseline,u=l.middle,h=r.paintOrder,e.textBounds.forEach(function(v){h.forEach(function(w){switch(w){case 0:p.ctx.fillStyle=YA(r.color),p.renderTextWithLetterSpacing(v,r.letterSpacing,c);var b=r.textShadow;b.length&&v.text.trim().length&&(b.slice(0).reverse().forEach(function(B){p.ctx.shadowColor=YA(B.color),p.ctx.shadowOffsetX=B.offsetX.number*p.options.scale,p.ctx.shadowOffsetY=B.offsetY.number*p.options.scale,p.ctx.shadowBlur=B.blur.number,p.renderTextWithLetterSpacing(v,r.letterSpacing,c)}),p.ctx.shadowColor="",p.ctx.shadowOffsetX=0,p.ctx.shadowOffsetY=0,p.ctx.shadowBlur=0),r.textDecorationLine.length&&(p.ctx.fillStyle=YA(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(B){switch(B){case 1:p.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top+c),v.bounds.width,1);break;case 2:p.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top),v.bounds.width,1);break;case 3:p.ctx.fillRect(v.bounds.left,Math.ceil(v.bounds.top+u),v.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&v.text.trim().length&&(p.ctx.strokeStyle=YA(r.webkitTextStrokeColor),p.ctx.lineWidth=r.webkitTextStrokeWidth,p.ctx.lineJoin=window.chrome?"miter":"round",p.ctx.strokeText(v.text,v.bounds.left,v.bounds.top+c)),p.ctx.strokeStyle="",p.ctx.lineWidth=0,p.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(e,r,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var a=Kc(e),o=Vc(r);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(e){return Sn(this,void 0,void 0,function(){var r,n,a,o,s,l,F,F,c,u,h,p,k,f,v,P,w,b,B,F,E,k,P;return wn(this,function(j){switch(j.label){case 0:this.applyEffects(e.getEffects(4)),r=e.container,n=e.curves,a=r.styles,o=0,s=r.textNodes,j.label=1;case 1:return o<s.length?(l=s[o],[4,this.renderTextNode(l,a)]):[3,4];case 2:j.sent(),j.label=3;case 3:return o++,[3,1];case 4:if(!(r instanceof O5))return[3,8];j.label=5;case 5:return j.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return F=j.sent(),this.renderReplacedElement(r,n,F),[3,8];case 7:return j.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof R5&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof H5))return[3,12];j.label=9;case 9:return j.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return F=j.sent(),this.renderReplacedElement(r,n,F),[3,12];case 11:return j.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof q5&&r.tree?(c=new t(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:u=j.sent(),r.width&&r.height&&this.ctx.drawImage(u,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),j.label=14;case 14:if(r instanceof xp&&(h=Math.min(r.bounds.width,r.bounds.height),r.type===Mc?r.checked&&(this.ctx.save(),this.path([new xt(r.bounds.left+h*.39363,r.bounds.top+h*.79),new xt(r.bounds.left+h*.16,r.bounds.top+h*.5549),new xt(r.bounds.left+h*.27347,r.bounds.top+h*.44071),new xt(r.bounds.left+h*.39694,r.bounds.top+h*.5649),new xt(r.bounds.left+h*.72983,r.bounds.top+h*.23),new xt(r.bounds.left+h*.84,r.bounds.top+h*.34085),new xt(r.bounds.left+h*.39363,r.bounds.top+h*.79)]),this.ctx.fillStyle=YA(Xm),this.ctx.fill(),this.ctx.restore()):r.type===Oc&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+h/2,r.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=YA(Xm),this.ctx.fill(),this.ctx.restore())),v_(r)&&r.value.length){switch(p=this.createFontStyle(a),k=p[0],f=p[1],v=this.fontMetrics.getMetrics(k,f).baseline,this.ctx.font=k,this.ctx.fillStyle=YA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=w_(r.styles.textAlign),P=Kc(r),w=0,r.styles.textAlign){case 1:w+=P.width/2;break;case 2:w+=P.width;break}b=P.add(w,0,0,-P.height/2+1),this.ctx.save(),this.path([new xt(P.left,P.top),new xt(P.left+P.width,P.top),new xt(P.left+P.width,P.top+P.height),new xt(P.left,P.top+P.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Wo(r.value,b),a.letterSpacing,v),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!qA(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(B=r.styles.listStyleImage,B.type!==0)return[3,18];F=void 0,E=B.url,j.label=15;case 15:return j.trys.push([15,17,,18]),[4,this.context.cache.match(E)];case 16:return F=j.sent(),this.ctx.drawImage(F,r.bounds.left-(F.width+10),r.bounds.top),[3,18];case 17:return j.sent(),this.context.logger.error("Error loading list-style-image "+E),[3,18];case 18:return[3,20];case 19:e.listValue&&r.styles.listStyleType!==-1&&(k=this.createFontStyle(a)[0],this.ctx.font=k,this.ctx.fillStyle=YA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",P=new fi(r.bounds.left,r.bounds.top+Zr(r.styles.paddingTop,r.bounds.width),r.bounds.width,Im(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Wo(e.listValue,P),a.letterSpacing,Im(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),j.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(e){return Sn(this,void 0,void 0,function(){var r,n,B,a,o,B,s,l,B,c,u,B,h,p,B,f,v,B,w,b,B;return wn(this,function(F){switch(F.label){case 0:if(qA(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:F.sent(),r=0,n=e.negativeZIndex,F.label=2;case 2:return r<n.length?(B=n[r],[4,this.renderStack(B)]):[3,5];case 3:F.sent(),F.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:F.sent(),a=0,o=e.nonInlineLevel,F.label=7;case 7:return a<o.length?(B=o[a],[4,this.renderNode(B)]):[3,10];case 8:F.sent(),F.label=9;case 9:return a++,[3,7];case 10:s=0,l=e.nonPositionedFloats,F.label=11;case 11:return s<l.length?(B=l[s],[4,this.renderStack(B)]):[3,14];case 12:F.sent(),F.label=13;case 13:return s++,[3,11];case 14:c=0,u=e.nonPositionedInlineLevel,F.label=15;case 15:return c<u.length?(B=u[c],[4,this.renderStack(B)]):[3,18];case 16:F.sent(),F.label=17;case 17:return c++,[3,15];case 18:h=0,p=e.inlineLevel,F.label=19;case 19:return h<p.length?(B=p[h],[4,this.renderNode(B)]):[3,22];case 20:F.sent(),F.label=21;case 21:return h++,[3,19];case 22:f=0,v=e.zeroOrAutoZIndexOrTransformedOrOpacity,F.label=23;case 23:return f<v.length?(B=v[f],[4,this.renderStack(B)]):[3,26];case 24:F.sent(),F.label=25;case 25:return f++,[3,23];case 26:w=0,b=e.positiveZIndex,F.label=27;case 27:return w<b.length?(B=b[w],[4,this.renderStack(B)]):[3,30];case 28:F.sent(),F.label=29;case 29:return w++,[3,27];case 30:return[2]}})})},t.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()},t.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},t.prototype.formatPath=function(e){var r=this;e.forEach(function(n,a){var o=ua(n)?n.start:n;a===0?r.ctx.moveTo(o.x,o.y):r.ctx.lineTo(o.x,o.y),ua(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},t.prototype.renderRepeat=function(e,r,n,a){this.path(e),this.ctx.fillStyle=r,this.ctx.translate(n,a),this.ctx.fill(),this.ctx.translate(-n,-a)},t.prototype.resizeImage=function(e,r,n){var a;if(e.width===r&&e.height===n)return e;var o=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,s=o.createElement("canvas");s.width=Math.max(1,r),s.height=Math.max(1,n);var l=s.getContext("2d");return l.drawImage(e,0,0,e.width,e.height,0,0,r,n),s},t.prototype.renderBackgroundImage=function(e){return Sn(this,void 0,void 0,function(){var r,n,a,o,s,l;return wn(this,function(c){switch(c.label){case 0:r=e.styles.backgroundImage.length-1,n=function(u){var h,p,f,R,le,Z,G,N,O,v,R,le,Z,G,N,w,b,B,F,E,k,P,j,M,O,L,R,S,T,G,N,oe,le,Z,ee,X,re,se,x,I,W,z;return wn(this,function(Ae){switch(Ae.label){case 0:if(u.type!==0)return[3,5];h=void 0,p=u.url,Ae.label=1;case 1:return Ae.trys.push([1,3,,4]),[4,a.context.cache.match(p)];case 2:return h=Ae.sent(),[3,4];case 3:return Ae.sent(),a.context.logger.error("Error loading background-image "+p),[3,4];case 4:return h&&(f=xf(e,r,[h.width,h.height,h.width/h.height]),R=f[0],le=f[1],Z=f[2],G=f[3],N=f[4],O=a.ctx.createPattern(a.resizeImage(h,G,N),"repeat"),a.renderRepeat(R,O,le,Z)),[3,6];case 5:rL(u)?(v=xf(e,r,[null,null,null]),R=v[0],le=v[1],Z=v[2],G=v[3],N=v[4],w=XQ(u.angle,G,N),b=w[0],B=w[1],F=w[2],E=w[3],k=w[4],P=document.createElement("canvas"),P.width=G,P.height=N,j=P.getContext("2d"),M=j.createLinearGradient(B,E,F,k),Qm(u.stops,b).forEach(function(he){return M.addColorStop(he.stop,YA(he.color))}),j.fillStyle=M,j.fillRect(0,0,G,N),G>0&&N>0&&(O=a.ctx.createPattern(P,"repeat"),a.renderRepeat(R,O,le,Z))):AL(u)&&(L=xf(e,r,[null,null,null]),R=L[0],S=L[1],T=L[2],G=L[3],N=L[4],oe=u.position.length===0?[Cp]:u.position,le=Zr(oe[0],G),Z=Zr(oe[oe.length-1],N),ee=JQ(u,le,Z,G,N),X=ee[0],re=ee[1],X>0&&re>0&&(se=a.ctx.createRadialGradient(S+le,T+Z,0,S+le,T+Z,X),Qm(u.stops,X*2).forEach(function(he){return se.addColorStop(he.stop,YA(he.color))}),a.path(R),a.ctx.fillStyle=se,X!==re?(x=e.bounds.left+.5*e.bounds.width,I=e.bounds.top+.5*e.bounds.height,W=re/X,z=1/W,a.ctx.save(),a.ctx.translate(x,I),a.ctx.transform(1,0,0,W,0,0),a.ctx.translate(-x,-I),a.ctx.fillRect(S,z*(T-I)+I,G,N*z),a.ctx.restore()):a.ctx.fill())),Ae.label=6;case 6:return r--,[2]}})},a=this,o=0,s=e.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return o<s.length?(l=s[o],[5,n(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(e,r,n){return Sn(this,void 0,void 0,function(){return wn(this,function(a){return this.path(l1(n,r)),this.ctx.fillStyle=YA(e),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(e,r,n,a){return Sn(this,void 0,void 0,function(){var o,s;return wn(this,function(l){switch(l.label){case 0:return r<3?[4,this.renderSolidBorder(e,n,a)]:[3,2];case 1:return l.sent(),[2];case 2:return o=i_(a,n),this.path(o),this.ctx.fillStyle=YA(e),this.ctx.fill(),s=s_(a,n),this.path(s),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(e){return Sn(this,void 0,void 0,function(){var r,n,a,o,s,l,c,u,h=this;return wn(this,function(p){switch(p.label){case 0:return this.applyEffects(e.getEffects(2)),r=e.container.styles,n=!Ki(r.backgroundColor)||r.backgroundImage.length,a=[{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}],o=m_(Gs(r.backgroundClip,0),e.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),Ki(r.backgroundColor)||(this.ctx.fillStyle=YA(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:p.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(f){h.ctx.save();var v=Pc(e.curves),w=f.inset?0:g_,b=n_(v,-w+(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?(h.path(v),h.ctx.clip(),h.mask(b)):(h.mask(v),h.ctx.clip(),h.path(b)),h.ctx.shadowOffsetX=f.offsetX.number+w,h.ctx.shadowOffsetY=f.offsetY.number,h.ctx.shadowColor=YA(f.color),h.ctx.shadowBlur=f.blur.number,h.ctx.fillStyle=f.inset?YA(f.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),p.label=2;case 2:s=0,l=0,c=a,p.label=3;case 3:return l<c.length?(u=c[l],u.style!==0&&!Ki(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,s,e.curves,2)]:[3,11]):[3,13];case 4:return p.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,s,e.curves,3)];case 6:return p.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,s,e.curves)];case 8:return p.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,s,e.curves)];case 10:p.sent(),p.label=11;case 11:s++,p.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(e,r,n,a,o){return Sn(this,void 0,void 0,function(){var s,l,c,u,h,p,f,v,w,b,B,F,E,k,P,j,P,j;return wn(this,function(M){return this.ctx.save(),s=o_(a,n),l=l1(a,n),o===2&&(this.path(l),this.ctx.clip()),ua(l[0])?(c=l[0].start.x,u=l[0].start.y):(c=l[0].x,u=l[0].y),ua(l[1])?(h=l[1].end.x,p=l[1].end.y):(h=l[1].x,p=l[1].y),n===0||n===2?f=Math.abs(c-h):f=Math.abs(u-p),this.ctx.beginPath(),o===3?this.formatPath(s):this.formatPath(l.slice(0,2)),v=r<3?r*3:r*2,w=r<3?r*2:r,o===3&&(v=r,w=r),b=!0,f<=v*2?b=!1:f<=v*2+w?(B=f/(2*v+w),v*=B,w*=B):(F=Math.floor((f+w)/(v+w)),E=(f-F*v)/(F-1),k=(f-(F+1)*v)/F,w=k<=0||Math.abs(w-E)<Math.abs(w-k)?E:k),b&&(o===3?this.ctx.setLineDash([0,v+w]):this.ctx.setLineDash([v,w])),o===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=YA(e),this.ctx.stroke(),this.ctx.setLineDash([]),o===2&&(ua(l[0])&&(P=l[3],j=l[0],this.ctx.beginPath(),this.formatPath([new xt(P.end.x,P.end.y),new xt(j.start.x,j.start.y)]),this.ctx.stroke()),ua(l[1])&&(P=l[1],j=l[2],this.ctx.beginPath(),this.formatPath([new xt(P.end.x,P.end.y),new xt(j.start.x,j.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(e){return Sn(this,void 0,void 0,function(){var r;return wn(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=YA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=a_(e),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},t})(ib),v_=function(A){return A instanceof K5||A instanceof V5?!0:A instanceof xp&&A.type!==Oc&&A.type!==Mc},m_=function(A,t){switch(A){case 0:return Pc(t);case 2:return ZN(t);case 1:default:return Vc(t)}},w_=function(A){switch(A){case 1:return"center";case 2:return"right";case 0:default:return"left"}},B_=["-apple-system","system-ui"],y_=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(t){return B_.indexOf(t)===-1}):A},b_=(function(A){Qa(t,A);function t(e,r){var n=A.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 t.prototype.render=function(e){return Sn(this,void 0,void 0,function(){var r,n;return wn(this,function(a){switch(a.label){case 0:return r=Gg(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,C_(r)];case 1:return n=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=YA(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]}})})},t})(ib),C_=function(A){return new Promise(function(t,e){var r=new Image;r.onload=function(){t(r)},r.onerror=e,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},E_=(function(){function A(t){var e=t.id,r=t.enabled;this.id=e,this.enabled=r,this.start=Date.now()}return A.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Pl([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Pl([this.id,this.getTime()+"ms"],t))},A.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Pl([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},A.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Pl([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},A.instances={},A})(),F_=(function(){function A(t,e){var r;this.windowBounds=e,this.instanceName="#"+A.instanceCount++,this.logger=new E_({id:this.instanceName,enabled:t.logging}),this.cache=(r=t.cache)!==null&&r!==void 0?r:new jN(this,t)}return A.instanceCount=1,A})(),sb=function(A,t){return t===void 0&&(t={}),k_(A,t)};typeof window<"u"&&eb.setContext(window);var k_=function(A,t){return Sn(void 0,void 0,void 0,function(){var e,r,n,a,o,s,l,c,u,h,p,f,v,w,b,B,F,E,k,P,M,j,M,O,L,R,S,T,G,N,oe,le,Z,ee,X,re,se,x,I,W;return wn(this,function(z){switch(z.label){case 0:if(!A||typeof A!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=A.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:(O=t.allowTaint)!==null&&O!==void 0?O:!1,imageTimeout:(L=t.imageTimeout)!==null&&L!==void 0?L:15e3,proxy:t.proxy,useCORS:(R=t.useCORS)!==null&&R!==void 0?R:!1},a=Qg({logging:(S=t.logging)!==null&&S!==void 0?S:!0,cache:t.cache},n),o={windowWidth:(T=t.windowWidth)!==null&&T!==void 0?T:r.innerWidth,windowHeight:(G=t.windowHeight)!==null&&G!==void 0?G:r.innerHeight,scrollX:(N=t.scrollX)!==null&&N!==void 0?N:r.pageXOffset,scrollY:(oe=t.scrollY)!==null&&oe!==void 0?oe:r.pageYOffset},s=new fi(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),l=new F_(a,s),c=(le=t.foreignObjectRendering)!==null&&le!==void 0?le:!1,u={allowTaint:(Z=t.allowTaint)!==null&&Z!==void 0?Z:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),h=new i1(l,A,u),p=h.clonedReferenceElement,p?[4,h.toIFrame(e,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return f=z.sent(),v=Sp(p)||SN(p)?nD(p.ownerDocument):Gc(l,p),w=v.width,b=v.height,B=v.left,F=v.top,E=x_(l,p,t.backgroundColor),k={canvas:t.canvas,backgroundColor:E,scale:(X=(ee=t.scale)!==null&&ee!==void 0?ee:r.devicePixelRatio)!==null&&X!==void 0?X:1,x:((re=t.x)!==null&&re!==void 0?re:0)+B,y:((se=t.y)!==null&&se!==void 0?se:0)+F,width:(x=t.width)!==null&&x!==void 0?x:Math.ceil(w),height:(I=t.height)!==null&&I!==void 0?I:Math.ceil(b)},c?(l.logger.debug("Document cloned, using foreign object rendering"),M=new b_(l,k),[4,M.render(p)]):[3,3];case 2:return P=z.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+B+","+F+" with size "+w+"x"+b+" using computed rendering"),l.logger.debug("Starting DOM parsing"),j=W5(l,p),E===j.styles.backgroundColor&&(j.styles.backgroundColor=ci.TRANSPARENT),l.logger.debug("Starting renderer for element at "+k.x+","+k.y+" with size "+k.width+"x"+k.height),M=new p_(l,k),[4,M.render(j)];case 4:P=z.sent(),z.label=5;case 5:return(!((W=t.removeContainer)!==null&&W!==void 0)||W)&&(i1.destroy(f)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,P]}})})},x_=function(A,t,e){var r=t.ownerDocument,n=r.documentElement?qo(A,getComputedStyle(r.documentElement).backgroundColor):ci.TRANSPARENT,a=r.body?qo(A,getComputedStyle(r.body).backgroundColor):ci.TRANSPARENT,o=typeof e=="string"?qo(A,e):e===null?ci.TRANSPARENT:4294967295;return t===r.documentElement?Ki(n)?Ki(a)?o:a:n:o};const S_=Object.freeze(Object.defineProperty({__proto__:null,default:sb},Symbol.toStringTag,{value:"Module"})),T_={class:"gantt-body"},U_=["title"],D_={width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},Q_={key:0,points:"15,18 9,12 15,6"},L_={key:1,points:"9,18 15,12 9,6"},I_={class:"close-text"},N_=i.defineComponent({__name:"GanttChart",props:{tasks:{default:()=>[]},milestones:{default:()=>[]},useDefaultDrawer:{type:Boolean,default:!0},useDefaultMilestoneDialog:{type:Boolean,default:!0},toolbarConfig:{default:()=>({})},showToolbar:{type:Boolean,default:!0},onTodayLocate:{type:Function,default:void 0},onExportCsv:{type:Function,default:void 0},onExportPdf:{type:Function,default:void 0},onLanguageChange:{type:Function,default:void 0},onThemeChange:{type:Function,default:void 0},onFullscreenChange:{type:Function,default:void 0},onExpandAll:{type:Function,default:void 0},onCollapseAll:{type:Function,default:void 0},localeMessages:{default:void 0},workingHours:{default:()=>({morning:{start:8,end:11},afternoon:{start:13,end:17}})},taskListConfig:{default:void 0},taskListColumnRenderMode:{default:"default"},taskBarConfig:{default:void 0},autoSortByStartDate:{type:Boolean,default:!1},allowDragAndResize:{type:Boolean,default:!0},enableTaskRowMove:{type:Boolean,default:!1},assigneeOptions:{default:()=>[]},taskListRowClassName:{type:[String,Function],default:void 0},taskListRowStyle:{type:[Boolean,null,String,Object,Array,Function],default:void 0}},emits:["task-click","task-double-click","taskbar-drag-end","taskbar-resize-end","milestone-drag-end","milestone-double-click","timer-started","timer-stopped","predecessor-added","successor-added","task-deleted","task-added","task-updated","task-collapse-change","link-deleted","add-task","add-milestone","milestone-saved","milestone-deleted","milestone-icon-changed","add-predecessor","add-successor","task-row-moved"],setup(A,{emit:t}){const e=A,r=t,{showMessage:n}=pp(),a=i.useSlots();i.provide("gantt-column-slots",a);const o=i.ref(null),s=i.ref(1920),l=($,de)=>{let Ke=0,rt=null;return((...q)=>{const me=Date.now(),Ce=de-(me-Ke);rt&&clearTimeout(rt),Ce<=0?(Ke=me,$(...q)):rt=window.setTimeout(()=>{Ke=Date.now(),$(...q),rt=null},Ce)})},c=()=>{if(o.value){const $=o.value.clientWidth;if($!==s.value){s.value=$,w.value=h(),v.value=p(),B.value=p(),F.value=p();const de=k(E.value);de!==E.value&&(E.value=de)}}},u=l(c,100);i.onMounted(()=>{c(),window.addEventListener("resize",u)}),i.onUnmounted(()=>{window.removeEventListener("resize",u)});const h=()=>{var de;const $=Nu((de=e.taskListConfig)==null?void 0:de.minWidth,s.value,Kv);return Math.max($,Kv)},p=()=>{var $;return Nu(($=e.taskListConfig)==null?void 0:$.maxWidth,s.value,F4)},f=()=>{var $;return Nu(($=e.taskListConfig)==null?void 0:$.defaultWidth,s.value,E4)},v=i.ref(p()),w=i.ref(h()),b=i.ref(h()),B=i.ref(p()),F=i.ref(p()),E=i.ref(f()),k=$=>$<w.value?w.value:$>F.value?F.value:Math.max(w.value,$);i.watch(()=>e.taskListConfig,$=>{if($){$.defaultWidth!==void 0&&(E.value=f()),w.value=h(),v.value=p(),B.value=p(),F.value=p(),b.value=h();const de=k(E.value);de!==E.value&&(E.value=de)}},{immediate:!1,deep:!0});const P=i.ref(null),j=i.ref(0),M=i.ref(0);i.watch(()=>e.tasks,()=>{M.value++},{deep:!0});const O=i.ref(qe.DAY),L=i.computed(()=>{var de;const $=(de=P.value)==null?void 0:de.highlightedTaskId;return $!=null});i.watch(()=>P.value,$=>{$&&$.updateTimeScale(O.value)});const R=i.ref(!1);function S($){if($.target.closest(".task-list-toggle"))return;$.preventDefault(),$.stopPropagation(),R.value=!0;const Ke=$.clientX,rt=E.value,q=document.querySelector(".task-list-body");if(!q)return;const me=q.getBoundingClientRect();v.value=me.width,B.value=window.innerWidth*.8-6,F.value=Math.min(B.value,F.value),window.dispatchEvent(new CustomEvent("splitter-drag-start")),document.body.style.userSelect="none",document.body.style.webkitUserSelect="none",document.body.style.cursor="col-resize",document.body.style.pointerEvents="none";const Ce=Ie=>{Ie.type!=="mousemove"&&Ie.type!=="mouseup"&&(Ie.preventDefault(),Ie.stopPropagation(),Ie.stopImmediatePropagation())};document.addEventListener("mousedown",Ce,{capture:!0}),document.addEventListener("click",Ce,{capture:!0}),document.addEventListener("dblclick",Ce,{capture:!0}),document.addEventListener("mouseover",Ce,{capture:!0}),document.addEventListener("mouseout",Ce,{capture:!0}),document.addEventListener("mouseenter",Ce,{capture:!0}),document.addEventListener("mouseleave",Ce,{capture:!0}),document.addEventListener("wheel",Ce,{capture:!0,passive:!1}),document.addEventListener("contextmenu",Ce,{capture:!0});function Te(Ie){if(!R.value)return;Ie.preventDefault(),Ie.stopPropagation(),Ie.stopImmediatePropagation();const Xe=Ie.clientX-Ke,Ye=rt+Xe,st=k(Ye);E.value=st}function ze(){R.value=!1,document.removeEventListener("mousedown",Ce,{capture:!0}),document.removeEventListener("click",Ce,{capture:!0}),document.removeEventListener("dblclick",Ce,{capture:!0}),document.removeEventListener("mouseover",Ce,{capture:!0}),document.removeEventListener("mouseout",Ce,{capture:!0}),document.removeEventListener("mouseenter",Ce,{capture:!0}),document.removeEventListener("mouseleave",Ce,{capture:!0}),document.removeEventListener("wheel",Ce,{capture:!0}),document.removeEventListener("contextmenu",Ce,{capture:!0}),window.dispatchEvent(new CustomEvent("splitter-drag-end")),document.body.style.userSelect="",document.body.style.webkitUserSelect="",document.body.style.cursor="",document.body.style.pointerEvents="",v.value=p(),w.value=h(),B.value=p(),F.value=p(),b.value=h(),window.removeEventListener("mousemove",Te),window.removeEventListener("mouseup",ze)}window.addEventListener("mousemove",Te),window.addEventListener("mouseup",ze)}const T=i.ref(!0),G=i.ref(!1),N=i.ref(""),oe=()=>{G.value||(G.value=!0,T.value?N.value="impact-left":N.value="impact-right",setTimeout(()=>{T.value=!T.value},200),setTimeout(()=>{G.value=!1,N.value="",i.nextTick(()=>{window.dispatchEvent(new CustomEvent("timeline-container-resized",{detail:{source:"manual-task-list-toggle"}}))})},400))},le=$=>{T.value=$.detail,i.nextTick(()=>{window.dispatchEvent(new CustomEvent("timeline-container-resized",{detail:{source:"task-list-toggle"}}))})};function Z($){const de=$.detail;e.tasks&&Br(e.tasks,de),M.value++,r("taskbar-drag-end",de)}function ee($){const de=$.detail;e.tasks&&Br(e.tasks,de),M.value++,r("taskbar-resize-end",de)}function X($){const de=$.detail;M.value++,r("milestone-drag-end",de)}let re=null;i.onMounted(()=>{window.addEventListener("taskbar-drag-end",Z),window.addEventListener("taskbar-resize-end",ee),window.addEventListener("milestone-drag-end",X),i.nextTick(()=>{const $=document.querySelector(".gantt-panel-right");$&&(j.value=$.clientWidth,re=new ResizeObserver(de=>{for(const Ke of de)j.value=Ke.contentRect.width}),re.observe($))})}),i.onUnmounted(()=>{window.removeEventListener("taskbar-drag-end",Z),window.removeEventListener("taskbar-resize-end",ee),window.removeEventListener("milestone-drag-end",X),re&&(re.disconnect(),re=null)});const se=$=>{const de=(Ke,rt,q)=>{for(const me of Ke){if(me.id===rt)return me.collapsed=q,!0;if(me.children&&me.children.length>0&&de(me.children,rt,q))return!0}return!1};e.tasks&&de(e.tasks,$.id,$.collapsed??!1),M.value++,r("task-collapse-change",$)},x=()=>{if(e.onExpandAll&&typeof e.onExpandAll=="function")e.onExpandAll();else{const $=de=>{de.forEach(Ke=>{Ke.children&&Ke.children.length>0&&(Ke.collapsed=!1,$(Ke.children))})};e.tasks&&($(e.tasks),M.value++)}},I=$=>{const{draggedTask:de,targetTask:Ke,position:rt}=$;if(!e.tasks)return;const q=g3(e.tasks,de.id,Ke.id,rt);q&&(M.value++,i.nextTick(()=>{window.dispatchEvent(new CustomEvent("task-updated",{detail:q.movedTask}))}),r("task-row-moved",{draggedTask:q.movedTask,targetTask:Ke,position:rt,oldParent:q.oldParent,newParent:q.newParent}))},W=()=>{if(e.onCollapseAll&&typeof e.onCollapseAll=="function")e.onCollapseAll();else{const $=de=>{de.forEach(Ke=>{Ke.children&&Ke.children.length>0&&(Ke.collapsed=!0,$(Ke.children))})};e.tasks&&($(e.tasks),M.value++)}},z=()=>{const $=[],de=Ke=>{Ke.forEach(rt=>{$.push(rt),rt.children&&rt.children.length>0&&de(rt.children)})};e.tasks&&de(e.tasks),e.milestones&&$.push(...e.milestones),window.dispatchEvent(new CustomEvent("task-list-updated",{detail:$}))},Ae=()=>{z()};i.watch([()=>e.tasks,()=>e.milestones],()=>{i.nextTick(()=>{Ae()})},{deep:!0,immediate:!0}),i.onMounted(()=>{window.addEventListener("toggle-task-list",le),window.addEventListener("fullscreen-toggle",Re),window.addEventListener("milestone-icon-changed",mt),window.addEventListener("milestone-deleted",Bt),window.addEventListener("milestone-data-changed",pt),window.addEventListener("request-task-list",z),window.addEventListener("resize",Xt),window.addEventListener("context-menu",gr),i.nextTick(()=>{P.value&&typeof P.value.scrollToTodayCenter=="function"&&P.value.scrollToTodayCenter()})}),i.onUnmounted(()=>{R.value=!1,window.removeEventListener("toggle-task-list",le),window.removeEventListener("fullscreen-toggle",Re),window.removeEventListener("milestone-icon-changed",mt),window.removeEventListener("milestone-deleted",Bt),window.removeEventListener("milestone-data-changed",pt),window.removeEventListener("request-task-list",z),window.removeEventListener("resize",Xt),window.removeEventListener("context-menu",gr)});const he=i.ref(!1),{t:fe,locale:ce}=ea(),Fe=i.computed(()=>fe.value.collapseTaskList),Pe=i.computed(()=>fe.value.expandTaskList),Ze=i.computed(()=>{M.value>=0;const $=[];if(e.milestones&&e.milestones.length>0){const de={id:-1,name:fe.value.milestoneGroup,startDate:"",endDate:"",type:"milestone-group",children:e.milestones,isParent:!0,collapsed:!1};$.push(de)}if(e.tasks&&e.tasks.length>0)if(e.autoSortByStartDate){const de=rt=>[...rt].map(q=>{const me={...q};return q.children&&q.children.length>0&&(me.children=de(q.children)),me}).sort((q,me)=>{const Ce=Xe=>{if(Xe.children&&Xe.children.length>0){const Ye=Xe.children.map(st=>Ce(st)).filter(st=>st.getTime()>0);if(Ye.length>0)return new Date(Math.min(...Ye.map(st=>st.getTime())))}return Xe.startDate?new Date(Xe.startDate):new Date("9999-12-31")},Te=Ce(q),ze=Ce(me),Ie=Te.getTime()-ze.getTime();return Ie!==0?Ie:q.id-me.id}),Ke=de(e.tasks);$.push(...Ke)}else $.push(...e.tasks);return $}),tt=i.computed(()=>{M.value>=0;const $=[];if(e.milestones&&e.milestones.length>0){const de={id:-1,name:fe.value.milestoneGroup,startDate:"",endDate:"",type:"milestone-group",children:e.milestones,isParent:!0,collapsed:!1};$.push(de)}if(e.tasks&&e.tasks.length>0){const de=ze=>{const Ie=[],Xe=[];return ze.forEach(Ye=>{if(Ye.startDate&&Ie.push(Ye.startDate),Ye.endDate&&Xe.push(Ye.endDate),Ye.children&&Ye.children.length>0){const st=de(Ye.children);Ie.push(...st.starts),Xe.push(...st.ends)}}),{starts:Ie,ends:Xe}},Ke=ze=>{if(!ze.children||ze.children.length===0)return{startDate:ze.startDate||"",endDate:ze.endDate||""};const{starts:Ie,ends:Xe}=de(ze.children);if(Ie.length===0||Xe.length===0)return{startDate:ze.startDate||"",endDate:ze.endDate||""};const Ye=Ie.reduce((vt,qt)=>new Date(qt)<new Date(vt)?qt:vt),st=Xe.reduce((vt,qt)=>new Date(qt)>new Date(vt)?qt:vt);return{startDate:Ye,endDate:st}},rt=ze=>ze.map(Ie=>{let Xe={...Ie};Ie.children&&Ie.children.length>0&&(Xe.children=rt(Ie.children));const Ye=Ie.type==="story"||Xe.children&&Xe.children.length>0;if(Xe.isParent=Ye,Ye&&Xe.children&&Xe.children.length>0){const{startDate:st,endDate:vt}=Ke(Xe);Xe={...Xe,startDate:st,endDate:vt}}return Xe}),q=(ze,Ie=0)=>{const Xe=[];return ze.forEach(Ye=>{const st={...Ye,level:Ie};if(Xe.push(st),Ye.children&&Ye.children.length>0&&!Ye.collapsed){const vt=q(Ye.children,Ie+1);Xe.push(...vt)}}),Xe},me=Ze.value.filter(ze=>ze.type!=="milestone-group"),Ce=rt(me),Te=q(Ce);$.push(...Te)}return $}),lt=i.computed(()=>(M.value>=0,e.milestones?e.milestones.filter(de=>!!de.startDate).map(de=>({id:de.id,name:de.name,startDate:de.startDate,endDate:de.endDate,assignee:de.assignee,type:de.type||"milestone",icon:de.icon,description:de.description})):[])),Q=i.computed(()=>{M.value;const $=Ye=>{let st=[];return Ye.forEach(vt=>{st.push(vt),vt.children&&vt.children.length>0&&(st=st.concat($(vt.children)))}),st};let de=[];e.tasks&&(de=de.concat($(e.tasks))),e.milestones&&(de=de.concat(e.milestones));const Ke=de.map(Ye=>Ye.startDate).filter(Boolean).map(Ye=>new Date(Ye)),rt=de.map(Ye=>Ye.endDate).filter(Boolean).map(Ye=>new Date(Ye));if(Ke.length===0||rt.length===0){const Ye=new Date,st=new Date(Ye.getFullYear(),Ye.getMonth()-6,1),vt=new Date(Ye.getFullYear(),Ye.getMonth()+6+1,0);return{min:st,max:vt}}const q=new Date(Math.min(...Ke.map(Ye=>Ye.getTime()))),me=new Date(Math.max(...rt.map(Ye=>Ye.getTime()))),Ce=j.value||1200,Te=L4[O.value].cellWidth,ze=Math.ceil(Ce/Te),{min:Ie,max:Xe}=De(q,me,O.value,ze,Te);return{min:Ie,max:Xe}});function De($,de,Ke,rt,q){let me,Ce;switch(Ke){case qe.HOUR:{me=new Date($.getTime()-1440*60*1e3),Ce=new Date(de.getTime()+1440*60*1e3);const Te=Math.ceil((Ce.getTime()-me.getTime())/(1e3*60*60));if(Te<rt){const ze=rt-Te,Ie=Math.ceil(ze/2);me=new Date(me.getTime()-Ie*60*60*1e3),Ce=new Date(Ce.getTime()+Ie*60*60*1e3)}break}case qe.DAY:{const Te=new Date($);Te.setDate(Te.getDate()-15);const ze=new Date(de);ze.setDate(ze.getDate()+15),me=new Date(Te.getFullYear(),Te.getMonth(),1),Ce=new Date(ze.getFullYear(),ze.getMonth()+1,0);const Ie=Math.ceil((Ce.getTime()-me.getTime())/(1e3*60*60*24));if(Ie<rt){const Xe=rt-Ie,Ye=Math.ceil(Xe/30),st=me.getMonth()-Ye,vt=me.getFullYear()+Math.floor(st/12),qt=(st%12+12)%12;me=new Date(vt,qt,1);const tr=Ce.getMonth()+Ye+1,nr=Ce.getFullYear()+Math.floor(tr/12),Kt=(tr%12+12)%12;Ce=new Date(nr,Kt,0)}break}case qe.WEEK:{const Te=Qr=>{const ur=new Date(Qr),Kr=ur.getDay()||7;return ur.setDate(ur.getDate()-(Kr-1)),ur},ze=(Qr,ur)=>{let Kr=1;for(;Kr<=31;){const Lr=new Date(Qr,ur,Kr);if(Lr.getMonth()!==ur)break;const $r=Te(Lr);if($r.getMonth()===ur)return $r;Kr++}return new Date(Qr,ur,1)},Ie=(Qr,ur)=>{const Kr=new Date(Qr,ur+1,0).getDate();for(let Lr=Kr;Lr>=1;Lr--){const $r=new Date(Qr,ur,Lr),XA=Te($r);if(XA.getMonth()===ur)return XA}return new Date(Qr,ur,1)},Xe=(Qr,ur)=>{const Kr=[],Lr=ze(Qr,ur),$r=Ie(Qr,ur),XA=new Date(Lr);for(;XA<=$r;)Kr.push(new Date(XA)),XA.setDate(XA.getDate()+7);return Kr},Ye=Te($),st=Ye.getFullYear(),vt=Ye.getMonth(),qt=vt===0?11:vt-1,tr=vt===0?st-1:st,nr=Xe(tr,qt),Kt=Te(de),Gt=Kt.getFullYear(),Rt=Kt.getMonth(),pr=Rt===11?0:Rt+1,dr=Rt===11?Gt+1:Gt,yr=Xe(dr,pr);let $t=[];$t.push(...nr);let RA=st,cn=vt;for(;RA<Gt||RA===Gt&&cn<=Rt;){const Qr=Xe(RA,cn);$t.push(...Qr),cn++,cn>11&&(cn=0,RA++)}$t.push(...yr);const Ln=60;let bn=$t.length*Ln;for(;bn<rt*q;){const Qr=$t[0],ur=Qr.getFullYear(),Kr=Qr.getMonth(),Lr=Kr===0?11:Kr-1,$r=Kr===0?ur-1:ur;if($t=[...Xe($r,Lr),...$t],bn=$t.length*Ln,bn>=rt*q)break;const ta=$t[$t.length-1],Vn=ta.getFullYear(),un=ta.getMonth(),ra=un===11?0:un+1,kA=un===11?Vn+1:Vn,fn=Xe(kA,ra);$t=[...$t,...fn],bn=$t.length*Ln}me=new Date($t[0]),Ce=new Date($t[$t.length-1]),Ce.setDate(Ce.getDate()+6);break}case qe.MONTH:{me=new Date($.getFullYear()-1,$.getMonth(),1),Ce=new Date(de.getFullYear()+1,de.getMonth()+1,0);const Te=(Ce.getFullYear()-me.getFullYear())*12+(Ce.getMonth()-me.getMonth());if(Te<rt){const ze=rt-Te,Ie=Math.ceil(ze/2);me=new Date(me.getFullYear(),me.getMonth()-Ie,1),Ce=new Date(Ce.getFullYear(),Ce.getMonth()+Ie+1,0)}break}case qe.QUARTER:{const ze=new Date().getFullYear(),Ie=$.getFullYear(),Xe=de.getFullYear();me=new Date(Math.min(ze-2,Ie-2),0,1),Ce=new Date(Math.max(ze+2,Xe+2),11,31);const Ye=(Ce.getFullYear()-me.getFullYear()+1)*4;if(Ye<rt){const st=rt-Ye,vt=Math.ceil(st/4),qt=Math.ceil(vt/2);me=new Date(me.getFullYear()-qt,0,1),Ce=new Date(Ce.getFullYear()+qt,11,31)}break}case qe.YEAR:{const ze=new Date().getFullYear(),Ie=$.getFullYear(),Xe=de.getFullYear();me=new Date(Math.min(ze-2,Ie-2),0,1),Ce=new Date(Math.max(ze+2,Xe+2),11,31);const Ye=(Ce.getFullYear()-me.getFullYear()+1)*2;if(Ye<rt){const st=rt-Ye,vt=Math.ceil(st/2),qt=Math.ceil(vt/2);me=new Date(me.getFullYear()-qt,0,1),Ce=new Date(Ce.getFullYear()+qt,11,31)}break}default:me=$,Ce=de}return{min:me,max:Ce}}const pe=()=>{if(e.onExportCsv&&typeof e.onExportCsv=="function"){e.onExportCsv()===!1&&Qe();return}Qe()},ge=$=>{O.value=$,P.value&&P.value.updateTimeScale($)},Ee=$=>{i.nextTick(()=>{const de=new CustomEvent("timeline-scale-updated",{detail:$});window.dispatchEvent(de)})},xe=()=>{var $;($=P.value)!=null&&$.clearHighlight&&P.value.clearHighlight()},Qe=()=>{try{const $=[];e.tasks&&e.tasks.length>0&&$.push(...e.tasks),e.milestones&&e.milestones.length>0&&$.push(...e.milestones);const rt="\uFEFF"+Oe($),q=new Blob([rt],{type:"text/csv;charset=utf-8;"}),me=document.createElement("a"),Ce=URL.createObjectURL(q),ze=`gantt-tasks-${new Date().toISOString().split("T")[0]}.csv`;me.setAttribute("href",Ce),me.setAttribute("download",ze),me.style.visibility="hidden",document.body.appendChild(me),me.click(),document.body.removeChild(me),URL.revokeObjectURL(Ce)}catch($){console.error("CSV导出失败:",$),n("CSV导出失败","error",{closable:!1})}},Oe=$=>{const de=fe.value.csvHeaders,Ke=[de.id,de.taskName,de.predecessor,de.assignee,de.startDate,de.endDate,de.estimatedHours,de.actualHours,de.progress,de.type,de.description],rt=Te=>{if(Te==null)return"";const ze=String(Te);return ze.includes(",")||ze.includes('"')||ze.includes(`
`)||ze.includes("\r")?`"${ze.replace(/"/g,'""')}"`:ze},q=Te=>{const ze=[];return Te.forEach(Ie=>{ze.push({id:Ie.id,name:Ie.name||"",predecessor:pg(Ie.predecessor),assignee:Ie.assignee||"",startDate:Ie.startDate||"",endDate:Ie.endDate||"",estimatedHours:Ie.estimatedHours||"",actualHours:Ie.actualHours||"",progress:Ie.progress!==void 0?`${Ie.progress}%`:"",type:Ie.type||"",description:Ie.description||""}),Ie.children&&Ie.children.length>0&&ze.push(...q(Ie.children))}),ze},me=q($);return[Ke.map(Te=>rt(Te)).join(","),...me.map(Te=>[rt(Te.id),rt(Te.name),rt(pg(Te.predecessor)),rt(Te.assignee),rt(Te.startDate),rt(Te.endDate),rt(Te.estimatedHours),rt(Te.actualHours),rt(Te.progress),rt(Te.type),rt(Te.description)].join(","))].join(`
`)},Ve=async()=>{try{const $=fe.value.pdfExportLoading,de=fe.value.pdfExportTitle,Ke=fe.value.pdfExportDate,rt=document.createElement("div");rt.innerHTML=`
      <div style="position: fixed; top: 0; left: 0; width: 100%; height: 100%;
                  background: rgba(0,0,0,0.5); display: flex; align-items: center;
                  justify-content: center; z-index: 10000; color: white; font-size: 16px;">
        ${$}
      </div>
    `,document.body.appendChild(rt);const q=document.querySelector(".gantt-body");if(!q)throw new Error("找不到甘特图元素");const me={overflow:q.style.overflow,height:q.style.height};q.style.overflow="visible",q.style.height="auto";const Ce=await sb(q,{allowTaint:!0,useCORS:!0,scale:2,width:q.scrollWidth,height:q.scrollHeight,backgroundColor:"#ffffff"});q.style.overflow=me.overflow,q.style.height=me.height;const Te=Ce.toDataURL("image/png"),ze=new Wt({orientation:"landscape",unit:"mm",format:"a4"}),Ie=ze.internal.pageSize.getWidth(),Xe=ze.internal.pageSize.getHeight(),Ye=Ce.width,st=Ce.height,vt=Math.min(Ie/Ye,Xe/st),qt=Ye*vt,tr=st*vt,nr=(Ie-qt)/2,Kt=(Xe-tr)/2;ze.setFontSize(16),ze.text(de,Ie/2,15,{align:"center"}),ze.setFontSize(10);const Gt=new Date().toLocaleDateString(ce.value);if(ze.text(`${Ke}: ${Gt}`,Ie-10,10,{align:"right"}),ze.addImage(Te,"PNG",nr,Kt+10,qt,tr-15),tr>Xe-30){const pr=Math.ceil(tr/(Xe-30));for(let dr=1;dr<pr;dr++){ze.addPage();const yr=-dr*(Xe-30);ze.addImage(Te,"PNG",nr,Kt+10+yr,qt,tr-15)}}const Rt=`gantt-chart-${new Date().toISOString().split("T")[0]}.pdf`;ze.save(Rt),rt&&rt.parentNode&&rt.parentNode.removeChild(rt)}catch($){const de=document.querySelector('[style*="position: fixed"]');de&&de.parentNode&&de.parentNode.removeChild(de),console.error("PDF导出失败:",$),alert("PDF导出失败")}},Re=$=>{he.value=$.detail,e.onFullscreenChange&&typeof e.onFullscreenChange=="function"&&e.onFullscreenChange(he.value),setTimeout(()=>{window.dispatchEvent(new CustomEvent("timeline-container-resized",{detail:{source:"fullscreen-toggle"}}))},500)},$e=($,de)=>{const Ke=$.findIndex(rt=>rt.id===de.id);return Ke!==-1?($.splice(Ke,1,{...$[Ke],...de}),!0):($.push(de),!0)},at=$=>{$.id||($.id=Date.now()),$.type="milestone",e.milestones&&$e(e.milestones,$),r("milestone-saved",$),M.value++,je.value&&Ct()},gt=($,de,Ke)=>{const rt=$.findIndex(q=>q.id===de);return rt!==-1?($.splice(rt,1,{...$[rt],icon:Ke}),!0):!1},mt=$=>{const{milestoneId:de,icon:Ke}=$.detail;e.milestones&&gt(e.milestones,de,Ke),r("milestone-icon-changed",{milestoneId:de,icon:Ke}),M.value++},ht=($,de)=>{const Ke=$.findIndex(rt=>rt.id===de);return Ke!==-1?($.splice(Ke,1),!0):!1},Bt=()=>{M.value++},pt=()=>{M.value++,i.nextTick(()=>{})};i.onMounted(()=>{i.nextTick(()=>{P.value&&typeof P.value.scrollToTodayCenter=="function"&&P.value.scrollToTodayCenter()})});const zt=()=>{if(e.onTodayLocate&&typeof e.onTodayLocate=="function"){e.onTodayLocate();return}if(P.value&&typeof P.value.scrollToTodayCenter=="function"){P.value.scrollToTodayCenter();return}Lt()},_t=()=>{r("add-milestone"),e.useDefaultMilestoneDialog&&Ut()},Ut=()=>{wt.value=null,je.value=!0},Lt=()=>{if(P.value&&typeof P.value.scrollToToday=="function"){P.value.scrollToToday();return}const $=new Date,de=$.getMonth(),Ke=$.getDate();let rt=0;for(let Ie=0;Ie<de;Ie++)rt+=new Date($.getFullYear(),Ie+1,0).getDate();rt+=Ke;const q=document.querySelector(".gantt-panel-right"),me=q==null?void 0:q.clientWidth,Ce=me?me/2:200,Te=(rt-1)*30-Ce,ze=document.querySelector(".timeline");if(ze){ze.scrollLeft=Math.max(0,Te);const Ie=ze.querySelector(".day-column.today");Ie&&(Ie.classList.add("today-highlight"),setTimeout(()=>{Ie.classList.remove("today-highlight")},2e3))}},Xt=()=>{const $=k(E.value);$!==E.value&&(E.value=$)};e.localeMessages&&Object.keys(e.localeMessages).forEach($=>{const de=e.localeMessages[$];de&&Vv($,de)}),i.watch(()=>e.localeMessages,$=>{$&&Object.keys($).forEach(de=>{const Ke=$[de];Ke&&Vv(de,Ke)})},{deep:!0});const Et=i.ref({x:0,y:0}),rr=i.ref(!1),St=i.ref(null),ye=i.ref(!1),He=i.ref(null),_e=i.ref(!1),je=i.ref(!1),wt=i.ref(null),Qt=i.ref(null),Tt=i.ref(null),gr=$=>{const{task:de,position:Ke}=$.detail;St.value=de,Et.value=Ke,rr.value=!0},Or=()=>{rr.value=!1};function Ft(){if(r("add-task"),e.useDefaultDrawer){const $={id:Date.now(),name:"",type:"task",assignee:"",startDate:"",endDate:"",predecessor:[],estimatedHours:0,actualHours:0,progress:0,description:"",parentId:void 0,children:[]};He.value=$,_e.value=!1,ye.value=!0}}const hA=$=>{if(e.tasks){const de=Ke=>{var rt;for(let q=0;q<Ke.length;q++){if(Ke[q].id===$.id)return Ke[q].isTimerRunning=!0,Ke[q].timerStartTime=$.timerStartTime||Date.now(),Ke[q].timerEndTime=void 0,Ke[q].timerElapsedTime=0,!0;if((rt=Ke[q].children)!=null&&rt.length&&de(Ke[q].children))return!0}return!1};de(e.tasks)}Or(),r("timer-started",$)},lA=$=>{if(e.tasks){const de=Ke=>{var rt;for(let q=0;q<Ke.length;q++){if(Ke[q].id===$.id){if(Ke[q].isTimerRunning&&Ke[q].timerStartTime!==void 0){const me=Ke[q].timerElapsedTime||0;Ke[q].timerElapsedTime=me+(Date.now()-Ke[q].timerStartTime),Ke[q].timerEndTime=Date.now()}return Ke[q].isTimerRunning=!1,ye.value&&He.value&&He.value.id===$.id&&(He.value.isTimerRunning=!1,He.value.timerEndTime=Date.now()),!0}if((rt=Ke[q].children)!=null&&rt.length&&de(Ke[q].children))return!0}return!1};de(e.tasks)}Or(),r("timer-stopped",$)};function cA($,de){r("task-click",$,de)}function xr($){r("task-double-click",$),e.useDefaultDrawer&&(He.value=$,_e.value=!0,ye.value=!0)}function fr($){if(!$)return;r("add-predecessor",$),Qt.value=$;const de={id:Date.now(),name:"",type:"task",assignee:"",startDate:"",endDate:"",predecessor:[],estimatedHours:0,actualHours:0,progress:0,description:"",parentId:$.parentId,children:[],isTimerRunning:!1,timerStartTime:void 0,timerEndTime:void 0,timerElapsedTime:0};He.value=de,_e.value=!1,ye.value=!0}function Cr($){if(!$)return;r("add-successor",$),Tt.value=$;const de={id:Date.now(),name:"",type:"task",assignee:"",startDate:"",endDate:"",predecessor:[$.id],estimatedHours:0,actualHours:0,progress:0,description:"",parentId:$.parentId,children:[],isTimerRunning:!1,timerStartTime:void 0,timerEndTime:void 0,timerElapsedTime:0};He.value=de,_e.value=!1,ye.value=!0}function Er($){r("predecessor-added",$)}function gA($){r("successor-added",$)}const uA=($,de)=>{if(!de.parentId)return $.push(de),!0;for(const Ke of $){if(Ke.id===de.parentId)return Ke.children||(Ke.children=[]),Ke.children.push(de),!0;if(Ke.children&&Ke.children.length>0&&uA(Ke.children,de))return!0}return!1},Br=($,de)=>{for(let Ke=0;Ke<$.length;Ke++){if($[Ke].id===de.id)return $[Ke]={...$[Ke],...de},!0;if($[Ke].children&&$[Ke].children.length>0&&Br($[Ke].children,de))return!0}return!1};function tA($){_e.value?(e.tasks&&Br(e.tasks,$),M.value++,r("task-updated",{task:$})):(e.tasks&&uA(e.tasks,$),r("task-added",{task:$}),Qt.value&&(Qt.value.predecessor||(Qt.value.predecessor=[]),Qt.value.predecessor.push($.id),r("predecessor-added",{targetTask:Qt.value,newTask:$}),Qt.value=null),Tt.value&&(r("successor-added",{targetTask:Tt.value,newTask:$}),Tt.value=null))}function pA($,de,Ke){for(let rt=0;rt<$.length;rt++){if($[rt].id===de){if(Ke)$.splice(rt,1);else{const q=$[rt].children||[];$.splice(rt,1,...q)}return!0}if($[rt].children&&$[rt].children.length>0&&pA($[rt].children,de,Ke))return!0}return!1}function Rr($,de){e.tasks&&pA(e.tasks,$.id,de),ye.value=!1,He.value=null,r("task-deleted",{task:$})}function vA($){if(e.tasks){const de=Ke=>{for(let rt=0;rt<Ke.length;rt++){if(Ke[rt].id===$.targetTaskId)return Ke[rt]={...Ke[rt],predecessor:$.updatedTask.predecessor},!0;if(Ke[rt].children&&Ke[rt].children.length>0&&de(Ke[rt].children))return!0}return!1};de(e.tasks)}r("task-updated",{task:$.updatedTask}),r("link-deleted",$)}function ln($){r("milestone-double-click",$),e.useDefaultMilestoneDialog&&(wt.value=$,je.value=!0)}function Ct(){je.value=!1,wt.value=null}function Be($){e.milestones&&ht(e.milestones,$),r("milestone-deleted",{milestoneId:$}),M.value++,Ct()}return($,de)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"ganttRootRef",ref:o,class:i.normalizeClass(["gantt-root",{"gantt-fullscreen":he.value,"splitter-dragging":R.value}])},[e.showToolbar?(i.openBlock(),i.createBlock(Vk,{key:0,config:e.toolbarConfig,"on-today-locate":zt,"on-export-csv":pe,"on-export-pdf":Ve,"on-language-change":e.onLanguageChange,"on-theme-change":e.onThemeChange,"on-fullscreen-change":e.onFullscreenChange,"on-time-scale-change":ge,"on-expand-all":x,"on-collapse-all":W,onAddTask:Ft,onAddMilestone:_t,onExpandAll:x,onCollapseAll:W},null,8,["config","on-language-change","on-theme-change","on-fullscreen-change"])):i.createCommentVNode("",!0),i.createElementVNode("div",T_,[T.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"gantt-panel gantt-panel-left",style:i.normalizeStyle({width:E.value+"px"})},[i.createVNode(ay,{tasks:Ze.value,"use-default-drawer":e.useDefaultDrawer,"task-list-config":e.taskListConfig,"task-list-column-render-mode":e.taskListColumnRenderMode,"enable-task-row-move":e.enableTaskRowMove,"task-list-row-class-name":e.taskListRowClassName,"task-list-row-style":e.taskListRowStyle,onTaskCollapseChange:se,onStartTimer:hA,onStopTimer:lA,onAddPredecessor:fr,onAddSuccessor:Cr,onDelete:Rr,onTaskRowMoved:I},i.createSlots({_:2},[$.$slots.default?{name:"default",fn:i.withCtx(()=>[i.renderSlot($.$slots,"default",{},void 0,!0)]),key:"0"}:void 0,$.$slots["custom-task-content"]?{name:"custom-task-content",fn:i.withCtx(Ke=>[i.renderSlot($.$slots,"custom-task-content",i.normalizeProps(i.guardReactiveProps(Ke)),void 0,!0)]),key:"1"}:void 0]),1032,["tasks","use-default-drawer","task-list-config","task-list-column-render-mode","enable-task-row-move","task-list-row-class-name","task-list-row-style"])],4)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"gantt-splitter",onMousedown:S},[i.createElementVNode("div",{class:i.normalizeClass(["task-list-toggle",{collapsed:!T.value,[N.value]:G.value}]),title:T.value?Fe.value:Pe.value,onClick:i.withModifiers(oe,["stop"])},[(i.openBlock(),i.createElementBlock("svg",D_,[T.value?(i.openBlock(),i.createElementBlock("polyline",Q_)):(i.openBlock(),i.createElementBlock("polyline",L_))]))],10,U_)],32),i.createElementVNode("div",{class:i.normalizeClass(["gantt-panel gantt-panel-right",{"full-width":!T.value}])},[i.createVNode(oy,{ref_key:"timelineRef",ref:P,tasks:tt.value,milestones:lt.value,"start-date":Q.value.min,"end-date":Q.value.max,"working-hours":e.workingHours,"task-bar-config":e.taskBarConfig,"allow-drag-and-resize":e.allowDragAndResize,"use-default-drawer":e.useDefaultDrawer,"use-default-milestone-dialog":e.useDefaultMilestoneDialog,"on-milestone-save":at,onTimelineScaleChanged:Ee,onClickTask:cA,onEditTask:xr,onMilestoneDoubleClick:ln,onStartTimer:hA,onStopTimer:lA,onAddPredecessor:fr,onAddSuccessor:Cr,onPredecessorAdded:Er,onSuccessorAdded:gA,onDelete:Rr,onLinkDeleted:vA},i.createSlots({_:2},[$.$slots["custom-task-content"]?{name:"custom-task-content",fn:i.withCtx(Ke=>[i.renderSlot($.$slots,"custom-task-content",i.normalizeProps(i.guardReactiveProps(Ke)),void 0,!0)]),key:"0"}:void 0]),1032,["tasks","milestones","start-date","end-date","working-hours","task-bar-config","allow-drag-and-resize","use-default-drawer","use-default-milestone-dialog"]),L.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"focus-close-button",onClick:i.withModifiers(xe,["stop"])},[de[3]||(de[3]=i.createElementVNode("svg",{class:"close-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[i.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),i.createElementVNode("span",I_,i.toDisplayString(i.unref(fe).disableTaskbarFocusMode),1)])):i.createCommentVNode("",!0)],2)]),e.useDefaultDrawer?(i.openBlock(),i.createBlock(ly,{key:1,visible:ye.value,"onUpdate:visible":de[0]||(de[0]=Ke=>ye.value=Ke),task:He.value,"is-edit":_e.value,"assignee-options":e.assigneeOptions,onSubmit:tA,onClose:de[1]||(de[1]=Ke=>ye.value=!1),onStartTimer:hA,onStopTimer:lA,onDelete:Rr},null,8,["visible","task","is-edit","assignee-options"])):i.createCommentVNode("",!0),e.useDefaultMilestoneDialog?(i.openBlock(),i.createBlock(cy,{key:2,visible:je.value,"onUpdate:visible":de[2]||(de[2]=Ke=>je.value=Ke),milestone:wt.value,onClose:Ct,onSave:at,onDelete:Be},null,8,["visible","milestone"])):i.createCommentVNode("",!0)],2))}}),ob=sn(N_,[["__scopeId","data-v-9376ee17"]]),lb=i.defineComponent({name:"TaskListColumn",__name:"TaskListColumn",props:{prop:{},label:{},width:{},align:{default:"left"},cssClass:{}},setup(A){return(t,e)=>null}}),cb=A=>{A.component("GanttChart",ob),A.component("TaskListColumn",lb)},__={install:cb};/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:ub,setPrototypeOf:u1,isFrozen:M_,getPrototypeOf:O_,getOwnPropertyDescriptor:R_}=Object;let{freeze:Tn,seal:ga,create:fb}=Object,{apply:ep,construct:tp}=typeof Reflect<"u"&&Reflect;Tn||(Tn=function(t){return t});ga||(ga=function(t){return t});ep||(ep=function(t,e,r){return t.apply(e,r)});tp||(tp=function(t,e){return new t(...e)});const cc=Un(Array.prototype.forEach),H_=Un(Array.prototype.lastIndexOf),f1=Un(Array.prototype.pop),xo=Un(Array.prototype.push),P_=Un(Array.prototype.splice),xc=Un(String.prototype.toLowerCase),Sf=Un(String.prototype.toString),d1=Un(String.prototype.match),So=Un(String.prototype.replace),V_=Un(String.prototype.indexOf),K_=Un(String.prototype.trim),Sa=Un(Object.prototype.hasOwnProperty),xn=Un(RegExp.prototype.test),To=q_(TypeError);function Un(A){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return ep(A,t,r)}}function q_(A){return function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return tp(A,e)}}function hr(A,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xc;u1&&u1(A,null);let r=t.length;for(;r--;){let n=t[r];if(typeof n=="string"){const a=e(n);a!==n&&(M_(t)||(t[r]=a),n=a)}A[n]=!0}return A}function j_(A){for(let t=0;t<A.length;t++)Sa(A,t)||(A[t]=null);return A}function oi(A){const t=fb(null);for(const[e,r]of ub(A))Sa(A,e)&&(Array.isArray(r)?t[e]=j_(r):r&&typeof r=="object"&&r.constructor===Object?t[e]=oi(r):t[e]=r);return t}function Uo(A,t){for(;A!==null;){const r=R_(A,t);if(r){if(r.get)return Un(r.get);if(typeof r.value=="function")return Un(r.value)}A=O_(A)}function e(){return null}return e}const h1=Tn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Tf=Tn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Uf=Tn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),W_=Tn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Df=Tn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),G_=Tn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),g1=Tn(["#text"]),p1=Tn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Qf=Tn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),v1=Tn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),uc=Tn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Y_=ga(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z_=ga(/<%[\w\W]*|[\w\W]*%>/gm),$_=ga(/\$\{[\w\W]*/gm),X_=ga(/^data-[\-\w.\u00B7-\uFFFF]+$/),J_=ga(/^aria-[\-\w]+$/),db=ga(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z_=ga(/^(?:\w+script|data):/i),e6=ga(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),hb=ga(/^html$/i),t6=ga(/^[a-z][.\w]*(-[.\w]+)+$/i);var m1=Object.freeze({__proto__:null,ARIA_ATTR:J_,ATTR_WHITESPACE:e6,CUSTOM_ELEMENT:t6,DATA_ATTR:X_,DOCTYPE_NAME:hb,ERB_EXPR:z_,IS_ALLOWED_URI:db,IS_SCRIPT_OR_DATA:Z_,MUSTACHE_EXPR:Y_,TMPLIT_EXPR:$_});const Do={element:1,text:3,progressingInstruction:7,comment:8,document:9},r6=function(){return typeof window>"u"?null:window},A6=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},w1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function gb(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r6();const t=Ct=>gb(Ct);if(t.version="3.2.6",t.removed=[],!A||!A.document||A.document.nodeType!==Do.document||!A.Element)return t.isSupported=!1,t;let{document:e}=A;const r=e,n=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:c,NamedNodeMap:u=A.NamedNodeMap||A.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:f}=A,v=l.prototype,w=Uo(v,"cloneNode"),b=Uo(v,"remove"),B=Uo(v,"nextSibling"),F=Uo(v,"childNodes"),E=Uo(v,"parentNode");if(typeof o=="function"){const Ct=e.createElement("template");Ct.content&&Ct.content.ownerDocument&&(e=Ct.content.ownerDocument)}let k,P="";const{implementation:j,createNodeIterator:M,createDocumentFragment:O,getElementsByTagName:L}=e,{importNode:R}=r;let S=w1();t.isSupported=typeof ub=="function"&&typeof E=="function"&&j&&j.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:T,ERB_EXPR:G,TMPLIT_EXPR:N,DATA_ATTR:oe,ARIA_ATTR:le,IS_SCRIPT_OR_DATA:Z,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:X}=m1;let{IS_ALLOWED_URI:re}=m1,se=null;const x=hr({},[...h1,...Tf,...Uf,...Df,...g1]);let I=null;const W=hr({},[...p1,...Qf,...v1,...uc]);let z=Object.seal(fb(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ae=null,he=null,fe=!0,ce=!0,Fe=!1,Pe=!0,Ze=!1,tt=!0,lt=!1,Q=!1,De=!1,pe=!1,ge=!1,Ee=!1,xe=!0,Qe=!1;const Oe="user-content-";let Ve=!0,Re=!1,$e={},at=null;const gt=hr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let mt=null;const ht=hr({},["audio","video","img","source","image","track"]);let Bt=null;const pt=hr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),zt="http://www.w3.org/1998/Math/MathML",_t="http://www.w3.org/2000/svg",Ut="http://www.w3.org/1999/xhtml";let Lt=Ut,Xt=!1,Et=null;const rr=hr({},[zt,_t,Ut],Sf);let St=hr({},["mi","mo","mn","ms","mtext"]),ye=hr({},["annotation-xml"]);const He=hr({},["title","style","font","a","script"]);let _e=null;const je=["application/xhtml+xml","text/html"],wt="text/html";let Qt=null,Tt=null;const gr=e.createElement("form"),Or=function(Be){return Be instanceof RegExp||Be instanceof Function},Ft=function(){let Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Tt&&Tt===Be)){if((!Be||typeof Be!="object")&&(Be={}),Be=oi(Be),_e=je.indexOf(Be.PARSER_MEDIA_TYPE)===-1?wt:Be.PARSER_MEDIA_TYPE,Qt=_e==="application/xhtml+xml"?Sf:xc,se=Sa(Be,"ALLOWED_TAGS")?hr({},Be.ALLOWED_TAGS,Qt):x,I=Sa(Be,"ALLOWED_ATTR")?hr({},Be.ALLOWED_ATTR,Qt):W,Et=Sa(Be,"ALLOWED_NAMESPACES")?hr({},Be.ALLOWED_NAMESPACES,Sf):rr,Bt=Sa(Be,"ADD_URI_SAFE_ATTR")?hr(oi(pt),Be.ADD_URI_SAFE_ATTR,Qt):pt,mt=Sa(Be,"ADD_DATA_URI_TAGS")?hr(oi(ht),Be.ADD_DATA_URI_TAGS,Qt):ht,at=Sa(Be,"FORBID_CONTENTS")?hr({},Be.FORBID_CONTENTS,Qt):gt,Ae=Sa(Be,"FORBID_TAGS")?hr({},Be.FORBID_TAGS,Qt):oi({}),he=Sa(Be,"FORBID_ATTR")?hr({},Be.FORBID_ATTR,Qt):oi({}),$e=Sa(Be,"USE_PROFILES")?Be.USE_PROFILES:!1,fe=Be.ALLOW_ARIA_ATTR!==!1,ce=Be.ALLOW_DATA_ATTR!==!1,Fe=Be.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=Be.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ze=Be.SAFE_FOR_TEMPLATES||!1,tt=Be.SAFE_FOR_XML!==!1,lt=Be.WHOLE_DOCUMENT||!1,pe=Be.RETURN_DOM||!1,ge=Be.RETURN_DOM_FRAGMENT||!1,Ee=Be.RETURN_TRUSTED_TYPE||!1,De=Be.FORCE_BODY||!1,xe=Be.SANITIZE_DOM!==!1,Qe=Be.SANITIZE_NAMED_PROPS||!1,Ve=Be.KEEP_CONTENT!==!1,Re=Be.IN_PLACE||!1,re=Be.ALLOWED_URI_REGEXP||db,Lt=Be.NAMESPACE||Ut,St=Be.MATHML_TEXT_INTEGRATION_POINTS||St,ye=Be.HTML_INTEGRATION_POINTS||ye,z=Be.CUSTOM_ELEMENT_HANDLING||{},Be.CUSTOM_ELEMENT_HANDLING&&Or(Be.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=Be.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Be.CUSTOM_ELEMENT_HANDLING&&Or(Be.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=Be.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Be.CUSTOM_ELEMENT_HANDLING&&typeof Be.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(z.allowCustomizedBuiltInElements=Be.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ze&&(ce=!1),ge&&(pe=!0),$e&&(se=hr({},g1),I=[],$e.html===!0&&(hr(se,h1),hr(I,p1)),$e.svg===!0&&(hr(se,Tf),hr(I,Qf),hr(I,uc)),$e.svgFilters===!0&&(hr(se,Uf),hr(I,Qf),hr(I,uc)),$e.mathMl===!0&&(hr(se,Df),hr(I,v1),hr(I,uc))),Be.ADD_TAGS&&(se===x&&(se=oi(se)),hr(se,Be.ADD_TAGS,Qt)),Be.ADD_ATTR&&(I===W&&(I=oi(I)),hr(I,Be.ADD_ATTR,Qt)),Be.ADD_URI_SAFE_ATTR&&hr(Bt,Be.ADD_URI_SAFE_ATTR,Qt),Be.FORBID_CONTENTS&&(at===gt&&(at=oi(at)),hr(at,Be.FORBID_CONTENTS,Qt)),Ve&&(se["#text"]=!0),lt&&hr(se,["html","head","body"]),se.table&&(hr(se,["tbody"]),delete Ae.tbody),Be.TRUSTED_TYPES_POLICY){if(typeof Be.TRUSTED_TYPES_POLICY.createHTML!="function")throw To('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Be.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw To('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=Be.TRUSTED_TYPES_POLICY,P=k.createHTML("")}else k===void 0&&(k=A6(f,n)),k!==null&&typeof P=="string"&&(P=k.createHTML(""));Tn&&Tn(Be),Tt=Be}},hA=hr({},[...Tf,...Uf,...W_]),lA=hr({},[...Df,...G_]),cA=function(Be){let $=E(Be);(!$||!$.tagName)&&($={namespaceURI:Lt,tagName:"template"});const de=xc(Be.tagName),Ke=xc($.tagName);return Et[Be.namespaceURI]?Be.namespaceURI===_t?$.namespaceURI===Ut?de==="svg":$.namespaceURI===zt?de==="svg"&&(Ke==="annotation-xml"||St[Ke]):!!hA[de]:Be.namespaceURI===zt?$.namespaceURI===Ut?de==="math":$.namespaceURI===_t?de==="math"&&ye[Ke]:!!lA[de]:Be.namespaceURI===Ut?$.namespaceURI===_t&&!ye[Ke]||$.namespaceURI===zt&&!St[Ke]?!1:!lA[de]&&(He[de]||!hA[de]):!!(_e==="application/xhtml+xml"&&Et[Be.namespaceURI]):!1},xr=function(Be){xo(t.removed,{element:Be});try{E(Be).removeChild(Be)}catch{b(Be)}},fr=function(Be,$){try{xo(t.removed,{attribute:$.getAttributeNode(Be),from:$})}catch{xo(t.removed,{attribute:null,from:$})}if($.removeAttribute(Be),Be==="is")if(pe||ge)try{xr($)}catch{}else try{$.setAttribute(Be,"")}catch{}},Cr=function(Be){let $=null,de=null;if(De)Be="<remove></remove>"+Be;else{const q=d1(Be,/^[\r\n\t ]+/);de=q&&q[0]}_e==="application/xhtml+xml"&&Lt===Ut&&(Be='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Be+"</body></html>");const Ke=k?k.createHTML(Be):Be;if(Lt===Ut)try{$=new p().parseFromString(Ke,_e)}catch{}if(!$||!$.documentElement){$=j.createDocument(Lt,"template",null);try{$.documentElement.innerHTML=Xt?P:Ke}catch{}}const rt=$.body||$.documentElement;return Be&&de&&rt.insertBefore(e.createTextNode(de),rt.childNodes[0]||null),Lt===Ut?L.call($,lt?"html":"body")[0]:lt?$.documentElement:rt},Er=function(Be){return M.call(Be.ownerDocument||Be,Be,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},gA=function(Be){return Be instanceof h&&(typeof Be.nodeName!="string"||typeof Be.textContent!="string"||typeof Be.removeChild!="function"||!(Be.attributes instanceof u)||typeof Be.removeAttribute!="function"||typeof Be.setAttribute!="function"||typeof Be.namespaceURI!="string"||typeof Be.insertBefore!="function"||typeof Be.hasChildNodes!="function")},uA=function(Be){return typeof s=="function"&&Be instanceof s};function Br(Ct,Be,$){cc(Ct,de=>{de.call(t,Be,$,Tt)})}const tA=function(Be){let $=null;if(Br(S.beforeSanitizeElements,Be,null),gA(Be))return xr(Be),!0;const de=Qt(Be.nodeName);if(Br(S.uponSanitizeElement,Be,{tagName:de,allowedTags:se}),tt&&Be.hasChildNodes()&&!uA(Be.firstElementChild)&&xn(/<[/\w!]/g,Be.innerHTML)&&xn(/<[/\w!]/g,Be.textContent)||Be.nodeType===Do.progressingInstruction||tt&&Be.nodeType===Do.comment&&xn(/<[/\w]/g,Be.data))return xr(Be),!0;if(!se[de]||Ae[de]){if(!Ae[de]&&Rr(de)&&(z.tagNameCheck instanceof RegExp&&xn(z.tagNameCheck,de)||z.tagNameCheck instanceof Function&&z.tagNameCheck(de)))return!1;if(Ve&&!at[de]){const Ke=E(Be)||Be.parentNode,rt=F(Be)||Be.childNodes;if(rt&&Ke){const q=rt.length;for(let me=q-1;me>=0;--me){const Ce=w(rt[me],!0);Ce.__removalCount=(Be.__removalCount||0)+1,Ke.insertBefore(Ce,B(Be))}}}return xr(Be),!0}return Be instanceof l&&!cA(Be)||(de==="noscript"||de==="noembed"||de==="noframes")&&xn(/<\/no(script|embed|frames)/i,Be.innerHTML)?(xr(Be),!0):(Ze&&Be.nodeType===Do.text&&($=Be.textContent,cc([T,G,N],Ke=>{$=So($,Ke," ")}),Be.textContent!==$&&(xo(t.removed,{element:Be.cloneNode()}),Be.textContent=$)),Br(S.afterSanitizeElements,Be,null),!1)},pA=function(Be,$,de){if(xe&&($==="id"||$==="name")&&(de in e||de in gr))return!1;if(!(ce&&!he[$]&&xn(oe,$))){if(!(fe&&xn(le,$))){if(!I[$]||he[$]){if(!(Rr(Be)&&(z.tagNameCheck instanceof RegExp&&xn(z.tagNameCheck,Be)||z.tagNameCheck instanceof Function&&z.tagNameCheck(Be))&&(z.attributeNameCheck instanceof RegExp&&xn(z.attributeNameCheck,$)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck($))||$==="is"&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&xn(z.tagNameCheck,de)||z.tagNameCheck instanceof Function&&z.tagNameCheck(de))))return!1}else if(!Bt[$]){if(!xn(re,So(de,ee,""))){if(!(($==="src"||$==="xlink:href"||$==="href")&&Be!=="script"&&V_(de,"data:")===0&&mt[Be])){if(!(Fe&&!xn(Z,So(de,ee,"")))){if(de)return!1}}}}}}return!0},Rr=function(Be){return Be!=="annotation-xml"&&d1(Be,X)},vA=function(Be){Br(S.beforeSanitizeAttributes,Be,null);const{attributes:$}=Be;if(!$||gA(Be))return;const de={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:I,forceKeepAttr:void 0};let Ke=$.length;for(;Ke--;){const rt=$[Ke],{name:q,namespaceURI:me,value:Ce}=rt,Te=Qt(q),ze=Ce;let Ie=q==="value"?ze:K_(ze);if(de.attrName=Te,de.attrValue=Ie,de.keepAttr=!0,de.forceKeepAttr=void 0,Br(S.uponSanitizeAttribute,Be,de),Ie=de.attrValue,Qe&&(Te==="id"||Te==="name")&&(fr(q,Be),Ie=Oe+Ie),tt&&xn(/((--!?|])>)|<\/(style|title)/i,Ie)){fr(q,Be);continue}if(de.forceKeepAttr)continue;if(!de.keepAttr){fr(q,Be);continue}if(!Pe&&xn(/\/>/i,Ie)){fr(q,Be);continue}Ze&&cc([T,G,N],Ye=>{Ie=So(Ie,Ye," ")});const Xe=Qt(Be.nodeName);if(!pA(Xe,Te,Ie)){fr(q,Be);continue}if(k&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!me)switch(f.getAttributeType(Xe,Te)){case"TrustedHTML":{Ie=k.createHTML(Ie);break}case"TrustedScriptURL":{Ie=k.createScriptURL(Ie);break}}if(Ie!==ze)try{me?Be.setAttributeNS(me,q,Ie):Be.setAttribute(q,Ie),gA(Be)?xr(Be):f1(t.removed)}catch{fr(q,Be)}}Br(S.afterSanitizeAttributes,Be,null)},ln=function Ct(Be){let $=null;const de=Er(Be);for(Br(S.beforeSanitizeShadowDOM,Be,null);$=de.nextNode();)Br(S.uponSanitizeShadowNode,$,null),tA($),vA($),$.content instanceof a&&Ct($.content);Br(S.afterSanitizeShadowDOM,Be,null)};return t.sanitize=function(Ct){let Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=null,de=null,Ke=null,rt=null;if(Xt=!Ct,Xt&&(Ct="<!-->"),typeof Ct!="string"&&!uA(Ct))if(typeof Ct.toString=="function"){if(Ct=Ct.toString(),typeof Ct!="string")throw To("dirty is not a string, aborting")}else throw To("toString is not a function");if(!t.isSupported)return Ct;if(Q||Ft(Be),t.removed=[],typeof Ct=="string"&&(Re=!1),Re){if(Ct.nodeName){const Ce=Qt(Ct.nodeName);if(!se[Ce]||Ae[Ce])throw To("root node is forbidden and cannot be sanitized in-place")}}else if(Ct instanceof s)$=Cr("<!---->"),de=$.ownerDocument.importNode(Ct,!0),de.nodeType===Do.element&&de.nodeName==="BODY"||de.nodeName==="HTML"?$=de:$.appendChild(de);else{if(!pe&&!Ze&&!lt&&Ct.indexOf("<")===-1)return k&&Ee?k.createHTML(Ct):Ct;if($=Cr(Ct),!$)return pe?null:Ee?P:""}$&&De&&xr($.firstChild);const q=Er(Re?Ct:$);for(;Ke=q.nextNode();)tA(Ke),vA(Ke),Ke.content instanceof a&&ln(Ke.content);if(Re)return Ct;if(pe){if(ge)for(rt=O.call($.ownerDocument);$.firstChild;)rt.appendChild($.firstChild);else rt=$;return(I.shadowroot||I.shadowrootmode)&&(rt=R.call(r,rt,!0)),rt}let me=lt?$.outerHTML:$.innerHTML;return lt&&se["!doctype"]&&$.ownerDocument&&$.ownerDocument.doctype&&$.ownerDocument.doctype.name&&xn(hb,$.ownerDocument.doctype.name)&&(me="<!DOCTYPE "+$.ownerDocument.doctype.name+`>
`+me),Ze&&cc([T,G,N],Ce=>{me=So(me,Ce," ")}),k&&Ee?k.createHTML(me):me},t.setConfig=function(){let Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ft(Ct),Q=!0},t.clearConfig=function(){Tt=null,Q=!1},t.isValidAttribute=function(Ct,Be,$){Tt||Ft({});const de=Qt(Ct),Ke=Qt(Be);return pA(de,Ke,$)},t.addHook=function(Ct,Be){typeof Be=="function"&&xo(S[Ct],Be)},t.removeHook=function(Ct,Be){if(Be!==void 0){const $=H_(S[Ct],Be);return $===-1?void 0:P_(S[Ct],$,1)[0]}return f1(S[Ct])},t.removeHooks=function(Ct){S[Ct]=[]},t.removeAllHooks=function(){S=w1()},t}var n6=gb();const a6=Object.freeze(Object.defineProperty({__proto__:null,default:n6},Symbol.toStringTag,{value:"Module"}));var rp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pb(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var B1={},y1={},Qo,b1;function oA(){if(b1)return Qo;b1=1;var A=function(t){return t&&t.Math===Math&&t};return Qo=A(typeof globalThis=="object"&&globalThis)||A(typeof window=="object"&&window)||A(typeof self=="object"&&self)||A(typeof rp=="object"&&rp)||A(typeof Qo=="object"&&Qo)||(function(){return this})()||Function("return this")(),Qo}var Lf={},If,C1;function EA(){return C1||(C1=1,If=function(A){try{return!!A()}catch{return!0}}),If}var Nf,E1;function La(){if(E1)return Nf;E1=1;var A=EA();return Nf=!A(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Nf}var _f,F1;function Au(){if(F1)return _f;F1=1;var A=EA();return _f=!A(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),_f}var Mf,k1;function on(){if(k1)return Mf;k1=1;var A=Au(),t=Function.prototype.call;return Mf=A?t.bind(t):function(){return t.apply(t,arguments)},Mf}var Of={},x1;function i6(){if(x1)return Of;x1=1;var A={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,e=t&&!A.call({1:2},1);return Of.f=e?function(n){var a=t(this,n);return!!a&&a.enumerable}:A,Of}var Rf,S1;function Tp(){return S1||(S1=1,Rf=function(A,t){return{enumerable:!(A&1),configurable:!(A&2),writable:!(A&4),value:t}}),Rf}var Hf,T1;function FA(){if(T1)return Hf;T1=1;var A=Au(),t=Function.prototype,e=t.call,r=A&&t.bind.bind(e,e);return Hf=A?r:function(n){return function(){return e.apply(n,arguments)}},Hf}var Pf,U1;function ws(){if(U1)return Pf;U1=1;var A=FA(),t=A({}.toString),e=A("".slice);return Pf=function(r){return e(t(r),8,-1)},Pf}var Vf,D1;function vb(){if(D1)return Vf;D1=1;var A=FA(),t=EA(),e=ws(),r=Object,n=A("".split);return Vf=t(function(){return!r("z").propertyIsEnumerable(0)})?function(a){return e(a)==="String"?n(a,""):r(a)}:r,Vf}var Kf,Q1;function nu(){return Q1||(Q1=1,Kf=function(A){return A==null}),Kf}var qf,L1;function Ia(){if(L1)return qf;L1=1;var A=nu(),t=TypeError;return qf=function(e){if(A(e))throw new t("Can't call method on "+e);return e},qf}var jf,I1;function rl(){if(I1)return jf;I1=1;var A=vb(),t=Ia();return jf=function(e){return A(t(e))},jf}var Wf,N1;function NA(){if(N1)return Wf;N1=1;var A=typeof document=="object"&&document.all;return Wf=typeof A>"u"&&A!==void 0?function(t){return typeof t=="function"||t===A}:function(t){return typeof t=="function"},Wf}var Gf,_1;function Pn(){if(_1)return Gf;_1=1;var A=NA();return Gf=function(t){return typeof t=="object"?t!==null:A(t)},Gf}var Yf,M1;function Bs(){if(M1)return Yf;M1=1;var A=oA(),t=NA(),e=function(r){return t(r)?r:void 0};return Yf=function(r,n){return arguments.length<2?e(A[r]):A[r]&&A[r][n]},Yf}var zf,O1;function au(){if(O1)return zf;O1=1;var A=FA();return zf=A({}.isPrototypeOf),zf}var $f,R1;function Al(){if(R1)return $f;R1=1;var A=oA(),t=A.navigator,e=t&&t.userAgent;return $f=e?String(e):"",$f}var Xf,H1;function Up(){if(H1)return Xf;H1=1;var A=oA(),t=Al(),e=A.process,r=A.Deno,n=e&&e.versions||r&&r.version,a=n&&n.v8,o,s;return a&&(o=a.split("."),s=o[0]>0&&o[0]<4?1:+(o[0]+o[1])),!s&&t&&(o=t.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=t.match(/Chrome\/(\d+)/),o&&(s=+o[1]))),Xf=s,Xf}var Jf,P1;function mb(){if(P1)return Jf;P1=1;var A=Up(),t=EA(),e=oA(),r=e.String;return Jf=!!Object.getOwnPropertySymbols&&!t(function(){var n=Symbol("symbol detection");return!r(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&A&&A<41}),Jf}var Zf,V1;function wb(){if(V1)return Zf;V1=1;var A=mb();return Zf=A&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Zf}var ed,K1;function Bb(){if(K1)return ed;K1=1;var A=Bs(),t=NA(),e=au(),r=wb(),n=Object;return ed=r?function(a){return typeof a=="symbol"}:function(a){var o=A("Symbol");return t(o)&&e(o.prototype,n(a))},ed}var td,q1;function iu(){if(q1)return td;q1=1;var A=String;return td=function(t){try{return A(t)}catch{return"Object"}},td}var rd,j1;function gi(){if(j1)return rd;j1=1;var A=NA(),t=iu(),e=TypeError;return rd=function(r){if(A(r))return r;throw new e(t(r)+" is not a function")},rd}var Ad,W1;function no(){if(W1)return Ad;W1=1;var A=gi(),t=nu();return Ad=function(e,r){var n=e[r];return t(n)?void 0:A(n)},Ad}var nd,G1;function s6(){if(G1)return nd;G1=1;var A=on(),t=NA(),e=Pn(),r=TypeError;return nd=function(n,a){var o,s;if(a==="string"&&t(o=n.toString)&&!e(s=A(o,n))||t(o=n.valueOf)&&!e(s=A(o,n))||a!=="string"&&t(o=n.toString)&&!e(s=A(o,n)))return s;throw new r("Can't convert object to primitive value")},nd}var ad={exports:{}},id,Y1;function za(){return Y1||(Y1=1,id=!1),id}var sd,z1;function Dp(){if(z1)return sd;z1=1;var A=oA(),t=Object.defineProperty;return sd=function(e,r){try{t(A,e,{value:r,configurable:!0,writable:!0})}catch{A[e]=r}return r},sd}var $1;function Qp(){if($1)return ad.exports;$1=1;var A=za(),t=oA(),e=Dp(),r="__core-js_shared__",n=ad.exports=t[r]||e(r,{});return(n.versions||(n.versions=[])).push({version:"3.43.0",mode:A?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"}),ad.exports}var od,X1;function Lp(){if(X1)return od;X1=1;var A=Qp();return od=function(t,e){return A[t]||(A[t]=e||{})},od}var ld,J1;function su(){if(J1)return ld;J1=1;var A=Ia(),t=Object;return ld=function(e){return t(A(e))},ld}var cd,Z1;function Na(){if(Z1)return cd;Z1=1;var A=FA(),t=su(),e=A({}.hasOwnProperty);return cd=Object.hasOwn||function(n,a){return e(t(n),a)},cd}var ud,e2;function yb(){if(e2)return ud;e2=1;var A=FA(),t=0,e=Math.random(),r=A(1.1.toString);return ud=function(n){return"Symbol("+(n===void 0?"":n)+")_"+r(++t+e,36)},ud}var fd,t2;function $A(){if(t2)return fd;t2=1;var A=oA(),t=Lp(),e=Na(),r=yb(),n=mb(),a=wb(),o=A.Symbol,s=t("wks"),l=a?o.for||o:o&&o.withoutSetter||r;return fd=function(c){return e(s,c)||(s[c]=n&&e(o,c)?o[c]:l("Symbol."+c)),s[c]},fd}var dd,r2;function o6(){if(r2)return dd;r2=1;var A=on(),t=Pn(),e=Bb(),r=no(),n=s6(),a=$A(),o=TypeError,s=a("toPrimitive");return dd=function(l,c){if(!t(l)||e(l))return l;var u=r(l,s),h;if(u){if(c===void 0&&(c="default"),h=A(u,l,c),!t(h)||e(h))return h;throw new o("Can't convert object to primitive value")}return c===void 0&&(c="number"),n(l,c)},dd}var hd,A2;function bb(){if(A2)return hd;A2=1;var A=o6(),t=Bb();return hd=function(e){var r=A(e,"string");return t(r)?r:r+""},hd}var gd,n2;function ou(){if(n2)return gd;n2=1;var A=oA(),t=Pn(),e=A.document,r=t(e)&&t(e.createElement);return gd=function(n){return r?e.createElement(n):{}},gd}var pd,a2;function Cb(){if(a2)return pd;a2=1;var A=La(),t=EA(),e=ou();return pd=!A&&!t(function(){return Object.defineProperty(e("div"),"a",{get:function(){return 7}}).a!==7}),pd}var i2;function lu(){if(i2)return Lf;i2=1;var A=La(),t=on(),e=i6(),r=Tp(),n=rl(),a=bb(),o=Na(),s=Cb(),l=Object.getOwnPropertyDescriptor;return Lf.f=A?l:function(u,h){if(u=n(u),h=a(h),s)try{return l(u,h)}catch{}if(o(u,h))return r(!t(e.f,u,h),u[h])},Lf}var vd={},md,s2;function Eb(){if(s2)return md;s2=1;var A=La(),t=EA();return md=A&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),md}var wd,o2;function Dn(){if(o2)return wd;o2=1;var A=Pn(),t=String,e=TypeError;return wd=function(r){if(A(r))return r;throw new e(t(r)+" is not an object")},wd}var l2;function Gi(){if(l2)return vd;l2=1;var A=La(),t=Cb(),e=Eb(),r=Dn(),n=bb(),a=TypeError,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l="enumerable",c="configurable",u="writable";return vd.f=A?e?function(p,f,v){if(r(p),f=n(f),r(v),typeof p=="function"&&f==="prototype"&&"value"in v&&u in v&&!v[u]){var w=s(p,f);w&&w[u]&&(p[f]=v.value,v={configurable:c in v?v[c]:w[c],enumerable:l in v?v[l]:w[l],writable:!1})}return o(p,f,v)}:o:function(p,f,v){if(r(p),f=n(f),r(v),t)try{return o(p,f,v)}catch{}if("get"in v||"set"in v)throw new a("Accessors not supported");return"value"in v&&(p[f]=v.value),p},vd}var Bd,c2;function nl(){if(c2)return Bd;c2=1;var A=La(),t=Gi(),e=Tp();return Bd=A?function(r,n,a){return t.f(r,n,e(1,a))}:function(r,n,a){return r[n]=a,r},Bd}var yd={exports:{}},bd,u2;function cu(){if(u2)return bd;u2=1;var A=La(),t=Na(),e=Function.prototype,r=A&&Object.getOwnPropertyDescriptor,n=t(e,"name"),a=n&&(function(){}).name==="something",o=n&&(!A||A&&r(e,"name").configurable);return bd={EXISTS:n,PROPER:a,CONFIGURABLE:o},bd}var Cd,f2;function Ip(){if(f2)return Cd;f2=1;var A=FA(),t=NA(),e=Qp(),r=A(Function.toString);return t(e.inspectSource)||(e.inspectSource=function(n){return r(n)}),Cd=e.inspectSource,Cd}var Ed,d2;function l6(){if(d2)return Ed;d2=1;var A=oA(),t=NA(),e=A.WeakMap;return Ed=t(e)&&/native code/.test(String(e)),Ed}var Fd,h2;function Np(){if(h2)return Fd;h2=1;var A=Lp(),t=yb(),e=A("keys");return Fd=function(r){return e[r]||(e[r]=t(r))},Fd}var kd,g2;function _p(){return g2||(g2=1,kd={}),kd}var xd,p2;function uu(){if(p2)return xd;p2=1;var A=l6(),t=oA(),e=Pn(),r=nl(),n=Na(),a=Qp(),o=Np(),s=_p(),l="Object already initialized",c=t.TypeError,u=t.WeakMap,h,p,f,v=function(F){return f(F)?p(F):h(F,{})},w=function(F){return function(E){var k;if(!e(E)||(k=p(E)).type!==F)throw new c("Incompatible receiver, "+F+" required");return k}};if(A||a.state){var b=a.state||(a.state=new u);b.get=b.get,b.has=b.has,b.set=b.set,h=function(F,E){if(b.has(F))throw new c(l);return E.facade=F,b.set(F,E),E},p=function(F){return b.get(F)||{}},f=function(F){return b.has(F)}}else{var B=o("state");s[B]=!0,h=function(F,E){if(n(F,B))throw new c(l);return E.facade=F,r(F,B,E),E},p=function(F){return n(F,B)?F[B]:{}},f=function(F){return n(F,B)}}return xd={set:h,get:p,has:f,enforce:v,getterFor:w},xd}var v2;function Fb(){if(v2)return yd.exports;v2=1;var A=FA(),t=EA(),e=NA(),r=Na(),n=La(),a=cu().CONFIGURABLE,o=Ip(),s=uu(),l=s.enforce,c=s.get,u=String,h=Object.defineProperty,p=A("".slice),f=A("".replace),v=A([].join),w=n&&!t(function(){return h(function(){},"length",{value:8}).length!==8}),b=String(String).split("String"),B=yd.exports=function(F,E,k){p(u(E),0,7)==="Symbol("&&(E="["+f(u(E),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),k&&k.getter&&(E="get "+E),k&&k.setter&&(E="set "+E),(!r(F,"name")||a&&F.name!==E)&&(n?h(F,"name",{value:E,configurable:!0}):F.name=E),w&&k&&r(k,"arity")&&F.length!==k.arity&&h(F,"length",{value:k.arity});try{k&&r(k,"constructor")&&k.constructor?n&&h(F,"prototype",{writable:!1}):F.prototype&&(F.prototype=void 0)}catch{}var P=l(F);return r(P,"source")||(P.source=v(b,typeof E=="string"?E:"")),F};return Function.prototype.toString=B(function(){return e(this)&&c(this).source||o(this)},"toString"),yd.exports}var Sd,m2;function ys(){if(m2)return Sd;m2=1;var A=NA(),t=Gi(),e=Fb(),r=Dp();return Sd=function(n,a,o,s){s||(s={});var l=s.enumerable,c=s.name!==void 0?s.name:a;if(A(o)&&e(o,c,s),s.global)l?n[a]=o:r(a,o);else{try{s.unsafe?n[a]&&(l=!0):delete n[a]}catch{}l?n[a]=o:t.f(n,a,{value:o,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return n},Sd}var Td={},Ud,w2;function c6(){if(w2)return Ud;w2=1;var A=Math.ceil,t=Math.floor;return Ud=Math.trunc||function(r){var n=+r;return(n>0?t:A)(n)},Ud}var Dd,B2;function fu(){if(B2)return Dd;B2=1;var A=c6();return Dd=function(t){var e=+t;return e!==e||e===0?0:A(e)},Dd}var Qd,y2;function u6(){if(y2)return Qd;y2=1;var A=fu(),t=Math.max,e=Math.min;return Qd=function(r,n){var a=A(r);return a<0?t(a+n,0):e(a,n)},Qd}var Ld,b2;function ao(){if(b2)return Ld;b2=1;var A=fu(),t=Math.min;return Ld=function(e){var r=A(e);return r>0?t(r,9007199254740991):0},Ld}var Id,C2;function Mp(){if(C2)return Id;C2=1;var A=ao();return Id=function(t){return A(t.length)},Id}var Nd,E2;function kb(){if(E2)return Nd;E2=1;var A=rl(),t=u6(),e=Mp(),r=function(n){return function(a,o,s){var l=A(a),c=e(l);if(c===0)return!n&&-1;var u=t(s,c),h;if(n&&o!==o){for(;c>u;)if(h=l[u++],h!==h)return!0}else for(;c>u;u++)if((n||u in l)&&l[u]===o)return n||u||0;return!n&&-1}};return Nd={includes:r(!0),indexOf:r(!1)},Nd}var _d,F2;function xb(){if(F2)return _d;F2=1;var A=FA(),t=Na(),e=rl(),r=kb().indexOf,n=_p(),a=A([].push);return _d=function(o,s){var l=e(o),c=0,u=[],h;for(h in l)!t(n,h)&&t(l,h)&&a(u,h);for(;s.length>c;)t(l,h=s[c++])&&(~r(u,h)||a(u,h));return u},_d}var Md,k2;function Op(){return k2||(k2=1,Md=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),Md}var x2;function f6(){if(x2)return Td;x2=1;var A=xb(),t=Op(),e=t.concat("length","prototype");return Td.f=Object.getOwnPropertyNames||function(n){return A(n,e)},Td}var Od={},S2;function d6(){return S2||(S2=1,Od.f=Object.getOwnPropertySymbols),Od}var Rd,T2;function h6(){if(T2)return Rd;T2=1;var A=Bs(),t=FA(),e=f6(),r=d6(),n=Dn(),a=t([].concat);return Rd=A("Reflect","ownKeys")||function(s){var l=e.f(n(s)),c=r.f;return c?a(l,c(s)):l},Rd}var Hd,U2;function g6(){if(U2)return Hd;U2=1;var A=Na(),t=h6(),e=lu(),r=Gi();return Hd=function(n,a,o){for(var s=t(a),l=r.f,c=e.f,u=0;u<s.length;u++){var h=s[u];!A(n,h)&&!(o&&A(o,h))&&l(n,h,c(a,h))}},Hd}var Pd,D2;function Sb(){if(D2)return Pd;D2=1;var A=EA(),t=NA(),e=/#|\.prototype\./,r=function(l,c){var u=a[n(l)];return u===s?!0:u===o?!1:t(c)?A(c):!!c},n=r.normalize=function(l){return String(l).replace(e,".").toLowerCase()},a=r.data={},o=r.NATIVE="N",s=r.POLYFILL="P";return Pd=r,Pd}var Vd,Q2;function Qn(){if(Q2)return Vd;Q2=1;var A=oA(),t=lu().f,e=nl(),r=ys(),n=Dp(),a=g6(),o=Sb();return Vd=function(s,l){var c=s.target,u=s.global,h=s.stat,p,f,v,w,b,B;if(u?f=A:h?f=A[c]||n(c,{}):f=A[c]&&A[c].prototype,f)for(v in l){if(b=l[v],s.dontCallGetSet?(B=t(f,v),w=B&&B.value):w=f[v],p=o(u?v:c+(h?".":"#")+v,s.forced),!p&&w!==void 0){if(typeof b==typeof w)continue;a(b,w)}(s.sham||w&&w.sham)&&e(b,"sham",!0),r(f,v,b,s)}},Vd}var Kd,L2;function Tb(){if(L2)return Kd;L2=1;var A=oA(),t=Al(),e=ws(),r=function(n){return t.slice(0,n.length)===n};return Kd=(function(){return r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":A.Bun&&typeof Bun.version=="string"?"BUN":A.Deno&&typeof Deno.version=="object"?"DENO":e(A.process)==="process"?"NODE":A.window&&A.document?"BROWSER":"REST"})(),Kd}var qd,I2;function du(){if(I2)return qd;I2=1;var A=Tb();return qd=A==="NODE",qd}var jd,N2;function p6(){if(N2)return jd;N2=1;var A=oA();return jd=A,jd}var Wd,_2;function v6(){if(_2)return Wd;_2=1;var A=FA(),t=gi();return Wd=function(e,r,n){try{return A(t(Object.getOwnPropertyDescriptor(e,r)[n]))}catch{}},Wd}var Gd,M2;function m6(){if(M2)return Gd;M2=1;var A=Pn();return Gd=function(t){return A(t)||t===null},Gd}var Yd,O2;function w6(){if(O2)return Yd;O2=1;var A=m6(),t=String,e=TypeError;return Yd=function(r){if(A(r))return r;throw new e("Can't set "+t(r)+" as a prototype")},Yd}var zd,R2;function Ub(){if(R2)return zd;R2=1;var A=v6(),t=Pn(),e=Ia(),r=w6();return zd=Object.setPrototypeOf||("__proto__"in{}?(function(){var n=!1,a={},o;try{o=A(Object.prototype,"__proto__","set"),o(a,[]),n=a instanceof Array}catch{}return function(l,c){return e(l),r(c),t(l)&&(n?o(l,c):l.__proto__=c),l}})():void 0),zd}var $d,H2;function hu(){if(H2)return $d;H2=1;var A=Gi().f,t=Na(),e=$A(),r=e("toStringTag");return $d=function(n,a,o){n&&!o&&(n=n.prototype),n&&!t(n,r)&&A(n,r,{configurable:!0,value:a})},$d}var Xd,P2;function B6(){if(P2)return Xd;P2=1;var A=Fb(),t=Gi();return Xd=function(e,r,n){return n.get&&A(n.get,r,{getter:!0}),n.set&&A(n.set,r,{setter:!0}),t.f(e,r,n)},Xd}var Jd,V2;function y6(){if(V2)return Jd;V2=1;var A=Bs(),t=B6(),e=$A(),r=La(),n=e("species");return Jd=function(a){var o=A(a);r&&o&&!o[n]&&t(o,n,{configurable:!0,get:function(){return this}})},Jd}var Zd,K2;function b6(){if(K2)return Zd;K2=1;var A=au(),t=TypeError;return Zd=function(e,r){if(A(r,e))return e;throw new t("Incorrect invocation")},Zd}var eh,q2;function C6(){if(q2)return eh;q2=1;var A=$A(),t=A("toStringTag"),e={};return e[t]="z",eh=String(e)==="[object z]",eh}var th,j2;function Rp(){if(j2)return th;j2=1;var A=C6(),t=NA(),e=ws(),r=$A(),n=r("toStringTag"),a=Object,o=e((function(){return arguments})())==="Arguments",s=function(l,c){try{return l[c]}catch{}};return th=A?e:function(l){var c,u,h;return l===void 0?"Undefined":l===null?"Null":typeof(u=s(c=a(l),n))=="string"?u:o?e(c):(h=e(c))==="Object"&&t(c.callee)?"Arguments":h},th}var rh,W2;function E6(){if(W2)return rh;W2=1;var A=FA(),t=EA(),e=NA(),r=Rp(),n=Bs(),a=Ip(),o=function(){},s=n("Reflect","construct"),l=/^\s*(?:class|function)\b/,c=A(l.exec),u=!l.test(o),h=function(v){if(!e(v))return!1;try{return s(o,[],v),!0}catch{return!1}},p=function(v){if(!e(v))return!1;switch(r(v)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return u||!!c(l,a(v))}catch{return!0}};return p.sham=!0,rh=!s||t(function(){var f;return h(h.call)||!h(Object)||!h(function(){f=!0})||f})?p:h,rh}var Ah,G2;function F6(){if(G2)return Ah;G2=1;var A=E6(),t=iu(),e=TypeError;return Ah=function(r){if(A(r))return r;throw new e(t(r)+" is not a constructor")},Ah}var nh,Y2;function Db(){if(Y2)return nh;Y2=1;var A=Dn(),t=F6(),e=nu(),r=$A(),n=r("species");return nh=function(a,o){var s=A(a).constructor,l;return s===void 0||e(l=A(s)[n])?o:t(l)},nh}var ah,z2;function Qb(){if(z2)return ah;z2=1;var A=Au(),t=Function.prototype,e=t.apply,r=t.call;return ah=typeof Reflect=="object"&&Reflect.apply||(A?r.bind(e):function(){return r.apply(e,arguments)}),ah}var ih,$2;function gu(){if($2)return ih;$2=1;var A=ws(),t=FA();return ih=function(e){if(A(e)==="Function")return t(e)},ih}var sh,X2;function Hp(){if(X2)return sh;X2=1;var A=gu(),t=gi(),e=Au(),r=A(A.bind);return sh=function(n,a){return t(n),a===void 0?n:e?r(n,a):function(){return n.apply(a,arguments)}},sh}var oh,J2;function Lb(){if(J2)return oh;J2=1;var A=Bs();return oh=A("document","documentElement"),oh}var lh,Z2;function k6(){if(Z2)return lh;Z2=1;var A=FA();return lh=A([].slice),lh}var ch,ew;function x6(){if(ew)return ch;ew=1;var A=TypeError;return ch=function(t,e){if(t<e)throw new A("Not enough arguments");return t},ch}var uh,tw;function Ib(){if(tw)return uh;tw=1;var A=Al();return uh=/(?:ipad|iphone|ipod).*applewebkit/i.test(A),uh}var fh,rw;function Nb(){if(rw)return fh;rw=1;var A=oA(),t=Qb(),e=Hp(),r=NA(),n=Na(),a=EA(),o=Lb(),s=k6(),l=ou(),c=x6(),u=Ib(),h=du(),p=A.setImmediate,f=A.clearImmediate,v=A.process,w=A.Dispatch,b=A.Function,B=A.MessageChannel,F=A.String,E=0,k={},P="onreadystatechange",j,M,O,L;a(function(){j=A.location});var R=function(N){if(n(k,N)){var oe=k[N];delete k[N],oe()}},S=function(N){return function(){R(N)}},T=function(N){R(N.data)},G=function(N){A.postMessage(F(N),j.protocol+"//"+j.host)};return(!p||!f)&&(p=function(oe){c(arguments.length,1);var le=r(oe)?oe:b(oe),Z=s(arguments,1);return k[++E]=function(){t(le,void 0,Z)},M(E),E},f=function(oe){delete k[oe]},h?M=function(N){v.nextTick(S(N))}:w&&w.now?M=function(N){w.now(S(N))}:B&&!u?(O=new B,L=O.port2,O.port1.onmessage=T,M=e(L.postMessage,L)):A.addEventListener&&r(A.postMessage)&&!A.importScripts&&j&&j.protocol!=="file:"&&!a(G)?(M=G,A.addEventListener("message",T,!1)):P in l("script")?M=function(N){o.appendChild(l("script"))[P]=function(){o.removeChild(this),R(N)}}:M=function(N){setTimeout(S(N),0)}),fh={set:p,clear:f},fh}var dh,Aw;function S6(){if(Aw)return dh;Aw=1;var A=oA(),t=La(),e=Object.getOwnPropertyDescriptor;return dh=function(r){if(!t)return A[r];var n=e(A,r);return n&&n.value},dh}var hh,nw;function _b(){if(nw)return hh;nw=1;var A=function(){this.head=null,this.tail=null};return A.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return e===null&&(this.tail=null),t.item}}},hh=A,hh}var gh,aw;function T6(){if(aw)return gh;aw=1;var A=Al();return gh=/ipad|iphone|ipod/i.test(A)&&typeof Pebble<"u",gh}var ph,iw;function U6(){if(iw)return ph;iw=1;var A=Al();return ph=/web0s(?!.*chrome)/i.test(A),ph}var vh,sw;function D6(){if(sw)return vh;sw=1;var A=oA(),t=S6(),e=Hp(),r=Nb().set,n=_b(),a=Ib(),o=T6(),s=U6(),l=du(),c=A.MutationObserver||A.WebKitMutationObserver,u=A.document,h=A.process,p=A.Promise,f=t("queueMicrotask"),v,w,b,B,F;if(!f){var E=new n,k=function(){var P,j;for(l&&(P=h.domain)&&P.exit();j=E.get();)try{j()}catch(M){throw E.head&&v(),M}P&&P.enter()};!a&&!l&&!s&&c&&u?(w=!0,b=u.createTextNode(""),new c(k).observe(b,{characterData:!0}),v=function(){b.data=w=!w}):!o&&p&&p.resolve?(B=p.resolve(void 0),B.constructor=p,F=e(B.then,B),v=function(){F(k)}):l?v=function(){h.nextTick(k)}:(r=e(r,A),v=function(){r(k)}),f=function(P){E.head||v(),E.add(P)}}return vh=f,vh}var mh,ow;function Q6(){return ow||(ow=1,mh=function(A,t){try{arguments.length===1?console.error(A):console.error(A,t)}catch{}}),mh}var wh,lw;function Pp(){return lw||(lw=1,wh=function(A){try{return{error:!1,value:A()}}catch(t){return{error:!0,value:t}}}),wh}var Bh,cw;function al(){if(cw)return Bh;cw=1;var A=oA();return Bh=A.Promise,Bh}var yh,uw;function il(){if(uw)return yh;uw=1;var A=oA(),t=al(),e=NA(),r=Sb(),n=Ip(),a=$A(),o=Tb(),s=za(),l=Up(),c=t&&t.prototype,u=a("species"),h=!1,p=e(A.PromiseRejectionEvent),f=r("Promise",function(){var v=n(t),w=v!==String(t);if(!w&&l===66||s&&!(c.catch&&c.finally))return!0;if(!l||l<51||!/native code/.test(v)){var b=new t(function(E){E(1)}),B=function(E){E(function(){},function(){})},F=b.constructor={};if(F[u]=B,h=b.then(function(){})instanceof B,!h)return!0}return!w&&(o==="BROWSER"||o==="DENO")&&!p});return yh={CONSTRUCTOR:f,REJECTION_EVENT:p,SUBCLASSING:h},yh}var bh={},fw;function sl(){if(fw)return bh;fw=1;var A=gi(),t=TypeError,e=function(r){var n,a;this.promise=new r(function(o,s){if(n!==void 0||a!==void 0)throw new t("Bad Promise constructor");n=o,a=s}),this.resolve=A(n),this.reject=A(a)};return bh.f=function(r){return new e(r)},bh}var dw;function L6(){if(dw)return y1;dw=1;var A=Qn(),t=za(),e=du(),r=oA(),n=p6(),a=on(),o=ys(),s=Ub(),l=hu(),c=y6(),u=gi(),h=NA(),p=Pn(),f=b6(),v=Db(),w=Nb().set,b=D6(),B=Q6(),F=Pp(),E=_b(),k=uu(),P=al(),j=il(),M=sl(),O="Promise",L=j.CONSTRUCTOR,R=j.REJECTION_EVENT,S=j.SUBCLASSING,T=k.getterFor(O),G=k.set,N=P&&P.prototype,oe=P,le=N,Z=r.TypeError,ee=r.document,X=r.process,re=M.f,se=re,x=!!(ee&&ee.createEvent&&r.dispatchEvent),I="unhandledrejection",W="rejectionhandled",z=0,Ae=1,he=2,fe=1,ce=2,Fe,Pe,Ze,tt,lt=function(Re){var $e;return p(Re)&&h($e=Re.then)?$e:!1},Q=function(Re,$e){var at=$e.value,gt=$e.state===Ae,mt=gt?Re.ok:Re.fail,ht=Re.resolve,Bt=Re.reject,pt=Re.domain,zt,_t,Ut;try{mt?(gt||($e.rejection===ce&&xe($e),$e.rejection=fe),mt===!0?zt=at:(pt&&pt.enter(),zt=mt(at),pt&&(pt.exit(),Ut=!0)),zt===Re.promise?Bt(new Z("Promise-chain cycle")):(_t=lt(zt))?a(_t,zt,ht,Bt):ht(zt)):Bt(at)}catch(Lt){pt&&!Ut&&pt.exit(),Bt(Lt)}},De=function(Re,$e){Re.notified||(Re.notified=!0,b(function(){for(var at=Re.reactions,gt;gt=at.get();)Q(gt,Re);Re.notified=!1,$e&&!Re.rejection&&ge(Re)}))},pe=function(Re,$e,at){var gt,mt;x?(gt=ee.createEvent("Event"),gt.promise=$e,gt.reason=at,gt.initEvent(Re,!1,!0),r.dispatchEvent(gt)):gt={promise:$e,reason:at},!R&&(mt=r["on"+Re])?mt(gt):Re===I&&B("Unhandled promise rejection",at)},ge=function(Re){a(w,r,function(){var $e=Re.facade,at=Re.value,gt=Ee(Re),mt;if(gt&&(mt=F(function(){e?X.emit("unhandledRejection",at,$e):pe(I,$e,at)}),Re.rejection=e||Ee(Re)?ce:fe,mt.error))throw mt.value})},Ee=function(Re){return Re.rejection!==fe&&!Re.parent},xe=function(Re){a(w,r,function(){var $e=Re.facade;e?X.emit("rejectionHandled",$e):pe(W,$e,Re.value)})},Qe=function(Re,$e,at){return function(gt){Re($e,gt,at)}},Oe=function(Re,$e,at){Re.done||(Re.done=!0,at&&(Re=at),Re.value=$e,Re.state=he,De(Re,!0))},Ve=function(Re,$e,at){if(!Re.done){Re.done=!0,at&&(Re=at);try{if(Re.facade===$e)throw new Z("Promise can't be resolved itself");var gt=lt($e);gt?b(function(){var mt={done:!1};try{a(gt,$e,Qe(Ve,mt,Re),Qe(Oe,mt,Re))}catch(ht){Oe(mt,ht,Re)}}):(Re.value=$e,Re.state=Ae,De(Re,!1))}catch(mt){Oe({done:!1},mt,Re)}}};if(L&&(oe=function($e){f(this,le),u($e),a(Fe,this);var at=T(this);try{$e(Qe(Ve,at),Qe(Oe,at))}catch(gt){Oe(at,gt)}},le=oe.prototype,Fe=function($e){G(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new E,rejection:!1,state:z,value:null})},Fe.prototype=o(le,"then",function($e,at){var gt=T(this),mt=re(v(this,oe));return gt.parent=!0,mt.ok=h($e)?$e:!0,mt.fail=h(at)&&at,mt.domain=e?X.domain:void 0,gt.state===z?gt.reactions.add(mt):b(function(){Q(mt,gt)}),mt.promise}),Pe=function(){var Re=new Fe,$e=T(Re);this.promise=Re,this.resolve=Qe(Ve,$e),this.reject=Qe(Oe,$e)},M.f=re=function(Re){return Re===oe||Re===Ze?new Pe(Re):se(Re)},!t&&h(P)&&N!==Object.prototype)){tt=N.then,S||o(N,"then",function($e,at){var gt=this;return new oe(function(mt,ht){a(tt,gt,mt,ht)}).then($e,at)},{unsafe:!0});try{delete N.constructor}catch{}s&&s(N,le)}return A({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:oe}),Ze=n.Promise,l(oe,O,!1,!0),c(O),y1}var hw={},Ch,gw;function ol(){return gw||(gw=1,Ch={}),Ch}var Eh,pw;function I6(){if(pw)return Eh;pw=1;var A=$A(),t=ol(),e=A("iterator"),r=Array.prototype;return Eh=function(n){return n!==void 0&&(t.Array===n||r[e]===n)},Eh}var Fh,vw;function Mb(){if(vw)return Fh;vw=1;var A=Rp(),t=no(),e=nu(),r=ol(),n=$A(),a=n("iterator");return Fh=function(o){if(!e(o))return t(o,a)||t(o,"@@iterator")||r[A(o)]},Fh}var kh,mw;function N6(){if(mw)return kh;mw=1;var A=on(),t=gi(),e=Dn(),r=iu(),n=Mb(),a=TypeError;return kh=function(o,s){var l=arguments.length<2?n(o):s;if(t(l))return e(A(l,o));throw new a(r(o)+" is not iterable")},kh}var xh,ww;function _6(){if(ww)return xh;ww=1;var A=on(),t=Dn(),e=no();return xh=function(r,n,a){var o,s;t(r);try{if(o=e(r,"return"),!o){if(n==="throw")throw a;return a}o=A(o,r)}catch(l){s=!0,o=l}if(n==="throw")throw a;if(s)throw o;return t(o),a},xh}var Sh,Bw;function Ob(){if(Bw)return Sh;Bw=1;var A=Hp(),t=on(),e=Dn(),r=iu(),n=I6(),a=Mp(),o=au(),s=N6(),l=Mb(),c=_6(),u=TypeError,h=function(f,v){this.stopped=f,this.result=v},p=h.prototype;return Sh=function(f,v,w){var b=w&&w.that,B=!!(w&&w.AS_ENTRIES),F=!!(w&&w.IS_RECORD),E=!!(w&&w.IS_ITERATOR),k=!!(w&&w.INTERRUPTED),P=A(v,b),j,M,O,L,R,S,T,G=function(oe){return j&&c(j,"normal"),new h(!0,oe)},N=function(oe){return B?(e(oe),k?P(oe[0],oe[1],G):P(oe[0],oe[1])):k?P(oe,G):P(oe)};if(F)j=f.iterator;else if(E)j=f;else{if(M=l(f),!M)throw new u(r(f)+" is not iterable");if(n(M)){for(O=0,L=a(f);L>O;O++)if(R=N(f[O]),R&&o(p,R))return R;return new h(!1)}j=s(f,M)}for(S=F?f.next:j.next;!(T=t(S,j)).done;){try{R=N(T.value)}catch(oe){c(j,"throw",oe)}if(typeof R=="object"&&R&&o(p,R))return R}return new h(!1)},Sh}var Th,yw;function M6(){if(yw)return Th;yw=1;var A=$A(),t=A("iterator"),e=!1;try{var r=0,n={next:function(){return{done:!!r++}},return:function(){e=!0}};n[t]=function(){return this},Array.from(n,function(){throw 2})}catch{}return Th=function(a,o){try{if(!o&&!e)return!1}catch{return!1}var s=!1;try{var l={};l[t]=function(){return{next:function(){return{done:s=!0}}}},a(l)}catch{}return s},Th}var Uh,bw;function Rb(){if(bw)return Uh;bw=1;var A=al(),t=M6(),e=il().CONSTRUCTOR;return Uh=e||!t(function(r){A.all(r).then(void 0,function(){})}),Uh}var Cw;function O6(){if(Cw)return hw;Cw=1;var A=Qn(),t=on(),e=gi(),r=sl(),n=Pp(),a=Ob(),o=Rb();return A({target:"Promise",stat:!0,forced:o},{all:function(l){var c=this,u=r.f(c),h=u.resolve,p=u.reject,f=n(function(){var v=e(c.resolve),w=[],b=0,B=1;a(l,function(F){var E=b++,k=!1;B++,t(v,c,F).then(function(P){k||(k=!0,w[E]=P,--B||h(w))},p)}),--B||h(w)});return f.error&&p(f.value),u.promise}}),hw}var Ew={},Fw;function R6(){if(Fw)return Ew;Fw=1;var A=Qn(),t=za(),e=il().CONSTRUCTOR,r=al(),n=Bs(),a=NA(),o=ys(),s=r&&r.prototype;if(A({target:"Promise",proto:!0,forced:e,real:!0},{catch:function(c){return this.then(void 0,c)}}),!t&&a(r)){var l=n("Promise").prototype.catch;s.catch!==l&&o(s,"catch",l,{unsafe:!0})}return Ew}var kw={},xw;function H6(){if(xw)return kw;xw=1;var A=Qn(),t=on(),e=gi(),r=sl(),n=Pp(),a=Ob(),o=Rb();return A({target:"Promise",stat:!0,forced:o},{race:function(l){var c=this,u=r.f(c),h=u.reject,p=n(function(){var f=e(c.resolve);a(l,function(v){t(f,c,v).then(u.resolve,h)})});return p.error&&h(p.value),u.promise}}),kw}var Sw={},Tw;function P6(){if(Tw)return Sw;Tw=1;var A=Qn(),t=sl(),e=il().CONSTRUCTOR;return A({target:"Promise",stat:!0,forced:e},{reject:function(n){var a=t.f(this),o=a.reject;return o(n),a.promise}}),Sw}var Uw={},Dh,Dw;function V6(){if(Dw)return Dh;Dw=1;var A=Dn(),t=Pn(),e=sl();return Dh=function(r,n){if(A(r),t(n)&&n.constructor===r)return n;var a=e.f(r),o=a.resolve;return o(n),a.promise},Dh}var Qw;function K6(){if(Qw)return Uw;Qw=1;var A=Qn(),t=Bs(),e=za(),r=al(),n=il().CONSTRUCTOR,a=V6(),o=t("Promise"),s=e&&!n;return A({target:"Promise",stat:!0,forced:e||n},{resolve:function(c){return a(s&&this===o?r:this,c)}}),Uw}var Lw;function q6(){return Lw||(Lw=1,L6(),O6(),R6(),H6(),P6(),K6()),B1}q6();function Iw(A,t,e,r,n,a,o){try{var s=A[a](o),l=s.value}catch(c){return void e(c)}s.done?t(l):Promise.resolve(l).then(r,n)}function di(A){return function(){var t=this,e=arguments;return new Promise(function(r,n){var a=A.apply(t,e);function o(l){Iw(a,r,n,o,s,"next",l)}function s(l){Iw(a,r,n,o,s,"throw",l)}o(void 0)})}}var Nw={},_w={},Qh,Mw;function $a(){if(Mw)return Qh;Mw=1;var A=Rp(),t=String;return Qh=function(e){if(A(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return t(e)},Qh}var Lh,Ow;function Hb(){if(Ow)return Lh;Ow=1;var A=Dn();return Lh=function(){var t=A(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Lh}var Ih,Rw;function Pb(){if(Rw)return Ih;Rw=1;var A=EA(),t=oA(),e=t.RegExp,r=A(function(){var o=e("a","y");return o.lastIndex=2,o.exec("abcd")!==null}),n=r||A(function(){return!e("a","y").sticky}),a=r||A(function(){var o=e("^r","gy");return o.lastIndex=2,o.exec("str")!==null});return Ih={BROKEN_CARET:a,MISSED_STICKY:n,UNSUPPORTED_Y:r},Ih}var Nh={},_h,Hw;function j6(){if(Hw)return _h;Hw=1;var A=xb(),t=Op();return _h=Object.keys||function(r){return A(r,t)},_h}var Pw;function W6(){if(Pw)return Nh;Pw=1;var A=La(),t=Eb(),e=Gi(),r=Dn(),n=rl(),a=j6();return Nh.f=A&&!t?Object.defineProperties:function(s,l){r(s);for(var c=n(l),u=a(l),h=u.length,p=0,f;h>p;)e.f(s,f=u[p++],c[f]);return s},Nh}var Mh,Vw;function pu(){if(Vw)return Mh;Vw=1;var A=Dn(),t=W6(),e=Op(),r=_p(),n=Lb(),a=ou(),o=Np(),s=">",l="<",c="prototype",u="script",h=o("IE_PROTO"),p=function(){},f=function(F){return l+u+s+F+l+"/"+u+s},v=function(F){F.write(f("")),F.close();var E=F.parentWindow.Object;return F=null,E},w=function(){var F=a("iframe"),E="java"+u+":",k;return F.style.display="none",n.appendChild(F),F.src=String(E),k=F.contentWindow.document,k.open(),k.write(f("document.F=Object")),k.close(),k.F},b,B=function(){try{b=new ActiveXObject("htmlfile")}catch{}B=typeof document<"u"?document.domain&&b?v(b):w():v(b);for(var F=e.length;F--;)delete B[c][e[F]];return B()};return r[h]=!0,Mh=Object.create||function(E,k){var P;return E!==null?(p[c]=A(E),P=new p,p[c]=null,P[h]=E):P=B(),k===void 0?P:t.f(P,k)},Mh}var Oh,Kw;function G6(){if(Kw)return Oh;Kw=1;var A=EA(),t=oA(),e=t.RegExp;return Oh=A(function(){var r=e(".","s");return!(r.dotAll&&r.test(`
`)&&r.flags==="s")}),Oh}var Rh,qw;function Y6(){if(qw)return Rh;qw=1;var A=EA(),t=oA(),e=t.RegExp;return Rh=A(function(){var r=e("(?<a>b)","g");return r.exec("b").groups.a!=="b"||"b".replace(r,"$<a>c")!=="bc"}),Rh}var Hh,jw;function Vp(){if(jw)return Hh;jw=1;var A=on(),t=FA(),e=$a(),r=Hb(),n=Pb(),a=Lp(),o=pu(),s=uu().get,l=G6(),c=Y6(),u=a("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,p=h,f=t("".charAt),v=t("".indexOf),w=t("".replace),b=t("".slice),B=(function(){var P=/a/,j=/b*/g;return A(h,P,"a"),A(h,j,"a"),P.lastIndex!==0||j.lastIndex!==0})(),F=n.BROKEN_CARET,E=/()??/.exec("")[1]!==void 0,k=B||E||F||l||c;return k&&(p=function(j){var M=this,O=s(M),L=e(j),R=O.raw,S,T,G,N,oe,le,Z;if(R)return R.lastIndex=M.lastIndex,S=A(p,R,L),M.lastIndex=R.lastIndex,S;var ee=O.groups,X=F&&M.sticky,re=A(r,M),se=M.source,x=0,I=L;if(X&&(re=w(re,"y",""),v(re,"g")===-1&&(re+="g"),I=b(L,M.lastIndex),M.lastIndex>0&&(!M.multiline||M.multiline&&f(L,M.lastIndex-1)!==`
`)&&(se="(?: "+se+")",I=" "+I,x++),T=new RegExp("^(?:"+se+")",re)),E&&(T=new RegExp("^"+se+"$(?!\\s)",re)),B&&(G=M.lastIndex),N=A(h,X?T:M,I),X?N?(N.input=b(N.input,x),N[0]=b(N[0],x),N.index=M.lastIndex,M.lastIndex+=N[0].length):M.lastIndex=0:B&&N&&(M.lastIndex=M.global?N.index+N[0].length:G),E&&N&&N.length>1&&A(u,N[0],T,function(){for(oe=1;oe<arguments.length-2;oe++)arguments[oe]===void 0&&(N[oe]=void 0)}),N&&ee)for(N.groups=le=o(null),oe=0;oe<ee.length;oe++)Z=ee[oe],le[Z[0]]=N[Z[1]];return N}),Hh=p,Hh}var Ww;function z6(){if(Ww)return _w;Ww=1;var A=Qn(),t=Vp();return A({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),_w}var Ph,Gw;function Kp(){if(Gw)return Ph;Gw=1,z6();var A=on(),t=ys(),e=Vp(),r=EA(),n=$A(),a=nl(),o=n("species"),s=RegExp.prototype;return Ph=function(l,c,u,h){var p=n(l),f=!r(function(){var B={};return B[p]=function(){return 7},""[l](B)!==7}),v=f&&!r(function(){var B=!1,F=/a/;return l==="split"&&(F={},F.constructor={},F.constructor[o]=function(){return F},F.flags="",F[p]=/./[p]),F.exec=function(){return B=!0,null},F[p](""),!B});if(!f||!v||u){var w=/./[p],b=c(p,""[l],function(B,F,E,k,P){var j=F.exec;return j===e||j===s.exec?f&&!P?{done:!0,value:A(w,F,E,k)}:{done:!0,value:A(B,E,F,k)}:{done:!1}});t(String.prototype,l,b[0]),t(s,p,b[1])}h&&a(s[p],"sham",!0)},Ph}var Vh,Yw;function $6(){if(Yw)return Vh;Yw=1;var A=FA(),t=fu(),e=$a(),r=Ia(),n=A("".charAt),a=A("".charCodeAt),o=A("".slice),s=function(l){return function(c,u){var h=e(r(c)),p=t(u),f=h.length,v,w;return p<0||p>=f?l?"":void 0:(v=a(h,p),v<55296||v>56319||p+1===f||(w=a(h,p+1))<56320||w>57343?l?n(h,p):v:l?o(h,p,p+2):(v-55296<<10)+(w-56320)+65536)}};return Vh={codeAt:s(!1),charAt:s(!0)},Vh}var Kh,zw;function qp(){if(zw)return Kh;zw=1;var A=$6().charAt;return Kh=function(t,e,r){return e+(r?A(t,e).length:1)},Kh}var qh,$w;function X6(){if($w)return qh;$w=1;var A=oA(),t=EA(),e=A.RegExp,r=!t(function(){var n=!0;try{e(".","d")}catch{n=!1}var a={},o="",s=n?"dgimsy":"gimsy",l=function(p,f){Object.defineProperty(a,p,{get:function(){return o+=f,!0}})},c={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};n&&(c.hasIndices="d");for(var u in c)l(u,c[u]);var h=Object.getOwnPropertyDescriptor(e.prototype,"flags").get.call(a);return h!==s||o!==s});return qh={correct:r},qh}var jh,Xw;function jp(){if(Xw)return jh;Xw=1;var A=on(),t=Na(),e=au(),r=X6(),n=Hb(),a=RegExp.prototype;return jh=r.correct?function(o){return o.flags}:function(o){return!r.correct&&e(a,o)&&!t(o,"flags")?A(n,o):o.flags},jh}var Wh,Jw;function Wp(){if(Jw)return Wh;Jw=1;var A=on(),t=Dn(),e=NA(),r=ws(),n=Vp(),a=TypeError;return Wh=function(o,s){var l=o.exec;if(e(l)){var c=A(l,o,s);return c!==null&&t(c),c}if(r(o)==="RegExp")return A(n,o,s);throw new a("RegExp#exec called on incompatible receiver")},Wh}var Zw;function J6(){if(Zw)return Nw;Zw=1;var A=on(),t=FA(),e=Kp(),r=Dn(),n=Pn(),a=ao(),o=$a(),s=Ia(),l=no(),c=qp(),u=jp(),h=Wp(),p=t("".indexOf);return e("match",function(f,v,w){return[function(B){var F=s(this),E=n(B)?l(B,f):void 0;return E?A(E,B,F):new RegExp(B)[f](o(F))},function(b){var B=r(this),F=o(b),E=w(v,B,F);if(E.done)return E.value;var k=o(u(B));if(p(k,"g")===-1)return h(B,F);var P=p(k,"u")!==-1;B.lastIndex=0;for(var j=[],M=0,O;(O=h(B,F))!==null;){var L=o(O[0]);j[M]=L,L===""&&(B.lastIndex=c(F,a(B.lastIndex),P)),M++}return M===0?null:j}]}),Nw}J6();var eB={},Gh,tB;function Z6(){if(tB)return Gh;tB=1;var A=FA(),t=su(),e=Math.floor,r=A("".charAt),n=A("".replace),a=A("".slice),o=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return Gh=function(l,c,u,h,p,f){var v=u+l.length,w=h.length,b=s;return p!==void 0&&(p=t(p),b=o),n(f,b,function(B,F){var E;switch(r(F,0)){case"$":return"$";case"&":return l;case"`":return a(c,0,u);case"'":return a(c,v);case"<":E=p[a(F,1,-1)];break;default:var k=+F;if(k===0)return B;if(k>w){var P=e(k/10);return P===0?B:P<=w?h[P-1]===void 0?r(F,1):h[P-1]+r(F,1):B}E=h[k-1]}return E===void 0?"":E})},Gh}var rB;function eM(){if(rB)return eB;rB=1;var A=Qb(),t=on(),e=FA(),r=Kp(),n=EA(),a=Dn(),o=NA(),s=Pn(),l=fu(),c=ao(),u=$a(),h=Ia(),p=qp(),f=no(),v=Z6(),w=jp(),b=Wp(),B=$A(),F=B("replace"),E=Math.max,k=Math.min,P=e([].concat),j=e([].push),M=e("".indexOf),O=e("".slice),L=function(G){return G===void 0?G:String(G)},R=(function(){return"a".replace(/./,"$0")==="$0"})(),S=(function(){return/./[F]?/./[F]("a","$0")==="":!1})(),T=!n(function(){var G=/./;return G.exec=function(){var N=[];return N.groups={a:"7"},N},"".replace(G,"$<a>")!=="7"});return r("replace",function(G,N,oe){var le=S?"$":"$0";return[function(ee,X){var re=h(this),se=s(ee)?f(ee,F):void 0;return se?t(se,ee,re,X):t(N,u(re),ee,X)},function(Z,ee){var X=a(this),re=u(Z);if(typeof ee=="string"&&M(ee,le)===-1&&M(ee,"$<")===-1){var se=oe(N,X,re,ee);if(se.done)return se.value}var x=o(ee);x||(ee=u(ee));var I=u(w(X)),W=M(I,"g")!==-1,z;W&&(z=M(I,"u")!==-1,X.lastIndex=0);for(var Ae=[],he;he=b(X,re),!(he===null||(j(Ae,he),!W));){var fe=u(he[0]);fe===""&&(X.lastIndex=p(re,c(X.lastIndex),z))}for(var ce="",Fe=0,Pe=0;Pe<Ae.length;Pe++){he=Ae[Pe];for(var Ze=u(he[0]),tt=E(k(l(he.index),re.length),0),lt=[],Q,De=1;De<he.length;De++)j(lt,L(he[De]));var pe=he.groups;if(x){var ge=P([Ze],lt,tt,re);pe!==void 0&&j(ge,pe),Q=u(A(ee,void 0,ge))}else Q=v(Ze,re,tt,lt,pe,ee);tt>=Fe&&(ce+=O(re,Fe,tt)+Q,Fe=tt+Ze.length)}return ce+O(re,Fe)}]},!T||!R||S),eB}eM();var AB={},Yh,nB;function tM(){if(nB)return Yh;nB=1;var A=Pn(),t=ws(),e=$A(),r=e("match");return Yh=function(n){var a;return A(n)&&((a=n[r])!==void 0?!!a:t(n)==="RegExp")},Yh}var zh,aB;function Gp(){if(aB)return zh;aB=1;var A=tM(),t=TypeError;return zh=function(e){if(A(e))throw new t("The method doesn't accept regular expressions");return e},zh}var $h,iB;function Yp(){if(iB)return $h;iB=1;var A=$A(),t=A("match");return $h=function(e){var r=/./;try{"/./"[e](r)}catch{try{return r[t]=!1,"/./"[e](r)}catch{}}return!1},$h}var sB;function rM(){if(sB)return AB;sB=1;var A=Qn(),t=gu(),e=lu().f,r=ao(),n=$a(),a=Gp(),o=Ia(),s=Yp(),l=za(),c=t("".slice),u=Math.min,h=s("startsWith"),p=!l&&!h&&!!(function(){var f=e(String.prototype,"startsWith");return f&&!f.writable})();return A({target:"String",proto:!0,forced:!p&&!h},{startsWith:function(v){var w=n(o(this));a(v);var b=r(u(arguments.length>1?arguments[1]:void 0,w.length)),B=n(v);return c(w,b,b+B.length)===B}}),AB}rM();var Xh,oB;function AM(){if(oB)return Xh;oB=1;var A=$A(),t=pu(),e=Gi().f,r=A("unscopables"),n=Array.prototype;return n[r]===void 0&&e(n,r,{configurable:!0,value:t(null)}),Xh=function(a){n[r][a]=!0},Xh}var Jh,lB;function nM(){if(lB)return Jh;lB=1;var A=EA();return Jh=!A(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Jh}var Zh,cB;function Vb(){if(cB)return Zh;cB=1;var A=Na(),t=NA(),e=su(),r=Np(),n=nM(),a=r("IE_PROTO"),o=Object,s=o.prototype;return Zh=n?o.getPrototypeOf:function(l){var c=e(l);if(A(c,a))return c[a];var u=c.constructor;return t(u)&&c instanceof u?u.prototype:c instanceof o?s:null},Zh}var eg,uB;function Kb(){if(uB)return eg;uB=1;var A=EA(),t=NA(),e=Pn(),r=pu(),n=Vb(),a=ys(),o=$A(),s=za(),l=o("iterator"),c=!1,u,h,p;[].keys&&(p=[].keys(),"next"in p?(h=n(n(p)),h!==Object.prototype&&(u=h)):c=!0);var f=!e(u)||A(function(){var v={};return u[l].call(v)!==v});return f?u={}:s&&(u=r(u)),t(u[l])||a(u,l,function(){return this}),eg={IteratorPrototype:u,BUGGY_SAFARI_ITERATORS:c},eg}var tg,fB;function aM(){if(fB)return tg;fB=1;var A=Kb().IteratorPrototype,t=pu(),e=Tp(),r=hu(),n=ol(),a=function(){return this};return tg=function(o,s,l,c){var u=s+" Iterator";return o.prototype=t(A,{next:e(+!c,l)}),r(o,u,!1,!0),n[u]=a,o},tg}var rg,dB;function iM(){if(dB)return rg;dB=1;var A=Qn(),t=on(),e=za(),r=cu(),n=NA(),a=aM(),o=Vb(),s=Ub(),l=hu(),c=nl(),u=ys(),h=$A(),p=ol(),f=Kb(),v=r.PROPER,w=r.CONFIGURABLE,b=f.IteratorPrototype,B=f.BUGGY_SAFARI_ITERATORS,F=h("iterator"),E="keys",k="values",P="entries",j=function(){return this};return rg=function(M,O,L,R,S,T,G){a(L,O,R);var N=function(W){if(W===S&&X)return X;if(!B&&W&&W in Z)return Z[W];switch(W){case E:return function(){return new L(this,W)};case k:return function(){return new L(this,W)};case P:return function(){return new L(this,W)}}return function(){return new L(this)}},oe=O+" Iterator",le=!1,Z=M.prototype,ee=Z[F]||Z["@@iterator"]||S&&Z[S],X=!B&&ee||N(S),re=O==="Array"&&Z.entries||ee,se,x,I;if(re&&(se=o(re.call(new M)),se!==Object.prototype&&se.next&&(!e&&o(se)!==b&&(s?s(se,b):n(se[F])||u(se,F,j)),l(se,oe,!0,!0),e&&(p[oe]=j))),v&&S===k&&ee&&ee.name!==k&&(!e&&w?c(Z,"name",k):(le=!0,X=function(){return t(ee,this)})),S)if(x={values:N(k),keys:T?X:N(E),entries:N(P)},G)for(I in x)(B||le||!(I in Z))&&u(Z,I,x[I]);else A({target:O,proto:!0,forced:B||le},x);return(!e||G)&&Z[F]!==X&&u(Z,F,X,{name:S}),p[O]=X,x},rg}var Ag,hB;function sM(){return hB||(hB=1,Ag=function(A,t){return{value:A,done:t}}),Ag}var ng,gB;function qb(){if(gB)return ng;gB=1;var A=rl(),t=AM(),e=ol(),r=uu(),n=Gi().f,a=iM(),o=sM(),s=za(),l=La(),c="Array Iterator",u=r.set,h=r.getterFor(c);ng=a(Array,"Array",function(f,v){u(this,{type:c,target:A(f),index:0,kind:v})},function(){var f=h(this),v=f.target,w=f.index++;if(!v||w>=v.length)return f.target=null,o(void 0,!0);switch(f.kind){case"keys":return o(w,!1);case"values":return o(v[w],!1)}return o([w,v[w]],!1)},"values");var p=e.Arguments=e.Array;if(t("keys"),t("values"),t("entries"),!s&&l&&p.name!=="values")try{n(p,"name",{value:"values"})}catch{}return ng}qb();var pB={},ag,vB;function oM(){return vB||(vB=1,ag={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),ag}var ig,mB;function lM(){if(mB)return ig;mB=1;var A=ou(),t=A("span").classList,e=t&&t.constructor&&t.constructor.prototype;return ig=e===Object.prototype?void 0:e,ig}var wB;function cM(){if(wB)return pB;wB=1;var A=oA(),t=oM(),e=lM(),r=qb(),n=nl(),a=hu(),o=$A(),s=o("iterator"),l=r.values,c=function(h,p){if(h){if(h[s]!==l)try{n(h,s,l)}catch{h[s]=l}if(a(h,p,!0),t[p]){for(var f in r)if(h[f]!==r[f])try{n(h,f,r[f])}catch{h[f]=r[f]}}}};for(var u in t)c(A[u]&&A[u].prototype,u);return c(e,"DOMTokenList"),pB}cM();function uM(A,t){if(Dr(A)!="object"||!A)return A;var e=A[Symbol.toPrimitive];if(e!==void 0){var r=e.call(A,t);if(Dr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(A)}function fM(A){var t=uM(A,"string");return Dr(t)=="symbol"?t:t+""}function zp(A,t,e){return(t=fM(t))in A?Object.defineProperty(A,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):A[t]=e,A}var BB={},sg,yB;function dM(){if(yB)return sg;yB=1;var A=gi(),t=su(),e=vb(),r=Mp(),n=TypeError,a="Reduce of empty array with no initial value",o=function(s){return function(l,c,u,h){var p=t(l),f=e(p),v=r(p);if(A(c),v===0&&u<2)throw new n(a);var w=s?v-1:0,b=s?-1:1;if(u<2)for(;;){if(w in f){h=f[w],w+=b;break}if(w+=b,s?w<0:v<=w)throw new n(a)}for(;s?w>=0:v>w;w+=b)w in f&&(h=c(h,f[w],w,p));return h}};return sg={left:o(!1),right:o(!0)},sg}var og,bB;function jb(){if(bB)return og;bB=1;var A=EA();return og=function(t,e){var r=[][t];return!!r&&A(function(){r.call(null,e||function(){return 1},1)})},og}var CB;function hM(){if(CB)return BB;CB=1;var A=Qn(),t=dM().left,e=jb(),r=Up(),n=du(),a=!n&&r>79&&r<83,o=a||!e("reduce");return A({target:"Array",proto:!0,forced:o},{reduce:function(l){var c=arguments.length;return t(this,l,c,c>1?arguments[1]:void 0)}}),BB}hM();var EB={},FB;function gM(){if(FB)return EB;FB=1;var A=Qn(),t=gu(),e=lu().f,r=ao(),n=$a(),a=Gp(),o=Ia(),s=Yp(),l=za(),c=t("".slice),u=Math.min,h=s("endsWith"),p=!l&&!h&&!!(function(){var f=e(String.prototype,"endsWith");return f&&!f.writable})();return A({target:"String",proto:!0,forced:!p&&!h},{endsWith:function(v){var w=n(o(this));a(v);var b=arguments.length>1?arguments[1]:void 0,B=w.length,F=b===void 0?B:u(r(b),B),E=n(v);return c(w,F-E.length,F)===E}}),EB}gM();var kB={},xB;function pM(){if(xB)return kB;xB=1;var A=on(),t=FA(),e=Kp(),r=Dn(),n=Pn(),a=Ia(),o=Db(),s=qp(),l=ao(),c=$a(),u=no(),h=Wp(),p=Pb(),f=EA(),v=p.UNSUPPORTED_Y,w=4294967295,b=Math.min,B=t([].push),F=t("".slice),E=!f(function(){var P=/(?:)/,j=P.exec;P.exec=function(){return j.apply(this,arguments)};var M="ab".split(P);return M.length!==2||M[0]!=="a"||M[1]!=="b"}),k="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;return e("split",function(P,j,M){var O="0".split(void 0,0).length?function(L,R){return L===void 0&&R===0?[]:A(j,this,L,R)}:j;return[function(R,S){var T=a(this),G=n(R)?u(R,P):void 0;return G?A(G,R,T,S):A(O,c(T),R,S)},function(L,R){var S=r(this),T=c(L);if(!k){var G=M(O,S,T,R,O!==j);if(G.done)return G.value}var N=o(S,RegExp),oe=S.unicode,le=(S.ignoreCase?"i":"")+(S.multiline?"m":"")+(S.unicode?"u":"")+(v?"g":"y"),Z=new N(v?"^(?:"+S.source+")":S,le),ee=R===void 0?w:R>>>0;if(ee===0)return[];if(T.length===0)return h(Z,T)===null?[T]:[];for(var X=0,re=0,se=[];re<T.length;){Z.lastIndex=v?0:re;var x=h(Z,v?F(T,re):T),I;if(x===null||(I=b(l(Z.lastIndex+(v?re:0)),T.length))===X)re=s(T,re,oe);else{if(B(se,F(T,X,re)),se.length===ee)return se;for(var W=1;W<=x.length-1;W++)if(B(se,x[W]),se.length===ee)return se;re=X=I}}return B(se,F(T,X)),se}]},k||!E,v),kB}pM();var Lo={exports:{}},is={exports:{}},vM=is.exports,SB;function mM(){return SB||(SB=1,(function(){var A,t,e,r,n,a;typeof performance<"u"&&performance!==null&&performance.now?is.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(is.exports=function(){return(A()-n)/1e6},t=process.hrtime,A=function(){var o;return o=t(),o[0]*1e9+o[1]},r=A(),a=process.uptime()*1e9,n=r-a):Date.now?(is.exports=function(){return Date.now()-e},e=Date.now()):(is.exports=function(){return new Date().getTime()-e},e=new Date().getTime())}).call(vM)),is.exports}var TB;function wM(){if(TB)return Lo.exports;TB=1;for(var A=mM(),t=typeof window>"u"?rp:window,e=["moz","webkit"],r="AnimationFrame",n=t["request"+r],a=t["cancel"+r]||t["cancelRequest"+r],o=0;!n&&o<e.length;o++)n=t[e[o]+"Request"+r],a=t[e[o]+"Cancel"+r]||t[e[o]+"CancelRequest"+r];if(!n||!a){var s=0,l=0,c=[],u=1e3/60;n=function(h){if(c.length===0){var p=A(),f=Math.max(0,u-(p-s));s=f+p,setTimeout(function(){var v=c.slice(0);c.length=0;for(var w=0;w<v.length;w++)if(!v[w].cancelled)try{v[w].callback(s)}catch(b){setTimeout(function(){throw b},0)}},Math.round(f))}return c.push({handle:++l,callback:h,cancelled:!1}),l},a=function(h){for(var p=0;p<c.length;p++)c[p].handle===h&&(c[p].cancelled=!0)}}return Lo.exports=function(h){return n.call(t,h)},Lo.exports.cancel=function(){a.apply(t,arguments)},Lo.exports.polyfill=function(h){h||(h=t),h.requestAnimationFrame=n,h.cancelAnimationFrame=a},Lo.exports}var BM=wM();const lg=pb(BM);var UB={},cg,DB;function Wb(){return DB||(DB=1,cg=`	
\v\f\r                 \u2028\u2029\uFEFF`),cg}var ug,QB;function yM(){if(QB)return ug;QB=1;var A=FA(),t=Ia(),e=$a(),r=Wb(),n=A("".replace),a=RegExp("^["+r+"]+"),o=RegExp("(^|[^"+r+"])["+r+"]+$"),s=function(l){return function(c){var u=e(t(c));return l&1&&(u=n(u,a,"")),l&2&&(u=n(u,o,"$1")),u}};return ug={start:s(1),end:s(2),trim:s(3)},ug}var fg,LB;function bM(){if(LB)return fg;LB=1;var A=cu().PROPER,t=EA(),e=Wb(),r="​…᠎";return fg=function(n){return t(function(){return!!e[n]()||r[n]()!==r||A&&e[n].name!==n})},fg}var IB;function CM(){if(IB)return UB;IB=1;var A=Qn(),t=yM().trim,e=bM();return A({target:"String",proto:!0,forced:e("trim")},{trim:function(){return t(this)}}),UB}CM();var dg,NB;function EM(){return NB||(NB=1,dg=function(A){this.ok=!1,this.alpha=1,A.charAt(0)=="#"&&(A=A.substr(1,6)),A=A.replace(/ /g,""),A=A.toLowerCase();var 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",rebeccapurple:"663399",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"};A=t[A]||A;for(var e=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3]),parseFloat(l[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],r=0;r<e.length;r++){var n=e[r].re,a=e[r].process,o=n.exec(A);if(o){var s=a(o);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),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.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var l=this.r.toString(16),c=this.g.toString(16),u=this.b.toString(16);return l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),u.length==1&&(u="0"+u),"#"+l+c+u},this.getHelpXML=function(){for(var l=new Array,c=0;c<e.length;c++)for(var u=e[c].example,h=0;h<u.length;h++)l[l.length]=u[h];for(var p in t)l[l.length]=p;var f=document.createElement("ul");f.setAttribute("id","rgbcolor-examples");for(var c=0;c<l.length;c++)try{var v=document.createElement("li"),w=new RGBColor(l[c]),b=document.createElement("div");b.style.cssText="margin: 3px; border: 1px solid black; background:"+w.toHex()+"; color:"+w.toHex(),b.appendChild(document.createTextNode("test"));var B=document.createTextNode(" "+l[c]+" -> "+w.toRGB()+" -> "+w.toHex());v.appendChild(b),v.appendChild(B),f.appendChild(v)}catch{}return f}}),dg}var FM=EM();const Ap=pb(FM);var _B={},MB;function kM(){if(MB)return _B;MB=1;var A=Qn(),t=gu(),e=kb().indexOf,r=jb(),n=t([].indexOf),a=!!n&&1/n([1],1,-0)<0,o=a||!r("indexOf");return A({target:"Array",proto:!0,forced:o},{indexOf:function(l){var c=arguments.length>1?arguments[1]:void 0;return a?n(this,l,c)||0:e(this,l,c)}}),_B}kM();var OB={},RB;function xM(){if(RB)return OB;RB=1;var A=Qn(),t=FA(),e=Gp(),r=Ia(),n=$a(),a=Yp(),o=t("".indexOf);return A({target:"String",proto:!0,forced:!a("includes")},{includes:function(l){return!!~o(n(r(this)),n(e(l)),arguments.length>1?arguments[1]:void 0)}}),OB}xM();var HB={},hg,PB;function SM(){if(PB)return hg;PB=1;var A=ws();return hg=Array.isArray||function(e){return A(e)==="Array"},hg}var VB;function TM(){if(VB)return HB;VB=1;var A=Qn(),t=FA(),e=SM(),r=t([].reverse),n=[1,2];return A({target:"Array",proto:!0,forced:String(n)===String(n.reverse())},{reverse:function(){return e(this)&&(this.length=this.length),r(this)}}),HB}TM();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Gb=function(A,t){return(Gb=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])})(A,t)};function Yb(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=A}Gb(A,t),A.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function UM(A){var t="";Array.isArray(A)||(A=[A]);for(var e=0;e<A.length;e++){var r=A[e];if(r.type===ct.CLOSE_PATH)t+="z";else if(r.type===ct.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===ct.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===ct.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===ct.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===ct.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===ct.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===ct.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===ct.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==ct.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+e+".");t+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return t}function np(A,t){var e=A[0],r=A[1];return[e*Math.cos(t)-r*Math.sin(t),e*Math.sin(t)+r*Math.cos(t)]}function xa(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];for(var e=0;e<A.length;e++)if(typeof A[e]!="number")throw new Error("assertNumbers arguments["+e+"] is not a number. "+typeof A[e]+" == typeof "+A[e]);return!0}var Mi=Math.PI;function gg(A,t,e){A.lArcFlag=A.lArcFlag===0?0:1,A.sweepFlag=A.sweepFlag===0?0:1;var r=A.rX,n=A.rY,a=A.x,o=A.y;r=Math.abs(A.rX),n=Math.abs(A.rY);var s=np([(t-a)/2,(e-o)/2],-A.xRot/180*Mi),l=s[0],c=s[1],u=Math.pow(l,2)/Math.pow(r,2)+Math.pow(c,2)/Math.pow(n,2);1<u&&(r*=Math.sqrt(u),n*=Math.sqrt(u)),A.rX=r,A.rY=n;var h=Math.pow(r,2)*Math.pow(c,2)+Math.pow(n,2)*Math.pow(l,2),p=(A.lArcFlag!==A.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(n,2)-h)/h)),f=r*c/n*p,v=-n*l/r*p,w=np([f,v],A.xRot/180*Mi);A.cX=w[0]+(t+a)/2,A.cY=w[1]+(e+o)/2,A.phi1=Math.atan2((c-v)/n,(l-f)/r),A.phi2=Math.atan2((-c-v)/n,(-l-f)/r),A.sweepFlag===0&&A.phi2>A.phi1&&(A.phi2-=2*Mi),A.sweepFlag===1&&A.phi2<A.phi1&&(A.phi2+=2*Mi),A.phi1*=180/Mi,A.phi2*=180/Mi}function KB(A,t,e){xa(A,t,e);var r=A*A+t*t-e*e;if(0>r)return[];if(r===0)return[[A*e/(A*A+t*t),t*e/(A*A+t*t)]];var n=Math.sqrt(r);return[[(A*e+t*n)/(A*A+t*t),(t*e-A*n)/(A*A+t*t)],[(A*e-t*n)/(A*A+t*t),(t*e+A*n)/(A*A+t*t)]]}var MA,ii=Math.PI/180;function qB(A,t,e){return(1-e)*A+e*t}function jB(A,t,e,r){return A+Math.cos(r/180*Mi)*t+Math.sin(r/180*Mi)*e}function WB(A,t,e,r){var n=1e-6,a=t-A,o=e-t,s=3*a+3*(r-e)-6*o,l=6*(o-a),c=3*a;return Math.abs(s)<n?[-c/l]:(function(u,h,p){var f=u*u/4-h;if(f<-p)return[];if(f<=p)return[-u/2];var v=Math.sqrt(f);return[-u/2-v,-u/2+v]})(l/s,c/s,n)}function GB(A,t,e,r,n){var a=1-n;return A*(a*a*a)+t*(3*a*a*n)+e*(3*a*n*n)+r*(n*n*n)}(function(A){function t(){return n((function(s,l,c){return s.relative&&(s.x1!==void 0&&(s.x1+=l),s.y1!==void 0&&(s.y1+=c),s.x2!==void 0&&(s.x2+=l),s.y2!==void 0&&(s.y2+=c),s.x!==void 0&&(s.x+=l),s.y!==void 0&&(s.y+=c),s.relative=!1),s}))}function e(){var s=NaN,l=NaN,c=NaN,u=NaN;return n((function(h,p,f){return h.type&ct.SMOOTH_CURVE_TO&&(h.type=ct.CURVE_TO,s=isNaN(s)?p:s,l=isNaN(l)?f:l,h.x1=h.relative?p-s:2*p-s,h.y1=h.relative?f-l:2*f-l),h.type&ct.CURVE_TO?(s=h.relative?p+h.x2:h.x2,l=h.relative?f+h.y2:h.y2):(s=NaN,l=NaN),h.type&ct.SMOOTH_QUAD_TO&&(h.type=ct.QUAD_TO,c=isNaN(c)?p:c,u=isNaN(u)?f:u,h.x1=h.relative?p-c:2*p-c,h.y1=h.relative?f-u:2*f-u),h.type&ct.QUAD_TO?(c=h.relative?p+h.x1:h.x1,u=h.relative?f+h.y1:h.y1):(c=NaN,u=NaN),h}))}function r(){var s=NaN,l=NaN;return n((function(c,u,h){if(c.type&ct.SMOOTH_QUAD_TO&&(c.type=ct.QUAD_TO,s=isNaN(s)?u:s,l=isNaN(l)?h:l,c.x1=c.relative?u-s:2*u-s,c.y1=c.relative?h-l:2*h-l),c.type&ct.QUAD_TO){s=c.relative?u+c.x1:c.x1,l=c.relative?h+c.y1:c.y1;var p=c.x1,f=c.y1;c.type=ct.CURVE_TO,c.x1=((c.relative?0:u)+2*p)/3,c.y1=((c.relative?0:h)+2*f)/3,c.x2=(c.x+2*p)/3,c.y2=(c.y+2*f)/3}else s=NaN,l=NaN;return c}))}function n(s){var l=0,c=0,u=NaN,h=NaN;return function(p){if(isNaN(u)&&!(p.type&ct.MOVE_TO))throw new Error("path must start with moveto");var f=s(p,l,c,u,h);return p.type&ct.CLOSE_PATH&&(l=u,c=h),p.x!==void 0&&(l=p.relative?l+p.x:p.x),p.y!==void 0&&(c=p.relative?c+p.y:p.y),p.type&ct.MOVE_TO&&(u=l,h=c),f}}function a(s,l,c,u,h,p){return xa(s,l,c,u,h,p),n((function(f,v,w,b){var B=f.x1,F=f.x2,E=f.relative&&!isNaN(b),k=f.x!==void 0?f.x:E?0:v,P=f.y!==void 0?f.y:E?0:w;function j(x){return x*x}f.type&ct.HORIZ_LINE_TO&&l!==0&&(f.type=ct.LINE_TO,f.y=f.relative?0:w),f.type&ct.VERT_LINE_TO&&c!==0&&(f.type=ct.LINE_TO,f.x=f.relative?0:v),f.x!==void 0&&(f.x=f.x*s+P*c+(E?0:h)),f.y!==void 0&&(f.y=k*l+f.y*u+(E?0:p)),f.x1!==void 0&&(f.x1=f.x1*s+f.y1*c+(E?0:h)),f.y1!==void 0&&(f.y1=B*l+f.y1*u+(E?0:p)),f.x2!==void 0&&(f.x2=f.x2*s+f.y2*c+(E?0:h)),f.y2!==void 0&&(f.y2=F*l+f.y2*u+(E?0:p));var M=s*u-l*c;if(f.xRot!==void 0&&(s!==1||l!==0||c!==0||u!==1))if(M===0)delete f.rX,delete f.rY,delete f.xRot,delete f.lArcFlag,delete f.sweepFlag,f.type=ct.LINE_TO;else{var O=f.xRot*Math.PI/180,L=Math.sin(O),R=Math.cos(O),S=1/j(f.rX),T=1/j(f.rY),G=j(R)*S+j(L)*T,N=2*L*R*(S-T),oe=j(L)*S+j(R)*T,le=G*u*u-N*l*u+oe*l*l,Z=N*(s*u+l*c)-2*(G*c*u+oe*s*l),ee=G*c*c-N*s*c+oe*s*s,X=(Math.atan2(Z,le-ee)+Math.PI)%Math.PI/2,re=Math.sin(X),se=Math.cos(X);f.rX=Math.abs(M)/Math.sqrt(le*j(se)+Z*re*se+ee*j(re)),f.rY=Math.abs(M)/Math.sqrt(le*j(re)-Z*re*se+ee*j(se)),f.xRot=180*X/Math.PI}return f.sweepFlag!==void 0&&0>M&&(f.sweepFlag=+!f.sweepFlag),f}))}function o(){return function(s){var l={};for(var c in s)l[c]=s[c];return l}}A.ROUND=function(s){function l(c){return Math.round(c*s)/s}return s===void 0&&(s=1e13),xa(s),function(c){return c.x1!==void 0&&(c.x1=l(c.x1)),c.y1!==void 0&&(c.y1=l(c.y1)),c.x2!==void 0&&(c.x2=l(c.x2)),c.y2!==void 0&&(c.y2=l(c.y2)),c.x!==void 0&&(c.x=l(c.x)),c.y!==void 0&&(c.y=l(c.y)),c.rX!==void 0&&(c.rX=l(c.rX)),c.rY!==void 0&&(c.rY=l(c.rY)),c}},A.TO_ABS=t,A.TO_REL=function(){return n((function(s,l,c){return s.relative||(s.x1!==void 0&&(s.x1-=l),s.y1!==void 0&&(s.y1-=c),s.x2!==void 0&&(s.x2-=l),s.y2!==void 0&&(s.y2-=c),s.x!==void 0&&(s.x-=l),s.y!==void 0&&(s.y-=c),s.relative=!0),s}))},A.NORMALIZE_HVZ=function(s,l,c){return s===void 0&&(s=!0),l===void 0&&(l=!0),c===void 0&&(c=!0),n((function(u,h,p,f,v){if(isNaN(f)&&!(u.type&ct.MOVE_TO))throw new Error("path must start with moveto");return l&&u.type&ct.HORIZ_LINE_TO&&(u.type=ct.LINE_TO,u.y=u.relative?0:p),c&&u.type&ct.VERT_LINE_TO&&(u.type=ct.LINE_TO,u.x=u.relative?0:h),s&&u.type&ct.CLOSE_PATH&&(u.type=ct.LINE_TO,u.x=u.relative?f-h:f,u.y=u.relative?v-p:v),u.type&ct.ARC&&(u.rX===0||u.rY===0)&&(u.type=ct.LINE_TO,delete u.rX,delete u.rY,delete u.xRot,delete u.lArcFlag,delete u.sweepFlag),u}))},A.NORMALIZE_ST=e,A.QT_TO_C=r,A.INFO=n,A.SANITIZE=function(s){s===void 0&&(s=0),xa(s);var l=NaN,c=NaN,u=NaN,h=NaN;return n((function(p,f,v,w,b){var B=Math.abs,F=!1,E=0,k=0;if(p.type&ct.SMOOTH_CURVE_TO&&(E=isNaN(l)?0:f-l,k=isNaN(c)?0:v-c),p.type&(ct.CURVE_TO|ct.SMOOTH_CURVE_TO)?(l=p.relative?f+p.x2:p.x2,c=p.relative?v+p.y2:p.y2):(l=NaN,c=NaN),p.type&ct.SMOOTH_QUAD_TO?(u=isNaN(u)?f:2*f-u,h=isNaN(h)?v:2*v-h):p.type&ct.QUAD_TO?(u=p.relative?f+p.x1:p.x1,h=p.relative?v+p.y1:p.y2):(u=NaN,h=NaN),p.type&ct.LINE_COMMANDS||p.type&ct.ARC&&(p.rX===0||p.rY===0||!p.lArcFlag)||p.type&ct.CURVE_TO||p.type&ct.SMOOTH_CURVE_TO||p.type&ct.QUAD_TO||p.type&ct.SMOOTH_QUAD_TO){var P=p.x===void 0?0:p.relative?p.x:p.x-f,j=p.y===void 0?0:p.relative?p.y:p.y-v;E=isNaN(u)?p.x1===void 0?E:p.relative?p.x:p.x1-f:u-f,k=isNaN(h)?p.y1===void 0?k:p.relative?p.y:p.y1-v:h-v;var M=p.x2===void 0?0:p.relative?p.x:p.x2-f,O=p.y2===void 0?0:p.relative?p.y:p.y2-v;B(P)<=s&&B(j)<=s&&B(E)<=s&&B(k)<=s&&B(M)<=s&&B(O)<=s&&(F=!0)}return p.type&ct.CLOSE_PATH&&B(f-w)<=s&&B(v-b)<=s&&(F=!0),F?[]:p}))},A.MATRIX=a,A.ROTATE=function(s,l,c){l===void 0&&(l=0),c===void 0&&(c=0),xa(s,l,c);var u=Math.sin(s),h=Math.cos(s);return a(h,u,-u,h,l-l*h+c*u,c-l*u-c*h)},A.TRANSLATE=function(s,l){return l===void 0&&(l=0),xa(s,l),a(1,0,0,1,s,l)},A.SCALE=function(s,l){return l===void 0&&(l=s),xa(s,l),a(s,0,0,l,0,0)},A.SKEW_X=function(s){return xa(s),a(1,0,Math.atan(s),1,0,0)},A.SKEW_Y=function(s){return xa(s),a(1,Math.atan(s),0,1,0,0)},A.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),xa(s),a(-1,0,0,1,s,0)},A.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),xa(s),a(1,0,0,-1,0,s)},A.A_TO_C=function(){return n((function(s,l,c){return ct.ARC===s.type?(function(u,h,p){var f,v,w,b;u.cX||gg(u,h,p);for(var B=Math.min(u.phi1,u.phi2),F=Math.max(u.phi1,u.phi2)-B,E=Math.ceil(F/90),k=new Array(E),P=h,j=p,M=0;M<E;M++){var O=qB(u.phi1,u.phi2,M/E),L=qB(u.phi1,u.phi2,(M+1)/E),R=L-O,S=4/3*Math.tan(R*ii/4),T=[Math.cos(O*ii)-S*Math.sin(O*ii),Math.sin(O*ii)+S*Math.cos(O*ii)],G=T[0],N=T[1],oe=[Math.cos(L*ii),Math.sin(L*ii)],le=oe[0],Z=oe[1],ee=[le+S*Math.sin(L*ii),Z-S*Math.cos(L*ii)],X=ee[0],re=ee[1];k[M]={relative:u.relative,type:ct.CURVE_TO};var se=function(x,I){var W=np([x*u.rX,I*u.rY],u.xRot),z=W[0],Ae=W[1];return[u.cX+z,u.cY+Ae]};f=se(G,N),k[M].x1=f[0],k[M].y1=f[1],v=se(X,re),k[M].x2=v[0],k[M].y2=v[1],w=se(le,Z),k[M].x=w[0],k[M].y=w[1],u.relative&&(k[M].x1-=P,k[M].y1-=j,k[M].x2-=P,k[M].y2-=j,k[M].x-=P,k[M].y-=j),P=(b=[k[M].x,k[M].y])[0],j=b[1]}return k})(s,s.relative?0:l,s.relative?0:c):s}))},A.ANNOTATE_ARCS=function(){return n((function(s,l,c){return s.relative&&(l=0,c=0),ct.ARC===s.type&&gg(s,l,c),s}))},A.CLONE=o,A.CALCULATE_BOUNDS=function(){var s=function(p){var f={};for(var v in p)f[v]=p[v];return f},l=t(),c=r(),u=e(),h=n((function(p,f,v){var w=u(c(l(s(p))));function b(re){re>h.maxX&&(h.maxX=re),re<h.minX&&(h.minX=re)}function B(re){re>h.maxY&&(h.maxY=re),re<h.minY&&(h.minY=re)}if(w.type&ct.DRAWING_COMMANDS&&(b(f),B(v)),w.type&ct.HORIZ_LINE_TO&&b(w.x),w.type&ct.VERT_LINE_TO&&B(w.y),w.type&ct.LINE_TO&&(b(w.x),B(w.y)),w.type&ct.CURVE_TO){b(w.x),B(w.y);for(var F=0,E=WB(f,w.x1,w.x2,w.x);F<E.length;F++)0<(X=E[F])&&1>X&&b(GB(f,w.x1,w.x2,w.x,X));for(var k=0,P=WB(v,w.y1,w.y2,w.y);k<P.length;k++)0<(X=P[k])&&1>X&&B(GB(v,w.y1,w.y2,w.y,X))}if(w.type&ct.ARC){b(w.x),B(w.y),gg(w,f,v);for(var j=w.xRot/180*Math.PI,M=Math.cos(j)*w.rX,O=Math.sin(j)*w.rX,L=-Math.sin(j)*w.rY,R=Math.cos(j)*w.rY,S=w.phi1<w.phi2?[w.phi1,w.phi2]:-180>w.phi2?[w.phi2+360,w.phi1+360]:[w.phi2,w.phi1],T=S[0],G=S[1],N=function(re){var se=re[0],x=re[1],I=180*Math.atan2(x,se)/Math.PI;return I<T?I+360:I},oe=0,le=KB(L,-M,0).map(N);oe<le.length;oe++)(X=le[oe])>T&&X<G&&b(jB(w.cX,M,L,X));for(var Z=0,ee=KB(R,-O,0).map(N);Z<ee.length;Z++){var X;(X=ee[Z])>T&&X<G&&B(jB(w.cY,O,R,X))}}return p}));return h.minX=1/0,h.maxX=-1/0,h.minY=1/0,h.maxY=-1/0,h}})(MA||(MA={}));var Fa,zb=(function(){function A(){}return A.prototype.round=function(t){return this.transform(MA.ROUND(t))},A.prototype.toAbs=function(){return this.transform(MA.TO_ABS())},A.prototype.toRel=function(){return this.transform(MA.TO_REL())},A.prototype.normalizeHVZ=function(t,e,r){return this.transform(MA.NORMALIZE_HVZ(t,e,r))},A.prototype.normalizeST=function(){return this.transform(MA.NORMALIZE_ST())},A.prototype.qtToC=function(){return this.transform(MA.QT_TO_C())},A.prototype.aToC=function(){return this.transform(MA.A_TO_C())},A.prototype.sanitize=function(t){return this.transform(MA.SANITIZE(t))},A.prototype.translate=function(t,e){return this.transform(MA.TRANSLATE(t,e))},A.prototype.scale=function(t,e){return this.transform(MA.SCALE(t,e))},A.prototype.rotate=function(t,e,r){return this.transform(MA.ROTATE(t,e,r))},A.prototype.matrix=function(t,e,r,n,a,o){return this.transform(MA.MATRIX(t,e,r,n,a,o))},A.prototype.skewX=function(t){return this.transform(MA.SKEW_X(t))},A.prototype.skewY=function(t){return this.transform(MA.SKEW_Y(t))},A.prototype.xSymmetry=function(t){return this.transform(MA.X_AXIS_SYMMETRY(t))},A.prototype.ySymmetry=function(t){return this.transform(MA.Y_AXIS_SYMMETRY(t))},A.prototype.annotateArcs=function(){return this.transform(MA.ANNOTATE_ARCS())},A})(),DM=function(A){return A===" "||A==="	"||A==="\r"||A===`
`},YB=function(A){return 48<=A.charCodeAt(0)&&A.charCodeAt(0)<=57},QM=(function(A){function t(){var e=A.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return Yb(t,A),t.prototype.finish=function(e){if(e===void 0&&(e=[]),this.parse(" ",e),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,r){var n=this;r===void 0&&(r=[]);for(var a=function(h){r.push(h),n.curArgs.length=0,n.canParseCommandOrComma=!0},o=0;o<e.length;o++){var s=e[o],l=!(this.curCommandType!==ct.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),c=YB(s)&&(this.curNumber==="0"&&s==="0"||l);if(!YB(s)||c)if(s!=="e"&&s!=="E")if(s!=="-"&&s!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(s!=="."||this.curNumberHasExp||this.curNumberHasDecimal||l){if(this.curNumber&&this.curCommandType!==-1){var u=Number(this.curNumber);if(isNaN(u))throw new SyntaxError("Invalid number ending at "+o);if(this.curCommandType===ct.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>u)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+o+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"')}this.curArgs.push(u),this.curArgs.length===LM[this.curCommandType]&&(ct.HORIZ_LINE_TO===this.curCommandType?a({type:ct.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):ct.VERT_LINE_TO===this.curCommandType?a({type:ct.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===ct.MOVE_TO||this.curCommandType===ct.LINE_TO||this.curCommandType===ct.SMOOTH_QUAD_TO?(a({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),ct.MOVE_TO===this.curCommandType&&(this.curCommandType=ct.LINE_TO)):this.curCommandType===ct.CURVE_TO?a({type:ct.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===ct.SMOOTH_CURVE_TO?a({type:ct.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===ct.QUAD_TO?a({type:ct.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===ct.ARC&&a({type:ct.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!DM(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(c)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=ct.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=ct.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=ct.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=ct.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=ct.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=ct.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=ct.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=ct.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=ct.ARC,this.curCommandRelative=s==="a"}else r.push({type:ct.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s==="."}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return r},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(r,n){n===void 0&&(n=[]);for(var a=0,o=Object.getPrototypeOf(this).parse.call(this,r);a<o.length;a++){var s=o[a],l=e(s);Array.isArray(l)?n.push.apply(n,l):n.push(l)}return n}}})},t})(zb),ct=(function(A){function t(e){var r=A.call(this)||this;return r.commands=typeof e=="string"?t.parse(e):e,r}return Yb(t,A),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=MA.CALCULATE_BOUNDS();return this.transform(e),e},t.prototype.transform=function(e){for(var r=[],n=0,a=this.commands;n<a.length;n++){var o=e(a[n]);Array.isArray(o)?r.push.apply(r,o):r.push(o)}return this.commands=r,this},t.encode=function(e){return UM(e)},t.parse=function(e){var r=new QM,n=[];return r.parse(e,n),r.finish(n),n},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t})(zb),LM=((Fa={})[ct.MOVE_TO]=2,Fa[ct.LINE_TO]=2,Fa[ct.HORIZ_LINE_TO]=1,Fa[ct.VERT_LINE_TO]=1,Fa[ct.CLOSE_PATH]=0,Fa[ct.QUAD_TO]=4,Fa[ct.SMOOTH_QUAD_TO]=2,Fa[ct.CURVE_TO]=6,Fa[ct.SMOOTH_CURVE_TO]=4,Fa[ct.ARC]=7,Fa),zB={},$B;function IM(){if($B)return zB;$B=1;var A=cu().PROPER,t=ys(),e=Dn(),r=$a(),n=EA(),a=jp(),o="toString",s=RegExp.prototype,l=s[o],c=n(function(){return l.call({source:"a",flags:"b"})!=="/a/b"}),u=A&&l.name!==o;return(c||u)&&t(s,o,function(){var p=e(this),f=r(p.source),v=r(a(p));return"/"+f+"/"+v},{unsafe:!0}),zB}IM();function Sc(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sc=function(t){return typeof t}:Sc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sc(A)}function NM(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}var _M=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],MM=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function OM(A,t,e,r,n){if(typeof A=="string"&&(A=document.getElementById(A)),!A||Sc(A)!=="object"||!("getContext"in A))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var a=A.getContext("2d");try{return a.getImageData(t,e,r,n)}catch(o){throw new Error("unable to access image data: "+o)}}function RM(A,t,e,r,n,a){if(!(isNaN(a)||a<1)){a|=0;var o=OM(A,t,e,r,n);o=HM(o,t,e,r,n,a),A.getContext("2d").putImageData(o,t,e)}}function HM(A,t,e,r,n,a){for(var o=A.data,s=2*a+1,l=r-1,c=n-1,u=a+1,h=u*(u+1)/2,p=new XB,f=p,v,w=1;w<s;w++)f=f.next=new XB,w===u&&(v=f);f.next=p;for(var b=null,B=null,F=0,E=0,k=_M[a],P=MM[a],j=0;j<n;j++){f=p;for(var M=o[E],O=o[E+1],L=o[E+2],R=o[E+3],S=0;S<u;S++)f.r=M,f.g=O,f.b=L,f.a=R,f=f.next;for(var T=0,G=0,N=0,oe=0,le=u*M,Z=u*O,ee=u*L,X=u*R,re=h*M,se=h*O,x=h*L,I=h*R,W=1;W<u;W++){var z=E+((l<W?l:W)<<2),Ae=o[z],he=o[z+1],fe=o[z+2],ce=o[z+3],Fe=u-W;re+=(f.r=Ae)*Fe,se+=(f.g=he)*Fe,x+=(f.b=fe)*Fe,I+=(f.a=ce)*Fe,T+=Ae,G+=he,N+=fe,oe+=ce,f=f.next}b=p,B=v;for(var Pe=0;Pe<r;Pe++){var Ze=I*k>>>P;if(o[E+3]=Ze,Ze!==0){var tt=255/Ze;o[E]=(re*k>>>P)*tt,o[E+1]=(se*k>>>P)*tt,o[E+2]=(x*k>>>P)*tt}else o[E]=o[E+1]=o[E+2]=0;re-=le,se-=Z,x-=ee,I-=X,le-=b.r,Z-=b.g,ee-=b.b,X-=b.a;var lt=Pe+a+1;lt=F+(lt<l?lt:l)<<2,T+=b.r=o[lt],G+=b.g=o[lt+1],N+=b.b=o[lt+2],oe+=b.a=o[lt+3],re+=T,se+=G,x+=N,I+=oe,b=b.next;var Q=B,De=Q.r,pe=Q.g,ge=Q.b,Ee=Q.a;le+=De,Z+=pe,ee+=ge,X+=Ee,T-=De,G-=pe,N-=ge,oe-=Ee,B=B.next,E+=4}F+=r}for(var xe=0;xe<r;xe++){E=xe<<2;var Qe=o[E],Oe=o[E+1],Ve=o[E+2],Re=o[E+3],$e=u*Qe,at=u*Oe,gt=u*Ve,mt=u*Re,ht=h*Qe,Bt=h*Oe,pt=h*Ve,zt=h*Re;f=p;for(var _t=0;_t<u;_t++)f.r=Qe,f.g=Oe,f.b=Ve,f.a=Re,f=f.next;for(var Ut=r,Lt=0,Xt=0,Et=0,rr=0,St=1;St<=a;St++){E=Ut+xe<<2;var ye=u-St;ht+=(f.r=Qe=o[E])*ye,Bt+=(f.g=Oe=o[E+1])*ye,pt+=(f.b=Ve=o[E+2])*ye,zt+=(f.a=Re=o[E+3])*ye,rr+=Qe,Lt+=Oe,Xt+=Ve,Et+=Re,f=f.next,St<c&&(Ut+=r)}E=xe,b=p,B=v;for(var He=0;He<n;He++){var _e=E<<2;o[_e+3]=Re=zt*k>>>P,Re>0?(Re=255/Re,o[_e]=(ht*k>>>P)*Re,o[_e+1]=(Bt*k>>>P)*Re,o[_e+2]=(pt*k>>>P)*Re):o[_e]=o[_e+1]=o[_e+2]=0,ht-=$e,Bt-=at,pt-=gt,zt-=mt,$e-=b.r,at-=b.g,gt-=b.b,mt-=b.a,_e=xe+((_e=He+u)<c?_e:c)*r<<2,ht+=rr+=b.r=o[_e],Bt+=Lt+=b.g=o[_e+1],pt+=Xt+=b.b=o[_e+2],zt+=Et+=b.a=o[_e+3],b=b.next,$e+=Qe=B.r,at+=Oe=B.g,gt+=Ve=B.b,mt+=Re=B.a,rr-=Qe,Lt-=Oe,Xt-=Ve,Et-=Re,B=B.next,E+=r}}return A}var XB=function A(){NM(this,A),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function PM(){var{DOMParser:A}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:A,createCanvas(e,r){return new OffscreenCanvas(e,r)},createImage(e){return di(function*(){var r=yield fetch(e),n=yield r.blob(),a=yield createImageBitmap(n);return a})()}};return(typeof DOMParser<"u"||typeof A>"u")&&Reflect.deleteProperty(t,"DOMParser"),t}function VM(A){var{DOMParser:t,canvas:e,fetch:r}=A;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:e.createCanvas,createImage:e.loadImage}}var KM=Object.freeze({__proto__:null,offscreen:PM,node:VM});function bs(A){return A.replace(/(?!\u3000)\s+/gm," ")}function $b(A){return A.replace(/^[\n \t]+/,"")}function Xb(A){return A.replace(/[\n \t]+$/,"")}function Rn(A){var t=(A||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return t.map(parseFloat)}var qM=/^[A-Z-]+$/;function Jb(A){return qM.test(A)?A.toLowerCase():A}function $p(A){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(A)||[];return t[2]||t[3]||t[4]}function Zb(A){if(!A.startsWith("rgb"))return A;var t=3,e=A.replace(/\d+(\.\d+)?/g,(r,n)=>t--&&n?String(Math.round(parseFloat(r))):r);return e}var jM=/(\[[^\]]+\])/g,WM=/(#[^\s+>~.[:]+)/g,GM=/(\.[^\s+>~.[:]+)/g,YM=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,zM=/(:[\w-]+\([^)]*\))/gi,$M=/(:[^\s+>~.[:]+)/g,XM=/([^\s+>~.[:]+)/g;function rs(A,t){var e=t.exec(A);return e?[A.replace(t," "),e.length]:[A,0]}function eC(A){var t=[0,0,0],e=A.replace(/:not\(([^)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),r=0;return[e,r]=rs(e,jM),t[1]+=r,[e,r]=rs(e,WM),t[0]+=r,[e,r]=rs(e,GM),t[1]+=r,[e,r]=rs(e,YM),t[2]+=r,[e,r]=rs(e,zM),t[1]+=r,[e,r]=rs(e,$M),t[1]+=r,e=e.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[e,r]=rs(e,XM),t[2]+=r,t.join("")}var hs=1e-8;function ap(A){return Math.sqrt(Math.pow(A[0],2)+Math.pow(A[1],2))}function qc(A,t){return(A[0]*t[0]+A[1]*t[1])/(ap(A)*ap(t))}function ip(A,t){return(A[0]*t[1]<A[1]*t[0]?-1:1)*Math.acos(qc(A,t))}function sp(A){return A*A*A}function op(A){return 3*A*A*(1-A)}function lp(A){return 3*A*(1-A)*(1-A)}function cp(A){return(1-A)*(1-A)*(1-A)}function up(A){return A*A}function fp(A){return 2*A*(1-A)}function dp(A){return(1-A)*(1-A)}class Yt{constructor(t,e,r){this.document=t,this.name=e,this.value=r,this.isNormalizedColor=!1}static empty(t){return new Yt(t,"EMPTY","")}split(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:e,name:r}=this;return bs(this.getString()).trim().split(t).map(n=>new Yt(e,r,n))}hasValue(t){var{value:e}=this;return e!==null&&e!==""&&(t||e!==0)&&typeof e<"u"}isString(t){var{value:e}=this,r=typeof e=="string";return!r||!t?r:t.test(e)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}setValue(t){return this.value=t,this}getValue(t){return typeof t>"u"||this.hasValue()?this.value:t}getNumber(t){if(!this.hasValue())return typeof t>"u"?0:parseFloat(t);var{value:e}=this,r=parseFloat(e);return this.isString(/%$/)&&(r/=100),r}getString(t){return typeof t>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(t)}getColor(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=Zb(e),this.value=e),e}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[r,n]=typeof t=="boolean"?[void 0,t]:[t],{viewPort:a}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(a.computeSize("x"),a.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(a.computeSize("x"),a.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*a.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*a.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&n):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*a.computeSize(r);default:{var o=this.getNumber();return e&&o<1?o*a.computeSize(r):o}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var t=this.getString(),e=/#([^)'"]+)/.exec(t);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}getFillStyleDefinition(t,e){var r=this.getDefinition();if(!r)return null;if(typeof r.createGradient=="function")return r.createGradient(this.document.ctx,t,e);if(typeof r.createPattern=="function"){if(r.getHrefAttribute().hasValue()){var n=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),n.hasValue()&&r.getAttribute("patternTransform",!0).setValue(n.value)}return r.createPattern(this.document.ctx,t,e)}return null}getTextBaseline(){return this.hasValue()?Yt.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var e=this.getColor(),r=e.length,n=0,a=0;a<r&&(e[a]===","&&n++,n!==3);a++);if(t.hasValue()&&this.isString()&&n!==3){var o=new Ap(e);o.ok&&(o.alpha=t.getNumber(),e=o.toRGBA())}return new Yt(this.document,this.name,e)}}Yt.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class tC{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(t,e){this.viewPorts.push({width:t,height:e})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:t}=this;return t[t.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(t){return typeof t=="number"?t:t==="x"?this.width:t==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class CA{constructor(t,e){this.x=t,this.y=e}static parse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[r=e,n=e]=Rn(t);return new CA(r,n)}static parseScale(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=e,n=r]=Rn(t);return new CA(r,n)}static parsePath(t){for(var e=Rn(t),r=e.length,n=[],a=0;a<r;a+=2)n.push(new CA(e[a],e[a+1]));return n}angleTo(t){return Math.atan2(t.y-this.y,t.x-this.x)}applyTransform(t){var{x:e,y:r}=this,n=e*t[0]+r*t[2]+t[4],a=e*t[1]+r*t[3]+t[5];this.x=n,this.y=a}}class rC{constructor(t){this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:t,onClick:e,onMouseMove:r}=this,n=t.ctx.canvas;n.onclick=e,n.onmousemove=r,this.working=!0}}stop(){if(this.working){var t=this.screen.ctx.canvas;this.working=!1,t.onclick=null,t.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:t,events:e,eventElements:r}=this,{style:n}=t.ctx.canvas;n&&(n.cursor=""),e.forEach((a,o)=>{for(var{run:s}=a,l=r[o];l;)s(l),l=l.parent}),this.events=[],this.eventElements=[]}}checkPath(t,e){if(!(!this.working||!e)){var{events:r,eventElements:n}=this;r.forEach((a,o)=>{var{x:s,y:l}=a;!n[o]&&e.isPointInPath&&e.isPointInPath(s,l)&&(n[o]=t)})}}checkBoundingBox(t,e){if(!(!this.working||!e)){var{events:r,eventElements:n}=this;r.forEach((a,o)=>{var{x:s,y:l}=a;!n[o]&&e.isPointInBox(s,l)&&(n[o]=t)})}}mapXY(t,e){for(var{window:r,ctx:n}=this.screen,a=new CA(t,e),o=n.canvas;o;)a.x-=o.offsetLeft,a.y-=o.offsetTop,o=o.offsetParent;return r.scrollX&&(a.x+=r.scrollX),r.scrollY&&(a.y+=r.scrollY),a}onClick(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:e,y:r,run(n){n.onClick&&n.onClick()}})}onMouseMove(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:e,y:r,run(n){n.onMouseMove&&n.onMouseMove()}})}}var AC=typeof window<"u"?window:null,nC=typeof fetch<"u"?fetch.bind(void 0):null;class ll{constructor(t){var{fetch:e=nC,window:r=AC}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new tC,this.mouse=new rC(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=e}wait(t){this.waits.push(t)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var t=this.waits.every(e=>e());return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}setDefaults(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}setViewBox(t){var{document:e,ctx:r,aspectRatio:n,width:a,desiredWidth:o,height:s,desiredHeight:l,minX:c=0,minY:u=0,refX:h,refY:p,clip:f=!1,clipX:v=0,clipY:w=0}=t,b=bs(n).replace(/^defer\s/,""),[B,F]=b.split(" "),E=B||"xMidYMid",k=F||"meet",P=a/o,j=s/l,M=Math.min(P,j),O=Math.max(P,j),L=o,R=l;k==="meet"&&(L*=M,R*=M),k==="slice"&&(L*=O,R*=O);var S=new Yt(e,"refX",h),T=new Yt(e,"refY",p),G=S.hasValue()&&T.hasValue();if(G&&r.translate(-M*S.getPixels("x"),-M*T.getPixels("y")),f){var N=M*v,oe=M*w;r.beginPath(),r.moveTo(N,oe),r.lineTo(a,oe),r.lineTo(a,s),r.lineTo(N,s),r.closePath(),r.clip()}if(!G){var le=k==="meet"&&M===j,Z=k==="slice"&&O===j,ee=k==="meet"&&M===P,X=k==="slice"&&O===P;E.startsWith("xMid")&&(le||Z)&&r.translate(a/2-L/2,0),E.endsWith("YMid")&&(ee||X)&&r.translate(0,s/2-R/2),E.startsWith("xMax")&&(le||Z)&&r.translate(a-L,0),E.endsWith("YMax")&&(ee||X)&&r.translate(0,s-R)}switch(!0){case E==="none":r.scale(P,j);break;case k==="meet":r.scale(M,M);break;case k==="slice":r.scale(O,O);break}r.translate(-c,-u)}start(t){var{enableRedraw:e=!1,ignoreMouse:r=!1,ignoreAnimation:n=!1,ignoreDimensions:a=!1,ignoreClear:o=!1,forceRedraw:s,scaleWidth:l,scaleHeight:c,offsetX:u,offsetY:h}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:p,mouse:f}=this,v=1e3/p;if(this.frameDuration=v,this.readyPromise=new Promise(E=>{this.resolveReady=E}),this.isReady()&&this.render(t,a,o,l,c,u,h),!!e){var w=Date.now(),b=w,B=0,F=()=>{w=Date.now(),B=w-b,B>=v&&(b=w-B%v,this.shouldUpdate(n,s)&&(this.render(t,a,o,l,c,u,h),f.runEvents())),this.intervalId=lg(F)};r||f.start(),this.intervalId=lg(F)}}stop(){this.intervalId&&(lg.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(t,e){if(!t){var{frameDuration:r}=this,n=this.animations.reduce((a,o)=>o.update(r)||a,!1);if(n)return!0}return!!(typeof e=="function"&&e()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(t,e,r,n,a,o,s){var{CLIENT_WIDTH:l,CLIENT_HEIGHT:c,viewPort:u,ctx:h,isFirstRender:p}=this,f=h.canvas;u.clear(),f.width&&f.height?u.setCurrent(f.width,f.height):u.setCurrent(l,c);var v=t.getStyle("width"),w=t.getStyle("height");!e&&(p||typeof n!="number"&&typeof a!="number")&&(v.hasValue()&&(f.width=v.getPixels("x"),f.style&&(f.style.width="".concat(f.width,"px"))),w.hasValue()&&(f.height=w.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var b=f.clientWidth||f.width,B=f.clientHeight||f.height;if(e&&v.hasValue()&&w.hasValue()&&(b=v.getPixels("x"),B=w.getPixels("y")),u.setCurrent(b,B),typeof o=="number"&&t.getAttribute("x",!0).setValue(o),typeof s=="number"&&t.getAttribute("y",!0).setValue(s),typeof n=="number"||typeof a=="number"){var F=Rn(t.getAttribute("viewBox").getString()),E=0,k=0;if(typeof n=="number"){var P=t.getStyle("width");P.hasValue()?E=P.getPixels("x")/n:isNaN(F[2])||(E=F[2]/n)}if(typeof a=="number"){var j=t.getStyle("height");j.hasValue()?k=j.getPixels("y")/a:isNaN(F[3])||(k=F[3]/a)}E||(E=k),k||(k=E),t.getAttribute("width",!0).setValue(n),t.getAttribute("height",!0).setValue(a);var M=t.getStyle("transform",!0,!0);M.setValue("".concat(M.getString()," scale(").concat(1/E,", ").concat(1/k,")"))}r||h.clearRect(0,0,b,B),t.render(h),p&&(this.isFirstRender=!1)}}ll.defaultWindow=AC;ll.defaultFetch=nC;var{defaultFetch:JM}=ll,ZM=typeof DOMParser<"u"?DOMParser:null;class Tc{constructor(){var{fetch:t=JM,DOMParser:e=ZM}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return di(function*(){return t.startsWith("<")?e.parseFromString(t):e.load(t)})()}parseFromString(t){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(t,"image/svg+xml"))}catch{return this.checkDocument(e.parseFromString(t,"text/xml"))}}checkDocument(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}load(t){var e=this;return di(function*(){var r=yield e.fetch(t),n=yield r.text();return e.parseFromString(n)})()}}class aC{constructor(t,e){this.type="translate",this.point=null,this.point=CA.parse(e)}apply(t){var{x:e,y:r}=this.point;t.translate(e||0,r||0)}unapply(t){var{x:e,y:r}=this.point;t.translate(-1*e||0,-1*r||0)}applyToPoint(t){var{x:e,y:r}=this.point;t.applyTransform([1,0,0,1,e||0,r||0])}}class iC{constructor(t,e,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var n=Rn(e);this.angle=new Yt(t,"angle",n[0]),this.originX=r[0],this.originY=r[1],this.cx=n[1]||0,this.cy=n[2]||0}apply(t){var{cx:e,cy:r,originX:n,originY:a,angle:o}=this,s=e+n.getPixels("x"),l=r+a.getPixels("y");t.translate(s,l),t.rotate(o.getRadians()),t.translate(-s,-l)}unapply(t){var{cx:e,cy:r,originX:n,originY:a,angle:o}=this,s=e+n.getPixels("x"),l=r+a.getPixels("y");t.translate(s,l),t.rotate(-1*o.getRadians()),t.translate(-s,-l)}applyToPoint(t){var{cx:e,cy:r,angle:n}=this,a=n.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(a),Math.sin(a),-Math.sin(a),Math.cos(a),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}class sC{constructor(t,e,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var n=CA.parseScale(e);(n.x===0||n.y===0)&&(n.x=hs,n.y=hs),this.scale=n,this.originX=r[0],this.originY=r[1]}apply(t){var{scale:{x:e,y:r},originX:n,originY:a}=this,o=n.getPixels("x"),s=a.getPixels("y");t.translate(o,s),t.scale(e,r||e),t.translate(-o,-s)}unapply(t){var{scale:{x:e,y:r},originX:n,originY:a}=this,o=n.getPixels("x"),s=a.getPixels("y");t.translate(o,s),t.scale(1/e,1/r||e),t.translate(-o,-s)}applyToPoint(t){var{x:e,y:r}=this.scale;t.applyTransform([e||0,0,0,r||0,0,0])}}class Xp{constructor(t,e,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Rn(e),this.originX=r[0],this.originY=r[1]}apply(t){var{originX:e,originY:r,matrix:n}=this,a=e.getPixels("x"),o=r.getPixels("y");t.translate(a,o),t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),t.translate(-a,-o)}unapply(t){var{originX:e,originY:r,matrix:n}=this,a=n[0],o=n[2],s=n[4],l=n[1],c=n[3],u=n[5],h=0,p=0,f=1,v=1/(a*(c*f-u*p)-o*(l*f-u*h)+s*(l*p-c*h)),w=e.getPixels("x"),b=r.getPixels("y");t.translate(w,b),t.transform(v*(c*f-u*p),v*(u*h-l*f),v*(s*p-o*f),v*(a*f-s*h),v*(o*u-s*c),v*(s*l-a*u)),t.translate(-w,-b)}applyToPoint(t){t.applyTransform(this.matrix)}}class Jp extends Xp{constructor(t,e,r){super(t,e,r),this.type="skew",this.angle=null,this.angle=new Yt(t,"angle",e)}}class oC extends Jp{constructor(t,e,r){super(t,e,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class lC extends Jp{constructor(t,e,r){super(t,e,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function e8(A){return bs(A).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function t8(A){var[t,e]=A.split("(");return[t.trim(),e.trim().replace(")","")]}class Wi{constructor(t,e,r){this.document=t,this.transforms=[];var n=e8(e);n.forEach(a=>{if(a!=="none"){var[o,s]=t8(a),l=Wi.transformTypes[o];typeof l<"u"&&this.transforms.push(new l(this.document,s,r))}})}static fromElement(t,e){var r=e.getStyle("transform",!1,!0),[n,a=n]=e.getStyle("transform-origin",!1,!0).split(),o=[n,a];return r.hasValue()?new Wi(t,r.getString(),o):null}apply(t){for(var{transforms:e}=this,r=e.length,n=0;n<r;n++)e[n].apply(t)}unapply(t){for(var{transforms:e}=this,r=e.length,n=r-1;n>=0;n--)e[n].unapply(t)}applyToPoint(t){for(var{transforms:e}=this,r=e.length,n=0;n<r;n++)e[n].applyToPoint(t)}}Wi.transformTypes={translate:aC,rotate:iC,scale:sC,matrix:Xp,skewX:oC,skewY:lC};class eA{constructor(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=t,this.node=e,this.captureTextNodes=r,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!e||e.nodeType!==1)){if(Array.from(e.attributes).forEach(s=>{var l=Jb(s.nodeName);this.attributes[l]=new Yt(t,l,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var n=this.getAttribute("style").getString().split(";").map(s=>s.trim());n.forEach(s=>{if(s){var[l,c]=s.split(":").map(u=>u.trim());this.styles[l]=new Yt(t,l,c)}})}var{definitions:a}=t,o=this.getAttribute("id");o.hasValue()&&(a[o.getString()]||(a[o.getString()]=this)),Array.from(e.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(r&&(s.nodeType===3||s.nodeType===4)){var l=t.createTextNode(s);l.getText().length>0&&this.addChild(l)}})}}getAttribute(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.attributes[t];if(!r&&e){var n=new Yt(this.document,t,"");return this.attributes[t]=n,n}return r||Yt.empty(this.document)}getHrefAttribute(){for(var t in this.attributes)if(t==="href"||t.endsWith(":href"))return this.attributes[t];return Yt.empty(this.document)}getStyle(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.styles[t];if(n)return n;var a=this.getAttribute(t);if(a!=null&&a.hasValue())return this.styles[t]=a,a;if(!r){var{parent:o}=this;if(o){var s=o.getStyle(t);if(s!=null&&s.hasValue())return s}}if(e){var l=new Yt(this.document,t,"");return this.styles[t]=l,l}return n||Yt.empty(this.document)}render(t){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(t.save(),this.getStyle("mask").hasValue()){var e=this.getStyle("mask").getDefinition();e&&(this.applyEffects(t),e.apply(t,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(t),r.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}setContext(t){}applyEffects(t){var e=Wi.fromElement(this.document,this);e&&e.apply(t);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var n=r.getDefinition();n&&n.apply(t)}}clearContext(t){}renderChildren(t){this.children.forEach(e=>{e.render(t)})}addChild(t){var e=t instanceof eA?t:this.document.createElement(t);e.parent=this,eA.ignoreChildTypes.includes(e.type)||this.children.push(e)}matchesSelector(t){var e,{node:r}=this;if(typeof r.matches=="function")return r.matches(t);var n=(e=r.getAttribute)===null||e===void 0?void 0:e.call(r,"class");return!n||n===""?!1:n.split(" ").some(a=>".".concat(a)===t)}addStylesFromStyleDefinition(){var{styles:t,stylesSpecificity:e}=this.document;for(var r in t)if(!r.startsWith("@")&&this.matchesSelector(r)){var n=t[r],a=e[r];if(n)for(var o in n){var s=this.stylesSpecificity[o];typeof s>"u"&&(s="000"),a>=s&&(this.styles[o]=n[o],this.stylesSpecificity[o]=a)}}}removeStyles(t,e){var r=e.reduce((n,a)=>{var o=t.getStyle(a);if(!o.hasValue())return n;var s=o.getString();return o.setValue(""),[...n,[a,s]]},[]);return r}restoreStyles(t,e){e.forEach(r=>{var[n,a]=r;t.getStyle(n,!0).setValue(a)})}isFirstChild(){var t;return((t=this.parent)===null||t===void 0?void 0:t.children.indexOf(this))===0}}eA.ignoreChildTypes=["title"];class cC extends eA{constructor(t,e,r){super(t,e,r)}}function r8(A){var t=A.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function A8(A){return typeof process>"u"?A:A.trim().split(",").map(r8).join(",")}function n8(A){if(!A)return"";var t=A.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function a8(A){if(!A)return"";var t=A.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}class yn{constructor(t,e,r,n,a,o){var s=o?typeof o=="string"?yn.parse(o):o:{};this.fontFamily=a||s.fontFamily,this.fontSize=n||s.fontSize,this.fontStyle=t||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=e||s.fontVariant}static parse(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,r="",n="",a="",o="",s="",l=bs(t).trim().split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(u=>{switch(!0){case(!c.fontStyle&&yn.styles.includes(u)):u!=="inherit"&&(r=u),c.fontStyle=!0;break;case(!c.fontVariant&&yn.variants.includes(u)):u!=="inherit"&&(n=u),c.fontStyle=!0,c.fontVariant=!0;break;case(!c.fontWeight&&yn.weights.includes(u)):u!=="inherit"&&(a=u),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:u!=="inherit"&&([o]=u.split("/")),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:u!=="inherit"&&(s+=u)}}),new yn(r,n,a,o,s,e)}toString(){return[n8(this.fontStyle),this.fontVariant,a8(this.fontWeight),this.fontSize,A8(this.fontFamily)].join(" ").trim()}}yn.styles="normal|italic|oblique|inherit";yn.variants="normal|small-caps|inherit";yn.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class pa{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=r,this.y2=n,this.addPoint(t,e),this.addPoint(r,n)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(t,e){typeof t<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),typeof e<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addBoundingBox(t){if(t){var{x1:e,y1:r,x2:n,y2:a}=t;this.addPoint(e,r),this.addPoint(n,a)}}sumCubic(t,e,r,n,a){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*n+Math.pow(t,3)*a}bezierCurveAdd(t,e,r,n,a){var o=6*e-12*r+6*n,s=-3*e+9*r-9*n+3*a,l=3*r-3*e;if(s===0){if(o===0)return;var c=-l/o;0<c&&c<1&&(t?this.addX(this.sumCubic(c,e,r,n,a)):this.addY(this.sumCubic(c,e,r,n,a)));return}var u=Math.pow(o,2)-4*l*s;if(!(u<0)){var h=(-o+Math.sqrt(u))/(2*s);0<h&&h<1&&(t?this.addX(this.sumCubic(h,e,r,n,a)):this.addY(this.sumCubic(h,e,r,n,a)));var p=(-o-Math.sqrt(u))/(2*s);0<p&&p<1&&(t?this.addX(this.sumCubic(p,e,r,n,a)):this.addY(this.sumCubic(p,e,r,n,a)))}}addBezierCurve(t,e,r,n,a,o,s,l){this.addPoint(t,e),this.addPoint(s,l),this.bezierCurveAdd(!0,t,r,a,s),this.bezierCurveAdd(!1,e,n,o,l)}addQuadraticCurve(t,e,r,n,a,o){var s=t+.6666666666666666*(r-t),l=e+2/3*(n-e),c=s+1/3*(a-t),u=l+1/3*(o-e);this.addBezierCurve(t,e,s,c,l,u,a,o)}isPointInBox(t,e){var{x1:r,y1:n,x2:a,y2:o}=this;return r<=t&&t<=a&&n<=e&&e<=o}}class sr extends ct{constructor(t){super(t.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new CA(0,0),this.control=new CA(0,0),this.current=new CA(0,0),this.points=[],this.angles=[]}isEnd(){var{i:t,commands:e}=this;return t>=e.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new CA(this.command[t],this.command[e]);return this.makeAbsolute(r)}getAsControlPoint(t,e){var r=this.getPoint(t,e);return this.control=r,r}getAsCurrentPoint(t,e){var r=this.getPoint(t,e);return this.current=r,r}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==ct.CURVE_TO&&t!==ct.SMOOTH_CURVE_TO&&t!==ct.QUAD_TO&&t!==ct.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:r},control:{x:n,y:a}}=this,o=new CA(2*e-n,2*r-a);return o}makeAbsolute(t){if(this.command.relative){var{x:e,y:r}=this.current;t.x+=e,t.y+=r}return t}addMarker(t,e,r){var{points:n,angles:a}=this;r&&a.length>0&&!a[a.length-1]&&(a[a.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}addMarkerAngle(t,e){this.points.push(t),this.angles.push(e)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:t}=this,e=t.length,r=0;r<e;r++)if(!t[r]){for(var n=r+1;n<e;n++)if(t[n]){t[r]=t[n];break}}return t}}class Yi extends eA{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),e=e.parent}return t}setContext(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!e){var r=this.getStyle("fill"),n=this.getStyle("fill-opacity"),a=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,n);s&&(t.fillStyle=s)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var l=r.getColor();l!=="inherit"&&(t.fillStyle=l==="none"?"rgba(0,0,0,0)":l)}if(n.hasValue()){var c=new Yt(this.document,"fill",t.fillStyle).addOpacity(n).getColor();t.fillStyle=c}if(a.isUrlDefinition()){var u=a.getFillStyleDefinition(this,o);u&&(t.strokeStyle=u)}else if(a.hasValue()){a.getString()==="currentColor"&&a.setValue(this.getStyle("color").getColor());var h=a.getString();h!=="inherit"&&(t.strokeStyle=h==="none"?"rgba(0,0,0,0)":h)}if(o.hasValue()){var p=new Yt(this.document,"stroke",t.strokeStyle).addOpacity(o).getString();t.strokeStyle=p}var f=this.getStyle("stroke-width");if(f.hasValue()){var v=f.getPixels();t.lineWidth=v||hs}var w=this.getStyle("stroke-linecap"),b=this.getStyle("stroke-linejoin"),B=this.getStyle("stroke-miterlimit"),F=this.getStyle("stroke-dasharray"),E=this.getStyle("stroke-dashoffset");if(w.hasValue()&&(t.lineCap=w.getString()),b.hasValue()&&(t.lineJoin=b.getString()),B.hasValue()&&(t.miterLimit=B.getNumber()),F.hasValue()&&F.getString()!=="none"){var k=Rn(F.getString());typeof t.setLineDash<"u"?t.setLineDash(k):typeof t.webkitLineDash<"u"?t.webkitLineDash=k:typeof t.mozDash<"u"&&!(k.length===1&&k[0]===0)&&(t.mozDash=k);var P=E.getPixels();typeof t.lineDashOffset<"u"?t.lineDashOffset=P:typeof t.webkitLineDashOffset<"u"?t.webkitLineDashOffset=P:typeof t.mozDashOffset<"u"&&(t.mozDashOffset=P)}}if(this.modifiedEmSizeStack=!1,typeof t.font<"u"){var j=this.getStyle("font"),M=this.getStyle("font-style"),O=this.getStyle("font-variant"),L=this.getStyle("font-weight"),R=this.getStyle("font-size"),S=this.getStyle("font-family"),T=new yn(M.getString(),O.getString(),L.getString(),R.hasValue()?"".concat(R.getPixels(!0),"px"):"",S.getString(),yn.parse(j.getString(),t.font));M.setValue(T.fontStyle),O.setValue(T.fontVariant),L.setValue(T.fontWeight),R.setValue(T.fontSize),S.setValue(T.fontFamily),t.font=T.toString(),R.isPixels()&&(this.document.emSize=R.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class Mr extends Yi{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new sr(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,r=new pa;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case sr.MOVE_TO:this.pathM(t,r);break;case sr.LINE_TO:this.pathL(t,r);break;case sr.HORIZ_LINE_TO:this.pathH(t,r);break;case sr.VERT_LINE_TO:this.pathV(t,r);break;case sr.CURVE_TO:this.pathC(t,r);break;case sr.SMOOTH_CURVE_TO:this.pathS(t,r);break;case sr.QUAD_TO:this.pathQ(t,r);break;case sr.SMOOTH_QUAD_TO:this.pathT(t,r);break;case sr.ARC:this.pathA(t,r);break;case sr.CLOSE_PATH:this.pathZ(t,r);break}return r}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),r=t.getMarkerAngles(),n=e.map((a,o)=>[a,r[o]]);return n}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");t.fillStyle!==""&&(e.getString("inherit")!=="inherit"?t.fill(e.getString()):t.fill()),t.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var n=r.length-1,a=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(a.isUrlDefinition()){var l=a.getDefinition(),[c,u]=r[0];l.render(t,c,u)}if(o.isUrlDefinition())for(var h=o.getDefinition(),p=1;p<n;p++){var[f,v]=r[p];h.render(t,f,v)}if(s.isUrlDefinition()){var w=s.getDefinition(),[b,B]=r[n];w.render(t,b,B)}}}static pathM(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}pathM(t,e){var{pathParser:r}=this,{point:n}=Mr.pathM(r),{x:a,y:o}=n;r.addMarker(n),e.addPoint(a,o),t&&t.moveTo(a,o)}static pathL(t){var{current:e}=t,r=t.getAsCurrentPoint();return{current:e,point:r}}pathL(t,e){var{pathParser:r}=this,{current:n,point:a}=Mr.pathL(r),{x:o,y:s}=a;r.addMarker(a,n),e.addPoint(o,s),t&&t.lineTo(o,s)}static pathH(t){var{current:e,command:r}=t,n=new CA((r.relative?e.x:0)+r.x,e.y);return t.current=n,{current:e,point:n}}pathH(t,e){var{pathParser:r}=this,{current:n,point:a}=Mr.pathH(r),{x:o,y:s}=a;r.addMarker(a,n),e.addPoint(o,s),t&&t.lineTo(o,s)}static pathV(t){var{current:e,command:r}=t,n=new CA(e.x,(r.relative?e.y:0)+r.y);return t.current=n,{current:e,point:n}}pathV(t,e){var{pathParser:r}=this,{current:n,point:a}=Mr.pathV(r),{x:o,y:s}=a;r.addMarker(a,n),e.addPoint(o,s),t&&t.lineTo(o,s)}static pathC(t){var{current:e}=t,r=t.getPoint("x1","y1"),n=t.getAsControlPoint("x2","y2"),a=t.getAsCurrentPoint();return{current:e,point:r,controlPoint:n,currentPoint:a}}pathC(t,e){var{pathParser:r}=this,{current:n,point:a,controlPoint:o,currentPoint:s}=Mr.pathC(r);r.addMarker(s,o,a),e.addBezierCurve(n.x,n.y,a.x,a.y,o.x,o.y,s.x,s.y),t&&t.bezierCurveTo(a.x,a.y,o.x,o.y,s.x,s.y)}static pathS(t){var{current:e}=t,r=t.getReflectedControlPoint(),n=t.getAsControlPoint("x2","y2"),a=t.getAsCurrentPoint();return{current:e,point:r,controlPoint:n,currentPoint:a}}pathS(t,e){var{pathParser:r}=this,{current:n,point:a,controlPoint:o,currentPoint:s}=Mr.pathS(r);r.addMarker(s,o,a),e.addBezierCurve(n.x,n.y,a.x,a.y,o.x,o.y,s.x,s.y),t&&t.bezierCurveTo(a.x,a.y,o.x,o.y,s.x,s.y)}static pathQ(t){var{current:e}=t,r=t.getAsControlPoint("x1","y1"),n=t.getAsCurrentPoint();return{current:e,controlPoint:r,currentPoint:n}}pathQ(t,e){var{pathParser:r}=this,{current:n,controlPoint:a,currentPoint:o}=Mr.pathQ(r);r.addMarker(o,a,a),e.addQuadraticCurve(n.x,n.y,a.x,a.y,o.x,o.y),t&&t.quadraticCurveTo(a.x,a.y,o.x,o.y)}static pathT(t){var{current:e}=t,r=t.getReflectedControlPoint();t.control=r;var n=t.getAsCurrentPoint();return{current:e,controlPoint:r,currentPoint:n}}pathT(t,e){var{pathParser:r}=this,{current:n,controlPoint:a,currentPoint:o}=Mr.pathT(r);r.addMarker(o,a,a),e.addQuadraticCurve(n.x,n.y,a.x,a.y,o.x,o.y),t&&t.quadraticCurveTo(a.x,a.y,o.x,o.y)}static pathA(t){var{current:e,command:r}=t,{rX:n,rY:a,xRot:o,lArcFlag:s,sweepFlag:l}=r,c=o*(Math.PI/180),u=t.getAsCurrentPoint(),h=new CA(Math.cos(c)*(e.x-u.x)/2+Math.sin(c)*(e.y-u.y)/2,-Math.sin(c)*(e.x-u.x)/2+Math.cos(c)*(e.y-u.y)/2),p=Math.pow(h.x,2)/Math.pow(n,2)+Math.pow(h.y,2)/Math.pow(a,2);p>1&&(n*=Math.sqrt(p),a*=Math.sqrt(p));var f=(s===l?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(a,2)-Math.pow(n,2)*Math.pow(h.y,2)-Math.pow(a,2)*Math.pow(h.x,2))/(Math.pow(n,2)*Math.pow(h.y,2)+Math.pow(a,2)*Math.pow(h.x,2)));isNaN(f)&&(f=0);var v=new CA(f*n*h.y/a,f*-a*h.x/n),w=new CA((e.x+u.x)/2+Math.cos(c)*v.x-Math.sin(c)*v.y,(e.y+u.y)/2+Math.sin(c)*v.x+Math.cos(c)*v.y),b=ip([1,0],[(h.x-v.x)/n,(h.y-v.y)/a]),B=[(h.x-v.x)/n,(h.y-v.y)/a],F=[(-h.x-v.x)/n,(-h.y-v.y)/a],E=ip(B,F);return qc(B,F)<=-1&&(E=Math.PI),qc(B,F)>=1&&(E=0),{currentPoint:u,rX:n,rY:a,sweepFlag:l,xAxisRotation:c,centp:w,a1:b,ad:E}}pathA(t,e){var{pathParser:r}=this,{currentPoint:n,rX:a,rY:o,sweepFlag:s,xAxisRotation:l,centp:c,a1:u,ad:h}=Mr.pathA(r),p=1-s?1:-1,f=u+p*(h/2),v=new CA(c.x+a*Math.cos(f),c.y+o*Math.sin(f));if(r.addMarkerAngle(v,f-p*Math.PI/2),r.addMarkerAngle(n,f-p*Math.PI),e.addPoint(n.x,n.y),t&&!isNaN(u)&&!isNaN(h)){var w=a>o?a:o,b=a>o?1:a/o,B=a>o?o/a:1;t.translate(c.x,c.y),t.rotate(l),t.scale(b,B),t.arc(0,0,w,u,u+h,!!(1-s)),t.scale(1/b,1/B),t.rotate(-l),t.translate(-c.x,-c.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){Mr.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class Zp extends Mr{constructor(t,e,r){super(t,e,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class hi extends Yi{constructor(t,e,r){super(t,e,new.target===hi?!0:r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(t,e);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(t){if(this.type!=="text")return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var e=null;return this.children.forEach((r,n)=>{var a=this.getChildBoundingBox(t,this,this,n);e?e.addBoundingBox(a):e=a}),e}getFontSize(){var{document:t,parent:e}=this,r=yn.parse(t.ctx.font).fontSize,n=e.getStyle("font-size").getNumber(r);return n}getTElementBoundingBox(t){var e=this.getFontSize();return new pa(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,r){var n=e[r],a=null;if(t.isArabic){var o=e.length,s=e[r-1],l=e[r+1],c="isolated";if((r===0||s===" ")&&r<o-1&&l!==" "&&(c="terminal"),r>0&&s!==" "&&r<o-1&&l!==" "&&(c="medial"),r>0&&s!==" "&&(r===o-1||l===" ")&&(c="initial"),typeof t.glyphs[n]<"u"){var u=t.glyphs[n];a=u instanceof Zp?u:u[c]}}else a=t.glyphs[n];return a||(a=t.missingGlyph),a}getText(){return""}getTextFromNode(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),n=r.indexOf(e),a=r.length-1,o=bs(e.textContent||"");return n===0&&(o=$b(o)),n===a&&(o=Xb(o)),o}renderChildren(t){if(this.type!=="text"){this.renderTElementChildren(t);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach((r,n)=>{this.renderChild(t,this,this,n)});var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}renderTElementChildren(t){var{document:e,parent:r}=this,n=this.getText(),a=r.getStyle("font-family").getDefinition();if(a){for(var{unitsPerEm:o}=a.fontFace,s=yn.parse(e.ctx.font),l=r.getStyle("font-size").getNumber(s.fontSize),c=r.getStyle("font-style").getString(s.fontStyle),u=l/o,h=a.isRTL?n.split("").reverse().join(""):n,p=Rn(r.getAttribute("dx").getString()),f=h.length,v=0;v<f;v++){var w=this.getGlyph(a,h,v);t.translate(this.x,this.y),t.scale(u,-u);var b=t.lineWidth;t.lineWidth=t.lineWidth*o/l,c==="italic"&&t.transform(1,0,.4,1,0,0),w.render(t),c==="italic"&&t.transform(1,0,-.4,1,0,0),t.lineWidth=b,t.scale(1/u,-1/u),t.translate(-this.x,-this.y),this.x+=l*(w.horizAdvX||a.horizAdvX)/o,typeof p[v]<"u"&&!isNaN(p[v])&&(this.x+=p[v])}return}var{x:B,y:F}=this;t.fillStyle&&t.fillText(n,B,F),t.strokeStyle&&t.strokeText(n,B,F)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start"),r=!1,n=0;e==="start"&&!r||e==="end"&&r?n=t.x-this.minX:e==="end"&&!r||e==="start"&&r?n=t.x-this.maxX:n=t.x-(this.minX+this.maxX)/2;for(var a=this.textChunkStart;a<this.leafTexts.length;a++)this.leafTexts[a].x+=n;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(t){this.children.forEach((e,r)=>{this.adjustChildCoordinatesRecursiveCore(t,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(t,e,r,n){var a=r.children[n];a.children.length>0?a.children.forEach((o,s)=>{e.adjustChildCoordinatesRecursiveCore(t,e,a,s)}):this.adjustChildCoordinates(t,e,r,n)}adjustChildCoordinates(t,e,r,n){var a=r.children[n];if(typeof a.measureText!="function")return a;t.save(),a.setContext(t,!0);var o=a.getAttribute("x"),s=a.getAttribute("y"),l=a.getAttribute("dx"),c=a.getAttribute("dy"),u=a.getStyle("font-family").getDefinition(),h=!!u&&u.isRTL;n===0&&(o.hasValue()||o.setValue(a.getInheritedAttribute("x")),s.hasValue()||s.setValue(a.getInheritedAttribute("y")),l.hasValue()||l.setValue(a.getInheritedAttribute("dx")),c.hasValue()||c.setValue(a.getInheritedAttribute("dy")));var p=a.measureText(t);return h&&(e.x-=p),o.hasValue()?(e.applyAnchoring(),a.x=o.getPixels("x"),l.hasValue()&&(a.x+=l.getPixels("x"))):(l.hasValue()&&(e.x+=l.getPixels("x")),a.x=e.x),e.x=a.x,h||(e.x+=p),s.hasValue()?(a.y=s.getPixels("y"),c.hasValue()&&(a.y+=c.getPixels("y"))):(c.hasValue()&&(e.y+=c.getPixels("y")),a.y=e.y),e.y=a.y,e.leafTexts.push(a),e.minX=Math.min(e.minX,a.x,a.x+p),e.maxX=Math.max(e.maxX,a.x,a.x+p),a.clearContext(t),t.restore(),a}getChildBoundingBox(t,e,r,n){var a=r.children[n];if(typeof a.getBoundingBox!="function")return null;var o=a.getBoundingBox(t);return o?(a.children.forEach((s,l)=>{var c=e.getChildBoundingBox(t,e,a,l);o.addBoundingBox(c)}),o):null}renderChild(t,e,r,n){var a=r.children[n];a.render(t),a.children.forEach((o,s)=>{e.renderChild(t,e,a,s)})}measureText(t){var{measureCache:e}=this;if(~e)return e;var r=this.getText(),n=this.measureTargetText(t,r);return this.measureCache=n,n}measureTargetText(t,e){if(!e.length)return 0;var{parent:r}=this,n=r.getStyle("font-family").getDefinition();if(n){for(var a=this.getFontSize(),o=n.isRTL?e.split("").reverse().join(""):e,s=Rn(r.getAttribute("dx").getString()),l=o.length,c=0,u=0;u<l;u++){var h=this.getGlyph(n,o,u);c+=(h.horizAdvX||n.horizAdvX)*a/n.fontFace.unitsPerEm,typeof s[u]<"u"&&!isNaN(s[u])&&(c+=s[u])}return c}if(!t.measureText)return e.length*10;t.save(),this.setContext(t,!0);var{width:p}=t.measureText(e);return this.clearContext(t),t.restore(),p}getInheritedAttribute(t){for(var e=this;e instanceof hi&&e.isFirstChild();){var r=e.parent.getAttribute(t);if(r.hasValue(!0))return r.getValue("0");e=e.parent}return null}}class cl extends hi{constructor(t,e,r){super(t,e,new.target===cl?!0:r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class i8 extends cl{constructor(){super(...arguments),this.type="textNode"}}class io extends Yi{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var e,{document:r}=this,{screen:n,window:a}=r,o=t.canvas;if(n.setDefaults(t),o.style&&typeof t.font<"u"&&a&&typeof a.getComputedStyle<"u"){t.font=a.getComputedStyle(o).getPropertyValue("font");var s=new Yt(r,"fontSize",yn.parse(t.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:l,height:c}=n.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var u=this.getAttribute("refX"),h=this.getAttribute("refY"),p=this.getAttribute("viewBox"),f=p.hasValue()?Rn(p.getString()):null,v=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",w=0,b=0,B=0,F=0;f&&(w=f[0],b=f[1]),this.root||(l=this.getStyle("width").getPixels("x"),c=this.getStyle("height").getPixels("y"),this.type==="marker"&&(B=w,F=b,w=0,b=0)),n.viewPort.setCurrent(l,c),this.node&&(!this.parent||((e=this.node.parentNode)===null||e===void 0?void 0:e.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),f&&(l=f[2],c=f[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:l,height:n.viewPort.height,desiredHeight:c,minX:w,minY:b,refX:u.getValue(),refY:h.getValue(),clip:v,clipX:B,clipY:F}),f&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(l,c))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.getAttribute("width",!0),a=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),l=n.getNumber(0),c=a.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var u=this.getAttribute("preserveAspectRatio");u.hasValue()&&u.setValue(u.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(t),a.setValue(e),o.hasValue()||o.setValue("0 0 ".concat(l||t," ").concat(c||e)),s.hasValue()){var h=this.getStyle("width"),p=this.getStyle("height");h.hasValue()&&h.setValue("".concat(t,"px")),p.hasValue()&&p.setValue("".concat(e,"px"))}}}class ev extends Mr{constructor(){super(...arguments),this.type="rect"}path(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),a=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),l=o.getPixels("x"),c=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(c=l),s.hasValue()&&!o.hasValue()&&(l=c),l=Math.min(l,n/2),c=Math.min(c,a/2),t){var u=4*((Math.sqrt(2)-1)/3);t.beginPath(),a>0&&n>0&&(t.moveTo(e+l,r),t.lineTo(e+n-l,r),t.bezierCurveTo(e+n-l+u*l,r,e+n,r+c-u*c,e+n,r+c),t.lineTo(e+n,r+a-c),t.bezierCurveTo(e+n,r+a-c+u*c,e+n-l+u*l,r+a,e+n-l,r+a),t.lineTo(e+l,r+a),t.bezierCurveTo(e+l-u*l,r+a,e,r+a-c+u*c,e,r+a-c),t.lineTo(e,r+c),t.bezierCurveTo(e,r+c-u*c,e+l-u*l,r,e+l,r),t.closePath())}return new pa(e,r,e+n,r+a)}getMarkers(){return null}}class uC extends Mr{constructor(){super(...arguments),this.type="circle"}path(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return t&&n>0&&(t.beginPath(),t.arc(e,r,n,0,Math.PI*2,!1),t.closePath()),new pa(e-n,r-n,e+n,r+n)}getMarkers(){return null}}class fC extends Mr{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),a=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return t&&r>0&&n>0&&(t.beginPath(),t.moveTo(a+r,o),t.bezierCurveTo(a+r,o+e*n,a+e*r,o+n,a,o+n),t.bezierCurveTo(a-e*r,o+n,a-r,o+e*n,a-r,o),t.bezierCurveTo(a-r,o-e*n,a-e*r,o-n,a,o-n),t.bezierCurveTo(a+e*r,o-n,a+r,o-e*n,a+r,o),t.closePath()),new pa(a-r,o-n,a+r,o+n)}getMarkers(){return null}}class dC extends Mr{constructor(){super(...arguments),this.type="line"}getPoints(){return[new CA(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new CA(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:e,y:r},{x:n,y:a}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,r),t.lineTo(n,a)),new pa(e,r,n,a)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}}class tv extends Mr{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=CA.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:r,y:n}]=e,a=new pa(r,n);return t&&(t.beginPath(),t.moveTo(r,n)),e.forEach(o=>{var{x:s,y:l}=o;a.addPoint(s,l),t&&t.lineTo(s,l)}),a}getMarkers(){var{points:t}=this,e=t.length-1,r=[];return t.forEach((n,a)=>{a!==e&&r.push([n,n.angleTo(t[a+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}class hC extends tv{constructor(){super(...arguments),this.type="polygon"}path(t){var e=super.path(t),[{x:r,y:n}]=this.points;return t&&(t.lineTo(r,n),t.closePath()),e}}class gC extends eA{constructor(){super(...arguments),this.type="pattern"}createPattern(t,e,r){var n=this.getStyle("width").getPixels("x",!0),a=this.getStyle("height").getPixels("y",!0),o=new io(this.document,null);o.attributes.viewBox=new Yt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new Yt(this.document,"width","".concat(n,"px")),o.attributes.height=new Yt(this.document,"height","".concat(a,"px")),o.attributes.transform=new Yt(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(n,a),l=s.getContext("2d"),c=this.getAttribute("x"),u=this.getAttribute("y");c.hasValue()&&u.hasValue()&&l.translate(c.getPixels("x",!0),u.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var h=-1;h<=1;h++)for(var p=-1;p<=1;p++)l.save(),o.attributes.x=new Yt(this.document,"x",h*s.width),o.attributes.y=new Yt(this.document,"y",p*s.height),o.render(l),l.restore();var f=t.createPattern(s,"repeat");return f}}class pC extends eA{constructor(){super(...arguments),this.type="marker"}render(t,e,r){if(e){var{x:n,y:a}=e,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(n,a),o==="auto"&&t.rotate(r),s==="strokeWidth"&&t.scale(t.lineWidth,t.lineWidth),t.save();var l=new io(this.document,null);l.type=this.type,l.attributes.viewBox=new Yt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.refX=new Yt(this.document,"refX",this.getAttribute("refX").getValue()),l.attributes.refY=new Yt(this.document,"refY",this.getAttribute("refY").getValue()),l.attributes.width=new Yt(this.document,"width",this.getAttribute("markerWidth").getValue()),l.attributes.height=new Yt(this.document,"height",this.getAttribute("markerHeight").getValue()),l.attributes.overflow=new Yt(this.document,"overflow",this.getAttribute("overflow").getValue()),l.attributes.fill=new Yt(this.document,"fill",this.getAttribute("fill").getColor("black")),l.attributes.stroke=new Yt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),l.children=this.children,l.render(t),t.restore(),s==="strokeWidth"&&t.scale(1/t.lineWidth,1/t.lineWidth),o==="auto"&&t.rotate(-r),t.translate(-n,-a)}}}class vC extends eA{constructor(){super(...arguments),this.type="defs"}render(){}}class vu extends Yi{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new pa;return this.children.forEach(r=>{e.addBoundingBox(r.getBoundingBox(t))}),e}}class rv extends eA{constructor(t,e,r){super(t,e,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:n,children:a}=this;a.forEach(o=>{o.type==="stop"&&n.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,e,r){var n=this;this.getHrefAttribute().hasValue()&&(n=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(n));var{stops:a}=n,o=this.getGradient(t,e);if(!o)return this.addParentOpacity(r,a[a.length-1].color);if(a.forEach(b=>{o.addColorStop(b.offset,this.addParentOpacity(r,b.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:l,viewPort:c}=s.screen,[u]=c.viewPorts,h=new ev(s,null);h.attributes.x=new Yt(s,"x",-l/3),h.attributes.y=new Yt(s,"y",-l/3),h.attributes.width=new Yt(s,"width",l),h.attributes.height=new Yt(s,"height",l);var p=new vu(s,null);p.attributes.transform=new Yt(s,"transform",this.getAttribute("gradientTransform").getValue()),p.children=[h];var f=new io(s,null);f.attributes.x=new Yt(s,"x",0),f.attributes.y=new Yt(s,"y",0),f.attributes.width=new Yt(s,"width",u.width),f.attributes.height=new Yt(s,"height",u.height),f.children=[p];var v=s.createCanvas(u.width,u.height),w=v.getContext("2d");return w.fillStyle=o,f.render(w),w.createPattern(v,"no-repeat")}return o}inheritStopContainer(t){this.attributesToInherit.forEach(e=>{!this.getAttribute(e).hasValue()&&t.getAttribute(e).hasValue()&&this.getAttribute(e,!0).setValue(t.getAttribute(e).getValue())})}addParentOpacity(t,e){if(t.hasValue()){var r=new Yt(this.document,"color",e);return r.addOpacity(t).getColor()}return e}}class mC extends rv{constructor(t,e,r){super(t,e,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var r=this.getGradientUnits()==="objectBoundingBox",n=r?e.getBoundingBox(t):null;if(r&&!n)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var a=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),l=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return a===s&&o===l?null:t.createLinearGradient(a,o,s,l)}}class wC extends rv{constructor(t,e,r){super(t,e,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(t,e){var r=this.getGradientUnits()==="objectBoundingBox",n=e.getBoundingBox(t);if(r&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var a=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=a,l=o;this.getAttribute("fx").hasValue()&&(s=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(l=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var c=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),u=this.getAttribute("fr").getPixels();return t.createRadialGradient(s,l,u,a,o,c)}}class BC extends eA{constructor(t,e,r){super(t,e,r),this.type="stop";var n=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),a=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);o.getString()===""&&o.setValue("#000"),a.hasValue()&&(o=o.addOpacity(a)),this.offset=n,this.color=o.getColor()}}class mu extends eA{constructor(t,e,r){super(t,e,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,t.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new Yt(t,"values",null);var n=this.getAttribute("values");n.hasValue()&&this.values.setValue(n.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return t==="CSS"?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:t}=this,{progress:e,from:r,to:n}=this.getProgress(),a=r.getNumber()+(n.getNumber()-r.getNumber())*e;return t==="%"&&(a*=100),"".concat(a).concat(t)}update(t){var{parent:e}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(n==="freeze"&&!this.frozen)this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();else if(n==="remove"&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=t;var a=!1;if(this.begin<this.duration){var o=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var l=s.getString();o="".concat(l,"(").concat(o,")")}r.setValue(o),a=!0}return a}getProgress(){var{document:t,values:e}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(e.hasValue()){var n=r.progress*(e.getValue().length-1),a=Math.floor(n),o=Math.ceil(n);r.from=new Yt(t,"from",parseFloat(e.getValue()[a])),r.to=new Yt(t,"to",parseFloat(e.getValue()[o])),r.progress=(n-a)/(o-a)}else r.from=this.from,r.to=this.to;return r}}class yC extends mu{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),n=new Ap(e.getColor()),a=new Ap(r.getColor());if(n.ok&&a.ok){var o=n.r+(a.r-n.r)*t,s=n.g+(a.g-n.g)*t,l=n.b+(a.b-n.b)*t;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(s),", ").concat(Math.floor(l),")")}return this.getAttribute("from").getColor()}}class bC extends mu{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),n=Rn(e.getString()),a=Rn(r.getString()),o=n.map((s,l)=>{var c=a[l];return s+(c-s)*t}).join(" ");return o}}class CC extends eA{constructor(t,e,r){super(t,e,r),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:n}=t,{children:a}=this;for(var o of a)switch(o.type){case"font-face":{this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(n[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=o;break;case"glyph":{var l=o;l.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[l.unicode]>"u"&&(this.glyphs[l.unicode]=Object.create(null)),this.glyphs[l.unicode][l.arabicForm]=l):this.glyphs[l.unicode]=l;break}}}render(){}}class EC extends eA{constructor(t,e,r){super(t,e,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class FC extends Mr{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class kC extends hi{constructor(){super(...arguments),this.type="tref"}getText(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}class xC extends hi{constructor(t,e,r){super(t,e,r),this.type="a";var{childNodes:n}=e,a=n[0],o=n.length>0&&Array.from(n).every(s=>s.nodeType===3);this.hasText=o,this.text=o?this.getTextFromNode(a):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:e,x:r,y:n}=this,{mouse:a}=e.screen,o=new Yt(e,"fontSize",yn.parse(e.ctx.font).fontSize);a.isWorking()&&a.checkBoundingBox(this,new pa(r,n-o.getPixels("y"),r+this.measureText(t),n))}else if(this.children.length>0){var s=new vu(this.document,null);s.children=this.children,s.parent=this,s.render(t)}}onClick(){var{window:t}=this.document;t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){var t=this.document.ctx;t.canvas.style.cursor="pointer"}}function JB(A,t){var e=Object.keys(A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(A,n).enumerable})),e.push.apply(e,r)}return e}function fc(A){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?JB(Object(e),!0).forEach(function(r){zp(A,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(e)):JB(Object(e)).forEach(function(r){Object.defineProperty(A,r,Object.getOwnPropertyDescriptor(e,r))})}return A}class SC extends hi{constructor(t,e,r){super(t,e,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var n=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(n)}getText(){return this.text}path(t){var{dataArray:e}=this;t&&t.beginPath(),e.forEach(r=>{var{type:n,points:a}=r;switch(n){case sr.LINE_TO:t&&t.lineTo(a[0],a[1]);break;case sr.MOVE_TO:t&&t.moveTo(a[0],a[1]);break;case sr.CURVE_TO:t&&t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case sr.QUAD_TO:t&&t.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case sr.ARC:{var[o,s,l,c,u,h,p,f]=a,v=l>c?l:c,w=l>c?1:l/c,b=l>c?c/l:1;t&&(t.translate(o,s),t.rotate(p),t.scale(w,b),t.arc(0,0,v,u,u+h,!!(1-f)),t.scale(1/w,1/b),t.rotate(-p),t.translate(-o,-s));break}case sr.CLOSE_PATH:t&&t.closePath();break}})}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:n}=this,a=t.fillStyle;e==="underline"&&t.beginPath(),n.forEach((o,s)=>{var{p0:l,p1:c,rotation:u,text:h}=o;t.save(),t.translate(l.x,l.y),t.rotate(u),t.fillStyle&&t.fillText(h,0,0),t.strokeStyle&&t.strokeText(h,0,0),t.restore(),e==="underline"&&(s===0&&t.moveTo(l.x,l.y+r/8),t.lineTo(c.x,c.y+r/5))}),e==="underline"&&(t.lineWidth=r/20,t.strokeStyle=a,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[t]||0}findSegmentToFitChar(t,e,r,n,a,o,s,l,c){var u=o,h=this.measureText(t,l);l===" "&&e==="justify"&&r<n&&(h+=(n-r)/a),c>-1&&(u+=this.getLetterSpacingAt(c));var p=this.textHeight/20,f=this.getEquidistantPointOnPath(u,p,0),v=this.getEquidistantPointOnPath(u+h,p,0),w={p0:f,p1:v},b=f&&v?Math.atan2(v.y-f.y,v.x-f.x):0;if(s){var B=Math.cos(Math.PI/2+b)*s,F=Math.cos(-b)*s;w.p0=fc(fc({},f),{},{x:f.x+B,y:f.y+F}),w.p1=fc(fc({},v),{},{x:v.x+B,y:v.y+F})}return u+=h,{offset:u,segment:w,rotation:b}}measureText(t,e){var{measuresCache:r}=this,n=e||this.getText();if(r.has(n))return r.get(n);var a=this.measureTargetText(t,n);return r.set(n,a),a}setTextData(t){if(!this.glyphInfo){var e=this.getText(),r=e.split(""),n=e.split(" ").length-1,a=this.parent.getAttribute("dx").split().map(k=>k.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),l=this.getStyle("letter-spacing"),c=this.parent.getStyle("letter-spacing"),u=0;!l.hasValue()||l.getValue()==="inherit"?u=c.getPixels():l.hasValue()&&l.getValue()!=="initial"&&l.getValue()!=="unset"&&(u=l.getPixels());var h=[],p=e.length;this.letterSpacingCache=h;for(var f=0;f<p;f++)h.push(typeof a[f]<"u"?a[f]:u);var v=h.reduce((k,P,j)=>j===0?0:k+P||0,0),w=this.measureText(t),b=Math.max(w+v,0);this.textWidth=w,this.textHeight=this.getFontSize(),this.glyphInfo=[];var B=this.getPathLength(),F=this.getStyle("startOffset").getNumber(0)*B,E=0;(s==="middle"||s==="center")&&(E=-b/2),(s==="end"||s==="right")&&(E=-b),E+=F,r.forEach((k,P)=>{var{offset:j,segment:M,rotation:O}=this.findSegmentToFitChar(t,s,b,B,n,E,o,k,P);E=j,!(!M.p0||!M.p1)&&this.glyphInfo.push({text:r[P],p0:M.p0,p1:M.p1,rotation:O})})}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],{pathParser:r}=t;for(r.reset();!r.isEnd();){var{current:n}=r,a=n?n.x:0,o=n?n.y:0,s=r.next(),l=s.type,c=[];switch(s.type){case sr.MOVE_TO:this.pathM(r,c);break;case sr.LINE_TO:l=this.pathL(r,c);break;case sr.HORIZ_LINE_TO:l=this.pathH(r,c);break;case sr.VERT_LINE_TO:l=this.pathV(r,c);break;case sr.CURVE_TO:this.pathC(r,c);break;case sr.SMOOTH_CURVE_TO:l=this.pathS(r,c);break;case sr.QUAD_TO:this.pathQ(r,c);break;case sr.SMOOTH_QUAD_TO:l=this.pathT(r,c);break;case sr.ARC:c=this.pathA(r);break;case sr.CLOSE_PATH:Mr.pathZ(r);break}s.type!==sr.CLOSE_PATH?e.push({type:l,points:c,start:{x:a,y:o},pathLength:this.calcLength(a,o,l,c)}):e.push({type:sr.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:r,y:n}=Mr.pathM(t).point;e.push(r,n)}pathL(t,e){var{x:r,y:n}=Mr.pathL(t).point;return e.push(r,n),sr.LINE_TO}pathH(t,e){var{x:r,y:n}=Mr.pathH(t).point;return e.push(r,n),sr.LINE_TO}pathV(t,e){var{x:r,y:n}=Mr.pathV(t).point;return e.push(r,n),sr.LINE_TO}pathC(t,e){var{point:r,controlPoint:n,currentPoint:a}=Mr.pathC(t);e.push(r.x,r.y,n.x,n.y,a.x,a.y)}pathS(t,e){var{point:r,controlPoint:n,currentPoint:a}=Mr.pathS(t);return e.push(r.x,r.y,n.x,n.y,a.x,a.y),sr.CURVE_TO}pathQ(t,e){var{controlPoint:r,currentPoint:n}=Mr.pathQ(t);e.push(r.x,r.y,n.x,n.y)}pathT(t,e){var{controlPoint:r,currentPoint:n}=Mr.pathT(t);return e.push(r.x,r.y,n.x,n.y),sr.QUAD_TO}pathA(t){var{rX:e,rY:r,sweepFlag:n,xAxisRotation:a,centp:o,a1:s,ad:l}=Mr.pathA(t);return n===0&&l>0&&(l-=2*Math.PI),n===1&&l<0&&(l+=2*Math.PI),[o.x,o.y,e,r,s,l,a,n]}calcLength(t,e,r,n){var a=0,o=null,s=null,l=0;switch(r){case sr.LINE_TO:return this.getLineLength(t,e,n[0],n[1]);case sr.CURVE_TO:for(a=0,o=this.getPointOnCubicBezier(0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),l=.01;l<=1;l+=.01)s=this.getPointOnCubicBezier(l,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return a;case sr.QUAD_TO:for(a=0,o=this.getPointOnQuadraticBezier(0,t,e,n[0],n[1],n[2],n[3]),l=.01;l<=1;l+=.01)s=this.getPointOnQuadraticBezier(l,t,e,n[0],n[1],n[2],n[3]),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return a;case sr.ARC:{a=0;var c=n[4],u=n[5],h=n[4]+u,p=Math.PI/180;if(Math.abs(c-h)<p&&(p=Math.abs(c-h)),o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],c,0),u<0)for(l=c-p;l>h;l-=p)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],l,0),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(l=c+p;l<h;l+=p)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],l,0),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],h,0),a+=this.getLineLength(o.x,o.y,s.x,s.y),a}}return 0}getPointOnLine(t,e,r,n,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:e,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,l=(a-r)/(n-e+hs),c=Math.sqrt(t*t/(1+l*l));n<e&&(c*=-1);var u=l*c,h=null;if(n===e)h={x:o,y:s+u};else if((s-r)/(o-e+hs)===l)h={x:o+c,y:s+u};else{var p=0,f=0,v=this.getLineLength(e,r,n,a);if(v<hs)return null;var w=(o-e)*(n-e)+(s-r)*(a-r);w/=v*v,p=e+w*(n-e),f=r+w*(a-r);var b=this.getLineLength(o,s,p,f),B=Math.sqrt(t*t-b*b);c=Math.sqrt(B*B/(1+l*l)),n<e&&(c*=-1),u=l*c,h={x:p+c,y:f+u}}return h}getPointOnPath(t){var e=this.getPathLength(),r=0,n=null;if(t<-5e-5||t-5e-5>e)return null;var{dataArray:a}=this;for(var o of a){if(o&&(o.pathLength<5e-5||r+o.pathLength+5e-5<t)){r+=o.pathLength;continue}var s=t-r,l=0;switch(o.type){case sr.LINE_TO:n=this.getPointOnLine(s,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case sr.ARC:{var c=o.points[4],u=o.points[5],h=o.points[4]+u;if(l=c+s/o.pathLength*u,u<0&&l<h||u>=0&&l>h)break;n=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],l,o.points[6]);break}case sr.CURVE_TO:l=s/o.pathLength,l>1&&(l=1),n=this.getPointOnCubicBezier(l,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case sr.QUAD_TO:l=s/o.pathLength,l>1&&(l=1),n=this.getPointOnQuadraticBezier(l,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(n)return n;break}return null}getLineLength(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((t,e)=>e.pathLength>0?t+e.pathLength:t,0)),this.pathLength}getPointOnCubicBezier(t,e,r,n,a,o,s,l,c){var u=l*sp(t)+o*op(t)+n*lp(t)+e*cp(t),h=c*sp(t)+s*op(t)+a*lp(t)+r*cp(t);return{x:u,y:h}}getPointOnQuadraticBezier(t,e,r,n,a,o,s){var l=o*up(t)+n*fp(t)+e*dp(t),c=s*up(t)+a*fp(t)+r*dp(t);return{x:l,y:c}}getPointOnEllipticalArc(t,e,r,n,a,o){var s=Math.cos(o),l=Math.sin(o),c={x:r*Math.cos(a),y:n*Math.sin(a)};return{x:t+(c.x*s-c.y*l),y:e+(c.x*l+c.y*s)}}buildEquidistantCache(t,e){var r=this.getPathLength(),n=e||.25,a=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==a||this.equidistantCache.precision!==n){this.equidistantCache={step:a,precision:n,points:[]};for(var o=0,s=0;s<=r;s+=n){var l=this.getPointOnPath(s),c=this.getPointOnPath(s+n);!l||!c||(o+=this.getLineLength(l.x,l.y,c.x,c.y),o>=a&&(this.equidistantCache.points.push({x:l.x,y:l.y,distance:s}),o-=a))}}}getEquidistantPointOnPath(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var n=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}}var s8=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class TC extends Yi{constructor(t,e,r){super(t,e,r),this.type="image",this.loaded=!1;var n=this.getHrefAttribute().getString();if(n){var a=n.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(n);t.images.push(this),a?this.loadSvg(n):this.loadImage(n),this.isSvg=a}}loadImage(t){var e=this;return di(function*(){try{var r=yield e.document.createImage(t);e.image=r}catch(n){console.error('Error while loading image "'.concat(t,'":'),n)}e.loaded=!0})()}loadSvg(t){var e=this;return di(function*(){var r=s8.exec(t);if(r){var n=r[5];r[4]==="base64"?e.image=atob(n):e.image=decodeURIComponent(n)}else try{var a=yield e.document.fetch(t),o=yield a.text();e.image=o}catch(s){console.error('Error while loading image "'.concat(t,'":'),s)}e.loaded=!0})()}renderChildren(t){var{document:e,image:r,loaded:n}=this,a=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y");if(!(!n||!r||!s||!l)){if(t.save(),t.translate(a,o),this.isSvg){var c=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:l});c.document.documentElement.parent=this,c.render()}else{var u=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:u.width,height:l,desiredHeight:u.height}),this.loaded&&(typeof u.complete>"u"||u.complete)&&t.drawImage(u,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new pa(t,e,t+r,e+n)}}class UC extends Yi{constructor(){super(...arguments),this.type="symbol"}render(t){}}class DC{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,e){var r=this;return di(function*(){try{var{document:n}=r,a=yield n.canvg.parser.load(e),o=a.getElementsByTagName("font");Array.from(o).forEach(s=>{var l=n.createElement(s);n.definitions[t]=l})}catch(s){console.error('Error while loading font "'.concat(e,'":'),s)}r.loaded=!0})()}}class Av extends eA{constructor(t,e,r){super(t,e,r),this.type="style";var n=bs(Array.from(e.childNodes).map(o=>o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),a=n.split("}");a.forEach(o=>{var s=o.trim();if(s){var l=s.split("{"),c=l[0].split(","),u=l[1].split(";");c.forEach(h=>{var p=h.trim();if(p){var f=t.styles[p]||{};if(u.forEach(b=>{var B=b.indexOf(":"),F=b.substr(0,B).trim(),E=b.substr(B+1,b.length-B).trim();F&&E&&(f[F]=new Yt(t,F,E))}),t.styles[p]=f,t.stylesSpecificity[p]=eC(p),p==="@font-face"){var v=f["font-family"].getString().replace(/"|'/g,""),w=f.src.getString().split(",");w.forEach(b=>{if(b.indexOf('format("svg")')>0){var B=$p(b);B&&new DC(t).load(v,B)}})}}})}})}}Av.parseExternalUrl=$p;class QC extends Yi{constructor(){super(...arguments),this.type="use"}setContext(t){super.setContext(t);var e=this.getAttribute("x"),r=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}path(t){var{element:e}=this;e&&e.path(t)}renderChildren(t){var{document:e,element:r}=this;if(r){var n=r;if(r.type==="symbol"&&(n=new io(e,null),n.attributes.viewBox=new Yt(e,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new Yt(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new Yt(e,"overflow",r.getAttribute("overflow").getString()),n.children=r.children,r.styles.opacity=new Yt(e,"opacity",this.calculateOpacity())),n.type==="svg"){var a=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);a.hasValue()&&(n.attributes.width=new Yt(e,"width",a.getString())),o.hasValue()&&(n.attributes.height=new Yt(e,"height",o.getString()))}var s=n.parent;n.parent=this,n.render(t),n.parent=s}}getBoundingBox(t){var{element:e}=this;return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return Wi.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function dc(A,t,e,r,n,a){return A[e*r*4+t*4+a]}function hc(A,t,e,r,n,a,o){A[e*r*4+t*4+a]=o}function _A(A,t,e){var r=A[t];return r*e}function si(A,t,e,r){return t+Math.cos(A)*e+Math.sin(A)*r}class nv extends eA{constructor(t,e,r){super(t,e,r),this.type="feColorMatrix";var n=Rn(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var a=n[0];n=[.213+.787*a,.715-.715*a,.072-.072*a,0,0,.213-.213*a,.715+.285*a,.072-.072*a,0,0,.213-.213*a,.715-.715*a,.072+.928*a,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var o=n[0]*Math.PI/180;n=[si(o,.213,.787,-.213),si(o,.715,-.715,-.715),si(o,.072,-.072,.928),0,0,si(o,.213,-.213,.143),si(o,.715,.285,.14),si(o,.072,-.072,-.283),0,0,si(o,.213,-.213,-.787),si(o,.715,-.715,.715),si(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=n,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,e,r,n,a){for(var{includeOpacity:o,matrix:s}=this,l=t.getImageData(0,0,n,a),c=0;c<a;c++)for(var u=0;u<n;u++){var h=dc(l.data,u,c,n,a,0),p=dc(l.data,u,c,n,a,1),f=dc(l.data,u,c,n,a,2),v=dc(l.data,u,c,n,a,3),w=_A(s,0,h)+_A(s,1,p)+_A(s,2,f)+_A(s,3,v)+_A(s,4,1),b=_A(s,5,h)+_A(s,6,p)+_A(s,7,f)+_A(s,8,v)+_A(s,9,1),B=_A(s,10,h)+_A(s,11,p)+_A(s,12,f)+_A(s,13,v)+_A(s,14,1),F=_A(s,15,h)+_A(s,16,p)+_A(s,17,f)+_A(s,18,v)+_A(s,19,1);o&&(w=0,b=0,B=0,F*=v/255),hc(l.data,u,c,n,a,0,w),hc(l.data,u,c,n,a,1,b),hc(l.data,u,c,n,a,2,B),hc(l.data,u,c,n,a,3,F)}t.clearRect(0,0,n,a),t.putImageData(l,0,0)}}class ul extends eA{constructor(){super(...arguments),this.type="mask"}apply(t,e){var{document:r}=this,n=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!o&&!s){var l=new pa;this.children.forEach(v=>{l.addBoundingBox(v.getBoundingBox(t))}),n=Math.floor(l.x1),a=Math.floor(l.y1),o=Math.floor(l.width),s=Math.floor(l.height)}var c=this.removeStyles(e,ul.ignoreStyles),u=r.createCanvas(n+o,a+s),h=u.getContext("2d");r.screen.setDefaults(h),this.renderChildren(h),new nv(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(h,0,0,n+o,a+s);var p=r.createCanvas(n+o,a+s),f=p.getContext("2d");r.screen.setDefaults(f),e.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=h.createPattern(u,"no-repeat"),f.fillRect(0,0,n+o,a+s),t.fillStyle=f.createPattern(p,"no-repeat"),t.fillRect(0,0,n+o,a+s),this.restoreStyles(e,c)}render(t){}}ul.ignoreStyles=["mask","transform","clip-path"];var ZB=()=>{};class LC extends eA{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:e}=this,r=Reflect.getPrototypeOf(t),{beginPath:n,closePath:a}=t;r&&(r.beginPath=ZB,r.closePath=ZB),Reflect.apply(n,t,[]),this.children.forEach(o=>{if(!(typeof o.path>"u")){var s=typeof o.elementTransform<"u"?o.elementTransform():null;s||(s=Wi.fromElement(e,o)),s&&s.apply(t),o.path(t),r&&(r.closePath=a),s&&s.unapply(t)}}),Reflect.apply(a,t,[]),t.clip(),r&&(r.beginPath=n,r.closePath=a)}render(t){}}class fl extends eA{constructor(){super(...arguments),this.type="filter"}apply(t,e){var{document:r,children:n}=this,a=e.getBoundingBox(t);if(a){var o=0,s=0;n.forEach(B=>{var F=B.extraFilterDistance||0;o=Math.max(o,F),s=Math.max(s,F)});var l=Math.floor(a.width),c=Math.floor(a.height),u=l+2*o,h=c+2*s;if(!(u<1||h<1)){var p=Math.floor(a.x),f=Math.floor(a.y),v=this.removeStyles(e,fl.ignoreStyles),w=r.createCanvas(u,h),b=w.getContext("2d");r.screen.setDefaults(b),b.translate(-p+o,-f+s),e.render(b),n.forEach(B=>{typeof B.apply=="function"&&B.apply(b,0,0,u,h)}),t.drawImage(w,0,0,u,h,p-o,f-s,u,h),this.restoreStyles(e,v)}}}render(t){}}fl.ignoreStyles=["filter","transform","clip-path"];class IC extends eA{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,n,a){}}class NC extends eA{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,n,a){}}class _C extends eA{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,n,a){}}class MC extends eA{constructor(t,e,r){super(t,e,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(t,e,r,n,a){var{document:o,blurRadius:s}=this,l=o.window?o.window.document.body:null,c=t.canvas;c.id=o.getUniqueId(),l&&(c.style.display="none",l.appendChild(c)),RM(c,e,r,n,a,s),l&&l.removeChild(c)}}class OC extends eA{constructor(){super(...arguments),this.type="title"}}class RC extends eA{constructor(){super(...arguments),this.type="desc"}}var o8={svg:io,rect:ev,circle:uC,ellipse:fC,line:dC,polyline:tv,polygon:hC,path:Mr,pattern:gC,marker:pC,defs:vC,linearGradient:mC,radialGradient:wC,stop:BC,animate:mu,animateColor:yC,animateTransform:bC,font:CC,"font-face":EC,"missing-glyph":FC,glyph:Zp,text:hi,tspan:cl,tref:kC,a:xC,textPath:SC,image:TC,g:vu,symbol:UC,style:Av,use:QC,mask:ul,clipPath:LC,filter:fl,feDropShadow:IC,feMorphology:NC,feComposite:_C,feColorMatrix:nv,feGaussianBlur:MC,title:OC,desc:RC};function ey(A,t){var e=Object.keys(A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(A,n).enumerable})),e.push.apply(e,r)}return e}function l8(A){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?ey(Object(e),!0).forEach(function(r){zp(A,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(e)):ey(Object(e)).forEach(function(r){Object.defineProperty(A,r,Object.getOwnPropertyDescriptor(e,r))})}return A}function c8(A,t){var e=document.createElement("canvas");return e.width=A,e.height=t,e}function u8(A){return hp.apply(this,arguments)}function hp(){return hp=di(function*(A){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=document.createElement("img");return t&&(e.crossOrigin="Anonymous"),new Promise((r,n)=>{e.onload=()=>{r(e)},e.onerror=(a,o,s,l,c)=>{n(c)},e.src=A})}),hp.apply(this,arguments)}class ui{constructor(t){var{rootEmSize:e=12,emSize:r=12,createCanvas:n=ui.createCanvas,createImage:a=ui.createImage,anonymousCrossOrigin:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=t,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=e,this.emSize=r,this.createCanvas=n,this.createImage=this.bindCreateImage(a,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(t,e){return typeof e=="boolean"?(r,n)=>t(r,typeof n=="boolean"?n:e):t}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:t}=this;return t[t.length-1]}set emSize(t){var{emSizeStack:e}=this;e.push(t)}popEmSize(){var{emSizeStack:t}=this;t.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(t=>t.loaded)}isFontsLoaded(){return this.fonts.every(t=>t.loaded)}createDocumentElement(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}createElement(t){var e=t.nodeName.replace(/^[^:]+:/,""),r=ui.elementTypes[e];return typeof r<"u"?new r(this,t):new cC(this,t)}createTextNode(t){return new i8(this,t)}setViewBox(t){this.screen.setViewBox(l8({document:this},t))}}ui.createCanvas=c8;ui.createImage=u8;ui.elementTypes=o8;function ty(A,t){var e=Object.keys(A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(A,n).enumerable})),e.push.apply(e,r)}return e}function As(A){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?ty(Object(e),!0).forEach(function(r){zp(A,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(e)):ty(Object(e)).forEach(function(r){Object.defineProperty(A,r,Object.getOwnPropertyDescriptor(e,r))})}return A}class cs{constructor(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Tc(r),this.screen=new ll(t,r),this.options=r;var n=new ui(this,r),a=n.createDocumentElement(e);this.document=n,this.documentElement=a}static from(t,e){var r=arguments;return di(function*(){var n=r.length>2&&r[2]!==void 0?r[2]:{},a=new Tc(n),o=yield a.parse(e);return new cs(t,o,n)})()}static fromString(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=new Tc(r),a=n.parseFromString(e);return new cs(t,a,r)}fork(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return cs.from(t,e,As(As({},this.options),r))}forkString(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return cs.fromString(t,e,As(As({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return di(function*(){var r=t.length>0&&t[0]!==void 0?t[0]:{};e.start(As({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield e.ready(),e.stop()})()}start(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:e,screen:r,options:n}=this;r.start(e,As(As({enableRedraw:!0},n),t))}stop(){this.screen.stop()}resize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(t,e,r)}}const f8=Object.freeze(Object.defineProperty({__proto__:null,AElement:xC,AnimateColorElement:yC,AnimateElement:mu,AnimateTransformElement:bC,BoundingBox:pa,CB1:sp,CB2:op,CB3:lp,CB4:cp,Canvg:cs,CircleElement:uC,ClipPathElement:LC,DefsElement:vC,DescElement:RC,Document:ui,Element:eA,EllipseElement:fC,FeColorMatrixElement:nv,FeCompositeElement:_C,FeDropShadowElement:IC,FeGaussianBlurElement:MC,FeMorphologyElement:NC,FilterElement:fl,Font:yn,FontElement:CC,FontFaceElement:EC,GElement:vu,GlyphElement:Zp,GradientElement:rv,ImageElement:TC,LineElement:dC,LinearGradientElement:mC,MarkerElement:pC,MaskElement:ul,Matrix:Xp,MissingGlyphElement:FC,Mouse:rC,PSEUDO_ZERO:hs,Parser:Tc,PathElement:Mr,PathParser:sr,PatternElement:gC,Point:CA,PolygonElement:hC,PolylineElement:tv,Property:Yt,QB1:up,QB2:fp,QB3:dp,RadialGradientElement:wC,RectElement:ev,RenderedElement:Yi,Rotate:iC,SVGElement:io,SVGFontLoader:DC,Scale:sC,Screen:ll,Skew:Jp,SkewX:oC,SkewY:lC,StopElement:BC,StyleElement:Av,SymbolElement:UC,TRefElement:kC,TSpanElement:cl,TextElement:hi,TextPathElement:SC,TitleElement:OC,Transform:Wi,Translate:aC,UnknownElement:cC,UseElement:QC,ViewPort:tC,compressSpaces:bs,default:cs,getSelectorSpecificity:eC,normalizeAttributeName:Jb,normalizeColor:Zb,parseExternalUrl:$p,presets:KM,toNumbers:Rn,trimLeft:$b,trimRight:Xb,vectorMagnitude:ap,vectorsAngle:ip,vectorsRatio:qc},Symbol.toStringTag,{value:"Module"}));exports.GanttChart=ob;exports.MilestoneDialog=cy;exports.MilestonePoint=vg;exports.TaskBar=iy;exports.TaskDrawer=ly;exports.TaskList=ay;exports.TaskListColumn=lb;exports.TaskRow=ny;exports.Timeline=oy;exports.default=__;exports.install=cb;exports.useI18n=ea;exports.useMessage=pp;